Abstract
Recent empirical evidence indicates that many machine learning applications involve heavy-tailed gradient noise, which challenges the standard assumptions of bounded variance in stochastic optimization. Gradient clipping has emerged as a popular tool to handle this heavy-tailed noise, as it achieves good performance both theoretically and practically. However, our current theoretical understanding of non-convex gradient clipping has three main shortcomings. First, the theory hinges on large, increasing clipping thresholds, which are in stark contrast to the small constant clipping thresholds employed in practice. Second, clipping thresholds require knowledge of problem-dependent parameters to guarantee convergence. Lastly, even with this knowledge, current sample complexity upper bounds for the method are sub-optimal in nearly all parameters. To address these issues and motivated by practical observations, we make the connection of gradient clipping to its close relative — Normalized SGD (NSGD) — and study its convergence properties. First, we establish a parameter-free sample complexity for NSGD of $\mathcal{O}\left(\varepsilon^{-\frac{2p}{p-1}}\right)$ to find an $\varepsilon$-stationary point, only assuming a finite $p$-th central moment of the noise, $p\in(1,2]$. Furthermore, we prove the tightness of this result, by providing a matching algorithm-specific lower bound. In the setting where all problem parameters are known, we show this complexity is improved to $\mathcal{O}\left(\varepsilon^{-\frac{3p-2}{p-1}}\right)$, matching the previously known lower bound for all first-order methods in all problem dependent parameters. Finally, we establish high-probability convergence of NSGD with a mild logarithmic dependence on the failure probability. Our work complements the studies of gradient clipping under heavy-tailed noise, improving the sample complexities of existing algorithms and offering an alternative mechanism to achieve high-probability convergence.
Introduction
In modern machine learning—particularly in Large Language Models (LLMs) and Reinforcement Learning (RL)—stochastic gradients often exhibit "heavy-tailed" noise. This means the noise distribution frequently produces extreme outliers that can derail standard Stochastic Gradient Descent (SGD). Traditionally, researchers and practitioners have used gradient clipping to tame these outliers. However, a significant gap exists between the theory and practice of clipping: theoretical proofs often require large, increasing thresholds and prior knowledge of unknown problem parameters, while practitioners successfully use small, constant thresholds.
Bridging the Gap: From Clipping to Normalization
This research addresses these discrepancies by establishing a formal connection between gradient clipping and Normalized SGD (NSGD). The authors observe that in practice, clipping thresholds are often set so low that gradients are clipped almost 100% of the time. In this regime, Clip-SGD effectively becomes NSGD, where every update is scaled to a fixed length. By focusing on NSGD, the authors provide a simpler, more robust framework that aligns theoretical analysis with practical usage.
Technical Advancements
The paper introduces several key breakthroughs in the analysis of heavy-tailed optimization:
- Parameter-Free Analysis: The authors prove convergence for NSGD without requiring prior knowledge of the noise level ($\sigma$) or the "tail index" ($p$). They establish a sample complexity of $\mathcal{O}(\varepsilon^{-\frac{2p}{p-1}})$, providing the first "tuning-free" guarantee for this setting.
- High-Probability Bounds: Most heavy-tailed proofs only work "on average." This paper provides high-probability guarantees, meaning the algorithm is proven to work in a single run. They achieve this using a "cosine trick," analyzing the angle between the stochastic and true gradients, which is naturally bounded and easier to handle mathematically than raw heavy-tailed vectors.
- Optimal Complexity: When problem parameters are known, NSGD achieves a sample complexity of $\mathcal{O}(\varepsilon^{-\frac{3p-2}{p-1}})$, matching the theoretical lower bound for all first-order methods under heavy-tailed noise.
- Vectorized von Bahr-Esseen Inequality: The authors utilize this advanced probabilistic tool to handle the $p$-th moments of gradients, providing a more rigorous foundation than previous ad-hoc clipping proofs.
Theoretical Limits and Lower Bounds
To prove the tightness of their results, the authors construct "hard" functions that challenge optimization algorithms. These constructions demonstrate that the derived convergence rates for NSGD are the best possible for the given assumptions.
As illustrated in Figure 1, the construction of a function $F(x)$ with a sawtooth-like derivative $F'(x)$ helps establish these algorithm-specific lower bounds. It shows that even with small gradient norms, progress can be fundamentally limited, justifying the derived sample complexities.
Empirical Evidence
The theoretical findings are validated using both synthetic and real-world benchmarks:
- Language Modeling: Training AWD-LSTM models on the Penn Treebank (PTB) and WikiText-2 datasets showed that NSGD achieved nearly identical training loss to Clip-SGD but reached that performance faster by eliminating the need for a grid search over clipping thresholds.
- Synthetic Quadratics: Experiments with high-dimensional quadratic functions injected with Pareto noise confirmed the algorithm's robustness across different levels of heavy-tailedness.
Conclusion
By bridging the gap between theory and practice, this work establishes NSGD as a superior, simpler alternative to gradient clipping for heavy-tailed stochastic optimization. It offers optimal sample complexity and the first high-probability convergence guarantees without requiring complex, parameter-dependent tuning. Future work may explore extending these high-probability bounds to momentum variants or combining normalization with variance-reduction techniques.
Summary updated