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

交叉熵缩放定律中什么因素具有可扩展性?

What Scales in Cross-Entropy Scaling Law?

Tsinghua University(清华大学)

Junxi Yan, Zixi Wei, Qingyao Ai, Yiqun Liu, Jingtao Zhan

AI总结:

本文通过分解交叉熵为误差熵、自我对齐和置信度三个部分,揭示了误差熵是唯一遵循幂律缩放的因素,从而解释了交叉熵缩放定律在小规模有效但在大尺度失效的原因。

摘要:

交叉熵缩放定律长期以来一直是指导大型语言模型发展的关键工具。它表明,随着模型规模的增加,交叉熵损失以可预测的幂律速率下降。然而,最近的证据表明,这种定律在非常大的规模下会失效:损失下降的速度比预期的要慢,这给大型语言模型的发展带来了重大麻烦。在本文中,我们假设根本原因在于交叉熵本身并不真正具有可扩展性;相反,仅其隐藏成分之一具有可扩展性。为了研究这一点,我们引入了一种新的交叉熵分解方法,将其分解为三个部分:误差熵、自我对齐和置信度。我们通过理论和实证证明,这种分解精确地捕捉了训练动态和优化目标。通过在多个数据集上进行广泛的实验,并在大小跨度五个数量级的32个模型上进行测试,我们发现只有误差熵遵循稳健的幂律缩放,而其他两个术语则基本不变。此外,误差熵在小型模型中占主导地位,但随着模型规模的增大,其比例会下降。这解释了为什么交叉熵缩放定律在小规模下看起来准确,但在非常大的规模下会失效。我们的发现确立了误差熵缩放定律作为更准确描述模型行为的描述。我们相信它将在大型语言模型的训练、理解和未来发展中有广泛的应用。

英文摘要:

The cross-entropy scaling law has long served as a key tool for guiding the development of large language models. It shows that cross-entropy loss decreases in a predictable power-law rate as the model size increases. However, recent evidence indicates that this law breaks down at very large scales: the loss decreases more slowly than expected, which causes significant trouble for developing large language models. In this paper, we hypothesize that the root cause lies in the fact that cross-entropy itself does not truly scale; instead, only one of its hidden components does. To investigate this, we introduce a novel decomposition of cross-entropy into three parts: Error-Entropy, Self-Alignment, and Confidence. We show both theoretically and empirically that this decomposition precisely captures the training dynamics and optimization objectives. Through extensive experiments on multiple datasets and 32 models spanning five orders of magnitude in size, we find that only error-entropy follows a robust power-law scaling, while the other two terms remain largely invariant. Moreover, error-entropy constitutes the dominant share of cross-entropy in small models but diminishes in proportion as models grow larger. This explains why the cross-entropy scaling law appears accurate at small scales but fails at very large ones. Our findings establish the error-entropy scaling law as a more accurate description of model behavior. We believe it will have wide applications in the training, understanding, and future development of large language models.

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

↑