Every headline about a new model says what it does. Fewer say what ran the training loop. For the last decade, the loop was usually Adam, an optimizer that has quietly trained most large language models since 2015. The Adam paper by Diederik Kingma and Jimmy Ba (2014, published at ICLR 2015) describes an algorithm for "first-order gradient-based optimization of stochastic objective functions, based on adaptive estimates of lower-order moments." That sentence hides a genuinely simple idea, and the story of how it beat its rivals is mostly about defaults, not proofs.
The problem Adam solves
Plain gradient descent moves every parameter downhill by the same proportion: the step size, or learning rate, is one global number. The learning rate is notoriously fragile, and one number must serve billions of parameters that differ wildly in scale. Some weights see large, frequent gradients; others see small, rare ones. A global step that is safe for the loud parameters barely moves the quiet ones. Momentum helps with the noise but still uses a single step size.
The adaptive-gradient answer was to give each parameter its own effective learning rate, derived from the recent history of its gradients. Three papers, none of them a journal article with an experiment section at first, defined the space Adam entered.
AdaGrad, RMSProp, and the memory problem
AdaGrad (Duchi, Hazan and Singer, JMLR 2011) divides each parameter's step by the square root of the accumulated sum of that parameter's squared gradients since the start of training. Rarely-updated parameters keep large steps; frequently-updated ones shrink. The JMLR paper shows the scheme "significantly simplifies setting a learning rate" and gives regret bounds comparable to the best proximal function chosen in hindsight. Its weakness is visible in the formula: the denominator only ever grows. The sum of squared gradients never forgets, so learning rates decay toward zero, which hurts when the objective is non-stationary, as in deep network training where gradient statistics shift as the weights change.
RMSProp fixed the memory problem informally. In Lecture 6a of Geoffrey Hinton's Courser course "Neural Networks for Machine Learning" (slides by Tijmen Tieleman, 2012), the method is defined in one line: "Divide the learning rate for a weight by a running average of the magnitudes of recent gradients for that weight." A decayed moving average replaces the infinite sum, so old gradients fade out and effective learning rates stop collapsing. RMSProp was never published as a paper; the slide deck is its canonical citation.

What Adam actually computes
Adam short for "adaptive moment estimation" keeps two moving averages per parameter. The first is the mean of recent gradients (momentum, with decay rate beta-1). The second is the mean of recent squared gradients (the RMSProp statistic, with decay rate beta-2). The update divides the corrected first moment by the square root of the corrected second moment, plus a small epsilon on the denominator for numerical safety.
Two details did most of the work. First, because both averages start at zero, they undercount early in training; Adam applies a bias correction that divides each by one minus its decay rate raised to the step count. The Kingma-Ba paper shows that without this correction, AdaGrad-style adaptation "would lead to infinitely large bias, and infinitely large parameter updates" when the second-moment decay sits near one. Second, the authors framed the hyperparameters as nearly tuning-free: "The hyper-parameters have intuitive interpretations and typically require little tuning." Their recommended defaults are a learning rate of 0.001, beta-1 of 0.9, beta-2 of 0.999, and epsilon of 1e-8. Those numbers shipped into every framework.
The paper's own summary of the lineage: Adam "is designed to combine the advantages of two recently popular methods: AdaGrad, which works well with sparse gradients, and RMSProp, which works well in on-line and non-stationary settings." The paper also analyzed convergence and gave a regret bound "comparable to the best known results under the online convex optimization framework." That proof did not survive contact with specialists, as described below, but by then the defaults had already won.

