Saved in:
Bibliographic Details
Main Authors: Orvieto, Antonio, Gower, Robert M.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.21829
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912738763079680
author Orvieto, Antonio
Gower, Robert M.
author_facet Orvieto, Antonio
Gower, Robert M.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21829
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle In Search of Adam's Secret Sauce
Orvieto, Antonio
Gower, Robert M.
Machine Learning
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.
title In Search of Adam's Secret Sauce
topic Machine Learning
url https://arxiv.org/abs/2505.21829