Adam: A Method for Stochastic Optimization
Introduced a training method that gives every weight in a network its own step size, worked out from running averages of its recent gradients, so networks train quickly with little tuning.
Adam keeps two running averages for every weight: one of its recent gradients and one of their squares. Each step divides the first by the square root of the second, so steps stay roughly within one chosen learning rate and do not depend on how large the gradients happen to be.
Training a network means nudging its weights (parameters) downhill on an error measure, using gradients (the direction in which the error rises fastest) computed on small random batches of data. This is stochastic gradient descent. Those gradients are noisy, some weights get useful gradients only rarely, and one learning rate (step size) for every weight is hard to choose. Earlier methods each fixed part of this: AdaGrad “works well with sparse gradients” and RMSProp “works well in on-line and non-stationary settings”.
For each weight, Adam tracks m, a moving average of the gradient (an estimate of its mean, the first moment), and v, a moving average of the squared gradient (the second moment). Both start at zero, which biases them towards zero early in training, so Adam corrects each one before use. The step is the learning rate times corrected m divided by the square root of corrected v. The name comes from adaptive moment estimation. Suggested defaults: learning rate 0.001, decay rates 0.9 and 0.999, and a tiny ε of 10-8 to avoid dividing by zero.
The paper reports training curves, not one headline score. In logistic regression on MNIST and IMDB, fully connected networks on MNIST and convolutional networks on CIFAR-10, Adam trained as fast as or faster than the methods it was compared with, including SGD with Nesterov momentum, AdaGrad and RMSProp. On a network with two hidden layers of 1,000 units it made faster progress in both iterations and wall-clock time; on convolutional networks its gain over SGD with momentum was “marginal”. The authors also prove an O(√T) regret bound, a convergence guarantee for the simpler convex case.
Why it matters
Adam became the default optimiser (the rule that turns gradients into weight updates) in deep learning: the original Transformer was trained with it, and it is built into the major training libraries. Two later papers are worth knowing. In 2018 Reddi and colleagues showed a flaw in the convergence proof and built an example where Adam fails to converge. AdamW, from Loshchilov and Hutter, changed how weight decay (a pull of weights towards zero) is applied, and is the version many large models are trained with today.
This is a lite card. The full version adds the core idea in technical detail, the update rule step by step, the AdaMax variant, limitations and open questions.
