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

超参数转移使矩阵预条件优化器在不同尺度上实现一致的增益

Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales

New York University(纽约大学)

Shikai Qiu, Zixi Chen, Hoang Phan, Qi Lei, Andrew Gordon Wilson

AI总结:

通过超参数转移,研究发现不同规模下矩阵预条件优化器在训练大模型时能实现显著加速,而错误缩放会导致加速效果消失。

摘要:

近年来引入的一些深度学习优化器利用矩阵层面的预条件性,在相对小规模实验中相对于当前主导优化器AdamW显示出有希望的加速效果。然而,验证和复制其成功效果的努力报告了混合结果。为了更好地理解这些优化器在大规模上的有效性,在这项工作中,我们研究如何通过超参数转移来扩展预条件优化器,基于先前的工作如μP。我们研究了最优学习率和权重衰减如何随着模型宽度和深度而缩放,适用于广泛范围的优化器,包括Shampoo、SOAP和Muon,并考虑了常用技术如阻塞和嫁接的影响。我们发现根据μP缩放学习率可以提高转移效果,但仍然会受到显著有限宽度偏差的影响,导致最佳学习率漂移,我们显示可以通过阻塞和显式谱归一化来缓解。对于计算最优缩放,我们发现将独立权重衰减缩放为1/width在不同优化器中几乎是最优的。应用这些缩放规则,我们显示Muon、SOAP和Shampoo在训练从190M到1.4B规模的Llama架构语言模型时,相对于AdamW的加速效果接近1.4倍,而在错误缩放的情况下,加速效果会迅速消失。基于这些结果和进一步的消融分析,我们认为研究最优超参数转移对于在给定现实调优预算下可靠比较优化器至关重要。

英文摘要:

Several recently introduced deep learning optimizers utilizing matrix-level preconditioning have shown promising speedups relative to the current dominant optimizer AdamW, particularly in relatively small-scale experiments. However, efforts to validate and replicate their successes have reported mixed results. To better understand the effectiveness of these optimizers at scale, in this work we investigate how to scale preconditioned optimizers via hyperparameter transfer, building on prior works such as $μ$P. We study how the optimal learning rate and weight decay should scale with model width and depth for a wide range of optimizers, including Shampoo, SOAP, and Muon, accounting for the impact of commonly used techniques such as blocking and grafting. We find that scaling the learning rate according to $μ$P improves transfer, but can still suffer from significant finite-width deviations that cause drifting optimal learning rates, which we show can be mitigated by blocking and explicit spectral normalization. For compute-optimal scaling, we find scaling independent weight decay as $1/\mathrm{width}$ is nearly optimal across optimizers. Applying these scaling rules, we show Muon, SOAP and Shampoo consistently achieve near $1.4\times$ speedup over AdamW for training Llama-architecture language models of sizes ranging from $190$M to $1.4$B, whereas the speedup vanishes rapidly with scale under incorrect scaling. Based on these results and further ablations, we argue that studying optimal hyperparameter transfer is essential for reliably comparing optimizers at scale given a realistic tuning budget.

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

↑