Large deviations rates for stochastic gradient descent with strongly convex functions

Dragana Bajovic, Dusan Jakovetic, Soummya Kar

Introduction

Stochastic Gradient Descent (SGD) is the fundamental optimization algorithm for modern machine learning. While standard convergence analysis typically focuses on the Mean Square Error (MSE) to describe how the algorithm performs on average, this approach often fails to account for "rare events." In high-stakes applications, understanding the probability of the algorithm staying far from the optimal solution—even if the average performance is good—is critical.

This paper applies Large Deviations Theory (LDT) to SGD to provide a precise mathematical framework for these rare events. By moving beyond simple variance, the authors demonstrate how the entire distribution of gradient noise and its alignment with the objective function's geometry determine the rate at which the probability of error decays.

The Problem: Limitations of High-Probability Bounds

Existing high-probability analyses for SGD often produce "loose" bounds. These traditional methods typically rely solely on the variance of the gradient noise, failing to capture two critical factors:

  1. The "Shape" of the Noise: Whether the noise has "heavy tails" (like a Laplacian distribution) or "light tails" (like a Gaussian distribution) significantly impacts the likelihood of large errors.
  2. The Interplay with Geometry: The direction of the noise relative to the curvature (Hessian) of the cost function dictates how quickly the algorithm can recover from a perturbation.

The authors address these gaps by identifying the exact exponential rate at which the probability of a "large" error disappears as iterations increase.

Methodology

The study focuses on the standard SGD update rule using a diminishing step size ($\alpha_k \approx 1/k$) applied to smooth, strongly convex functions. The research employs several key mathematical tools:

  • Large Deviations Principle (LDP): The authors seek a "rate function" $I(x)$ to describe the decay: $P(X_k \approx x) \approx e^{-k I(x)}$.
  • Fenchel-Legendre Transforms: This transform is used to derive the rate function by calculating the limit of the log-moment generating functions (LMGF) of the SGD iterates.
  • Direct Iterate Analysis: Unlike previous studies that only looked at the scalar distance to the solution ($\|X_k - x^*\|$), this work analyzes the iterates $X_k$ as vectors. This multidimensional approach reveals how noise in specific directions interacts with the specific curvature of the objective function.

Key Insights

1. Variance is Not Enough

In the "large deviations" regime—where the iterate is far from the optimum—two noise distributions with identical variance can lead to vastly different performance. Heavy-tailed noise (such as Laplacian) makes rare, large errors much more likely than light-tailed Gaussian noise.

2. The Importance of Geometry

The "rate of forgetting" noise depends on the interplay between the noise covariance matrix and the Hessian of the cost function. Interestingly, if the noise is loudest in a direction where the function is highly curved (high eigenvalue), the algorithm actually recovers and converges faster in that direction.

3. Small vs. Large Deviations

The research clarifies that when the error threshold $\delta$ is very small, the specific noise distribution matters little beyond its variance. However, as $\delta$ grows, the "tails" of the noise distribution begin to dominate the algorithm's performance.

Numerical Results

To validate the theory, the authors performed synthetic numerical simulations on 10-dimensional strongly convex quadratic problems. They compared Gaussian noise against Laplacian noise, specifically calibrated to have the same variance.

  • High Thresholds: For a large error threshold ($\delta = 0.3$), Laplacian noise resulted in a significantly slower decay of error probability compared to Gaussian noise.
  • Low Thresholds: For a small threshold ($\delta = 0.03$), the performance curves for both noise types overlapped, confirming that higher-order moments only become critical when analyzing larger deviations.

Conclusion and Future Work

The authors successfully provide a formal Large Deviations Principle for SGD, proving that the probability of an iterate falling into a "bad" set decays exponentially. While the current results are robust for smooth, strongly convex functions, they do rely on specific step-size constraints (where the step-size parameter $a$ must satisfy $a\mu > 1$).

Future research may expand this framework to non-convex landscapes—such as those found in deep neural networks—and further explore the implications of heavy-tailed noise on non-quadratic functions.

Summary updated

BibTeX
@inproceedings{bajovic2023large,
  author = {Dragana Bajovic and Dusan Jakovetic and Soummya Kar},
  title = {{Large deviations rates for stochastic gradient descent with strongly convex functions}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure