logoalt Hacker News

hauntsaninja • yesterday at 10:32 PM • 7 replies • view on HN

An intuitive way of thinking about perplexity is that it is the number of options a model is considering for the next token.

Note the best case is not actually zero. If your model had zero log(perplexity) on "A random number from 1 to 10 is ___" it's not doing something useful. See the "Unknown floor" part of the original post.

In practice it is possible to get estimates for the floor assuming your current methodology, for example see Section 6.3 from Scaling Laws for Neural Language Models (2020)


Replies

yellowflash • today at 7:49 AM

I think "number of equiprobable options a model can be thought of considering..." would be more like it?

soleveloper • today at 10:42 AM

The answer here is 7.

pizzathyme • today at 2:54 AM

How do we score perplexity/correct predictions with tokens that we don't have the answer to? "The theory that unifies gravity and quantum physics is ___"

➕ show 2 replies
lxe • today at 2:49 AM

Yeah, I guess I'm a little bit confused about how perplexity is defined and how it maps to the model intelligence as written in this article.

zh3 • today at 7:13 AM

Wouldn't zero mean a perfect search engine?

➕ show 2 replies
londons_explore • today at 12:05 AM

If we live in a superdeterministic world, there is no such thing as a random number, and everything is fully predictable.

➕ show 2 replies
ijidak • yesterday at 11:19 PM

I believe the parent is still correct though.

Mathematically the best case is zero.

But you're pointing out that in the real world, setting aside the pure mathematical definition of the outcome, zero is unattainable because it's an illogical outcome.

Zero would be a sign of something fishy rather than improved intelligence. The article, I believe, referred to it as 'fully deterministic being impossible,' or invalid, or something along those lines.

Just clarifying because the parent's mathematical explanation was simple, accurate and clear. Just want to make sure readers are not confused when reading your response.

➕ show 1 reply