The Potential of Second-Order Optimization for LLMs: A Study with Full Gauss-Newton
Natalie Abreu, Nikhil Vyas, Sham Kakade, Depen Morwani
TL;DR
This study investigates the practical limits of second-order optimization for large language models by applying full Gauss-Newton preconditioning to transformers up to 150M parameters. By comparing full GN, GN-prox-linear, and layerwise GN, the authors demonstrate substantial iteration-time reductions (up to $5.4\times$ over SOAP) and enhanced batch-size scaling, with layerwise GN capturing most of the gains while avoiding cross-layer curvature complexity. Using memory-efficient Jacobian-vector products, the work provides empirical evidence that higher-order terms beyond GN are not strictly necessary for convergence speed, and that layerwise curvature information is often sufficient for large-scale gains. The results offer a target for future, more practical second-order methods and suggest that advancing layerwise Hessian approximations could yield major efficiency improvements in LLM training. Overall, the paper frames a concrete optimization-performance frontier for second-order methods in large transformers and highlights the potential pathways to practical, scalable preconditioning.
Abstract
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.
