Emergence of heavy tails in homogenized stochastic gradient descent

Zhe Jiao, Martin Keller-ResselNeurIPS 2024

Stochastic Gradient Descent (SGD) is fundamental to training deep learning models, but its tendency to produce "heavy-tailed" parameter distributions remains a subject of intense study. These heavy tails—where extreme parameter values occur more frequently than in a standard normal distribution—are hypothesized to aid in generalization and help models escape suboptimal local minima.

The paper "Emergence of heavy tails in homogenized stochastic gradient descent" by Zhe Jiao and Martin Keller-Ressel provides a rigorous mathematical framework explaining this phenomenon. Crucially, it offers explicit formulas to predict the tail-index of these distributions, demonstrating that heavy tails can emerge naturally without assuming inherently non-Gaussian gradient noise.

The Problem: Gaussian vs. Non-Gaussian Noise

Researchers have long observed that trained neural network parameters exhibit "fat tails." Previous theoretical frameworks often posited that the underlying gradient noise in SGD must be inherently non-Gaussian (frequently modeled as $\alpha$-stable noise) to produce this effect.

This paper asks a different question: Can standard Gaussian noise, if state-dependent, explain these heavy tails? The authors challenge the $\alpha$-stable assumption, proposing that a continuous-time approximation called homogenized SGD (hSGD) better captures the true dynamics of the optimization process.

Comparison of continuous-time models for SGD

Methodology: Homogenized SGD

To analyze the parameter distributions, the authors utilize homogenized SGD (hSGD), a continuous-time diffusion approximation (a Stochastic Differential Equation) of discrete SGD steps. Unlike simpler models that assume constant noise, hSGD incorporates state-dependent gradient noise—meaning the noise scales depending on the current position in the loss landscape.

The theoretical derivation relies on several key mathematical steps:

  1. Mapping to Pearson Diffusions: The authors demonstrate that hSGD can be transformed into a well-studied class of mathematical processes known as Pearson Diffusions.
  2. Convex Stochastic Ordering: They prove that the complex, coupled behavior of multiple network parameters can be bounded by simpler, independent processes.
  3. Explicit Bounds: Using these tools, they derive the first explicit quantitative formulas for the tail-index $\eta$, which measures the "heaviness" of the distribution's tails.

Key Findings & Hyperparameter Interplay

The paper's theoretical bounds were validated empirically using synthetic isotropic Gaussian data, the Scikit-learn Handwritten Digits dataset, and various architectures including linear regression, random feature models, and three-layer neural networks.

Key insights include:

  • Multiplicative Noise Drives Heavy Tails: Heavy tails emerge naturally from Gaussian noise if its magnitude depends on the parameter values (acting multiplicatively). Inherently "jumpy" or non-Gaussian noise is not required.
  • Student-t over $\alpha$-stable: The mathematical framework indicates that the Student-t distribution (specifically Pearson Type IV) is the natural stationary distribution for SGD parameters. Statistical tests (Kolmogorov-Smirnov) confirmed that the Student-t distribution is a valid fit for SGD parameters, whereas the previously favored $\alpha$-stable distribution was consistently rejected.
  • The Hyperparameter Recipe: The tail-index $\eta$ is explicitly linked to optimization settings. The tails become heavier (indicated by a smaller $\eta$) when:
  • The learning rate ($\gamma$) increases.
  • The batch size ($B$) decreases.
  • The regularization ($\delta$) decreases.
  • The curvature (eigenvalues of the Hessian) increases.
  • The "Sandwich" Validation: In numerical experiments, the empirical tail-index of SGD iterates consistently fell squarely between the authors' theoretical upper and lower bounds.

Limitations and Future Directions

While this work provides a vital quantitative bridge between optimization hyperparameters and parameter distributions, the authors note a few boundaries to the current theory.

First, the formal proofs rely on the quadratic structure of linear regression. While empirical experiments show the bounds hold for non-linear neural networks, the formal proof for non-linear models remains an open problem. Second, the analysis is based on continuous-time hSGD; while a robust approximation, there may be subtle deviations from the discrete-time SGD used in practice. Finally, the theoretical lower bound for the tail-index is currently $\eta \ge 1$, meaning the model cannot yet account for "ultra-heavy" tails where the mean of the distribution might not exist ($\eta < 1$).

Despite these limitations, this research significantly advances our understanding of SGD, helping to turn the "black box" of neural network generalization into a more predictable science.

Summary updated

BibTeX
@inproceedings{jiao2024emergence,
  author = {Zhe Jiao and Martin Keller-Ressel},
  title = {{Emergence of heavy tails in homogenized stochastic gradient descent}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=EFrgBP9au6},
}
Figure