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

一个学习率不适用于所有层:基于重尾引导的LLM逐层学习率

One LR Doesn't Fit All: Heavy-Tail Guided Layerwise Learning Rates for LLMs

SIAT(深圳先进技术研究院);PCL(鹏城实验室);UCAS(中国科学院大学);UOT(图宾根大学);LIU1(智能系统马克斯·普朗克研究所);LIU2(图宾根ELLIS研究所);LIU3(图宾根人工智能中心)

Di He, Songjun Tu, Keyu Wang, Lu Yin, Shiwei Liu

AI总结:

本文提出基于重尾自正则化理论的逐层学习率(LLR)方法,通过为Transformer各层分配不同学习率,加速训练并提升泛化能力,在多种模型和优化器上验证了有效性。

摘要:

学习率配置是现代深度学习的一个基本方面。当前跨所有层应用统一学习率的普遍做法忽视了Transformer的结构异质性,可能限制其作为大型语言模型(LLM)骨干的有效性。在本文中,我们引入逐层学习率(LLR),这是一种自适应方案,为各个Transformer层分配不同的学习率。我们的方法基于重尾自正则化(HT-SR)理论,该理论通过表征权重相关矩阵的经验谱密度(ESD)来量化重尾性。重尾性较弱的层被分配较大的学习率以加速训练,而重尾性较强的层则获得较小的学习率。通过这种方式定制学习率,LLR促进了跨层更均衡的训练,导致更快的收敛和更好的泛化。在从LLaMA到GPT-nano的架构、包括AdamW和Muon的优化器以及从60M到3B参数、最多100B训练token的模型规模上进行的大量实验证明了LLR的有效性。LLR实现了高达1.5倍的训练加速,并且始终优于统一学习率的基线。特别地,它将1B模型的平均零样本准确率从47.09%提高到49.02%,将3B模型的平均零样本准确率从48.58%提高到50.61%。LLR的一个关键优势是其低调优开销:它可以直接从统一基线转移近乎最优的学习率设置。代码可在https://github.com/hed-ucas/Layer-wise-Learning-Rate获取。

英文摘要:

Learning rate configuration is a fundamental aspect of modern deep learning. The prevailing practice of applying a uniform learning rate across all layers overlooks the structural heterogeneity of Transformers, potentially limiting their effectiveness as the backbone of Large Language Models (LLMs). In this paper, we introduce Layerwise Learning Rate (LLR), an adaptive scheme that assigns distinct learning rates to individual Transformer layers. Our method is grounded in Heavy-Tailed Self-Regularization (HT-SR) theory, which characterizes the empirical spectral density (ESD) of weight correlation matrices to quantify heavy-tailedness. Layers with weaker heavy-tailedness are assigned larger learning rates to accelerate training, while layers with stronger heavy-tailedness receive smaller learning rates. By tailoring learning rates in this manner, LLR promotes more balanced training across layers, leading to faster convergence and improved generalization. Extensive experiments across architectures ranging from LLaMA to GPT-nano, optimizers including AdamW and Muon, and model scales from 60M to 3B parameters with up to 100B training tokens demonstrate the effectiveness of LLR. LLR achieves up to 1.5x training speedup and consistently outperforms uniform-learning-rate baselines. In particular, it improves the average zero-shot accuracy of 1B models from 47.09% to 49.02%, and that of 3B models from 48.58% to 50.61%. A key advantage of LLR is its low tuning overhead: it can transfer nearly optimal learning-rate settings directly from the uniform baseline. Code is available at https://github.com/hed-ucas/Layer-wise-Learning-Rate.

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

↑