Perplexity › Key Parameters
Michael BrenndoerferMarch 26, 20251 min read
Language AI HandbookAll chapters Part 2 of 67Classical Text Representations
Perplexity › Key ParametersOne section · Sections in this chapter16 / 17 ↓
Sections in this chapter17
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
When computing and interpreting perplexity, these factors have the most impact:
| Parameter | Typical Values | Effect |
|---|---|---|
| Vocabulary size | 10K-100K words | Larger vocabularies increase perplexity because the model has more choices. Always compare models with the same vocabulary. |
| N-gram order | 2-5 | Higher orders typically reduce perplexity but require more data. Diminishing returns beyond trigrams for most corpora. |
| Smoothing parameter | 0.001-0.5 | Affects perplexity through probability estimates. Tune on development data, not test data. |
| Test set size | 10K+ words | Larger test sets give more stable perplexity estimates. Small test sets may have high variance. |
| OOV rate | < 5% ideal | High OOV rates make perplexity less meaningful. Consider subword tokenization for open-vocabulary evaluation. |
| Log base | 2 or e | Using gives bits; using gives nats. The intermediate cross-entropy values differ, but final perplexity is identical. |