Skip to content
The Daily Triptych210 / 365
Effective step scale under Adam vs AMSGrad

Schematic per-coordinate effective step size versus iteration. Adam’s scale can rise again when the second-moment EMA decays; AMSGrad’s running maximum prevents that rise.

II · THE IDEA · ARTIFICIAL INTELLIGENCE

Optimization Theory for Adaptive Gradient Methods

theory · 1904.09237, 1910.07454 · Adam, AMSGrad, learning-rate schedules

▶ Listen · narrated

Practitioners treat Adam as a default. Theory shows that its exponential average of squared gradients can keep the effective step size from vanishing, and training can stall.

At a glance

Core issue
Adam's second-moment EMA can make effective steps fail to vanish
Counterexample
Simple convex online problems where Adam does not converge
Proposed fix
AMSGrad: keep a running maximum of the second-moment estimate
Schedule link
Exponential learning-rate schedules interact with adaptive scaling

Think of each weight having its own volume knob turned by how large its recent gradients have been. Adam turns the knob using a fading memory of squared gradients: old large gradients slowly drop out. If a weight was noisy early and quiet later, the memory fades, the knob turns back up, and the weight starts taking big steps again just when you wanted the training to settle. On some simple problems that behaviour is enough to stop the method from converging.

AMSGrad changes only the memory rule. It remembers the loudest second-moment value it has ever seen and never turns the knob quieter than that. Steps are still adaptive across weights, but they are not allowed to grow bold again after they have been cautious. Separately, the global learning-rate schedule — including schedules that grow or shrink exponentially — multiplies every one of those per-weight steps. So the fading memory, the optional maximum, and the global schedule are three coupled controls, not three independent ones.

Look closer

  1. The second moment is allowed to forget

    Adam maintains an exponential moving average of squared gradients. When a coordinate stops producing large gradients, that average decays. The adaptive denominator then shrinks, so the effective step size on that coordinate can grow again even late in training. In ordinary SGD with a diminishing step size the steps are forced smaller; in Adam they need not be. That single design choice is what the convergence analysis isolates.

  2. A convex counter-example is enough

    The failure is not reserved for deep non-convex nets. On carefully chosen convex online optimisation problems, Adam's average regret need not tend to zero. The construction arranges gradients so that the second-moment estimate repeatedly under-weights the coordinates that still matter. If the algorithm can fail here, claims of general convergence need stronger assumptions or a modified update.

  3. AMSGrad freezes the scale from below

    AMSGrad replaces the raw second-moment EMA with the maximum of all second-moment estimates seen so far. The denominator is therefore non-decreasing in a precise sense: once a coordinate has been large, its scale cannot collapse again. The change is small in code and large in the proof. It restores a regret bound of the kind Adam was originally thought to enjoy, at the cost of a more conservative adaptive rate.

The story

Adaptive gradient methods scale each coordinate by a running estimate of gradient magnitude. Adam does this with two exponential moving averages: one for the gradient itself and one for its square. The second average supplies a per-coordinate normaliser. The practical appeal is obvious — less hand-tuning of a global learning rate, faster progress on sparse or ill-scaled features — and for several years the method was treated as essentially settled.

The convergence paper shows that the settlement was premature. The original regret analysis for Adam rested on an assumption that does not always hold: that the second-moment terms behave so that a certain telescoping sum stays controlled. When that assumption fails, the proof does not go through. More sharply, there exist simple convex online problems on which Adam's average regret stays bounded away from zero. The algorithm can keep taking steps that are too large on the wrong coordinates because the exponential average is allowed to forget earlier large gradients. Forgetting is useful for non-stationary signals; it is harmful when the theory needs the effective step sizes to diminish.

AMSGrad is the direct response. Instead of using the current second-moment estimate alone, one keeps a running maximum of those estimates and divides by the square root of that maximum (plus the usual epsilon). The adaptive scale on each coordinate can only tighten or stay put; it cannot loosen again. With that monotonicity restored, a standard style of regret bound becomes available again. The modification is easy to state and easy to implement, which is part of why the result travelled quickly: it named a real failure mode and offered a one-line change rather than a wholesale redesign.

