Log-perplexity = data entropy + the model's gap: cross-entropy decomposition, visualized
ziv_ravid · x · 2026-11-26
Part 7 of zivravid's thread (quoting parts 5-6) on what perplexity actually measures.
- Perplexity is log loss per token: −log q(next token | context) averaged over held-out data (for OpenAI, a snapshot of their own codebase). Per token, it's how many bits the model still needs after reading the context.
- The diagram decomposes cross-entropy: H(p,q) = H(p) + KL(p‖q), and only the sum is reported. The data entropy H(p) is a shared unknown floor for all models; stronger models simply have smaller KL divergence.
- Also cites Lotfi et al. (2024): compressing LMs far enough yielded the first non-vacuous generalization bounds for LLMs, with bigger models compressing better and getting tighter bounds.
More from Research
- Three world models play a survival game, each predicting the ice and each other — yshan2u · 2026-12-06
- Open-source AV control guide adds kinematic bicycle model chapter with step-size error analysis — 4310sy · 2026-12-06
- How information flows through transformers: the residual stream and the K/V stream — repligate · 2026-12-06
- AI researcher: progress comes from finding which dimensions matter, not faster search — RileyRalmuto · 2026-12-06
- What building a GPT-style chatbot actually involves: five stages and one crucial distinction — jaspindersingh83 · 2026-12-06
- ANNA + Selective G-Bispectra lifts 4B LLM OOD length generalization from 0% to 35-56% — mayfer · 2026-12-06