SGD with AdaGrad Stepsizes: Full Adaptivity with High Probability to Unknown Parameters, Unbounded Gradients and Affine Variance

Amit Attia, Tomer Koren

Introduction

In the realm of first-order stochastic optimization, tuning the learning rate (or stepsize) remains a notorious challenge, particularly for deep learning applications. Adaptive methods like AdaGrad were designed to alleviate this by automatically adjusting the stepsize based on the geometry of the data. However, the mathematical theory supporting these methods has historically been brittle.

This paper provides the first comprehensive, high-probability convergence analysis for AdaGrad (specifically AdaGrad-Norm) that operates without requiring prior knowledge of problem parameters, such as smoothness or noise levels. The authors prove that AdaGrad is "fully adaptive," automatically achieving optimal convergence rates for both convex and non-convex smooth functions, even when gradients are unbounded and noise scales with the gradient magnitude.

The Shortcomings of Existing Analyses

Most existing proofs for AdaGrad rely on restrictive assumptions that do not hold in practical machine learning scenarios. The authors identify and overcome three major limitations in prior work:

  1. Known Parameters: Previous analyses often assume the user already knows the objective's smoothness ($\beta$) or the noise variance ($\sigma$) to set the initial stepsize.
  2. Bounded Gradients: Many proofs assume the function is "globally Lipschitz," meaning the gradients never exceed a certain threshold. This is highly unrealistic—even a simple parabola ($f(x) = x^2$) has unbounded gradients.
  3. In-Expectation Bounds: Existing results frequently hold only "on average." In practice, researchers require "high-probability" bounds to ensure the algorithm will not fail or diverge during a specific run.

By addressing these gaps, the authors provide a robust analysis that handles "affine variance" (where noise increases as gradients grow larger) and requires no prior knowledge of the optimization landscape.

Methodology and Technical Innovations

The authors analyze AdaSGD (also known as AdaGrad-Norm), where the stepsize $\eta_t$ is inversely proportional to the square root of the sum of all previous squared gradient norms. Because this is a purely theoretical work focused on mathematical convergence guarantees, no empirical datasets were used.

To prove convergence under such general conditions, the authors introduce two key technical strategies:

  • Decorrelated Stepsizes: A major hurdle in analyzing adaptive methods is that the stepsize $\eta_t$ depends on the current gradient $g_t$, creating a circular probabilistic dependency. The authors use a "proxy" stepsize in their proof that replaces the stochastic gradient with a deterministic upper bound, effectively breaking this correlation.
  • Martingale Concentration: To transition from "average" results to "high-probability" guarantees, they employ sophisticated Bernstein-type martingale concentration inequalities. This allows them to bound the "regret" of the algorithm even when the noise is not uniformly bounded.

Key Insights and Theoretical Guarantees

The paper establishes that for a $T$-step run, with probability at least $1-\delta$, AdaGrad achieves the following bounds:

  • Non-Convex Smooth Functions: The average squared gradient norm is bounded by $\tilde{O}(\frac{1}{T} + \frac{\sigma_0}{\sqrt{T}})$.
  • Convex Smooth Functions: The optimality gap $f(\bar{w}) - f^*$ is bounded by $\tilde{O}(\frac{1}{T} + \frac{\sigma_0}{\sqrt{T}})$.

These rates match the best possible rates for properly tuned non-adaptive SGD. In other words, AdaGrad delivers the performance of a perfectly tuned algorithm without requiring manual tuning.

Automatic Rate Interpolation

One of the most striking findings is that AdaGrad automatically "interpolates" between noise regimes. If the noise is low, it converges at a fast $O(1/T)$ rate. If the noise is high, it shifts to the $O(1/\sqrt{T})$ rate. Crucially, it does this without the user having to specify the regime.

Robustness to Unboundedness and Affine Variance

By using an inductive argument to bound the maximum "optimality gap" ($f(w_t) - f^*$) along the trajectory, the authors prove the algorithm remains stable and does not diverge to infinity, even without a global Lipschitz assumption. Furthermore, while most theories assume "additive noise" (constant variance), this paper supports "affine noise," which is far more realistic for modern machine learning where gradients can be highly noisy when the model is far from the optimal solution.

Limitations and Future Directions

  • The $\gamma$ Parameter: In the convex case, the bounds exhibit a polynomial dependence on $1/\gamma$ (a small constant added to the denominator of the stepsize for numerical stability). The authors demonstrate via a lower bound that this dependence is necessary for AdaGrad-Norm in unconstrained settings, suggesting that the choice of $\gamma$ matters slightly more in convex optimization than in non-convex scenarios.
  • Coordinate-wise Adaptivity: This paper focuses on AdaGrad-Norm, which uses a single stepsize for the entire gradient vector. Future work could extend these high-probability, parameter-free bounds to coordinate-wise adaptive methods like the original AdaGrad or Adam, which are widely used in practice.
  • Sub-Gaussian Noise: While the main theorems assume bounded affine noise, the authors provide a reduction in the appendix to handle sub-Gaussian noise, though this introduces additional logarithmic factors to the complexity.

Summary updated

BibTeX
@inproceedings{attia2023sgd,
  author = {Amit Attia and Tomer Koren},
  title = {{SGD with AdaGrad Stepsizes: Full Adaptivity with High Probability to Unknown Parameters, Unbounded Gradients and Affine Variance}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=FGcUUsTsex},
}
Figure