TL;DR
This research reveals that the Adam optimizer is mathematically equivalent to a "discounted" version of the classic Follow-the-Regularized-Leader (FTRL) algorithm. By reframing Adam through the lens of "Online Learning of Updates," the authors demonstrate that its momentum and discounting factors are essential for minimizing dynamic regret in the non-stationary environments typical of deep learning.
Introduction: The Gap in Optimization Theory
Despite Adam's dominance in training large-scale models like Transformers, theoretical explanations for its superiority over Stochastic Gradient Descent (SGD) have been limited. Traditional optimization theory often treats objectives as static landscapes, leading to convergence analyses where Adam and SGD appear similar.
However, in deep learning, the "best" update direction changes constantly as the model traverses the parameter space. This paper addresses this gap by treating the choice of updates as a sequence of predictions in a changing environment, explaining the fundamental roles of Adam’s core mechanics: momentum and discounting factors ($\beta_1, \beta_2$).
Methodology: Adam as FTRL
The authors utilize a framework called Online Learning of Updates (OLU). Instead of using an online learner to pick model weights directly, they use it to predict the optimal increment (update) $\Delta_t$ at each step.
$\beta$-FTRL and the Equivalence Proof
A key contribution is the proof that Adam is equivalent to a coordinate-wise, scale-free version of FTRL that incorporates "discounting"—up-scaling recent losses to make the algorithm "forget" the distant past. This variant is termed $\beta$-FTRL. Proposition 2.3 formally establishes this equivalence for the case where $\beta_1 = \beta_2$.
Bridging Discounted and Dynamic Regret
To analyze performance, the authors developed a "Discounted-to-Dynamic" conversion technique. This allows them to translate "discounted regret" (performance on a weighted window of recent history) into "dynamic regret" (performance against a sequence of changing optimal comparators).
Key Insights: The Necessity of Forgetting
Standard FTRL has "infinite memory," which is effective for static problems but disastrous for dynamic ones. The discounting factor $\beta < 1$ in Adam acts as a sliding window, allowing the optimizer to discard stale gradient information that no longer applies to the current region of the loss landscape.
- Momentum + Discounting: The authors show that both are required. Momentum allows the optimizer to aggregate sparse information over time (memory), while discounting ensures that this memory stays relevant (adaptation).
- Dynamic Regret as the Metric: The paper argues that optimizers should be judged by their ability to keep up with a moving target (dynamic regret) rather than just their static convergence rate.
Experimental Validation
The authors validated their insights using a synthetic sparse/non-stationary hinge loss task designed to mimic the challenges of real-world language modeling. In this setup, the "correct" direction for a coordinate flips once the model crosses a certain threshold, highlighting why "forgetting" the past is crucial.
As shown in the results, Adam with $\beta < 1$ converges quickly to the optimum. In contrast, SGD makes sluggish progress (suffering linear dynamic regret), and Adam with $\beta=1$ (no discounting) gets stuck or performs suboptimally after the gradient direction shifts.
Conclusion and Future Work
By identifying Adam as "FTRL in disguise," this work moves the conversation from heuristics to mathematically grounded strategies for non-stationary prediction. While the current analysis assumes $\beta_1 = \beta_2$, future work will explore the interaction between different discounting factors and potentially develop versions of Adam that automatically adapt their discounting factors to the environment's non-stationarity.
Summary updated