This paper provides a rigorous theoretical foundation for a technique widely used by deep learning practitioners but historically difficult to fully analyze: gradient clipping. While clipping is a staple for stabilizing training, proving its theoretical benefits—especially in the stochastic convex setting—has often forced researchers into "exponential traps" in their complexity bounds.
TL;DR
The authors provide the first high-probability convergence rates for clipped Stochastic Gradient Descent (SGD) on convex functions with "relaxed" smoothness. Their bounds match the performance of standard SGD without the usual exponential dependence on problem parameters. By introducing a "double sampling" technique and a selective averaging scheme, the paper proves that gradient clipping is a theoretically sound method for handling wildly varying gradients.
The Problem: Exploding Gradients and Bias
Standard optimization theory typically assumes $L$-smoothness, meaning the gradient does not change faster than a constant rate. However, in modern deep learning, gradients often "explode" or vary significantly over small distances. To model this more accurately, researchers use $(L_0, L_1)$-smoothness, where the Hessian (the rate of change of the gradient) is allowed to grow linearly with the norm of the gradient itself.
While gradient clipping is the standard empirical fix for this behavior, proving it works in a stochastic and convex setting is challenging due to bias. When a noisy gradient is clipped, the resulting vector is no longer an unbiased estimate of the true gradient. Previous attempts to prove convergence under these conditions often resulted in complexity bounds that were exponential in terms of the initial distance to the optimum ($\exp(L_1 R_0)$), rendering them practically meaningless for large-scale problems.
Methods: Decoupling Clipping from Updating
The authors propose Clipped SGD with Double Sampling. The key innovations include:
- Double Sampling: In each iteration, the algorithm queries the gradient oracle twice at the same point. The first sample ($g^c_t$) is used solely to decide the clipping factor ($\alpha_t$) and the step size ($\eta_t$). The second sample ($g_t$) provides the actual direction for the update. This decouples the clipping decision from the update direction, allowing the authors to leverage powerful probabilistic tools (martingale concentration inequalities) that require unbiasedness.
- Selective Iterate Averaging: Instead of averaging all iterates to get the final result, the algorithm tracks which iterations were "clipped" ($T_1$) and which were "unclipped" ($T_2$). The final output is the average of only the unclipped iterates.
- Algorithmic Variations: The paper extends this core analysis to several variants, including Clipped Adaptive SGD (an AdaGrad-like variant), Implicit Clipping (where the step size is normalized by the gradient norm), and Conservative Thresholds (which do not require exact knowledge of the smoothness parameter $L_1$).
Key Insights and Results
- Breaking the Exponential Barrier: The most significant theoretical breakthrough is proving that the convergence rate depends on $L_1$ only through an additive term $(L_1 R_0)^2$, rather than an exponential one. This demonstrates that clipped SGD is far more robust than previously established.
- Convergence Rate: The authors establish a high-probability rate of roughly $O\left(\frac{L_0 R_0^2}{T} + \frac{\sigma R_0}{\sqrt{T}} + (L_1 R_0)^2\right)$. This matches the best-known rates for standard $L_0$-smooth SGD, plus a low-order term for the "relaxed" $L_1$ component.
- Efficiency: To reach an optimality gap of $\epsilon$, the query complexity for clipped SGD is $O(\frac{L_0 R_0^2}{\epsilon} + \frac{\sigma^2 R_0^2}{\epsilon^2} + (L_1 R_0)^2)$.
- The Power of Unclipped Iterates ($T_2$): Averaging only the iterates where the gradient was small enough not to be clipped provides a slightly better sub-optimality gap than averaging everything. This supports the intuition that "stable" steps are more informative for the final solution.
- Theory vs. Practice on Double Sampling: While double sampling is essential for the mathematical proof to handle bias, empirical results on datasets like California Housing and Parkinsons Telemonitoring show that single sampling (using the same gradient for both clipping and updating) performs just as well, if not better. This suggests the bias introduced by clipping may be less harmful in practice than theory currently dictates.
Limitations and Future Work
- Double Sampling Overhead: Double sampling requires two gradient evaluations per step, doubling the computational cost. A major open question is whether a similar high-probability bound can be proven for standard single-sample clipped SGD.
- Parameter Tuning: The optimal clipping threshold $c$ still depends on knowing $L_0$ or the initial distance $R_0$. Developing "tuning-free" methods that require zero prior knowledge of problem parameters is a promising next step.
- Convexity Constraint: While the paper focuses on the convex setting to provide strong guarantees, many $(L_0, L_1)$-smooth problems in the real world (like deep learning) are non-convex. Extending this specific high-probability analysis to the non-convex regime remains a significant challenge.
Summary updated