Abstract
The effectiveness of stochastic gradient descent (SGD) in neural network optimization is significantly influenced by stochastic gradient noise (SGN). Following the central limit theorem, SGN was initially described as Gaussian, but recently Simsekli et al (2019) demonstrated that the $S\alpha S$ Lévy distribution provides a better fit for the SGN. This assertion was purportedly debunked and rebounded to the Gaussian noise model that had been previously proposed. This study provides robust, comprehensive empirical evidence that SGN is heavy-tailed and is better represented by the $S\alpha S$ distribution. Our experiments include several datasets and multiple models, both discriminative and generative. Furthermore, we argue that different network parameters preserve distinct SGN properties. We develop a novel framework based on a Lévy-driven stochastic differential equation (SDE), where one-dimensional Lévy processes describe each parameter. This leads to a more accurate characterization of the dynamics of SGD around local minima. We use our framework to study SGD properties near local minima; these include the mean escape time and preferable exit directions.
Introduction
Stochastic Gradient Descent (SGD) is the fundamental optimization algorithm in deep learning. The "noise" inherent in SGD—the discrepancy between a mini-batch gradient and the true population gradient—is not merely an artifact of computation; it is a critical mechanism that allows models to escape sharp local minima in favor of flatter, more generalizable regions of the loss landscape.
For decades, the prevailing assumption was that this noise followed a Gaussian distribution, justified by the Central Limit Theorem. However, recent empirical observations suggested that SGN might be "heavy-tailed," characterized by the $S\alpha S$ Lévy distribution. This claim sparked significant debate in the machine learning community. This paper seeks to resolve this controversy by providing extensive empirical evidence for the heavy-tailed nature of SGN and introducing a more granular, parameter-specific understanding of its dynamics.
Methodology: Heterogeneous Lévy-Driven SDEs
Existing theoretical frameworks often treat the entire neural network as a homogeneous system where every parameter experiences identical noise characteristics. We propose a novel framework that models SGD as an $N$-dimensional dynamical system governed by Lévy-driven Stochastic Differential Equations (SDEs).
Parameter-Specific Stability
Crucially, our model assigns a distinct stability parameter ($\alpha_i$) to each individual weight in the network. In the $S\alpha S$ distribution, the parameter $\alpha \in (0, 2]$ determines the "heaviness" of the tails; a lower $\alpha$ indicates more frequent large jumps, while $\alpha=2$ corresponds to a Gaussian distribution. By allowing $\alpha$ to vary across parameters, we capture the inherent heterogeneity of the optimization process.
Escape Time and Exit Directions
Using a stochastic Taylor expansion, we derive the noise covariance matrix near local minima. This allows us to formulate new mathematical expressions for the "mean escape time"—the expected duration for the optimization process to jump out of a local minimum basin. Our theory predicts that the optimization process is most likely to escape along the axes of parameters with the lowest $\alpha$ values, effectively identifying the "jumpy" directions that facilitate exploration.
Empirical Evidence
We evaluated SGN across an exceptionally broad range of tasks and architectures, including ImageNet, CIFAR100, and CINIC10 for image recognition; CLIP and BERT for multimodal and text tasks; and Stable Diffusion 2.0 for generative modeling.
Fitting Accuracy
In evaluations of over 10,000 parameters, the $S\alpha S$ distribution outperformed the Gaussian model in over 99% of cases for architectures like EfficientNet and Vision Transformers (ViT). Even in complex generative models like Stable Diffusion, the heavy-tailed model remained superior in approximately 95% of parameter evaluations. This confirms that heavy-tailed noise is a universal feature of modern deep learning optimization.
Escape Time Prediction
A key result of our work is the validation of the proposed "Polynomial" escape time model. Traditional Gaussian-based theories suggest an exponential relationship between escape time and learning rate. Our framework instead predicts a polynomial relationship due to the Lévy jumps.
Discussion and Insights
Our findings reveal a significant "Heterogeneity Aha-Moment": noise is not uniform across the network. Parameters closer to the output layers tend to exhibit much heavier tails (lower $\alpha$). This suggests that specific layers are functionally specialized to drive the model out of local minima. Furthermore, we demonstrate that learning rate decay primarily functions by attenuating the frequency and amplitude of these large Lévy jumps, rather than simply reducing the step size of deterministic descent.
Conclusion
This study provides robust evidence that stochastic gradient noise is heavy-tailed and heterogeneous. By modeling SGD through parameter-specific Lévy-driven SDEs, we provide a more accurate description of how neural networks navigate complex loss landscapes. Future work will explore how these stability parameters evolve during training and how architectures might be designed to strategically manipulate these noise properties for improved optimization.
Summary updated