Introduction
In the current era of Large Language Models (LLMs), autoregressive generation remains the standard. However, this process is inherently unstable. As a model generates a sequence, it consumes its own previous outputs as context. Small errors or "rare" token choices accumulate, leading to a phenomenon where the model's internal uncertainty—measured as entropy—drifts away from the true distribution of human language. This research, presented at NeurIPS 2025 by Steven Cao, Gregory Valiant, and Percy Liang, formalizes this "entropy miscalibration" and explores why traditional scaling laws fail to solve it.
The Problem: Error Accumulation and Entropy Drift
When humans write, the "entropy rate" (the amount of information or unpredictability per word) remains relatively constant. In contrast, LLMs exhibit rising entropy as sequences grow longer. This mismatch between the model's entropy and its actual log loss (predictive accuracy) indicates that the model becomes increasingly "confused" by its own generated context.
To combat this, practitioners often use truncation methods like Top-p or Top-k sampling. While these methods stabilize generation by cutting off the "long tail" of low-probability tokens, they introduce a "diversity tax," making the model's output repetitive and less creative than human text. The authors ask: Does scaling fix this automatically? And if not, can we calibrate models without losing diversity?
The Zipfian Curse: Why Scaling Fails
A central question of the study is whether increasing model size and training data (scaling) can naturally resolve miscalibration. The authors demonstrate that for natural language, the answer is largely "no."
The difficulty lies in the power-law distribution of human language, known as Zipf’s Law. The authors prove that the rate at which a model masters rare phenomena is governed by the power-law exponent $\alpha$. Specifically, the probability of encountering an unfamiliar "rare" token decreases at a rate of $m^{1/\alpha - 1}$, where $m$ is the dataset size. Because natural language has an $\alpha$ very close to 1, this exponent is nearly zero. In practical terms, as models grow, they encounter new rare linguistic patterns almost as quickly as they learn to handle old ones. The authors estimate that to reduce calibration error by a factor of 10 in natural language, one would need to increase the training data by a factor of $10^{10}$.
Empirical Scaling Laws: Language vs. Code
The researchers validated their theoretical findings by measuring calibration error across several model families, including Qwen2.5, Llama 3, Llama 2, and Pythia, with parameters ranging from 410M to 70B.
A key finding was the divergence between natural language and programming code:
- Natural Language (WikiText, WritingPrompts): Showed very poor scaling exponents ($\approx -0.10$), confirming the "Zipfian Curse."
- Code (CodeContests): Showed significantly better scaling ($\approx -0.33$). Because code is more structured and has a less "heavy-tailed" vocabulary than creative writing, larger models are much more effective at stabilizing their entropy when generating programs.
Additionally, the study noted that instruction-tuned models (those refined via RLHF) often exhibit lower entropy. While this makes them more stable, it often results in an "alignment tax" where the model becomes overly cautious and less diverse than the base model.
A Theoretical Path Forward: Future Entropy Scaling
The paper’s most significant theoretical contribution is Theorem 5.2, which proves that it is mathematically possible to calibrate a model—matching its entropy to its loss—without sacrificing its original log loss.
The authors propose a new algorithm called Future Entropy Scaling. Unlike standard sampling, which only considers the immediate next token, this approach adjusts the probability of a token based on the expected future entropy of all possible continuations. If choosing a specific token is likely to lead the model into a state of high confusion (high future entropy), its probability is down-weighted. This provides a path to stable generation that preserves the diversity of the original distribution, avoiding the pitfalls of simple truncation.
Conclusion and Future Directions
While the Future Entropy Scaling algorithm is currently a theoretical "black box" due to the computational cost of predicting future states, it reframes the problem of LLM stability. It suggests that the trade-off between stability and diversity is not an immutable law of nature, but a limitation of current local (next-token) sampling strategies.
Future research will likely focus on developing efficient approximations of future entropy that can be used during real-time inference and investigating if "test-time compute" (giving the model more time to "think" or look ahead) can naturally achieve this calibration. By identifying the "Zipfian Curse," this work provides a sobering but necessary look at the limits of raw scaling and points toward more sophisticated sampling paradigms for the next generation of LLMs.
Summary updated