Adam
Adam (Adaptive Moment Estimation) is an adaptive learning rate optimization algorithm for training deep learning models, proposed by Diederik Kingma and Jimmy Ba. It combines the ideas of momentum and RMSProp by simultaneously estimating the first moment (mean) and second moment (variance) of gradients to automatically adjust the learning rate for each parameter. Adam is characterized by computational efficiency, minimal hyperparameter tuning requirements, and fast convergence, and is widely applied in neural network training tasks.
Core Facts
The model weights alone of a 175-billion-parameter model (in BF16 precision) require 350 GB of storage, and the Adam optimizer must maintain two sets of states—first-order moments and second-order moments—totaling more than 1 TB.
Adam combines the momentum method with RMSprop's adaptive learning rate, independently maintaining exponential moving averages of the first-order and second-order gradients for each parameter.
The Adam optimizer was proposed in 2014, combining momentum and adaptive learning rates, and has become the most widely used optimizer today.
Timeline (last 90 days)
Gradient descent updates weights according to the gradient at the learning rate, and its variants (stochastic gradient descent, momentum, Adam, etc.) are the default choice in practical training.
Experimental results show that FSD outperforms SGD or naively applied Adam.
Common optimizers (such as Adam) do not have an online backward view of the step size, and directly applying optimizers such as Adam may break forward-backward equivalence.
Adaptive optimizers (such as Adam) normalize and update each weight of the convolution kernel individually, causing the shared gradient mean to be amplified by approximately a factor of k (where k is the kernel size).
This study proposes a curvature-guided regularizer that uses the curvature statistics maintained by a memory-efficient optimizer (such as Adam) to constrain, at each iteration, the parameter displacement under the base curvature metric to not exceed an upper limit set by the penalty coefficient.
In the control experiment where the NVFP4 error is doubled, noise injected only into the Adam second-moment estimate behaves like a reduced learning rate, and its cost gradually fades over training; noise injected into the update reduces the signal-to-noise ratio, carries about two-thirds of the cost, and persists until the end of training.
Future work could explore extending MOMENT-DP to more complex optimizers (such as Adam).
Adam's update magnitude is approximately m/√v, that is, the first-order momentum is normalized by the second-order momentum, so that parameters of different magnitudes obtain roughly comparable step sizes.
Prior work has shown that on homogeneous models, when the learning rate schedule is of the strongly decaying form η(t) = o(t^{1/L-1}), Adam is proven to converge to the solution that maximizes the ℓ∞ margin.
The paper establishes a loss decay rate for full-batch Adam on general homogeneous models, whose leading order depends only on the second-moment parameter.
40 more timeline events
All Facts (20)
The model weights alone of a 175-billion-parameter model (in BF16 precision) require 350 GB of storage, and the Adam optimizer must maintain two sets of states—first-order moments and second-order moments—totaling more than 1 TB.
90%VerifiedAdam combines the momentum method with RMSprop's adaptive learning rate, independently maintaining exponential moving averages of the first-order and second-order gradients for each parameter.
80%VerifiedThe Adam optimizer was proposed in 2014, combining momentum and adaptive learning rates, and has become the most widely used optimizer today.
80%VerifiedAdamW corrects the confusion between weight decay and L2 regularization in Adam by decoupling weight decay from the gradient update, and has become the de facto standard optimizer for training Transformers.
75%VerifiedGradient descent has spawned three main variants — batch gradient descent, stochastic gradient descent, and mini-batch gradient descent — and the Adam optimizer is a combined improvement built on momentum and adaptive learning rates.
65%VerifiedUsing the Adam optimizer with a default learning rate of 1e-3 as a starting point is a robust entry strategy for deep learning.
65%VerifiedAdaptive learning rate optimizers such as Adam and RMSProp further improve convergence speed and stability over SGD.
65%VerifiedThe computation of both the first and second moments in Adam is based on exponential moving averages (EMA).
65%VerifiedThe title of Adam's paper is "Adam: A Method for Stochastic Optimization."
65%VerifiedAdam was proposed by Diederik P. Kingma and Jimmy Ba in 2014 and published at ICLR 2015.
65%UnverifiedAdam的二阶矩估计记录梯度平方的指数移动平均,反映梯度的波动幅度
90%UnverifiedAdam的EMA设计只需要存储上一时刻的矩估计值,内存开销极小
90%UnverifiedAdam在RMSProp基础上进一步引入一阶矩(动量),并增加了偏差修正机制
90%UnverifiedOpen Code最初叫Terminal AI Agent,由一位开发者业余时间创建,后来知名开发者Dex和Adam加入
85%UnverifiedAdam可以被理解为AdaGrad和RMSProp的进化版本
80%UnverifiedAdam approximately achieves diagonal preconditioning through element-wise adaptive scaling.
70%UnverifiedAdamW maintains two exponential moving average states, the first moment and the second moment, for each trainable parameter, usually stored in fp32, and in mixed-precision training the optimizer states often take up more GPU memory than the model weights and activations.
70%UnverifiedIn AdamW, the parameter update is approximately equal to the first moment divided by (the square root of the second moment plus ε), and the reciprocal of the square root of the second moment acts as a preconditioner, adaptively scaling the gradient for each coordinate.
70%UnverifiedThe study argues that Adam's optimization capability may stem from the balance between structural approximation error and momentum smoothing, rather than from precise tracking of the natural gradient path.
70%UnverifiedWhen using the Adam optimizer, 16 bytes of state information are required per parameter (4 bytes for FP32 parameters + 4 bytes for FP32 gradients + 4 bytes for first-order momentum + 4 bytes for second-order momentum), requiring at least approximately 24 GB of state information per GPU for a 1.5 billion parameter model.
60%