arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.05447cs.LGcs.AI
收藏

语言模型缩放定律背后的训练动力学:损失减速与零和学习的训练动力学

Training Dynamics Underlying Language Model Scaling Laws: Loss Deceleration and Zero-Sum Learning

Mila – Quebec AI Institute(魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);Capital One

Andrei Mircea, Supriyo Chakraborty, Nima Chitsazan, Milind Naphade, Sambit Sahu, Irina Rish, Ekaterina Lobacheva

AI总结:

本研究从训练动力学角度揭示语言模型缩放定律背后的机制,发现训练早期出现的损失减速现象源于梯度系统性对立的零和学习(ZSL),扩大模型规模可缓解该现象,为改进语言模型提供了新方向。

摘要:

本工作旨在理解缩放如何改进语言模型,特别是从训练动力学角度。我们发现语言模型在训练早期经历损失减速;即损失改善率的突然放缓,导致损失曲线在双对数空间中呈现分段线性行为。扩大模型规模通过以下方式缓解这一转变:(1)降低发生减速时的损失值,(2)改善减速后双对数空间中的损失改善率。我们将损失减速归因于一种退化训练动力学,称之为零和学习(ZSL)。在ZSL中,每个样本的梯度变得系统性对立,导致样本间损失变化的破坏性干扰。结果,改善一部分样本的损失会恶化另一部分样本的损失,从而瓶颈整体进展。损失减速和ZSL为语言模型缩放定律背后的训练动力学提供了新见解,且可能被直接针对以独立于规模地改进语言模型。代码和工件见:https://github.com/mirandrom/zsl

英文摘要:

This work aims to understand how scaling improves language models, specifically in terms of training dynamics. We find that language models undergo loss deceleration early in training; an abrupt slowdown in the rate of loss improvement, resulting in piecewise linear behaviour of the loss curve in log-log space. Scaling up the model mitigates this transition by (1) decreasing the loss at which deceleration occurs, and (2) improving the log-log rate of loss improvement after deceleration. We attribute loss deceleration to a type of degenerate training dynamics we term zero-sum learning (ZSL). In ZSL, per-example gradients become systematically opposed, leading to destructive interference in per-example changes in loss. As a result, improving loss on one subset of examples degrades it on another, bottlenecking overall progress. Loss deceleration and ZSL provide new insights into the training dynamics underlying language model scaling laws, and could potentially be targeted directly to improve language models independent of scale. We make our code and artefacts available at: https://github.com/mirandrom/zsl

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

↑