arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05728cs.LG
收藏

$μ$P 学习率迁移的实证研究

An Empirical Study of $μ$P Learning Rate Transfer

Lucas Lingle

AI总结:

本文针对 transformer 实证评估 $μ$P 的 $μ$-Transfer 学习率迁移能力,通过十余项消融和最高 10B 参数、190B 词元的实验,发现其多数情况下可给出近最优学习率。

摘要:

深度学习模型已成为现代 AI 研究的基石,但由于超参数搜索成本高昂,其初始化和学习率有时会以不透明或临时的方式设定。$μ$-Parameterization($μ$P)为这一挑战提供了一种可能的解决方案,它给出了模型初始化和学习率的缩放规则,据称还能实现从小模型到大模型的零样本超参数迁移。尽管 $μ$P 方法具有明显前景,但它尚未被广泛采用,这或许是因为其实现复杂度较高、变体众多,或理论背景复杂。本文从实证角度考察 $μ$P,聚焦广受欢迎的 transformer 架构,并旨在回答一个简单问题:$μ$-Transfer 在实践中是否能产生接近最优的学习率?通过研究十余个消融实验(参数量最高达 1.2B、词元数最高达 33B)以及一项参数量最高达 10B、词元数最高达 190B 的大规模实验,我们观察到在大多数设置下答案是肯定的,并对其他情况讨论了改进方法。

英文摘要:

Deep learning models have become a cornerstone of modern AI research, yet their initializations and learning rates may at times be set in an opaque or ad-hoc fashion due to the high cost of hyperparameter sweeps. The $μ$-Parameterization ($μ$P) offers a possible solution to this challenge, yielding scaling rules for model initialization and learning rates while reportedly enabling zero-shot hyperparameter transfer from small to large models. Despite its evident promise, the $μ$P method is not yet widely adopted, perhaps due to higher implementation complexity, many variations, or complex theoretical background. This work considers $μ$P empirically, focusing on the popular transformer architecture, and aims to answer a simple question: does $μ$-Transfer yield near-optimal learning rates in practice? Studying over a dozen ablations with up to 1.2B parameters and 33B tokens and a large-scale experiment with up to 10B parameters and 190B tokens, we observe a positive answer for most settings, and discuss improvements otherwise.

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

↑