TL;DR
This paper provides a sharp, long-term characterization of the "probability of failure" (the chance of not reaching an $\epsilon$-stationary point) for vanilla and clipped Stochastic Gradient Descent (SGD) in non-convex optimization. By leveraging large deviations theory, the authors prove that the long-term tail probabilities decay an order of magnitude faster than previously thought (e.g., $e^{-t/\log(t)}$ instead of $e^{-\sqrt{t}}$) and demonstrate that these new rates are nearly tight.
What Problem Does This Paper Address?
When training massive modern machine learning models like Large Language Models (LLMs), executing multiple training runs is prohibitively expensive. Consequently, researchers need strong performance guarantees for a single individual run of an algorithm rather than just average-case performance (like mean-squared error).
While existing literature provides "high-probability" guarantees, these are typically finite-time bounds that fix a probability threshold and find the corresponding error. In practice, engineers want to do the opposite: fix a desired error threshold (to reach an $\epsilon$-stationary point where the gradient norm is small) and minimize the probability of failure over millions of iterations. Prior finite-time bounds implied that this failure probability decays relatively slowly over time (e.g., at a rate of $e^{-\sqrt{t}}$). This paper addresses this gap by directly analyzing the true long-term asymptotic tail decay as the number of iterations $t$ goes to infinity.
Methods
The authors analyze two primary algorithms: Vanilla SGD and Clipped SGD (c-SGD), both operating in a non-convex setting with time-varying step sizes.
To study the long-term tail behavior, the authors adopt a Large Deviations Principle (LDP) approach. Instead of traditional algebraic roll-outs, they use the Gärtner-Ellis theorem from large deviations theory. This requires proving that the log moment-generating function (MGF) of the minimum gradient norm-squared metric ($F_t = \min_{k \in [t]} \|\nabla f(x_k)\|^2$) is finite everywhere.
While showing a finite MGF everywhere is notoriously difficult under heavy-tailed noise, the authors overcome this challenge for c-SGD by carefully tuning an increasing clipping threshold ($\gamma_t$). This effectively tames the heavy tails into a sub-Gaussian-like concentration without introducing unmanageable bias.
To prove that their derived upper bounds are tight, the authors also construct a worst-case problem instance using a Huber cost function combined with symmetric, independent binary noise.
Datasets
None used. This is a purely theoretical paper focused on mathematical proofs and algorithmic analysis.
Key Insights and Ideas
- The Finite-Time vs. Long-Term Gap: Finite-time bounds are designed to hold for every iteration $t$, which makes them inherently conservative. By shifting the lens to long-term asymptotics ($t \to \infty$), the authors reveal that tails actually decay much faster than finite-time analyses suggest.
- Clipping as an MGF Stabilizer: Under heavy-tailed noise (where only a $p$-th moment exists), the MGF is normally infinite. The paper demonstrates that an appropriately scaled, dynamically increasing clipping threshold acts as a stabilizer, rendering the MGF finite everywhere and unlocking the use of large deviations theory.
- Asymptotic Independence from Initial Gaps: Unlike finite-time bounds, where the initial optimality gap ($f(x_1) - f_\star$) and smoothness constant ($L$) heavily penalize the dominant terms, the long-term rate function is completely unaffected by these initialization parameters.
Key Results
The paper establishes significantly accelerated long-term tail decay rates compared to prior state-of-the-art (SOTA) bounds:
- Vanilla SGD (with almost surely bounded noise): Achieves a tail decay rate of $e^{-t/\log(t)}$, an order of magnitude faster than the $e^{-\sqrt{t}}$ rate derived from previous SOTA finite-time bounds (Liu et al., 2023a).
- Clipped SGD under Bounded Variance ($p=2$): Achieves a decay rate of $e^{-t/\log^2(t)}$, vastly outperforming the previous $e^{-\sqrt{t}}$ or $e^{-t^{1/4}}$ implications.
- Clipped SGD under Heavy-Tailed Noise ($p \in (1,2)$): Achieves a decay rate of $e^{-t^{\beta_p}/\log(t)}$, where $\beta_p = \frac{4(p-1)}{3p-2}$.
- Tightness: The constructed lower bound shows a decay rate of $e^{-t}$. This proves that the upper bounds for vanilla SGD and c-SGD (at $p=2$) are tight up to poly-logarithmic factors.
Limitations and Future Work
- Bounded Noise for Vanilla SGD: To satisfy the Gärtner-Ellis theorem for vanilla SGD, the authors had to assume almost surely bounded noise, which is stricter than the more common sub-Gaussian noise assumption.
- Bounded Gradients for Clipped SGD: The analysis for c-SGD relies on the assumption that the cost function has uniformly bounded gradients ($\|\nabla f(x)\| \le G$) to control the clipping bias. While common in deep learning literature, fully removing this condition remains an open challenge.
- Full LDP: The paper establishes an LDP upper bound and a matching lower bound on the decay rate, but it stops short of establishing a full LDP with perfectly matching upper and lower rate functions. The authors note this as a promising direction for future research.
Summary updated