Perplexity is not defined in the article. FYI:
Perplexity is the degree of surprise the model has in predicting the next token, over a sequence of tokens. At the worst case, perplexity is equal to the size of the vocabulary. At the best case, perplexity is 1.
So, given a sequence of tokens, "e = m c ^ 2", if the p(token | prev tokens) = 1 for every token, perplexity ends up being 1. If, however, it's a random predictor, the p(token | prev tokens) is 1/vocab for every token, and perplexity ends up being len(vocab).
The article plots log(perplexity) on the y-axis, which puts the best case at 0 (i.e. log 1).
Here is an article with a little interactive example:
https://smalldocs.org/p/perplexity-explained-with-toast-Q0y3...
I linked to it as a stand alone comment as well: https://news.ycombinator.com/item?id=50601525#50603714
And for the statistician in the audience, log-perplexity is the normalized negative log-likelihood.
>We do not expect it is possible to achieve a loss of 0, which would correspond to being able to predict the dataset entirely deterministically
Let's say they get to loss = 0. How much of the dataset is incorrect, and how is new knowledge verified and folded in?
"At the best case, perplexity is 1"
This graph shows log(perplexity) it says. So perplexity starts at zero, then gets negative? I notice I am confused. Most plausible: you mean log-perplexity in best case is 1, for no perplexity, i.e. zero?
> Perplexity is the degree of surprise the model has in predicting the next token
I think "predicting" is a really bad term. It's not predicting anything. You don't get any lottery numbers out, it doesn't predict your future, and it's not predicting what word you were going to type.
It's "choosing" the best token to produce intelligible output. "Choosing" or "selecting" would be much better terms and wouldn't confuse people about what is actually happening.
It's probably too late though as it's become part of the jargon.
Thanks for explaining this. I didn't understand why the initial graph was descending, but now it makes perfect sense.
Maybe it was edited, but it says this right now:
The primary way we measure progress on this key “intelligence substrate” has remained remarkably constant over the years—we have been tracking the perplexity of the models on a held-out dataset.2, 3 Perplexity measures how well a model predicts the next token on average; lower perplexity means better predictions.
[dead]
[dead]
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)