TL;DR
The well-known cross-entropy scaling law for language models often breaks down at very large scales, showing slower-than-expected loss reduction. This paper reveals why: cross-entropy is actually a composite metric, and only one of its hidden components—"Error-Entropy"—truly follows a clean power law. As models grow, non-scaling components take up a larger share of the total loss, creating the illusion that model scaling itself is hitting a wall.
What Problem Does This Paper Address?
For years, the development of Large Language Models (LLMs) has been guided by neural scaling laws, which predict that cross-entropy loss decreases at a predictable power-law rate as model size and dataset size increase.
However, recent empirical evidence shows that this law starts to fail for exceptionally large models; the loss decreases more slowly than expected. This breakdown introduces significant uncertainty into whether continuing to scale up models is a reliable path forward. The authors address this fundamental mystery by asking: What exactly is scaling within the cross-entropy loss function? They hypothesize that cross-entropy itself does not truly scale, but rather hides a dominant sub-component that does.
Methods
To investigate this, the authors introduce a new metric called Rank-based Error (RBE), which measures the discrete rank of the correct token rather than its raw probability score. If four incorrect tokens are scored higher than the ground truth token, the RBE is 4.
Using RBE, they mathematically decompose standard cross-entropy loss into three distinct, exact terms:
- Error-Entropy (EE): The Shannon entropy of the RBE distribution. Minimizing this term directly forces the model to rank the correct token higher.
- Self-Alignment (SA): The KL divergence between the RBE distribution and the normalized score distribution, measuring how well the model's probability scores align with its actual error rates.
- Confidence (Conf): The logarithm of a normalization constant, reflecting the overall magnitude and certainty of the model's prediction scores.
Because Error-Entropy itself is non-differentiable (due to the discrete nature of ranking), the authors also design a practical, differentiable surrogate training objective ($L_\lambda = CE + \lambda \cdot CONF$) that penalizes the confidence term to shift the optimization focus more heavily toward Error-Entropy.
Datasets
The authors evaluated their decomposition across three distinct English corpora to ensure robustness:
- Wikipedia (20231101 snapshot): Clean, encyclopedic prose commonly found in standard pretraining pipelines.
- C4: A massive, web-derived corpus covering highly diverse styles and domains.
- The Pile (GitHub subset): Code-heavy sequences chosen specifically as a more challenging distribution to stress-test the decomposition.
These datasets were tested across 32 pretrained models spanning five orders of magnitude (from 14M up to 70B parameters, and up to 405B in qualitative extensions), including families like Pythia, OPT, GPT-2, LLaMA, Mistral, and Qwen.
Key Insights and Ideas
- The Illusion of Cross-Entropy Scaling: Cross-entropy only appears to follow a clean scaling law at smaller scales because Error-Entropy dominates the total loss share (~80–90%) in smaller models.
- Why the Scaling Law Breaks Down: As models grow larger, Error-Entropy continues to decrease robustly along a power law. However, its proportion of the total cross-entropy loss shrinks. The other two components (Self-Alignment and Confidence) do not scale with model size; they remain largely flat or noisy. At massive scales, these non-scaling terms begin to dominate the total cross-entropy value, causing the overall scaling curve to bend and deviate from the power law.
- Rank is More Robust Than Probability: Error-Entropy relies strictly on token rankings rather than raw probability values. This makes it entirely immune to post-processing distortions like temperature scaling, top-k sampling, or nucleus (top-p) sampling, establishing it as a more faithful metric for actual model capability.
Key Results
- Superior Power-Law Fit: In quantitative log-log linear regressions, Error-Entropy achieved a higher goodness-of-fit ($R^2$) value than standard cross-entropy across nearly all tested model families and datasets, frequently hovering close to 0.9.
- Empirical Verification of Training Dynamics: Tracking models throughout their training cycles showed that Error-Entropy is minimized first and most aggressively, while Self-Alignment and Confidence are only optimized later once Error-Entropy has plateaued.
- The 405B Confirmation: Extending the qualitative analysis to include Meta-Llama-3.1-405B confirmed that even at extreme scales, Error-Entropy continues to adhere strictly to the power-law line, while the other components remain highly volatile.
Limitations and Future Work
- Surrogate Optimization: While the authors successfully derived a differentiable surrogate loss function to target Error-Entropy indirectly, directly optimizing a rank-based, non-differentiable metric during standard gradient descent remains an open algorithmic challenge.
- Reinforcement Learning Applications: The authors note that because Error-Entropy relies purely on ranks, it could serve as an excellent non-differentiable reward signal for reinforcement learning from human feedback (RLHF) or reward-model fine-tuning. However, implementing and evaluating this training paradigm is left for future work.
Summary updated