arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20387cs.LGcs.AIcs.CL
收藏

基于相对排序的神经语言模型缩放定律

Relative-Based Scaling Law for Neural Language Models

Tsinghua University(清华大学)

Baoqing Yue, Jinyuan Zhou, Zixi Wei, Jingtao Zhan, Qingyao Ai, Yiqun Liu

AI总结:

针对交叉熵指标忽略正确与错误令牌相对排序的局限,本文提出相对排序概率(RBP)指标并建立基于相对排序的缩放定律,通过跨五个数量级的实验验证其稳健性,并展示其在解释涌现现象和探索基础理论中的应用。

摘要:

缩放定律旨在准确预测模型在不同规模下的性能。现有的缩放定律研究几乎完全依赖交叉熵作为评估指标。然而,交叉熵仅提供了性能的部分视角:它衡量了正确令牌被赋予的绝对概率,却忽略了正确令牌与错误令牌之间的相对排序。然而,相对排序对于语言模型至关重要,例如在贪婪采样场景中。为解决这一局限,我们从相对排序的视角研究缩放行为。我们首先提出相对排序概率(RBP)指标,该指标量化了正确令牌在预测排名中位列前茅的概率。基于该指标,我们建立了基于相对排序的缩放定律,该定律刻画了RBP随模型规模增大而提升的规律。通过在四个数据集和四个模型家族上进行跨越五个数量级的广泛实验,我们验证了该定律的稳健性和准确性。最后,我们通过两个示例展示了该定律的广泛应用,即对涌现现象提供更深入的解释,以及促进缩放定律基础理论的发现。总之,基于相对排序的缩放定律补充了交叉熵视角,有助于更全面地理解大型语言模型的缩放行为,从而为实际开发和理论探索提供有价值的见解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