The Power of Adaptivity in SGD: Self-Tuning Step Sizes with Unbounded Gradients and Affine Variance

Matthew Faw, Isidoros Tziotis, Constantine Caramanis, Aryan Mokhtari, Sanjay Shakkottai, Rachel Ward

Abstract

We study convergence rates of AdaGrad-Norm as an exemplar of adaptive stochastic gradient methods (SGD), where the step sizes change based on observed stochastic gradients, for minimizing non-convex, smooth objectives. Despite their popularity, the analysis of adaptive SGD lags behind that of non-adaptive methods in this setting. Specifically, all prior works rely on some subset of the following assumptions: (i) uniformly-bounded gradient norms, (ii) uniformly-bounded stochastic gradient variance (or even noise support), (iii) conditional independence between the step size and stochastic gradient. In this work, we show that AdaGrad-Norm exhibits an order-optimal convergence rate of $\mathcal{O}\left(\frac{\mathrm{poly}\log(T)}{\sqrt{T}}\right)$ after $T$ iterations under the same assumptions as optimally-tuned non-adaptive SGD (unbounded gradient norms and affine noise variance scaling), and crucially, without needing any tuning parameters. We thus establish that adaptive gradient methods exhibit order-optimal convergence in much broader regimes than previously understood.

Introduction

In the landscape of stochastic optimization, the search for "parameter-free" algorithms is a primary objective. While Stochastic Gradient Descent (SGD) remains a cornerstone of machine learning, its efficacy is highly sensitive to the choice of learning rate. Traditionally, achieving optimal convergence requires precise knowledge of the objective function's smoothness (the Lipschitz constant $L$) and the stochastic noise level ($\sigma$). Adaptive methods, most notably AdaGrad, were developed to circumvent this manual tuning by dynamically adjusting step sizes based on the history of observed gradients.

However, a significant gap has persisted between the empirical success of adaptive methods and our theoretical understanding of them. While practitioners use AdaGrad across diverse and "messy" optimization landscapes, existing convergence proofs often relied on restrictive assumptions that do not hold in modern deep learning contexts. This work bridges that gap by proving that AdaGrad-Norm achieves order-optimal convergence rates under realistic conditions, specifically handling unbounded gradients and affine variance.

Addressing the Theoretical "Crutches"

Prior analyses of adaptive SGD typically relied on three major assumptions, which the authors characterize as theoretical "crutches":

  1. Bounded Gradient Norms: The assumption that the gradient $\nabla f(x)$ never exceeds a fixed constant.
  2. Bounded Variance: The assumption that the variance of the stochastic gradient is uniformly bounded, regardless of the gradient's magnitude.
  3. Independence: The assumption that the step size is conditionally independent of the current stochastic gradient—an assumption that is fundamentally violated by the very definition of adaptive methods.

This research removes these constraints, analyzing AdaGrad-Norm in a setting where gradients can grow indefinitely and noise scales with the magnitude of the gradient (affine variance). This alignment with the "standard" assumptions used for non-adaptive SGD allows for a fair comparison between the two.

Methodology: Recursion and Compensation

To analyze AdaGrad-Norm without the standard boundedness assumptions, the authors introduced two primary mathematical innovations:

Recursively-Improving Inequalities

Without a prior bound on gradient norms, traditional descent lemmas fail to provide tight convergence rates. The authors address this by establishing a "loose" polynomial bound on the growth of gradients. Through a recursive argument, they demonstrate that this bound can be iteratively tightened. Each step of the recursion uses the previous bound to refine the next, eventually converging on an order-optimal result.

The Compensation Argument

Under affine variance, the noise in the stochastic gradient is not constant; it increases as the gradient grows. This creates a potential bias that can destabilize the algorithm. The authors developed a "compensation argument" by partitioning the optimization trajectory into "good" and "bad" iterations. "Good" steps are those where the bias is manageable, while "bad" steps involve high noise. The proof demonstrates that the progress made during "good" steps is mathematically sufficient to compensate for any potential setbacks during "bad" steps, ensuring global convergence.

Key Insights and Results

The study yields several critical insights into the behavior of adaptive optimization:

  • Order-Optimal Convergence: The authors prove that AdaGrad-Norm converges to a stationary point at a rate of $\mathcal{O}(\text{poly log}(T)/\sqrt{T})$ for smooth, non-convex functions. This matches the theoretical lower bound for SGD (up to logarithmic factors) without requiring the user to know $L$ or $\sigma$.
  • Automatic Acceleration in Low-Noise Regimes: A significant advantage of adaptivity is the ability to "speed up" when the data is less noisy. If the noise parameters are small (specifically $\mathcal{O}(1/\sqrt{T})$), AdaGrad-Norm automatically recovers a faster $\tilde{\mathcal{O}}(1/T)$ convergence rate, mimicking the behavior of noiseless Gradient Descent.
  • Parameter-Free Robustness: The established convergence rates hold regardless of the initial step size $\eta$ or the stability constant $b_0$. This confirms that the algorithm is truly self-tuning and robust to initialization.

Limitations and Future Directions

While this work significantly advances the theory of adaptive methods, several avenues for future research remain:

  • Coordinate-wise Adaptivity: This analysis focuses on AdaGrad-Norm (scalar scaling). While the insights likely extend to coordinate-wise AdaGrad (e.g., scaling each dimension independently), the current mathematical dependence on the dimension $d$ is less favorable in the coordinate-wise case.
  • Momentum-based Methods: Popular variants like Adam and RMSProp utilize moving averages (momentum). Extending the "unbounded" analysis to these methods remains a complex challenge due to the additional dependencies introduced by the momentum terms.
  • High-Probability Guarantees: While the results are robust in expectation, further work is needed to provide high-probability convergence guarantees that hold across all individual training runs.

Conclusion

By proving that AdaGrad-Norm is as robust as hand-tuned SGD under the most general assumptions, this work validates the "power of adaptivity." It demonstrates that the internal logic of adaptive step sizes is sufficient to navigate complex, unbounded landscapes, effectively breaking the "boundedness myth" that has constrained optimization theory for years.

Summary updated

BibTeX
@inproceedings{faw2022power,
  author = {Matthew Faw and Isidoros Tziotis and Constantine Caramanis and Aryan Mokhtari and Sanjay Shakkottai and Rachel Ward},
  title = {{The Power of Adaptivity in SGD: Self-Tuning Step Sizes with Unbounded Gradients and Affine Variance}},
  booktitle = {Conference on Learning Theory},
  year = {2022},
  url = {https://openreview.net/forum?id=mNV2KvlaxNr},
}
Figure