Abstract
Stochastic optimization in modern deep learning often encounters heavy-tailed gradient noise, where extreme outliers can cause standard Stochastic Gradient Descent (SGD) to diverge. While gradient clipping is a common remedy, it requires manual tuning of thresholds based on often-unknown problem constants. This paper introduces three practical, normalized stochastic gradient methods with momentum that are robust to heavy-tailed noise without requiring manual parameter tuning. We provide a comprehensive theoretical analysis of their convergence rates and demonstrate their superior performance across diverse tasks, including robust regression and multimodal contrastive learning.
Introduction
In stochastic optimization, the standard assumption of bounded variance for gradient noise is frequently violated in real-world deep learning scenarios. Gradients often exhibit heavy-tailed distributions, characterized by a tail exponent $\alpha \in (1, 2]$. Under these conditions, standard SGD is unstable. The traditional solution, gradient clipping, caps gradients at a threshold $\tau$, but selecting an optimal $\tau$ typically requires knowledge of the Lipschitz constant or noise bounds—parameters rarely available in practice.
This work addresses the need for "parameter-free" methods that maintain robustness to heavy-tailed noise. By replacing clipping with gradient normalization—scaling the update direction to a unit norm—and incorporating dynamic parameter updates, we develop algorithms that achieve state-of-the-art convergence rates without the overhead of manual tuning.
Proposed Methods
We propose three distinct algorithms that combine gradient normalization with different momentum schemes:
- Algorithm 1 (Polyak Momentum): A normalized version of classic momentum using dynamically updated step sizes and momentum coefficients.
- Algorithm 2 (Multi-extrapolated Momentum): A novel approach utilizing multiple extrapolation points to leverage higher-order smoothness ($p$-th order derivatives, $p \geq 2$). This is the first stochastic method to achieve acceleration by exploiting higher-order derivatives under heavy-tailed noise.
- Algorithm 3 (Recursive Momentum): Inspired by the STORM algorithm, this method employs a recursive gradient estimator. It is designed to operate under a "weakly average smoothness" condition, which is significantly less restrictive than standard assumptions.
These algorithms are developed for scenarios where the tail exponent $\alpha$ is either known or unknown, providing a flexible framework for various noise regimes.
Theoretical Complexity Analysis
A central contribution of this work is the establishment of tight oracle complexity bounds for the proposed methods. By constructing a novel "potential sequence" framework, we provide robust proofs of stability and convergence that avoid the pitfalls of prior analyses in heavy-tailed settings.
As shown in Table 1, our methods match or improve upon the best-known complexity bounds. For instance, with a known $\alpha$, Algorithm 1 achieves an optimal first-order complexity of $\mathcal{O}(\epsilon^{-(3\alpha-2)/(\alpha-1)})$. Furthermore, Algorithm 2 demonstrates that higher-order smoothness can be leveraged to accelerate convergence even in the presence of extreme noise.
Key Insights
- Normalization as an Alternative to Clipping: We observe that as training progresses, clipped gradients naturally behave like normalized gradients. Starting with normalization eliminates the need to tune the clipping threshold $\tau$.
- Higher-Order Acceleration: The multi-extrapolation scheme in Algorithm 2 proves that if the objective function possesses a Lipschitz $p$-th derivative, convergence can be significantly accelerated.
- Generality of Weak Smoothness: Algorithm 3's reliance on "weakly average smoothness" allows it to function in broader contexts than methods requiring "almost sure Lipschitz" conditions.
Empirical Results
The effectiveness of the proposed Normalized Stochastic First-Order Methods (NSFOM) was evaluated across three problem classes:
- Data Fitting: Synthetic sigmoid functions were used to test limits under heavy-tailed noise.
- Robust Regression: Experiments on real-world datasets (e.g., 'Red Wine Quality', 'Covtype') showed consistent improvements over standard baselines.
- Multimodal Contrastive Learning: On large-scale image-caption datasets like CC3M and MSCOCO, our methods outperformed standard clipped SGD and adaptive clipping techniques (GClip, ACClip).
Among the variants, Algorithm 3 (Recursive Momentum) generally exhibited the fastest convergence and highest final accuracy across the tested datasets.
Conclusion
This paper provides a robust theoretical and empirical foundation for normalized stochastic methods under heavy-tailed noise. By removing the dependency on manually tuned clipping thresholds and exploiting higher-order smoothness, the proposed algorithms offer a practical and efficient solution for modern large-scale optimization. Future work may extend these techniques to decentralized settings and constrained optimization problems.
Summary updated