In Search of Adam's Secret Sauce
Antonio Orvieto, Robert M. Gower
TL;DR
<3-5 sentence high-level summary> The paper addresses why Adam remains the premier optimizer for training large transformer language models by conducting an extensive large-scale empirical study across 1500 models and varied data settings, comparing Adam to simplified variants like Signum and SignSGD with momentum. It discovers that setting beta1 = beta2 yields near-optimal performance across diverse configurations and provides a new online variational-inference interpretation in which Adam estimates the mean and variance of gradients, effectively implementing a data-dependent, adaptive trust region. The work demonstrates that Signum can close much of the SGD-Adam gap but generally underperforms Adam, and situates equal-betas as a robust simplification with theoretical and practical benefits. These findings offer a principled, scalable perspective on Adam’s secret sauce and guide practical hyperparameter choices for large-scale language-model training.
Abstract
Understanding the remarkable efficacy of Adam when training transformer-based language models has become a central research topic within the optimization community. To gain deeper insights, several simplifications of Adam have been proposed, such as the signed gradient and signed momentum methods. In this work, we conduct an extensive empirical study - training over 1500 language models across different data configurations and scales - comparing Adam to several known simplified variants. We find that signed momentum methods are faster than SGD, but consistently underperform relative to Adam, even after careful tuning of momentum, clipping setting and learning rates. However, our analysis reveals a compelling option that preserves near-optimal performance while allowing for new insightful reformulations: constraining the Adam momentum parameters to be equal, beta1 = beta2. Beyond robust performance, this choice affords new theoretical insights, highlights the "secret sauce" on top of signed momentum, and grants a precise statistical interpretation: we show that Adam in this setting implements a natural online algorithm for estimating the mean and variance of gradients-one that arises from a mean-field Gaussian variational inference perspective.
