Perplexity (PPL)
Perplexity (PPL)
What problem it solves
The most common intrinsic metric for language models: how surprised the model is by test text.
What it is
Perplexity is the exponentiated average negative log-likelihood of a sequence, token by token.
Equivalently, the exponent of the average cross-entropy loss; lower perplexity means the model predicts the text more confidently.
It is sensitive to tokenization: compare it directly only between models sharing the same tokenizer.
It applies to autoregressive models and is ill-defined for masked models like BERT.
Why it matters
Papers and model cards report this number. Knowing it is only comparable across same-tokenizer models keeps you from being misled by cross-vendor figures.
What you can do now
Models atlas: which quantisations exist and which tier fits your VRAM ↗
Sources
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.