Adam (KB14) (Adaptive Moment Estimation) is one of the most widely used optimization algorithms in deep learning, thanks to its ability to combine the advantages of AdaGrad and RMSProp.
AdaGrad assigns a specific learning rate to each parameter, making it effective when gradients are sparse. RMSProp, on the other hand, adapts the learning rate according to the gradient magnitude, making it suitable for online and nonstationary settings.
Adam extends these approaches by adaptively estimating both the first moment (the mean of the gradients) and the second moment (the mean of the squared gradients).
Specifically, for each model
, Adam maintains two variables:
These estimates are updated iteratively as follows:
| (4.50) |
| (4.51) |
Since and
are initialized to zero, the first iterations are biased toward zero. To correct this bias, we compute:
| (4.52) |
The parameters are then updated as follows:
| (4.53) |
Adam is particularly effective with noisy data, sparse gradients, or nonstationary objective functions. Thanks to its robustness and ease of use, it is often the default choice for optimizing deep neural networks.
Paolo medici