Beyond Uniform Smoothness: A Stopped Analysis of Adaptive SGD

Matthew Faw, Litu Rout, Constantine Caramanis, Sanjay Shakkottai

TL;DR

This paper provides the first convergence analysis for adaptive SGD on $(L_0, L_1)$-smooth functions—a class that better models real-world deep learning landscapes like Transformers—without assuming the unrealistic constraint of "uniformly bounded noise." By introducing a novel stopped analysis technique, the authors prove that AdaGrad-Norm achieves near-optimal convergence rates even when gradient noise scales with the gradient magnitude, a setting where many other popular algorithms (like Clipped or SignSGD) are shown to diverge.

What Problem Does This Paper Address?

In classical optimization theory, we usually assume a function is $L_0$-smooth, meaning its gradient changes at most linearly with the distance moved. However, modern machine learning landscapes (especially for Large Language Models) are often much "spikier." Their smoothness constant isn't fixed; it grows as the gradient gets larger. This is captured by the $(L_0, L_1)$-smoothness framework.

While recent work showed that adaptive algorithms could handle this "non-uniform" smoothness, those proofs relied on a heavy assumption: bounded noise support. They assumed the random noise in a stochastic gradient never exceeds some constant $B$. In practice, noise often scales with the gradient itself (e.g., multiplicative noise in least-squares or feature noise).

The core challenge is that in adaptive methods, the step size depends on the gradients. When smoothness is non-uniform, this creates a complex correlation that breaks standard mathematical tools used to prove that an algorithm is actually making progress toward a minimum.

Methods

The authors focus on the AdaGrad-Norm algorithm, which uses a step size inversely proportional to the cumulative norm of all past stochastic gradients. To analyze it, they introduce two key innovations:

  1. Recursive Stopping Time ($\tau$): They define a specific, random "stopping time." The clever part is that before this time $\tau$, the adaptive step sizes and the gradients behave as if they are roughly independent. This allows the authors to use a "decorrelated" proxy step size for the analysis.
  2. Stopped Analysis: Instead of trying to prove convergence over the entire time horizon $T$ at once, they analyze the behavior on the sub-interval $[1, \tau]$. They prove that $\tau$ is, on average, a significant fraction of the total time $T$, allowing them to translate the "stopped" progress into a global convergence rate.

For functions that grow extremely fast (like exponentials), they require the multiplicative noise parameter $\sigma_1$ to be less than 1. For a broader subclass of "polynomially-bounded" functions, their results hold for any noise level.

Datasets

This is a theoretical paper focused on proving convergence guarantees and establishing lower bounds. Consequently, no empirical datasets were used for training or evaluation. The authors cite existing empirical literature regarding the loss landscapes of BERT and other Transformer architectures to motivate their theoretical assumptions.

Key Insights and Ideas

  • The Failure of Sign-Based Methods: A major "aha moment" is the proof that algorithms like Clipped SGD, Normalized SGD, and SignSGD can diverge with constant probability when noise scales with the gradient ($\sigma_1 > 1$). If the noise is large enough to flip the gradient's sign most of the time, these algorithms—which discard magnitude information—simply walk in the wrong direction. AdaGrad-Norm succeeds because its denominator naturally accounts for this variance.
  • Parameter-Free Convergence: Unlike prior work on $(L_0, L_1)$-smoothness, the convergence of AdaGrad-Norm here doesn't require tuning hyperparameters (like $b_0$ or $\eta$) based on the unknown smoothness constants $L_0$ or $L_1$.
  • Noise Adaptivity: The derived rates are "noise-adaptive." If the noise happens to be very small, the algorithm's convergence rate automatically improves from $\widetilde{\mathcal{O}}(1/\sqrt{T})$ to $\widetilde{\mathcal{O}}(1/T)$ without any manual intervention.

Key Results

  • General Convergence: Proved a convergence rate of $\mathcal{O}(\frac{\text{poly log}(T)}{\sqrt{T}})$ for general $(L_0, L_1)$-smooth functions under affine variance, provided $\sigma_1 < 1$.
  • Polynomial Subclass: Established the same $\widetilde{\mathcal{O}}(1/\sqrt{T})$ rate for a broad class of polynomially-bounded functions for any $\sigma_1 \geq 0$.
  • Divergence Proofs: Constructed a specific stochastic gradient oracle where popular algorithms (Clipped SGD, Normalized SGD, SignSGD-M) fail to converge to a stationary point, even for a simple 1D quadratic function, if the multiplicative noise is large.

Limitations and Future Work

  • The $\sigma_1 < 1$ Constraint: For the most general $(L_0, L_1)$ functions (like exponentials), the theory still requires the multiplicative noise to be relatively small. While mini-batching can be used to artificially reduce $\sigma_1$, a more general proof for $\sigma_1 \geq 1$ remains an open challenge.
  • Dependence on $L_1$: The authors note that their analysis results in a worse dependence on the $L_1$ constant compared to prior works that assumed bounded noise.
  • Extension to Adam: While this paper covers AdaGrad-Norm, extending this "stopped analysis" to more complex adaptive optimizers like Adam (which uses moving averages and coordinate-wise scaling) is a logical next step for the research community.

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