Deconstructing What Makes a Good Optimizer for Language Models
Rosie Zhao, Depen Morwani, David Brandfonbrener, Nikhil Vyas, Sham, Kakade

TL;DR
This paper compares various optimization algorithms for language model training, finding that most perform similarly and that optimizer choice can be based on practical factors rather than performance differences.
Contribution
The study provides a comprehensive comparison of optimizers like Adam, SGD, Adafactor, Lion, and Sophia across multiple models and hyperparameters, and introduces simplified variants of Adam.
Findings
Most optimizers perform comparably in optimal and hyperparameter-robust settings.
No single optimizer is clearly superior in performance or stability.
Adaptive methods like Adam and its variants are crucial for maintaining performance and stability.
Abstract
Training language models becomes increasingly expensive with scale, prompting numerous attempts to improve optimization efficiency. Despite these efforts, the Adam optimizer remains the most widely used, due to a prevailing view that it is the most effective approach. We aim to compare several optimization algorithms, including SGD, Adafactor, Adam, Lion, and Sophia in the context of autoregressive language modeling across a range of model sizes, hyperparameters, and architecture variants. Our findings indicate that, except for SGD, these algorithms all perform comparably both in their optimal performance and also in terms of how they fare across a wide range of hyperparameter choices. Our results suggest to practitioners that the choice of optimizer can be guided by practical considerations like memory constraints and ease of implementation, as no single algorithm emerged as a clear…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques
MethodsAdafactor · Stochastic Gradient Descent · Adam · Evolved Sign Momentum
