Adam optimizer
Adam优化器
Adam is an optimization algorithm that tracks exponential moving averages of the gradient and its square for each parameter and uses them to determine the update direction and size.
Backpropagation measures how a small parameter change would affect the loss on the current batch. Adam maintains two exponentially weighted averages for each parameter. The update goes against the corrected average gradient. Its denominator is the square root of the corrected average squared gradient plus a small stabilizing constant. Both averages start at zero, so the bias corrections matter most early in training.
A global learning rate multiplies the scaled update for each parameter. Parameters with large recent squared gradients receive a larger denominator and, for a given mean gradient, a smaller step. The two averages must also be kept in memory alongside the parameters, which can be a substantial cost when training a large network.
- Kingma DP, Ba J. Adam: A Method for Stochastic Optimization. ICLR, 2015. arxiv.org/abs/1412.6980
Key works · 1
Landmark2015ICLR 2015140,473 citations
Adam: A Method for Stochastic Optimization
Adam forms exponential moving averages of each parameter's gradient and squared gradient, corrects bias from their initialization, and uses them to rescale updates. The authors examined optimization on logistic regression, multilayer networks, and a convolutional model and reported competitive convergence in those experiments.
SignificanceThe method provided a general-purpose optimizer with steps scaled by per-parameter gradient statistics, now implemented in libraries such as PyTorch. AdamW retains its adaptive update and changes how parameter decay is applied, making Adam the direct basis of that widely used variant.
arXiv Diederik P. KingmaJimmy Lei Ba neural networkbackpropagationAdam optimizer