Abstract
Gradient clipping is a cornerstone of stable deep learning training, yet its theoretical advantages over standard gradient descent have remained elusive. This paper introduces a novel $(L_0, L_1)$-smoothness condition, derived from empirical observations of neural network training trajectories. We demonstrate that gradient smoothness is not a constant but scales with the gradient norm. Under this realistic assumption, we prove that gradient clipping and normalized gradient methods can converge arbitrarily faster than fixed-step gradient descent, providing a rigorous justification for their widespread use in practice.
The Gap in Classical Optimization
In traditional optimization theory, functions are typically assumed to be $L$-smooth, meaning the norm of the Hessian is bounded by a constant $L$. This assumption implies that the landscape's "curviness" is uniform. Under these conditions, standard Gradient Descent (GD) with a fixed step size is theoretically optimal.
However, deep learning practice often contradicts this. In domains like Natural Language Processing (NLP), gradients frequently "explode," necessitating techniques like gradient clipping or adaptive optimizers (e.g., Adam) for stability. If the $L$-smoothness assumption held, clipping would be a mere heuristic rather than a performance booster. This work bridges the gap by proposing a smoothness condition that accounts for the dynamic nature of neural network landscapes.
A New Smoothness Framework: $(L_0, L_1)$-Smoothness
The authors propose that the Hessian norm is not bounded by a constant but can grow linearly with the gradient norm: $$\|\nabla^2 f(x)\| \leq L_0 + L_1 \|\nabla f(x)\|$$ This $(L_0, L_1)$-smoothness condition is strictly weaker than standard $L$-smoothness. It encompasses a broader class of functions, including simple polynomials like $f(x) = x^4$, which fail the standard constant-smoothness test.
Empirical Evidence: Smoothness as a Moving Target
By tracking training trajectories of LSTMs on the Penn Treebank dataset and ResNets on CIFAR-10, the researchers found that local smoothness varies significantly and correlates positively with the gradient norm.
As shown in Figure 1, high-gradient regions often correspond to "sharper" (less smooth) areas of the loss landscape. This observation explains why vanilla GD struggles: to ensure convergence in these sharp regions, one must choose a very small step size. However, this small step size leads to agonizingly slow progress in the flatter, low-gradient regions that characterize much of the training process.
Interestingly, the strength of this correlation varies by architecture. The correlation is notably stronger in LSTMs (Figure 1) than in ResNets (Figure 2), which aligns with the practical observation that gradient clipping is "essential" for NLP tasks but often "optional" for computer vision.
Theoretical Guarantees and Speedups
The core contribution of the paper is the mathematical proof that under $(L_0, L_1)$-smoothness, Clipped Gradient Descent and Normalized Gradient Descent provide significant advantages:
- Arbitrary Speedup: While GD's complexity scales with the maximum gradient norm ($M$) encountered during training, Clipped GD's complexity is largely independent of $M$.
- Adaptive Step Sizes: Gradient clipping acts as an implicit adaptive step size. It allows the optimizer to use large, aggressive steps in flat regions while automatically "slowing down" via clipping when encountering sharp, high-gradient regions.
- Empirical Confirmation: In LSTM training, clipping allowed for learning rates up to 15x larger than those possible with vanilla GD, leading to drastically faster convergence.
Conclusion
By relaxing the rigid assumptions of classical optimization, this research provides a theoretical foundation for one of deep learning's most effective heuristics. The $(L_0, L_1)$-smoothness condition not only explains why gradient clipping works but also highlights the importance of adaptivity in navigating the complex, non-uniform landscapes of modern neural networks.
Summary updated