NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Power-Law Escape Rate of SGD

Takashi Mori, Ziyin Liu, Kangqiao Liu, Masahito UedaICML 2022

TL;DR

This paper reveals that Stochastic Gradient Descent (SGD) doesn't escape local minima at an exponential rate—as is commonly assumed when comparing it to physical systems under heat—but rather at a power-law rate. By demonstrating that SGD noise is proportional to the loss itself, the authors show that a "logarithmic loss landscape" is what truly dictates training dynamics. This breakthrough explains why SGD inherently prefers flat minima with low effective dimensions.

The Mystery of SGD's Escape Dynamics

A central mystery in deep learning is why SGD, a relatively simple optimization algorithm, is so adept at finding "good" global minima in a sea of "bad" local ones.

For decades, researchers used analogies from physics, specifically Kramers' escape rate (or the Arrhenius law). This classical theory suggests that the time it takes to escape a valley depends exponentially on the height of the barrier ($\Delta L$). However, these models assume "additive noise"—like constant thermal jitter in a physical system.

In reality, SGD noise is "multiplicative": it changes depending on the model's position in the parameter space. This paper aims to fix the prevailing theory by accounting for the specific structure of SGD noise, providing a more accurate mathematical description of how models "hop" out of sub-optimal valleys.

Theoretical and Experimental Methods

The authors employ several clever theoretical and experimental techniques to model this behavior:

  • Decoupling Approximation: They simplify the complex SGD noise covariance matrix by assuming that the network's output error and the gradient of the model output are uncorrelated. This crucial step allows them to show that SGD noise strength is directly proportional to the value of the loss function ($L$).
  • Random Time Change: To handle the mathematically messy "multiplicative noise," they perform a coordinate transformation in time. This transforms the standard SGD equation into a simpler Stochastic Differential Equation (SDE) with additive noise, but operating on a logarithmic loss landscape ($U = \log L$).
  • Modified Kramers' Theory: They adapt classical escape-rate physics to this new logarithmic framework to derive a closed-form expression for the escape rate ($\kappa$).
  • Mean First Passage Time (MFPT): Experimentally, they measure how long it takes for the loss to cross a certain threshold to validate their theoretical escape-rate formula across standard benchmarks like MNIST, Fashion-MNIST, and CIFAR-10.

Key Insights and Ideas

Noise is Proportional to Loss

This is the paper's "aha" moment. Because SGD noise vanishes as the loss approaches zero, the system becomes increasingly stable near global minima.

Tracking Loss and SGD Noise Strength over Epochs

This proportionality explains why the standard exponential escape formula (which predicts a non-zero escape rate even at $L=0$) was insufficient for modeling neural network training.

Proportionality of SGD Noise Strength and Loss

The Log-Landscape Matters

On the logarithmic scale, the "height" of a barrier is determined by the ratio of the loss at the saddle point to the loss at the minimum ($\frac{L(\theta^s)}{L(\theta^*)}$), rather than the subtraction-based difference ($\Delta L$).

Power-Law Escape

The resulting escape rate follows a power law: $\kappa \sim (Ratio)^{-Exponent}$. This is a much "heavier" relationship than the classic exponential one, meaning SGD can escape certain minima much faster than previously thought.

The Bias for Low Dimensions

The formula shows that the escape rate increases with the number of "outlier" eigenvalues ($n$) in the Hessian. Essentially, if a minimum has too many "sharp" directions (high effective dimension), SGD will escape it very quickly. This provides a formal theoretical reason why SGD prefers "flat" minima with few sharp directions.

Key Results

  • Formula Verification: The authors' derived formula for the escape rate $\kappa$ was remarkably accurate in predicting the Mean First Passage Time in both linear models and deep neural networks.
  • Stability Threshold: They identified a critical learning rate ($\eta_c$) and a critical effective dimension ($n_c$). If the effective dimension $n$ exceeds $2(\frac{B}{\eta h_{max}} + 1)$, the minimum becomes unstable, and SGD will inevitably move elsewhere.
  • Empirical Consistency: The paper successfully explains the empirical observation that SGD-trained models tend to have Hessian spectra dominated by a few large "outlier" eigenvalues and a massive "bulk" of near-zero eigenvalues.

Limitations and Future Work

While groundbreaking, the derivation assumes the SGD noise is Gaussian. Recent research suggests SGD noise can sometimes be "heavy-tailed" (Levy-driven), and incorporating non-Gaussian effects is a vital next step. Additionally, while the authors provide evidence that their findings extend to cross-entropy loss, the primary analytical derivation is optimized for mean-square loss. Finally, a more rigorous mathematical proof of when the "decoupling approximation" heuristic is valid for general architectures would further strengthen the theory.

Summary updated

BibTeX
@inproceedings{mori2022power,
  author = {Takashi Mori and Ziyin Liu and Kangqiao Liu and Masahito Ueda},
  title = {{Power-Law Escape Rate of SGD}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=-y3lFWwyQKQ},
}
Figure