Hyperparameter sensitivity sits next to the convergence gap. The moments use decay coefficients usually written β1 and β2. End-of-proof constants and the severity of the counter-examples depend on how close those coefficients sit to one, and on the interplay with the learning-rate schedule. A setting that looks stable on one problem can violate the conditions that keep the effective steps under control on another. The theory does not ban Adam; it says that its guarantees are narrower than the original claims, and that β2 in particular is not a free knob.

A second line of work connects adaptive methods to learning-rate schedules that grow or decay exponentially. Under weight normalisation and related reparameterisations, an exponentially increasing learning rate can be shown to interact cleanly with the scale of the weights, and can be rearranged into forms that resemble what practitioners already do with decay. The point for adaptive methods is comparative: once the per-coordinate scale is itself a moving estimate, the global schedule and the adaptive denominator are no longer independent dials. An exponential schedule that is safe for plain SGD can push Adam into the regime where the second-moment estimate and the step-size interact badly — or, with care, can be tuned so that the combination stays stable. The schedule paper supplies a precise setting in which those interactions can be analysed rather than only observed.

Taken together, the results shift the standing of Adam-like algorithms from “default with proof” to “default with known failure modes and known patches.” Stable training still depends on the learning rate, on β1 and β2, on epsilon, and on whether the second-moment estimate is allowed to decrease. The theory does not prescribe a single recipe for every architecture. It does say which pieces of the update are load-bearing when something diverges, and which small changes restore the arguments that justify using the method at all.

Why it mattered then

By the late 2010s Adam had become the default optimiser for large neural networks, often used with little schedule tuning. The original convergence claims were widely cited as reassurance. Showing that those claims do not hold in general, even on convex problems, mattered immediately: it explained a class of training failures that looked like mystery hyperparameter sensitivity, and it gave researchers a concrete modification — AMSGrad — whose difference from Adam could be ablated. At the same time, work on exponential learning-rate schedules offered a cleaner account of how global step-size policies interact with normalised or adaptively scaled updates, at a moment when scale and depth were both increasing and hand-tuned schedules were becoming expensive to retune.

Why it matters now

Adam and its variants remain the workhorses of large-model training. The same hyperparameters the theory flags — β2, epsilon, the learning-rate schedule, and whether the second moment is monotonic — still decide whether a run is stable. When an adaptive optimiser diverges late, or when a coordinate-wise scale collapses and then explodes, the convergence analysis is still the right diagnostic map. AMSGrad and related fixes are available in major libraries; knowing what they change, and which proof obligation they discharge, is more useful than treating them as interchangeable synonyms for Adam. Exponential and other aggressive schedules continue to appear in large-scale recipes, so the interaction between schedule shape and adaptive scaling remains a live engineering concern rather than a historical footnote.

The surprising detail

The damning examples are not deep or non-convex. Adam can fail to get vanishing average regret on simple convex online problems built from a short list of carefully alternating gradient patterns. The difficulty is structural — how the exponential second-moment average forgets — not a pathology of neural loss surfaces. That is why a one-line change to keep a maximum of past second moments is enough to put the theory back on firm ground.

What is disputed

The convex counter-examples establish that Adam’s original general guarantees do not hold, but they do not quantify how often the same mechanism appears in large non-convex training runs. AMSGrad restores a clean regret bound; whether it improves final generalisation on a given deep model is empirical and problem-dependent. The exponential-schedule analysis is tightest under normalisation assumptions that practical architectures only partly satisfy.

Remember this

Adam’s second-moment average can shrink when it should not; making that scale non-decreasing restores convergence guarantees the original method lacks.

Test yourself

In Adam, the second-moment estimate is an exponential moving average. Why can that choice alone prevent average regret from vanishing on some convex online problems, and what single bookkeeping change does AMSGrad make to block the failure?

Go deeper

Image: Original diagram, The Daily Triptych. Licence: Original work. Source.

← Back to day 210