arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.29158cs.LGcs.AI
收藏

关于大语言模型训练中学习率缩放的非线性研究

On the Nonlinearity of Learning Rate Scaling for LLM Training

Zaiwen Yang, Huaqing Zhang, Jing Xu, Jingzhao Zhang

AI总结:

本文通过实验发现,在大规模训练中,最优学习率呈现向上弯曲的非线性缩放,而使用有效学习率(归一化权重空间的步长)和数据量外推可消除该非线性,并解释了其成因。

摘要:

学习率迁移可以降低训练大型语言模型的成本:从业者不是在大规模下进行学习率搜索,而是从小规模运行中推断。现有方法通常假设最优学习率在数据规模和模型规模上遵循对数线性缩放定律。我们仔细检查并评估了这一缩放定律。在我们对从22M到707M参数的GPT-2风格模型(在5B到100B tokens上训练)的实证研究中,最优学习率在更大规模下出现向上弯曲,导致不准确的外推。我们发现,当学习率被有效学习率(归一化权重空间中的步长)替代,并且使用数据$D$外推而非模型大小$N$外推时,这种弯曲基本消失。接下来,我们解释了缩放中的非线性:当最优学习率较小时,权重范数收敛到平衡的速度较慢,需要更大的步长来减少瞬态阶段。使用直接控制有效学习率的AdamH进行的实验进一步支持了这一解释。

英文摘要:

Learning-rate transfer can reduce the cost of training large language models: instead of sweeping learning rates at target scale, practitioners extrapolate from smaller runs. Existing approaches often assume that the optimal learning rate follows a log-linear scaling law in data scale and model size. We carefully examine and evaluate this scaling law. In our empirical study of GPT-2--style models from 22M to 707M parameters trained on 5B to 100B tokens, the optimal learning rate develops upward curvature at larger scales, leading to inaccurate extrapolation. We find that this curvature largely disappears when learning rates are replaced by effective learning rate (the step size in normalized weight space), and when data $D$ extrapolation is used instead of model size $N$ extrapolation. Next, we explain nonlinearity in scaling: weight-norm converges to equilibrium slower when optimal learning is small, requiring a larger step size to reduce the transient phase. Experiments with AdamH, which directly controls the effective learning rate, further support this explanation.

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

↑