Abstract
Stochastic Gradient Descent with Momentum (SGDM) is a cornerstone of modern machine learning, yet its theoretical guarantees for the final output—the "last iterate"—are surprisingly limited. Traditional analyses often rely on iterate averaging or unrealistic assumptions, such as bounded domains and prior knowledge of the total number of training steps $T$. This paper proves that standard SGDM with constant momentum is mathematically suboptimal for convex problems, suffering from a convergence rate of $\Omega(\ln T / \sqrt{T})$. To address this, we introduce a novel momentum method based on the Follow-The-Regularized-Leader (FTRL) framework. Our proposed FTRL-SGDM achieves the optimal $O(1/\sqrt{T})$ last-iterate convergence rate for unconstrained convex problems without requiring knowledge of $T$ in advance.
Introduction
In practical machine learning applications, the final weights produced at the conclusion of training—the last iterate—are what get deployed. However, optimization theory has historically struggled to provide strong guarantees for this specific iterate, often defaulting to the average of all iterates over time. Furthermore, existing proofs for SGDM frequently rely on "cheat codes" that diverge from real-world usage, such as assuming the algorithm projects weights into a strictly bounded domain or knows the exact total number of training steps $T$ before starting. This research tackles these discrepancies, seeking a momentum-based algorithm that guarantees optimal convergence for the last iterate on unconstrained convex problems without needing to know $T$.
The Suboptimality of Constant Momentum
A significant contribution of this work is the mathematical proof of a lower bound for standard SGDM. By constructing a specific convex, Lipschitz function, the authors demonstrate that any constant momentum factor (such as the common default of 0.9) leads to a suboptimal convergence rate of $\Omega(\ln T / \sqrt{T})$. This finding suggests that the standard deep learning practice of fixing a constant momentum factor inherently limits the algorithm's ability to achieve optimal last-iterate convergence in convex settings.
FTRL-Based SGDM: A New Approach
To resolve the theoretical shortcomings of standard SGDM, the authors developed a new algorithm using the Follow-The-Regularized-Leader (FTRL) framework combined with a primal averaging scheme. Unlike standard SGDM, this method utilizes increasing momentum and shrinking updates.
The choice of FTRL is pivotal. Previous attempts to refine SGDM often utilized Online Mirror Descent (OMD), which requires projecting weights back into a bounded domain to maintain mathematical stability. By transitioning to FTRL, the authors bypass this requirement, enabling optimal guarantees for unconstrained optimization.
As illustrated in the table above, FTRL-SGDM (Corollary 1 and 4) is unique in providing the optimal $O(1/\sqrt{T})$ rate while requiring neither a bounded domain nor prior knowledge of $T$. This distinguishes it from other methods like SHB-IMA, which suffers a logarithmic penalty when $T$ is unknown, or AC-SA, which requires $T$ to be known.
Adaptive Stepsizes and Empirical Results
The FTRL-based SGDM was further extended to include adaptive learning rates, similar to AdaGrad, allowing it to adjust to gradient sparsity and data noise. In the "interpolation regime"—where the model can perfectly fit the data—this adaptive version (AdaFTRL-M) accelerates from the standard $O(1/\sqrt{T})$ rate to a faster $O(\ln T / T)$.
Empirical evaluations on synthetic binary classification tasks and real-world datasets from the LIBSVM repository (real-sim, w8a, phishing) validated these theoretical findings. AdaFTRL-M demonstrated superior convergence on synthetic data and performed on par with or better than standard AdaGrad and SGDM on real-world benchmarks, particularly showing strength in the final iterations of training.
Conclusion
This paper provides a rigorous theoretical foundation for the last-iterate convergence of momentum methods. By identifying the limitations of constant momentum and leveraging the FTRL framework, the authors offer a robust solution for unconstrained convex optimization. While the current analysis is limited to convex functions, it sets the stage for future work, including the development of high-probability convergence bounds to ensure reliability across individual training runs.
Summary updated