# Perplexity

- **Canonical URL:** https://getaimath.com/dictionary/perplexity/
- **Topics:** [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is Perplexity?

**In one sentence:** Perplexity measures how surprised a language model is by a piece of text; lower perplexity means the model predicted it better.

If the model gives high probability to each actual next word, perplexity is low. It is useful for comparing language models on the same text, but does not directly measure helpfulness.

![Measuring AI Quality: The Smoke Detector Trade-Off — Simple cartoon comparing Precision and Recall using a kitchen smoke detector: Low Precision screams at burnt toast (False Alarms), Low Recall sleeps through a real fire (Missed Cases), and Good Evals test both on real-world examples.](https://getaimath.com/diagrams/ai-evaluation-and-performance-metrics.png)
*Napkin Diagram (AI Evaluation & Performance Metrics): Precision means "no false alarms when it speaks up"; Recall means "don’t miss the real problem when it happens."*

### Quick Math / Rule of Thumb

If a model has a perplexity of 10, it is on average as uncertain at each step as rolling a fair 10-sided die (lower = tighter predictions).

## What is an example of Perplexity?

A model with perplexity 5 on a book is, roughly, as unsure as if choosing among 5 words each time.

## Why does Perplexity matter?

Perplexity is a basic health check for how well a model understands language.

## Related Concepts

- [F1 Score](https://getaimath.com/dictionary/f1-score/): The F1 score combines precision and recall into one number, rewarding models that are good at both.
- [BLEU](https://getaimath.com/dictionary/bleu/): BLEU is a score that measures how closely a machine translation matches human reference translations, by counting shared word sequences.
- [Recall](https://getaimath.com/dictionary/recall/): Recall tells you, of all the real "yes" cases, how many the model managed to find.
- [ROUGE](https://getaimath.com/dictionary/rouge/): ROUGE is a set of scores that measure how much a generated summary overlaps with reference summaries.
- [Precision](https://getaimath.com/dictionary/precision/): Precision tells you, of all the times the model said "yes," how often it was actually right.
- [Exact Match](https://getaimath.com/dictionary/exact-match/): Exact match is a simple metric that counts an answer as correct only if it matches the expected answer exactly.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/perplexity/)
