Part 3 · The Maths I: Tokens and the Objective
Perplexity, and what it is bounded by
Cross entropy in nats is hard to feel. Exponentiate it and you get perplexity, which has an interpretation: the effective number of equally-likely options the model is choosing between.
The uninformed baseline has perplexity exactly equal to the vocabulary size. This is the number every real model is measured against.
Cross entropy decomposes as H(p) + KL(p ‖ q): the data’s own entropy plus the model’s divergence from it. Only the second term is trainable. Text is genuinely stochastic, so H > 0 — this is the E term in the scaling law of Part 5.
Merging more aggressively shrinks the denominator while the numerator — the information content of the document — is unchanged. So per-token loss rises even though the model got no worse.
Normalize by bytes, not tokens, and perplexity numbers become comparable across tokenizers. This is why serious evaluations report bits-per-byte: a model can “win” on perplexity purely by tokenizing more coarsely.