AMSGrad is an optimizer that replaces the average of squared gradients , which Adam uses to set its step size, with its running maximum, so that the step size never grows back. Reddi, Kale, and Kumar proposed it in 2018 in "On the Convergence of Adam and Beyond" (ICLR 2018). It differs from Adam by a single line.
Adam and RMSprop divide by an exponential moving average of squared gradients to set the step size per parameter. Because an exponential moving average quickly forgets the influence of old gradients, it avoids the drawback of AdaGrad, whose learning rate keeps shrinking. The paper, however, points out that this "quick forgetting" can in turn prevent convergence.
- Information from rare large gradients fades quickly: consider a problem where most mini-batches give small gradients and, very rarely, a large gradient arrives. The large gradient is the one indicating the correct direction, yet with an exponential moving average its influence vanishes quickly, and the small gradients make the step size grow back.
- As a result, it can fail to converge to the optimum even on simple convex problems: the paper proves, with the simplest possible example of a one-dimensional linear function, that Adam converges not to the optimum but to the worst point.
- The convergence proof in the Adam paper contained an error: the proof implicitly assumed that the step size (the learning rate divided per parameter) does not increase over time, but this does not hold for Adam.
By keeping the maximum, AMSGrad guarantees that this assumption always holds. As an analogy, on a road where you once met a steep slope, you keep your stride cautious even while the flat stretch continues.

