A Step Downhill
Training a neural network comes down to a loop that repeats millions of times. The model makes predictions on a batch of data, a loss function measures how wrong they were, backpropagation computes the gradient of that loss with respect to every weight, and then something has to decide how far to move each weight and in which direction. That last piece is the optimizer.
The gradient says which way is downhill locally. It does not say how big a step to take, and it says nothing about the shape of the terrain a few steps away. A loss surface for a network with millions of parameters has long narrow valleys, flat plateaus and saddle points, and a rule that works well in one region can bounce around or stall in another. Most optimizers in use today answer one question: given the gradients seen so far, what is a better step than the raw gradient times a constant?
Noisy Gradients Since 1951
The starting point is older than neural networks. In 1951 Herbert Robbins and Sutton Monro published «A Stochastic Approximation Method» in the Annals of Mathematical Statistics. They studied how to find the root of a function when you can only observe noisy measurements of it, and showed that a sequence of steps converges if the step sizes shrink at the right rate: their sum must be infinite, but the sum of their squares must be finite.
Stochastic gradient descent (SGD) is that idea applied to a loss. Computing the exact gradient over a full dataset of a million images is expensive, so SGD estimates it from a small random batch. The estimate is noisy, but it is cheap, and thousands of cheap noisy steps beat a handful of exact ones. The noise may also help. Nitish Shirish Keskar and colleagues argued at ICLR 2017 that small batches tend to land in flatter minima than very large ones, and that flat minima generalize better.
Plain SGD has one obvious weakness. A single learning rate applies to every parameter in every direction. In a valley that is steep across and shallow along its length, a step size large enough to make progress along the valley floor makes the weights oscillate from wall to wall.
Momentum
Boris Polyak proposed a fix in 1964 with what is now called the heavy ball method. Instead of stepping along the current gradient, the update keeps a running velocity: a decaying sum of past gradients. Components that keep pointing the same way accumulate and speed up. Components that flip sign from step to step, like the oscillations across a narrow valley, cancel out.
Yurii Nesterov published a variant in 1983 that evaluates the gradient at the point where the momentum is about to carry the weights, rather than where they currently are. For smooth convex problems this «look ahead» gives a provably faster convergence rate. In 2013 Ilya Sutskever, James Martens, George Dahl and Geoffrey Hinton showed at ICML that SGD with well-tuned momentum, combined with careful initialization, could train deep and recurrent networks that had been thought to require second-order methods. A momentum of 0.9 became the default.
A Learning Rate for Every Parameter
Momentum still uses one global step size. In 2011 John Duchi, Elad Hazan and Yoram Singer published AdaGrad in the Journal of Machine Learning Research. AdaGrad divides each parameter’s step by the square root of the sum of all its past squared gradients. Parameters that receive large or frequent gradients get smaller steps; rare features, such as an uncommon word in a text model, get larger ones. This worked well for sparse problems.
The flaw is that the sum only grows. After enough steps every learning rate shrinks toward zero and training stops, which is a problem for long non-convex runs. Geoffrey Hinton proposed RMSProp in a 2012 Coursera lecture (it was never published as a paper) that replaces the growing sum with an exponential moving average of squared gradients. Old gradients fade, so the effective learning rate can recover.
Adam
Diederik Kingma and Jimmy Ba combined the two ideas in «Adam: A Method for Stochastic Optimization,» posted in 2014 and presented at ICLR 2015. Adam keeps two moving averages per parameter: one of the gradient (the first moment, like momentum) and one of the squared gradient (the second moment, like RMSProp). The step is the first divided by the square root of the second.
Because both averages start at zero, they are biased toward zero in the first iterations. Adam corrects this by dividing each average by one minus the decay rate raised to the step number, a small detail that matters most at the start of training. The paper’s suggested defaults were a learning rate of 0.001, decay rates of 0.9 and 0.999, and a tiny epsilon to avoid dividing by zero.
Those defaults are forgiving. Adam often trains a new architecture reasonably well without much tuning, and that is a large part of why it spread. It also costs memory: two extra values stored for every weight, which for a model with tens of billions of parameters means tens of gigabytes before counting the model itself.
Case: A Convex Problem Adam Gets Wrong
In 2018 Sashank Reddi, Satyen Kale and Sanjiv Kumar of Google presented «On the Convergence of Adam and Beyond» as an oral at ICLR. They built a simple one-dimensional convex problem on which Adam converges to the worst possible point instead of the optimum. In their example a large, informative gradient appears only occasionally. The moving average of squared gradients forgets it quickly, so the large gradient’s effect is damped while the frequent small gradients pointing the wrong way dominate. They also identified an error in the convergence proof of the original Adam paper.
Their fix, AMSGrad, keeps the maximum of the past second moment estimates so the effective step size can never increase. It came with a valid proof, though in practice it rarely beat Adam on real networks.
A year earlier Ashia Wilson and colleagues reported at NeurIPS 2017 that adaptive methods like Adam often found solutions that generalized worse than those of well-tuned SGD with momentum on image classification and language tasks, even when they reached lower training loss. For several years this was why computer vision papers kept training with SGD while language models moved to Adam.
Weight Decay Is Not L2 Regularization
Part of that generalization gap had a mundane cause. Ilya Loshchilov and Frank Hutter showed in «Decoupled Weight Decay Regularization» (ICLR 2019) that the standard way of adding weight decay to Adam was wrong. With plain SGD, adding an L2 penalty to the loss and shrinking weights directly are mathematically the same thing. With Adam they are not: the L2 term passes through the adaptive scaling, so weights with large historical gradients are regularized less than intended.
Their version, AdamW, applies the decay to the weights directly, outside the adaptive update. The change is a few lines of code. It closed much of the gap with SGD on image classification, and AdamW is now the default for training transformers.
Schedules, Warmup and Large Batches
The update rule is only half of an optimizer in practice. The other half is how the learning rate changes over time. Most large runs today use a warmup followed by a decay, often along a cosine curve.
Warmup became prominent with a 2017 paper from Facebook by Priya Goyal and colleagues, «Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour.» Their baseline ResNet-50 run used batches of 256 images on 8 GPUs and took 29 hours. They scaled to batches of 8,192 on 256 GPUs and finished in one hour with matching accuracy. Two rules made it work: multiply the learning rate by the same factor as the batch size, and start with a small learning rate for the first few epochs before ramping up. Without the warmup the large initial steps destabilized training.
Benchmarks That Rarely Crown a Winner
Hundreds of optimizers have been proposed since Adam. In 2021 Robin Schmidt, Frank Schneider and Philipp Hennig tested fifteen of them on eight deep learning problems at ICML, analyzing almost 35,000 runs. No method dominated across tasks. Trying several optimizers with default settings worked about as well as carefully tuning one, and Adam remained a strong contender that newer methods did not consistently beat.
The MLCommons AlgoPerf benchmark tried to make the comparison stricter by measuring the wall-clock time needed to reach a target on a fixed set of workloads, with tuning budgets defined in the rules. In its first competition, analyzed in an ICLR 2025 paper, Distributed Shampoo from a team at Meta won the externally tuned track, training about 28% faster than the baseline. Schedule-Free AdamW by Aaron Defazio and colleagues won the self-tuning track. Shampoo uses a preconditioner built from per-layer matrix statistics, a step toward second-order information that Adam’s per-parameter scaling ignores.
Google researchers led by Xiangning Chen used program search, an evolutionary procedure over symbolic code, to discover Lion («EvoLved Sign Momentum») in 2023. Lion keeps only one momentum buffer and uses the sign of the update, so every parameter moves by the same magnitude. Muon, released by Keller Jordan in 2024 for speedrunning a small GPT training setup, orthogonalizes the momentum of each weight matrix using a few Newton-Schulz iterations. Researchers at Moonshot AI reported in 2025 that Muon reached roughly twice the compute efficiency of AdamW in their scaling experiments, and trained a 16 billion parameter mixture-of-experts model with it.
Closing Thought
Adam’s success is often explained by its update rule, but its age may matter as much. For almost a decade, architectures, initialization schemes, normalization layers and learning rate recipes were developed and tuned by people who were training with Adam. A new optimizer is not competing with Adam alone. It is competing with an entire set of design choices that grew up around Adam’s behavior and were kept because they worked with it. That is one reason methods that win on paper so often lose in practice. The ones that break through, like Muon, tend to arrive with their own recipe for everything else.
By: Max Johnson B.