Relative-Based Scaling Law for Neural Language Models
Baoqing Yue, Jinyuan Zhou, Zixi Wei, Jingtao Zhan, Qingyao Ai, Yiqun Liu
TL;DR
The paper addresses the incomplete picture provided by cross-entropy in scaling laws by introducing Relative-Based Probability (RBP) and the Relative-Based Scaling Law, which describe how the probability that the ground-truth token appears in the top-$k$ predictions improves with model size. The authors show that for small $k$ (notably $k$ up to a few dozen) the relation $-\,\log \mathrm{RBP}_k \propto S^{-\alpha}$ holds with high fidelity ($R^2$ ~ 0.99) across four datasets and four model families spanning five orders of magnitude. They further demonstrate three practical regimes ($k=1$, moderate $k$, large $k$), analyze emergence phenomena under top-$k$ sampling, and reveal a potential unification with cross-entropy through a lognormal rank-distribution framework, predicting similar scaling slopes for CE and $-\log \mathrm{RBP}_1$. The work provides both practical insights for decoding strategies and theoretical avenues toward a more unified understanding of scaling laws in neural language models.
Abstract
Scaling laws aim to accurately predict model performance across different scales. Existing scaling-law studies almost exclusively rely on cross-entropy as the evaluation metric. However, cross-entropy provides only a partial view of performance: it measures the absolute probability assigned to the correct token, but ignores the relative ordering between correct and incorrect tokens. Yet, relative ordering is crucial for language models, such as in greedy-sampling scenario. To address this limitation, we investigate scaling from the perspective of relative ordering. We first propose the Relative-Based Probability (RBP) metric, which quantifies the probability that the correct token is ranked among the top predictions. Building on this metric, we establish the Relative-Based Scaling Law, which characterizes how RBP improves with increasing model size. Through extensive experiments on four datasets and four model families spanning five orders of magnitude, we demonstrate the robustness and accuracy of this law. Finally, we illustrate the broad application of this law with two examples, namely providing a deeper explanation of emergence phenomena and facilitating finding fundamental theories of scaling laws. In summary, the Relative-Based Scaling Law complements the cross-entropy perspective and contributes to a more complete understanding of scaling large language models. Thus, it offers valuable insights for both practical development and theoretical exploration.
