arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.09378cs.LGcs.AI
收藏

二阶优化在大语言模型中的潜力:基于完整高斯-牛顿方法的探讨

The Potential of Second-Order Optimization for LLMs: A Study with Full Gauss-Newton

Kempner Institute, Harvard University(哈佛大学凯普纳研究所);Department of Computer Science, Harvard University(哈佛大学计算机科学系)

Natalie Abreu, Nikhil Vyas, Sham Kakade, Depen Morwani

AI总结:

本文通过完整高斯-牛顿预处理探讨了二阶优化在大语言模型训练中的潜力,发现其在训练迭代次数上比现有优化器提升5.4倍,并表明分层Hessian结构能有效实现性能提升。

摘要:

近期加速大语言模型预训练的努力集中在计算效率高的近似方法上,这些方法利用了二阶结构。这提出了一个关键问题:在大规模训练中,这些近似方法会牺牲多少性能?为此,我们通过将完整高斯-牛顿(GN)预处理应用于最多1.5亿参数的Transformer模型,建立了迭代复杂度的实用上界。实验显示,完整GN更新在现有优化器如SOAP和Muon上实现了显著提升,训练迭代次数减少5.4倍。此外,我们发现忽略跨层信息的精确分层GN预处理几乎达到完整GN方法的性能。总体而言,我们的结果表明:(1)GN近似在预处理中非常有效,暗示更高阶损失项可能对收敛速度不重要;(2)分层Hessian结构包含足够的信息以实现大部分潜在收益;(3)当前近似方法与理想化的分层Oracle之间存在显著性能差距。

英文摘要:

Recent efforts to accelerate LLM pretraining have focused on computationally-efficient approximations that exploit second-order structure. This raises a key question for large-scale training: how much performance is forfeited by these approximations? To probe this question, we establish a practical upper bound on iteration complexity by applying full Gauss-Newton (GN) preconditioning to transformer models of up to 150M parameters. Our experiments show that full GN updates yield substantial gains over existing optimizers, achieving a 5.4x reduction in training iterations compared to strong baselines like SOAP and Muon. Furthermore, we find that a precise layerwise GN preconditioner, which ignores cross-layer information, nearly matches the performance of the full GN method. Collectively, our results suggest: (1) the GN approximation is highly effective for preconditioning, implying higher-order loss terms may not be critical for convergence speed; (2) the layerwise Hessian structure contains sufficient information to achieve most of these potential gains; and (3) a significant performance gap exists between current approximate methods and an idealized layerwise oracle.

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

↑