Beyond Uniform Smoothness: A Stopped Analysis of Adaptive SGD

Matthew Faw, Litu Rout, Constantine Caramanis, Sanjay Shakkottai

Abstract: This work considers the problem of finding a first-order stationary point of a non-convex function with potentially unbounded smoothness constant using a stochastic gradient oracle. We focus on the AdaGrad-Norm algorithm and provide a convergence analysis under $(L_0, L_1)$-smoothness and affine variance, utilizing a novel "stopped analysis" technique to handle correlations between step sizes and noise.

Introduction

Classical convergence guarantees for Stochastic Gradient Descent (SGD) typically rely on the assumption of $L_0$-smoothness, where the gradient's rate of change is bounded by a global constant. However, empirical observations in training large-scale models like Transformers suggest that loss landscapes often exhibit curvature that grows with the gradient norm. This phenomenon is better captured by $(L_0, L_1)$-smoothness, where the smoothness constant grows affinely with the gradient magnitude.

While $(L_0, L_1)$-smoothness provides a more realistic model, existing theoretical analyses often require the restrictive assumption of uniformly bounded gradient noise. In practice, noise is frequently multiplicative, scaling with the gradient. This paper addresses the convergence of adaptive methods under this more challenging "Affine Variance" noise model.

The Challenge of Adaptive Step Sizes

The primary difficulty in analyzing adaptive methods like AdaGrad-Norm is the inherent correlation between the step size and the stochastic gradient. In standard SGD with a fixed schedule, the step size at time $t$ is independent of the noise at time $t$. In AdaGrad, the step size is a function of all past gradients, including the current one in some formulations, breaking the independence required for the standard "descent lemma."

Methodology: The Stopped Analysis

To overcome the correlation issue, the authors introduce a "stopped analysis" framework. The core idea involves identifying a recursively-defined stopping time $\tau$.

  1. The "Nice" Interval: The analysis identifies a random interval $[0, \tau]$ during which the adaptive step sizes behave predictably, as if they were independent of the noise.
  2. Expectation Bound: The authors prove that the stopping time $\tau$ is, in expectation, a significant portion of the total iteration budget $T$.
  3. Convergence up to $\tau$: By analyzing the algorithm's progress up to this stopping time, they can derive convergence guarantees that hold for the entire process.

Key Insights and Results

The analysis reveals that AdaGrad-Norm is uniquely robust compared to other adaptive or normalized methods.

Robustness of AdaGrad-Norm

Unlike "unit-step" methods such as Normalized SGD or Clipped SGD, AdaGrad-Norm accumulates past gradient information in its denominator. This allows the algorithm to naturally "slow down" when encountering high-variance regions, preventing the divergence that often plagues methods that discard gradient magnitude. The authors demonstrate that Clipped SGD and SignSGD can diverge with constant probability under multiplicative noise, even on simple 1D quadratic functions.

Convergence Guarantees

The paper establishes that for general $(L_0, L_1)$-smooth functions, AdaGrad-Norm achieves a convergence rate of $\tilde{O}(1/\sqrt{T})$ under affine variance, provided the multiplicative noise parameter $\sigma_1 < 1$. For a broader subclass of "k-polynomially bounded" functions (which includes all $L_0$-smooth functions and fixed-degree polynomials), this rate holds for any level of multiplicative noise ($\sigma_1 \geq 1$).

Noise Adaptivity

A significant advantage of AdaGrad-Norm highlighted by this work is its "noise adaptivity." In regimes where noise is low, the algorithm automatically accelerates to an $O(1/T)$ convergence rate without requiring manual hyperparameter adjustments.

Conclusion and Future Work

This work provides a rigorous foundation for the success of adaptive methods in non-convex optimization under realistic smoothness and noise conditions. While the analysis focuses on AdaGrad-Norm, it sets the stage for future work on more complex optimizers like Adam, which utilize moving averages. Key remaining challenges include relaxing the $\sigma_1 < 1$ constraint for the most general function classes without relying on large mini-batches and further exploring the hyperparameter sensitivity of adaptive methods in high-variance regimes.

Summary updated

BibTeX
@inproceedings{faw2023beyond,
  author = {Matthew Faw and Litu Rout and Constantine Caramanis and Sanjay Shakkottai},
  title = {{Beyond Uniform Smoothness: A Stopped Analysis of Adaptive SGD}},
  booktitle = {Conference on Learning Theory},
  year = {2023},
  url = {https://openreview.net/forum?id=YhRnK3h8F3j},
}
Figure