Abstract
Stochastic Gradient Descent with Momentum (SGDM) is a cornerstone of modern deep learning optimization. However, a significant gap exists between its theoretical analysis and practical implementation. While theory often relies on iterate averaging or projections onto bounded domains to guarantee convergence, practitioners typically use the last iterate in unconstrained settings. This paper bridges this gap by proving that constant momentum is theoretically suboptimal for last-iterate convergence and introducing a novel FTRL-based SGDM algorithm. Our proposed method achieves optimal convergence rates without the need for common but impractical algorithmic constraints.
Introduction
In the optimization community, the gap between theoretical guarantees and empirical success is a recurring theme. For SGDM, theoretical proofs of convergence often necessitate "iterate averaging" (averaging all steps) or "projections" (restricting iterates to a predefined boundary). In contrast, the standard practice in deep learning is to use the last iterate—the final position of the algorithm—and to operate in unconstrained spaces.
Until now, it remained unclear whether the last iterate of SGDM could achieve optimal convergence rates for general convex functions. Furthermore, the industry standard of using constant momentum (e.g., $\beta=0.9$) lacked a solid theoretical foundation for last-iterate performance in these settings. This work provides the first rigorous analysis of these discrepancies.
The Suboptimality of Constant Momentum
The authors first establish a "negative" result that challenges current practices. They prove a lower bound showing that for any constant momentum factor, there exists a specific convex function where the last iterate of SGDM is inherently suboptimal. Specifically, the error rate suffers from an extra logarithmic factor, resulting in a rate of $\Omega(\frac{\ln T}{\sqrt{T}})$. This suggests that to achieve true optimality, the momentum schedule must be more dynamic than the constant values typically employed.
FTRL-based SGDM: A Novel Framework
To address the limitations of standard SGDM, the paper proposes a new variant based on the Follow-The-Regularized-Leader (FTRL) framework. By viewing momentum through the lens of FTRL rather than the traditional Online Mirror Descent, the authors developed an algorithm that eliminates the need for projections.
Key features of the FTRL-based SGDM include:
- Increasing Momentum: The momentum factor grows over time to overcome the suboptimality of constant schedules.
- Shrinking Updates: A "shrinking factor" is applied to iterates, acting as implicit regularization that maintains stability without manual projections.
- Any-time Convergence: The algorithm does not require prior knowledge of the total number of iterations ($T$).
Theoretical Comparison
The proposed FTRL-SGDM algorithm offers superior theoretical properties compared to existing state-of-the-art momentum and accelerated methods. As shown in the comparison table below, FTRL-SGDM is the only method that achieves the optimal $O(1/\sqrt{T})$ rate for the last iterate without requiring a bounded domain or knowledge of the time horizon $T$.
Empirical Performance
The authors evaluated the FTRL-based SGDM (specifically an adaptive version, AdaFTRL-M) against standard SGDM and AdaGrad across several real-world datasets from LIBSVM, including real-sim, w8a, and phishing.
The results demonstrate that AdaFTRL-M consistently matches or outperforms standard methods. Its advantages are most pronounced in the final iterations, where the theoretical benefits of its last-iterate convergence properties translate into superior empirical accuracy. This suggests that the FTRL framework successfully captures the practical requirements of modern stochastic optimization while maintaining rigorous theoretical foundations.
Conclusion
This work provides a critical theoretical justification for momentum methods while offering a practical alternative to standard SGDM. By proving the suboptimality of constant momentum and introducing the FTRL-based SGDM, the authors have narrowed the gap between optimization theory and deep learning practice. Future work remains to extend these guarantees to high-probability convergence and to explore the implications for non-convex landscapes typical of neural network training.
Summary updated