In chronological order, let us first look at 《In Search of Adam's Secret Sauce》. The storyline of this paper appears to be discovering experimentally that Adam's optimal solution when is very close to its unconstrained optimal solution, and then attempting to construct a theoretical explanation for this result: when , and can be regarded as online estimates of the first and second moments of the gradient. Specifically, expanding and , we obtain
It is easy to prove that the sum of the coefficients is identically equal to 1, so they are respectively the same weighted average of and , and therefore carry the meanings of the first and second moments, respectively. Furthermore, we have
The last term clearly has the form of a variance, so we might as well denote it as , that is, , which is precisely the relation between the second moment, the mean, and the variance. As a special note, all vector additions, subtractions, multiplications, divisions, and powers involved in the above operations are element-wise, meaning they are applied component by component, and the output remains a vector.
Under this new notation, Adam's update can be written as (for simplicity, assuming ):
An update in this form has several benefits. First and most obviously, each of its components is bounded, constrained within , so we do not have to worry about the update exploding. Second, has precisely the form of the inverse signal-to-noise ratio, so it can also be understood as 'SNR-aware steepest descent'.
According to our derivation in Steepest Descent on Manifolds, Part 1: SGD + Hypersphere, can be seen as the solution to the following optimization problem:
where means that the maximum absolute value among the components of is 1. If we regard as a more accurate gradient, then is the steepest descent direction under the infinity norm. But here, this bound is static. We can reasonably assume that if gradient fluctuation is small (large SNR), the region is relatively flat, and the update can be appropriately enlarged; conversely, it should be shrunk. Therefore, constructing dynamic bounds for each component based on the SNR, , better reflects the effect of adaptive learning, and the steepest descent direction at this point is precisely
Here, both the absolute value and the less-than-or-equal sign are element-wise.
Now let us turn to 《Why Adam Works Better with β1=β2: The Missing Gradient Scale Invariance Principle》, which treats Adam continuously as an ODE. However, for mini-batch optimization, gradient noise cannot be ignored; approximating it as an SDE would still be defensible, but an ODE is simply not scientifically sound, so I find the starting premise of this paper to be quite far-fetched.
Following the core idea of the original paper, I have made some slight adjustments to the proof. In , we rewrite each as , and then, regarding as a small quantity, performing a first-order expansion yields
We then want to be as close as possible to , so the first-order term should vanish, which yields . Why do we want to be close to ? Precisely in the hope that the update will be closer to , because is bounded, making it better able to resist perturbations from scale changes in , thereby improving training stability.
It should be pointed out that the proof here is heavily simplified compared to the original paper, but it captures its core idea and corrects it. The original paper first takes a continuous approximation as an ODE—which itself is factually flawed—and then makes some non-rigorous approximations, ultimately arriving at a expansion, whose accuracy is actually less dependable than expanding directly around here.
Both of these papers share a common idea, which is to make bounded in order to improve training stability. This inspired me to think in reverse: assuming a given , then what value should take so as to make as small as possible? Since , intuitively one should make as large as possible. This inspired me to consider the following bilevel optimization problem:
The notation here is not particularly rigorous; in short, you can just understand it componentwise. In the objective, for , taking the cannot be omitted; it represents that the chosen performs as well as possible under an arbitrary gradient sequence. This optimization problem looks complicated, but in reality it is not difficult; one can solve it layer by layer using the Cauchy-Schwarz inequality. First, solving the inner minimization problem, we have
where . As a result, the outcome of the inner minimization is , and maximizing it is equivalent to minimizing . Applying the Cauchy-Schwarz inequality once more,
Equality holds when , which means . In short, choosing yields the best training stability and guarantees ; this time, we derived it directly from the bilevel optimization objective, rather than deducing it after already knowing in advance.
Not at all; they are simply different conclusions under different broader contexts. In earlier years, what we trained could only be considered small models with small batch sizes, where the noise at each step was relatively large. Setting a larger allows to change more slowly, thereby making Adam behave more like SGD, where updates from adjacent steps can superimpose linearly to achieve further noise reduction. The paper 《The Effect of Mini-Batch Noise on the Implicit Bias of Adam》 also reported a similar finding: with a small batch size, , whereas a large batch size brings them closer together.
As for "Adaptive Learning Rate Optimizers from the Perspective of Hessian Approximation", it is the result of an approximate analysis conducted near the ideal endpoint. However, the current reality is that the models we train are growing ever larger, and batch sizes are also growing ever larger. We find that after a model is trained for a month and the loss looks fairly good, if we have sufficient compute and data to train for another month or two, the loss can actually continue to decrease. In other words, whether we train for one month or two months, the model remains far from the true optimum.
In this new context, the core logic of our model training has become "seeking speed while maintaining stability." "Stability" is the overarching prerequisite; we believe that as long as we can train stably and continuously, we will definitely achieve increasingly better results, and allows the update magnitude to be bounded, which precisely fulfills our expectation of "stability." In fact, in the LLM era, the default parameters of Adam have gradually shifted from to , which is closer to , and also corroborates our inference.
In this article, we conducted some analysis of the Adam optimizer's parameters, showing from the perspective of stability that is generally a superior choice, which can be understood as steepest descent under signal-to-noise ratio awareness.