Adam (Adaptive Moment Estimation) is an optimizer that sets the update size for each parameter using the mean of the gradient (first moment) and the mean of the squared gradient (second moment). Kingma and Ba proposed it in 2015 (ICLR 2015).
The most basic optimizer, SGD, updates all parameters with the same learning rate. In real networks, however, parameters whose gradients are always large are mixed with parameters that rarely receive gradients. If everything moves with the same learning rate, tuning it for the former leaves the latter barely moving, and tuning it for the latter makes the former unstable.
Adam eases this problem by combining two ideas.
- Momentum: uses the average of past gradients to stabilize the update direction. Like a ball rolling down a slope that keeps its momentum, it cancels out small oscillations.
- RMSProp and AdaGrad: divide by the average of squared gradients, so parameters with large gradients move less and those with small gradients move more.
The paper aims to combine the strengths of AdaGrad, which works well on problems where gradients arrive rarely (sparse gradients), and RMSProp, which works well on problems where the objective changes during training. Because training progresses on many tasks even with the defaults, it is used as a standard for training many kinds of models, starting with the Transformer.

