A model card reports perplexity of 3.2. Explain what that number means in plain English.
Perplexity measures model surprise on held-out text. A perplexity of 3.2 means the model is as uncertain as choosing among 3.2 equally likely next tokens. Lower is better, but low perplexity does not imply correctness.
Imagine you are playing a guessing game where you predict the next word in a sentence. If you are really good, you almost always guess right. You might narrow it down to about three possible words each time. If you are bad, you might be choosing among fifty possibilities each time. Perplexity is a number that says how many options you are effectively choosing among. A perplexity of 3.2 means the model narrows down the next word to about 3.2 equally likely choices on average. That is pretty good for language modeling, because natural language is fairly predictable once you see the context. But here is the catch: being good at predicting the next word does not mean the model gives correct answers to questions. A model with perfect perplexity could still confidently produce wrong facts, because it is predicting what text looks like, not what is true.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define perplexity as exponential of cross-entropy, give the intuitive interpretation, show the formula, explain why it is useful for comparing language models, state the gap between perplexity and downstream task performance, and close with the tokenizer comparability warning.
Real products, models, and research that use this idea.
- GPT-2's original paper reported perplexity on the WikiText-103 benchmark to demonstrate language modeling quality, which became a standard reporting practice for subsequent models.
- Hugging Face's model cards for open-weight models like Llama and Mistral report perplexity on standard evaluation sets to help practitioners compare base models before fine-tuning.
- Research teams monitor validation perplexity during pre-training runs as the primary signal for whether training is converging correctly.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy is perplexity defined as the exponential of cross-entropy rather than just using cross-entropy directly?
QIf two models have the same perplexity on English text, can one still be much better than the other for practical tasks?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating low perplexity as proof that a model is good at downstream tasks. Perplexity measures language modeling quality, not instruction following, factual accuracy, or safety.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.