The two famous criticisms
In 2017, Wilson et al. argued Adam generalizes worse than SGD. Their headline is an adversarial toy problem: a linearly separable binary classification task where GD and SGD reach zero test error while "AdaGrad, Adam, and RMSProp attain test errors arbitrarily close to half." On real models they observed adaptive methods "generalize worse (often significantly worse) than SGD, even when these solutions have better training performance," and urged practitioners to reconsider adaptive methods entirely. The recommendation never stuck, because on the tasks practitioners cared about, Adam usually got there faster with less tuning.
The second criticism attacked Adam's own convergence proof. Reddi, Kale, Kumar and Singh (ICLR 2018) gave "an explicit example of a simple convex optimization setting where Adam does not converge to the optimal solution" and identified the culprit as the exponentially-weighted average of squared gradients: recent small gradients can inflate step sizes for directions the algorithm should not revisit. Their fix, AMSGrad, keeps a long-term memory of the largest second-moment estimate seen so far. Adam's theoretical convergence claim is, strictly, false; its practical behavior survived.
AdamW: the bug that was not a bug
Adam's other famous footnote concerns weight decay. Loshchilov and Hutter (ICLR 2019) showed that L2 regularization and weight decay are equivalent for plain SGD but not for adaptive methods: inside Adam, a decayed weight is dragged through the same adaptive scaling as a gradient, which couples the regularization strength to the learning rate. Their fix, AdamW, applies decay directly to the weights instead of folding it into the gradient. It "substantially improves Adam's generalization performance, allowing it to compete with SGD with momentum" on image classification, and it is now the standard optimizer for transformer training. Both flagship LLM papers run on it. The GPT-3 paper trained "all versions of GPT-3" with Adam (beta-1 of 0.9, beta-2 of 0.95, epsilon of 1e-8), gradient clipping at norm 1.0, linear learning-rate warmup over the first 375 million tokens and cosine decay after. The Llama 3 paper pre-trained the 405B model "using AdamW with a peak learning rate of 8e-5, a linear warm up of 8,000 steps, and a cosine learning rate schedule."
The memory tax, and Adafactor
Adam's price is state. Keeping two fp32 buffers per parameter roughly doubles, then triples, the memory a model needs during training. For very large models, Adafactor (Shazeer and Stern, Google Brain, 2018) estimates the second moment from only per-row and per-column sums of squared gradients instead of a full per-parameter buffer, and adds update clipping plus a schedule where the decay rate "gradually increases." Shazeer and Stern showed Adafactor "achieve comparable results to the published Adam regime in training the Transformer model on WMT 2014 English-German translation" with little auxiliary storage. The T5 paper trained on Adafactor, which is why several later T5-lineage models skipped Adam entirely.
What Adam is not
Adam is not gradient descent's replacement in all settings: post-training RL often runs PPO or GRPO, and newer pre-training optimizers like Muon have scaled well past the point where Adam looked permanent. Adam is also not a black box worth fear: it is two moving averages, a bias correction, and a division, with four numbers to set. The lesson from its decade of dominance is closer to the history of POSIX than the history of mathematics. Algorithms with good defaults and low tuning burden beat algorithms with better theory, and the field organized itself around the defaults. Kingma and Ba's beta-2 of 0.999, GPT-3's 0.95, and the cosine schedules stacked on top are the operational facts. Everything else about training was downstream of them.
Sources
- Kingma & Ba, "Adam: A Method for Stochastic Optimization," ICLR 2015 (arXiv:1412.6980)
- Duchi, Hazan & Singer, "Adaptive Subgradient Methods for Online Learning and Stochastic Optimization," JMLR 12, 2011
- Tieleman & Hinton, Lecture 6a slides, "Neural Networks for Machine Learning" (RMSProp), Coursera/University of Toronto, 2012
- Wilson, Roelofs, Stern, Sengupta & Reid, "The Marginal Value of Adaptive Gradient Methods in Machine Learning," 2017 (arXiv:1705.08292)
- Reddi, Kale, Singh & Kumar, "On the Convergence of Adam and Beyond," ICLR 2018 (arXiv:1904.09237)
- Loshchilov & Hutter, "Decoupled Weight Decay Regularization," ICLR 2019 (arXiv:1711.05101)
- Brown et al., "Language Models are Few-Shot Learners" (GPT-3), 2020 (arXiv:2005.14165)
- Meta, "The Llama 3 Herd of Models" (arXiv:2407.21783)
- Shazeer & Stern, "Adafactor: Adaptive Learning Rates with Sublinear Memory Cost," 2018 (arXiv:1804.04235)
- Raffel et al., "Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer" (T5), 2019 (arXiv:1910.10683)
