2025-09-03 · 专家 · 机器学习 · 自然语言处理

Fantastic Pretraining Optimizers and Where to Find Them

这篇论文通过系统对比和分析多种深度学习优化器在语言模型预训练中的应用,揭示了优化器性能的真实提升,并指出了优化器评估中存在的问题。

更新于 2025-09-05。作者:Kaiyue Wen、David Hall、Tengyu Ma、Percy Liang。

中文摘要

AdamW长期以来一直是语言模型预训练中的主导优化器,尽管有众多说法称替代优化器可以提供1.4到2倍的速度提升。我们认为,两个方法论上的缺陷导致了比较的不公平,并阻碍了实际的应用:(i)不平等的超参数调整;(ii)有限的或误导性的评估设置。为了解决这两个问题,我们对十种深度学习优化器进行了系统研究,这些优化器跨越了四种模型规模(0.1B-1.2B参数)和数据到模型的比例(是Chinchilla最优值的1-8倍)。我们发现,公平且具有信息量的比较需要严格的超参数调整和评估,这些调整和评估在训练结束时进行。首先,一个优化器的最佳超参数可能对另一个优化器来说并不理想,这使得盲目的超参数迁移是不公平的。其次,许多提出的优化器相对于经过良好调整的基线实际的速度提升低于所声称的,并且随着模型规模的增加而降低,对于1.2B参数模型来说,速度提升仅为1.1倍。第三,在达到目标训练预算之前比较中间检查点可能是误导性的,因为由于学习率衰减,两个优化器之间的排名可能会在训练过程中翻转。通过我们的彻底调查,我们发现所有最快的优化器,如Muon和Soap,都使用矩阵作为预处理器——用矩阵乘以梯度而不是逐项缩放因子。然而,基于矩阵的优化器的速度提升与模型规模成反比,从0.1B参数模型的1.4倍AdamW下降到仅为1.2B参数模型的1.1倍。

英文摘要

AdamW has long been the dominant optimizer in language model pretraining, despite numerous claims that alternative optimizers offer 1.4 to 2x speedup. We posit that two methodological shortcomings have obscured fair comparisons and hindered practical adoption: (i) unequal hyperparameter tuning and (ii) limited or misleading evaluation setups. To address these two issues, we conduct a systematic study of ten deep learning optimizers across four model scales (0.1B-1.2B parameters) and data-to-model ratios (1-8x the Chinchilla optimum). We find that fair and informative comparisons require rigorous hyperparameter tuning and evaluations across a range of model scales and data-to-model ratios, performed at the end of training. First, optimal hyperparameters for one optimizer may be suboptimal for another, making blind hyperparameter transfer unfair. Second, the actual speedup of many proposed optimizers over well-tuned baselines is lower than claimed and decreases with model size to only 1.1x for 1.2B parameter models. Thirdly, comparing intermediate checkpoints before reaching the target training budgets can be misleading, as rankings between two optimizers can flip during training due to learning rate decay. Through our thorough investigation, we find that all the fastest optimizers such as Muon and Soap, use matrices as preconditioners -- multiplying gradients with matrices rather than entry-wise scalars. However, the speedup of matrix-based optimizers is inversely proportional to model scale, decreasing from 1.4x over AdamW for 0.1B parameter models to merely 1.1x for 1.2B parameter models.

解读

一句话总结

这篇论文通过系统对比和分析多种深度学习优化器在语言模型预训练中的应用,揭示了优化器性能的真实提升,并指出了优化器评估中存在的问题。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源