Perplexity is not comparable across tokenisers
NumericalBeginner⏱ 15 minLLMsperplexitytokenisationevaluationbits per byte
Problem
Two models assign the same total probability to a corpus of characters, but tokenise it into and tokens. Given nats, compute both perplexities and the bits-per-character for each, and state which comparison is meaningful.
Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Maximum likelihood is KL minimisation | LLMs | Proof | 15 min | ||
| The cross-entropy gradient is the prediction error | LLMs | Proof | 15 min | ||
| The irreducible loss is the conditional entropy | LLMs | Proof | 30 min | ||
| Build and instrument a minimal RAG pipeline run | RAG | Coding | 1 day | ||
| Temperature monotonically controls entropy | LLMs | Proof | 30 min |