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 stochastic gradient descent (SGD), the selection of the learning rate (or step size) is arguably the most critical hyperparameter decision. A learning rate that is too large leads to divergence, while one that is too small results in agonizingly slow convergence. Standard optimization theory provides recipes for "optimal" tuning, but these recipes typically require prior knowledge of the objective function's smoothness (the Lipschitz constant $L$) and the noise variance ($\sigma$).

In practice, practitioners rarely have access to these constants. Instead, they rely on adaptive methods like AdaGrad or Adam, which "self-tune" the step size based on the gradients encountered during training. However, the theoretical understanding of these adaptive methods has historically lagged behind their empirical success. Most existing proofs for AdaGrad rely on restrictive and often unrealistic assumptions, such as bounded gradients or constant noise variance. This paper bridges the gap by proving that AdaGrad-Norm achieves order-optimal convergence under the same messy, realistic conditions as a perfectly hand-tuned SGD.

The AdaGrad-Norm Algorithm

The paper focuses on AdaGrad-Norm, a variant where a single scalar step size is maintained for the entire gradient vector. The step size $\eta_t$ at time $t$ is normalized by the square root of the sum of all past squared gradient norms:

$$\eta_t = \frac{\eta}{\sqrt{b_0^2 + \sum_{s=1}^t \|g_s\|^2}}$$

Here, $\eta$ and $b_0$ are initial hyperparameters. Unlike standard SGD, which requires decreasing the step size according to a fixed schedule (e.g., $1/\sqrt{t}$), AdaGrad-Norm adjusts its rate dynamically based on the magnitude of the stochastic gradients $g_s$.

Overcoming Theoretical Hurdles

To provide a rigorous proof of convergence, the authors had to overcome three major technical hurdles that limited previous research:

  1. Unbounded Gradients: Many deep learning objectives do not have a global bound on gradient norms. Previous proofs often assumed $\|\nabla F(w)\| \leq M$, a condition frequently violated in practice.
  2. Affine Variance: In many real-world scenarios, gradient noise is not constant; it grows as the gradient itself grows. This is modeled as $\sigma^2 \leq \sigma_0^2 + \sigma_1^2 \|\nabla F(w)\|^2$. This "affine" scaling introduces significant instability into the analysis.
  3. Step-Size Correlation: In AdaGrad, the step size $\eta_t$ is a function of the current gradient $g_t$. This creates a statistical dependence (correlation) that makes it difficult to use standard martingale convergence arguments.

Technical Innovations

The authors introduce several core technical innovations to handle these challenges:

  • Decorrelated Step Size Proxy: They utilize a proxy step size ($\tilde{\eta}_t$) in their analysis to decouple the bias created by the relationship between the learning rate and the current gradient.
  • Recursive Improvement: The proof begins with a loose polynomial bound on the sum of gradients and iteratively refines the mathematical estimates until the optimal rate is achieved.
  • Compensation Argument: The authors categorize iterations into "good" (low bias) and "bad" (high bias) steps. They demonstrate that for every "bad" step where the algorithm might drift due to noise or high gradients, there are sufficient "good" steps to pull the trajectory back toward the optimum, effectively canceling out the bias over time.

Key Results and Insights

Order-Optimal Convergence

The primary result is that under general non-convex smooth objectives with affine variance, AdaGrad-Norm converges at a rate of $\tilde{O}(1/\sqrt{T})$. This matches the theoretical lower bound for this class of problems, proving that adaptivity does not come at the cost of asymptotic efficiency.

Automatic Acceleration

The algorithm exhibits a "best-of-both-worlds" property. In the "small-noise" regime—where the noise parameters $\sigma_0$ and $\sigma_1$ are negligible—AdaGrad-Norm automatically accelerates to a convergence rate of $\tilde{O}(1/T)$. This mimics the behavior of pure gradient descent in a noiseless environment without requiring the user to change any settings.

Parameter-Free Robustness

Crucially, these results hold for any choice of initial hyperparameters $\eta$ and $b_0$. This establishes that AdaGrad-Norm is truly self-tuning and robust to initialization, justifying its popularity in deep learning pipelines where manual tuning is expensive.

Limitations and Future Work

While this work provides a significant leap in the theory of adaptive methods, some gaps remain. The analysis specifically targets the scalar version (AdaGrad-Norm) rather than the coordinate-wise version (where each parameter has its own learning rate). While the authors suggest the logic should extend to coordinate-wise AdaGrad and more complex variants like Adam, the explicit proofs for those cases remain for future work. Additionally, the current proof includes polylogarithmic factors (extra $\log(T)$ terms) and relatively large constant factors, which the authors suggest might be tightened in future iterations of the theory.

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