A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networks

Umut Simsekli, Levent Sagun, Mert Gürbüzbalaban

Abstract

The success of Stochastic Gradient Descent (SGD) in training deep neural networks is often attributed to its ability to find "wide minima" that generalize well. However, standard theoretical analyses based on Gaussian noise assumptions fail to explain this preference, as they suggest SGD should favor deep, narrow minima. This paper challenges the Gaussianity assumption by demonstrating that stochastic gradient noise is heavy-tailed and follows an $\alpha$-stable distribution. By modeling SGD as a Lévy-driven process, we provide a rigorous mathematical explanation for why SGD prefers wide valleys, bridging the gap between empirical observations and theoretical understanding.

Introduction: The Gaussian Assumption vs. Reality

In deep learning, it is widely accepted that SGD possesses an inherent bias toward flat regions of the loss landscape. Standard theoretical frameworks typically model SGD as a discretization of a Stochastic Differential Equation (SDE) driven by Brownian motion. This approach assumes that gradient noise follows a Gaussian distribution, a simplification often justified by the Classical Central Limit Theorem (CLT).

However, this assumption faces two significant hurdles. Empirically, real-world gradient noise frequently exhibits "fat tails," where extreme values occur much more often than a bell curve would predict. Theoretically, under Brownian motion, the escape time from a local minimum depends exponentially on its depth rather than its width. This implies that SGD should settle in deep, narrow holes—a direct contradiction to the practical success of deep learning models.

Comparison of noise norm distributions: Real gradient noise exhibits heavy tails similar to α-stable distributions, unlike the Gaussian model.

Methodology: From Brownian to Lévy Motion

To resolve these contradictions, we propose a shift from the Classical CLT to the Generalized Central Limit Theorem (GCLT). The GCLT suggests that the sum of variables with infinite or very high variance converges to an $\alpha$-stable distribution rather than a Gaussian one.

We model the SGD process using Lévy-driven SDEs. Unlike the continuous paths of Brownian motion, Lévy motion is characterized by discontinuous "jumps." By applying metastability theory from statistical physics, we show that for Lévy-driven processes, the escape time from a basin depends primarily on its width and the tail-index ($\alpha$), while being relatively insensitive to its depth. This provides the mathematical mechanism for SGD to "teleport" out of narrow minima while remaining trapped in wider ones.

Probability density functions and sample trajectories for α=1.8 (heavy-tailed) and α=2.0 (Gaussian). Heavy-tailed noise enables 'jumps' that facilitate escape from narrow minima.

Experimental Setup and Tail-Index Estimation

To validate our hypothesis, we conducted extensive experiments across various datasets and architectures, including:

  • MNIST with Fully Connected Networks (FCN).
  • CIFAR-10 and CIFAR-100 with FCNs and AlexNet.
  • Loss Functions: Both Cross-Entropy and Linear Hinge Loss were evaluated.

We employed a robust estimator to measure the tail-index $\alpha$ of the gradient noise during training. In this context, $\alpha = 2$ represents Gaussian noise, while $\alpha < 2$ indicates heavy-tailed behavior.

Key Findings: The Heavy-Tail Phenomenon

Our empirical results consistently rejected the Gaussianity assumption. Across all tested configurations, the estimated tail-index $\alpha$ was significantly lower than 2, typically ranging between 1.1 and 1.6.

Several key insights emerged from our analysis:

  1. The "Jump" Phenomenon: The discontinuous nature of Lévy motion allows the optimizer to escape narrow, deep minima efficiently. Conversely, escaping a wide minimum is significantly more difficult, leading the optimizer to settle in flatter regions.
  2. Persistence of Non-Gaussianity: Increasing the minibatch size, a common strategy to reduce noise, did not make the noise Gaussian. The heavy-tailed nature remained a persistent feature of the gradient noise.
  3. Complexity and Heavy Tails: We observed that as network depth or width increased, the tail-index $\alpha$ generally decreased. This suggests that more complex models generate "jumpier" noise, which may paradoxically aid in finding better-generalizing minima.
  4. Training Dynamics: The tail-index often drops sharply at the start of training, coinciding with significant improvements in accuracy, before stabilizing. This suggests that critical landscape barriers are crossed early in the optimization process through large "jumps."

Discussion: Why Wide Minima?

The link between gradient noise and generalization is established through the relationship between basin width and escape probability. Our work provides a mathematical bridge: the ratio of the widths of two minima determines the relative probability of the optimizer residing in one over the other. Because the escape time is width-dependent in the heavy-tailed regime, SGD naturally gravitates toward the widest available valleys, which are empirically linked to superior generalization on unseen data.

Conclusion and Future Directions

This study provides a new lens through which to view SGD, moving beyond the Gaussian simplification to a more accurate heavy-tailed model. While our Lévy-driven SDE framework aligns well with empirical observations, several avenues for future research remain. The discretization gap between continuous-time SDEs and discrete SGD steps requires further investigation, particularly regarding the role of the learning rate. Additionally, extending metastability theory to "flat" regions with zero modes and accounting for state-dependent $\alpha$ values will be crucial for a more complete theory of deep learning optimization.

Summary updated

BibTeX
@inproceedings{simsekli2019tail,
  author = {Umut Simsekli and Levent Sagun and Mert Gürbüzbalaban},
  title = {{A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HJWAJi-uWS},
}
Figure