A Comprehensive Framework for Analyzing the Convergence of Adam: Bridging the Gap with SGD
Ruinan Jin, Xiao Li, Yaoliang Yu, Baoxiang Wang
TL;DR
This work tackles the theoretical convergence gap for Adam by introducing a comprehensive framework that operates under SGD-like assumptions, specifically $L$-smoothness and the ABC inequality, rather than requiring almost-sure gradient boundedness. It unifies non-asymptotic sample complexity, almost-sure convergence, and asymptotic $L_1$ convergence, showing that Adam can achieve last-iterate convergence and SGD-like rates without dependence on $rac{1}{\mu}$ under appropriate hyperparameter settings. A key innovation is the approximate descent inequality for Adam, supported by a Lyapunov product $\Pi_{\Delta,t}$ and a novel treatment of the extra error term via $\overline{\Delta}_t$ and Burkholder-based moment bounds. The results bridge Adam’s theoretical guarantees with those of SGD, enhancing reliability across a broad class of nonconvex problems and informing hyperparameter strategies for practical use. Overall, the framework broadens the applicability of Adam by aligning its convergence properties with SGD under realistic assumptions, with implications for variants and large-scale optimization in deep learning.
Abstract
Adaptive Moment Estimation (Adam) is a cornerstone optimization algorithm in deep learning, widely recognized for its flexibility with adaptive learning rates and efficiency in handling large-scale data. However, despite its practical success, the theoretical understanding of Adam's convergence has been constrained by stringent assumptions, such as almost surely bounded stochastic gradients or uniformly bounded gradients, which are more restrictive than those typically required for analyzing stochastic gradient descent (SGD). In this paper, we introduce a novel and comprehensive framework for analyzing the convergence properties of Adam. This framework offers a versatile approach to establishing Adam's convergence. Specifically, we prove that Adam achieves asymptotic (last iterate sense) convergence in both the almost sure sense and the \(L_1\) sense under the relaxed assumptions typically used for SGD, namely \(L\)-smoothness and the ABC inequality. Meanwhile, under the same assumptions, we show that Adam attains non-asymptotic sample complexity bounds similar to those of SGD.
