Abstract
Stochastic gradient descent is the method of choice for large scale optimization of machine learning objective functions. Yet, its performance is greatly variable and heavily depends on the choice of the stepsizes. This has motivated a large body of research on adaptive stepsizes. However, there is currently a gap in our theoretical understanding of these methods, especially in the non-convex setting. In this paper, we start closing this gap: we theoretically analyze in the convex and non-convex settings a generalized version of the AdaGrad stepsizes. We show sufficient conditions for these stepsizes to achieve almost sure asymptotic convergence of the gradients to zero, proving the first guarantee for generalized AdaGrad stepsizes in the non-convex setting. Moreover, we show that these stepsizes allow to automatically adapt to the level of noise of the stochastic gradients in both the convex and non-convex settings, interpolating between $O(1/T)$ and $O(1/\sqrt{T})$, up to logarithmic terms.
Introduction
Stochastic Gradient Descent (SGD) serves as the foundational algorithm for modern machine learning. Despite its ubiquity, SGD is notoriously sensitive to the selection of stepsizes (learning rates). While adaptive methods such as AdaGrad, RMSProp, and Adam have become industry standards due to their ability to reduce manual hyperparameter tuning, theoretical validation has largely been confined to convex optimization or restricted settings.
This paper addresses the gap between the empirical success of adaptive methods and our theoretical understanding of their behavior in non-convex landscapes—the standard environment for deep learning. By analyzing a generalized version of AdaGrad stepsizes, the authors provide the first convergence guarantees for such methods in non-convex settings without requiring restrictive assumptions like bounded optimization domains.
Methodology: Generalized AdaGrad Stepsizes
The authors investigate a generalized version of AdaGrad stepsizes, considering both global (scalar) and coordinate-wise (vector) rates. Two specific technical refinements are introduced to ensure theoretical robustness:
- The $\epsilon$ Parameter: The denominator power is adjusted to $1/2 + \epsilon$. This slightly accelerated decay of the stepsize is a critical component in proving "almost sure" convergence—a strong theoretical guarantee that the algorithm converges with probability 1.
- Delayed Gradient Updates: A common pitfall in some adaptive implementations is the use of the current noisy gradient to calculate the current stepsize. The authors demonstrate that this can bias the update direction, potentially causing the algorithm to diverge. To solve this, they utilize only past gradients for stepsize calculation, ensuring the update remains an unbiased descent direction in expectation.
The analysis assumes standard conditions: the objective function must have Lipschitz continuous gradients (smoothness), and the stochastic gradients must be unbiased.
Key Theoretical Insights
Automatic Noise Adaptation
A primary contribution of this work is the discovery that generalized AdaGrad stepsizes are inherently "noise-aware." The algorithm automatically adjusts its convergence rate based on the variance of the stochastic gradients:
- Low Noise: In deterministic or low-noise scenarios, the algorithm achieves a convergence rate of $O(1/T)$, matching standard Gradient Descent.
- High Noise: In the presence of significant noise, the rate naturally slows to $O(1/\sqrt{T})$, matching the optimal rate for SGD.
This interpolation occurs dynamically without the user needing to pre-specify the noise level, providing a theoretical justification for why adaptive methods are so robust across diverse datasets.
Convergence in Non-Convex Landscapes
Unlike previous proofs that often rely on the "bounded domain" assumption (assuming parameters stay within a fixed box), this paper proves convergence in unbounded domains. This is significantly more representative of real-world neural network training, where weights can grow substantially during the optimization process. The authors prove that for non-convex functions, the gradients of the iterates produced by the algorithm will converge to zero almost surely.
Results and Convergence Rates
The paper establishes finite-time convergence rates for both convex and non-convex objectives:
- Convex Case: The algorithm achieves a rate of approximately $O(1/T^{1/2-\epsilon})$.
- Non-Convex Case: The "best iterate" found during the optimization process converges at a similar adaptive rate.
These results provide theoretical validation for the common practice of using the last iterate (or the best observed iterate) of an adaptive optimizer in non-convex settings, rather than the iterate averaging often required by older SGD theories.
Conclusion and Future Directions
This work provides a rigorous foundation for the use of AdaGrad-style adaptive stepsizes in non-convex optimization. While it closes a significant gap, the authors identify several areas for future research. Currently, the high-probability bounds depend polynomially on the failure probability ($1/\delta$); achieving a logarithmic dependence ($\ln(1/\delta)$) would represent a tighter concentration of results. Additionally, while the current proof assumes noise with bounded support, extending these guarantees to more general distributions, such as Gaussian noise, remains an open challenge. Finally, the authors suggest that extending "parameter-free" optimization—which removes the need to tune the initial learning rate—to the non-convex regime is a promising frontier for future study.
Summary updated