AI CompendiumA public chart of the language
Home / Evaluation / Perplexity
Evaluation

Perplexity

How surprised the model is by the text — a language-modelling score.

Definition

A measure of how well a model predicts a body of text: lower means the text is more expected. Historically central to language modelling; weakly related to whether output is useful.

Good for comparing models on a fixed corpus, poor as a proxy for task quality. Do not use perplexity to decide whether your assistant got better.

It remains the right metric for training and for measuring how well a model models a distribution, and the wrong metric for whether an output is useful. A low perplexity means the text was predictable, which is a statement about surprise and not about truth, relevance or safety.

How people use it
Someone proposes using perplexity as the acceptance metric.
"Perplexity says nothing about whether the answer was useful. Use task evals."
Worked example

Why perplexity stopped being the headline

Explaining to a non-specialist why models are compared on tasks now.

A model can be excellent at predicting the next token and still fabricate confidently, because plausibility is exactly what low perplexity measures. Task-based evaluation replaced it because it asks whether the output is right, not whether it was expected.

Sources
Related terms