Abstract
The gradient noise (GN) in stochastic gradient descent (SGD) is often assumed to be Gaussian, allowing for analysis via Brownian motion-driven stochastic differential equations (SDEs). We argue this assumption fails in deep learning. Invoking the generalized central limit theorem, we propose that GN converges to heavy-tailed $\alpha$-stable random vectors. This leads to modeling SGD as a Lévy-driven SDE, where 'jumps' facilitate transitions to wider minima. We establish a connection between convergence rates and the tail-index $\alpha$ and provide empirical evidence that GN is highly non-Gaussian across various architectures and datasets.
Introduction
For years, the theoretical analysis of Stochastic Gradient Descent (SGD) has relied on the assumption that gradient noise—the difference between a mini-batch gradient and the true gradient—follows a Gaussian distribution. This assumption is mathematically convenient, enabling the use of Brownian motion-based SDEs. However, this model predicts escape times from local minima that depend exponentially on basin height, contradicting empirical observations where SGD efficiently finds wide minima regardless of height. We propose that the classical Central Limit Theorem (CLT) is insufficient for deep learning and that a heavy-tailed framework is required.
Methodology: From Brownian to Lévy Motion
We shift the modeling paradigm from Gaussian distributions to $\alpha$-stable distributions. Unlike Gaussian distributions, $\alpha$-stable distributions are "heavy-tailed," meaning they have a significantly higher probability of producing extreme values, or "jumps."
Key components of this framework include:
- Lévy-Driven SDEs: Modeling SGD as a process capable of discontinuous jumps across the loss landscape.
- Generalized CLT: Justifying the convergence of gradient noise sums to $\alpha$-stable distributions.
- Tail-Index ($\alpha$) Estimation: Quantifying heavy-tailedness, where $\alpha=2$ is Gaussian and $\alpha < 2$ indicates heavy tails.
- Metastability Analysis: Proving that in Lévy-driven systems, the exit time from a basin depends on its width and $\alpha$, rather than its height.
Empirical Evidence
The theory was validated using standard benchmarks including MNIST (FCN), CIFAR-10 (FCN and AlexNet), and CIFAR-100 (AlexNet). Across all settings, the gradient noise proved to be highly non-Gaussian.
As shown in the figure above, the noise norm distribution at the end of training (b) exhibits a much heavier tail compared to the start (a), closely resembling the $\alpha$-stable distribution (d) rather than the Gaussian one (c). Note the x-axis scale in (b) reaching over 100, compared to 0.03 in (a).
Key Insights
- The Persistence of Heavy Tails: Larger mini-batches do not necessarily make the noise Gaussian; heavy-tailed behavior persists even as batch size increases.
- Preference for Wide Minima: Lévy processes can "jump" out of narrow basins easily. It is statistically harder to jump out of a wide basin, explaining SGD's inherent bias toward flatter regions of the loss landscape.
- Training Dynamics: The tail-index $\alpha$ often drops sharply early in training, coinciding with accuracy gains. This suggests heavy-tailed noise is crucial for escaping poor initializations.
- Convergence Rates: The authors established a theoretical link showing that the "heaviness" of the tails directly influences the algorithm's convergence rate to local minima.
Conclusion and Future Work
This work provides a rigorous foundation for the heavy-tailed nature of SGD. However, several questions remain, such as how the tail-index $\alpha$ might vary based on the model's position in weight space (state dependency). Furthermore, while the empirical evidence for heavy tails is strong, the specific interaction between data and architecture that generates these tails remains an open area for investigation.
Summary updated