In the standard theory of Stochastic Gradient Descent (SGD), we assume that the noise in our gradient estimates is "well-behaved"—usually meaning it follows a sub-Gaussian distribution with finite variance. Under these conditions, the law of large numbers ensures that as we average more gradients, our estimate converges reliably to the true gradient.
However, modern deep learning—particularly in Large Language Models (LLMs) and Reinforcement Learning (RL)—frequently violates this assumption. As Kwangjun Ahn demonstrates in Linear attention is (maybe) all you need, the training dynamics of Transformers are often driven by heavy-tailed data distributions. In these "heavy-tailed" regimes, extreme outliers are not just possible; they are expected. A single "bad" gradient can have a magnitude so large that it effectively erases hours of training progress, causing the model to stall or diverge.
The Failure of the Average
The core problem is that the arithmetic mean is not a robust estimator. If you have 99 gradients of size 1 and a single outlier of size 1,000,000, the average is roughly 10,000—a value that represents none of the actual data points.
In heavy-tailed environments, the variance of the gradient noise can be mathematically infinite. Traditional convergence proofs crumble here because they rely on the variance being bounded. To solve this, researchers have moved toward a different set of assumptions, such as the $p$-th bounded central moment, where we only assume the noise has a finite moment for some $1 < p \leq 2$. This allows for the "wild" noise seen in real-world applications while still providing a mathematical foothold for proofs, as explored by Ilyas Fatkhullin in From Gradient Clipping to Normalization for Heavy Tailed SGD.
Taming the Tail: Clipping and Normalization
The most common defense against heavy tails is Gradient Clipping. By capping the norm of the gradient at a specific threshold, we prevent any single outlier from dominating the update. While often viewed as a heuristic, Ashok Cutkosky and Harsh Mehta show in High-probability Bounds for Non-Convex Stochastic Optimization with Heavy Tails that clipping (combined with momentum) is theoretically necessary to achieve high-probability convergence when variance is infinite.
However, clipping requires tuning a threshold. A more radical approach is Normalized SGD (NSGD), which ignores the magnitude of the gradient entirely and only uses its direction. Ilyas Fatkhullin argues that normalization is often superior to clipping because it is "parameter-free"—it achieves optimal convergence rates without needing a carefully tuned clipping constant.
Other nonlinear mappings offer even more resilience:
- Sign-based SGD: Sign Operator for Coping with Heavy-Tailed Noise proves that taking only the sign of the gradient is a robust way to handle the "wild" noise and rapidly changing curvatures of LLM training.
- Quantile Clipping: Ibrahim Merad and Stéphane Gaïffas introduce QC-SGD in Robust Stochastic Optimization via Gradient Quantile Clipping, which adaptively sets clipping thresholds based on the distribution of recent gradients.
High-Probability and Anytime Guarantees
Standard optimization theory often focuses on "expected" convergence—what happens on average over many hypothetical universes. But a practitioner only cares about the single training run they are currently performing.
In heavy-tailed settings, the "average" run might look good, but any individual run has a high risk of failure. This has led to a push for high-probability bounds. Eduard Gorbunov and colleagues in High-Probability Convergence for Composite and Distributed Stochastic Minimization use "clipping of gradient differences" to ensure that an algorithm doesn't "escape" the solution even when noise is extreme.
Furthermore, Matthew J. Holland has pioneered anytime guarantees. In Anytime Guarantees under Heavy-Tailed Data, he introduces frameworks where the model's current state is guaranteed to be reliable at any point during training, not just at the final iteration. This is achieved by querying gradients at a moving average of iterates and applying robust truncation mechanisms.
Why Nonlinearity Works: Symmetrization and Filtering
Why do these simple tricks—clipping, signing, or normalizing—work so well?
One intuition is symmetrization. Aleksandar Armacki and Soummya Kar suggest in Optimal High-probability Convergence of Nonlinear SGD that nonlinear updates help neutralize lopsided noise distributions. By squashing the outliers, we effectively "symmetrize" the noise, allowing the underlying signal to emerge.
Another perspective comes from the study of Learned Optimizers (L2O). Jan Sobotka and Petr Simánek found in Investigation into the Training Dynamics of Learned Optimizers that black-box optimizers trained via meta-learning naturally evolve to act as stabilizing filters. They "break" the geometric constraints of the network to aggressively filter out heavy-tailed noise, transforming erratic updates into consistent progress.
By moving away from linear updates and Gaussian assumptions, this research direction provides the mathematical tools necessary to train the next generation of models on the messy, outlier-prone data of the real world.