arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.03871cs.LGcs.AIstat.ML
收藏

最优缩放需要最优范数

Optimal Scaling Needs Optimal Norm

Jülich Supercomputing Centre(尤利奇超算中心);Forschungszentrum Jülich(尤利奇研究中心)

Oleg Filatov, Jiangtao Wang, Jan Ebert, Stefan Kesselheim

AI总结:

本研究发现输出层算子范数是优化缩放的关键,提出基于范数的最优缩放方法,并通过Scion优化器验证了其有效性。

摘要:

尽管在模型和数据集缩放下的最优超参数转移方面取得了最近的进展,但尚未建立统一的解释原则。对于Adam和Scion优化器,我们发现模型和数据集大小之间的联合最优缩放取决于一个单一不变量:输出层的算子范数。在训练至138B个token的模型中,最优学习率/批量大小对(η*,B*)始终具有相同的算子范数值——这种现象我们称之为范数转移。这个常数范数条件是必要的但不充分:虽然对于每个数据集大小,多个(η,B)可以达到最优范数,但只有唯一的(η*,B*)才能实现最佳损失。作为充分条件,我们首次测量了Scion的(η*,B*)随数据集大小的缩放情况,并发现其缩放规则与Adam一致。对每层组的学习率进行调优也提高了模型性能,输出层最为敏感,而隐藏层则受益于较低的学习率。我们提供了有关范数引导最优缩放的实用见解,并发布了我们的分布式Scion(Disco)实现,包含超过两千次运行的日志,以支持大规模LLM训练动态的研究。

英文摘要:

Despite recent progress in optimal hyperparameter transfer under model and dataset scaling, no unifying explanatory principle has been established. For Adam and Scion optimizers, we discover that joint optimal scaling across model and dataset sizes is conditioned on a single invariant: the operator norm of the output layer. Across models with up to 1.3B parameters trained on up to 138B tokens, the optimal learning rate/batch size pair $(η^{\ast}, B^{\ast})$ consistently has the same operator norm value - a phenomenon we term norm transfer. This constant norm condition is necessary but not sufficient: while for each dataset size, multiple $(η, B)$ reach the optimal norm, only a unique $(η^{\ast}, B^{\ast})$ achieves the best loss. As a sufficient condition, we provide the first measurement of $(η^{\ast}, B^{\ast})$ scaling with dataset size for Scion, and find that the scaling rules are consistent with those of Adam. Tuning per-layer-group learning rates also improves model performance, with the output layer being the most sensitive and hidden layers benefiting from lower learning rates. We provide practical insights on norm-guided optimal scaling and release our Distributed Scion (Disco) implementation with logs from over two thousand runs to support research on LLM training dynamics at scale.

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

↑