TL;DR
Large language models (LLMs) become increasingly unstable over long generations due to "error accumulation," causing their uncertainty (entropy) to drift away from human text baselines. This paper demonstrates that scaling up models does not automatically fix this entropy miscalibration for natural language due to the heavy-tailed nature of text. However, the authors prove mathematically that it is theoretically possible to perfectly calibrate a model without sacrificing generation diversity by adjusting token probabilities based on predicted future entropy.
What Problem Does This Paper Address?
When an LLM generates text autoregressively, it feeds its own previous outputs back into its context window. If the model makes a slight error or generates an unfamiliar token, this error compounds over time—a classic issue known as "teacher forcing" or "error accumulation."
As a result, the model's uncertainty (per-step entropy) skyrockets the longer it generates text. In contrast, human text maintains a remarkably stable entropy rate throughout a document. This divergence is called entropy miscalibration.
To prevent models from losing the plot during long generations, practitioners typically truncate the token distribution using techniques like top-$k$ sampling, top-$p$ (nucleus) sampling, or lowering the temperature. While this keeps the text coherent, it severely damages output diversity. This paper asks two fundamental questions:
- Does entropy miscalibration naturally fix itself as we scale up models and datasets?
- Is it theoretically possible to calibrate an LLM without sacrificing diversity?
Methods
The authors tackle this problem using a mix of theoretical modeling, empirical scaling analysis, and algorithmic proofs:
- Simplified Theoretical Setting: To build intuition, they analyze a unigram model trained on data following a power-law distribution. They calculate a "scaling exponent" to see how quickly the probability of generating a derailing rare token decreases as the training dataset size ($m$) grows.
- Empirical Scaling Evaluation: They evaluate a wide range of open-source base and instruction-tuned LLMs (from 0.5B to 70B parameters) across different datasets, plotting log calibration error against log model size to find real-world scaling exponents.
- Future Entropy Scaling Algorithm: Drawing from reinforcement learning theory (specifically Maximum Entropy RL), they propose a novel polynomial-time calibration procedure. Instead of looking only at the next token, this algorithm adjusts a token's probability based on a prediction of the future entropy of its possible continuations.
Datasets
The empirical evaluations were conducted using 5,000 examples from three distinct datasets, limiting generations to 1,024 tokens:
- WikiText-103: Standard Wikipedia articles representing factual, natural human text.
- WritingPrompts: Creative, human-written stories from Reddit.
- CodeContests: Competitive programming problems and solutions, used to evaluate model behavior on code rather than natural language.
Key Insights and Ideas
- Zipf’s Law is the Enemy of Scaling: In natural text, word frequencies follow a power-law distribution (Zipf's Law) with an exponent close to 1. The authors prove that when the power-law exponent is close to 1, the scaling exponent of miscalibration is close to 0. This means that as you feed a model more data, you constantly introduce new rare concepts that the model only sees once, memorizes, and later gets tripped up on during generation. Scale alone will not fix text miscalibration.
- Code Scales Better Than Text: Code datasets have lighter tails (a power-law exponent around 1.5). Consequently, the error accumulation in code generation actually improves moderately with model scale, unlike natural language text.
- The "Alignment Tax" on Diversity: The authors find that instruction tuning successfully suppresses the entropy blowup in large models. However, it does so by aggressively flattening the distribution—acting exactly like temperature truncation. This explains why instruction tuning often harms a model's inherent diversity.
Key Results
- Flat Scaling Exponents for Text: For text datasets (WikiText and WritingPrompts), the empirical scaling exponents relating calibration error to model size were extremely flat (around $-0.05$ to $-0.13$). A 70B model accumulates generation errors at a nearly identical rate to a 1B model.
- Steeper Scaling for Code: For CodeContests, the scaling exponent was significantly steeper (around $-0.20$ to $-0.35$), matching the theoretical prediction that lighter-tailed distributions scale better.
- A Proof of Tradeoff-Free Calibration: The authors prove Theorem 5.2, demonstrating that if you have a black-box model capable of predicting the future entropy of text prefixes, the Future Entropy Scaling algorithm can perfectly calibrate an LLM while preserving or even improving its original log loss (diversity).
Limitations and Future Work
The primary limitation is that the proposed Future Entropy Scaling algorithm is highly impractical to implement directly. It requires fitting a separate future entropy predictor for every single generation step and every candidate token, which relies on a slow, repeated sampling process.
Additionally, because commercial model creators do not disclose their exact pretraining data mixtures, it is difficult to cleanly separate the effects of model parameter scaling from dataset composition scaling.
The authors hope this work provides a theoretical North Star, guiding future research toward finding practical, compute-efficient approximations of future entropy to unlock stable, highly diverse LLM generations.
Summary updated