[Paper Review] Revisiting Gradient Clipping: Stochastic bias and tight convergence guarantees
This paper provides tight convergence guarantees for clipped stochastic gradient descent (SGD) by analyzing the stochastic bias introduced by gradient clipping. It shows that clipped SGD converges to a neighborhood of size $\min\{\sigma, \sigma^2/c\}$ in gradient norm, with matching upper and lower bounds, and proves that the clipping threshold $c$ only affects higher-order terms in deterministic settings, offering precise, general convergence bounds without restrictive assumptions on noise or clipping values.
Gradient clipping is a popular modification to standard (stochastic) gradient descent, at every iteration limiting the gradient norm to a certain value $c >0$. It is widely used for example for stabilizing the training of deep learning models (Goodfellow et al., 2016), or for enforcing differential privacy (Abadi et al., 2016). Despite popularity and simplicity of the clipping mechanism, its convergence guarantees often require specific values of $c$ and strong noise assumptions. In this paper, we give convergence guarantees that show precise dependence on arbitrary clipping thresholds $c$ and show that our guarantees are tight with both deterministic and stochastic gradients. In particular, we show that (i) for deterministic gradient descent, the clipping threshold only affects the higher-order terms of convergence, (ii) in the stochastic setting convergence to the true optimum cannot be guaranteed under the standard noise assumption, even under arbitrary small step-sizes. We give matching upper and lower bounds for convergence of the gradient norm when running clipped SGD, and illustrate these results with experiments.
Motivation & Objective
- To understand the impact of the clipping threshold $c$ on convergence in both deterministic and stochastic gradient descent.
- To address the lack of tight, general convergence guarantees for clipped SGD under standard noise assumptions.
- To show that clipped SGD does not converge to the true optimum in the stochastic case due to persistent bias from clipping.
- To derive matching upper and lower bounds on the gradient norm convergence, independent of specific assumptions on noise distribution or $c$.
- To provide a unified analysis that holds for arbitrary $c > 0$ and reveals the precise dependence of convergence on $c$ and noise variance $\sigma^2$.
Proposed method
- Analyzes clipped SGD under general noise assumptions, including heavy-tailed distributions, without requiring bounded gradients or uniform noise.
- Derives upper bounds on the expected gradient norm convergence using smoothness and variance assumptions, showing convergence to $\min\{\sigma, \sigma^2/c\}$.
- Establishes a matching lower bound via a constructed counterexample with Bernoulli noise, proving the tightness of the upper bound.
- Considers both deterministic and stochastic settings separately, showing that clipping only affects transient phases in deterministic cases.
- Adapts the analysis to DP-SGD by incorporating Gaussian noise, deriving a convergence rate that includes both clipping bias and differential privacy noise.
- Uses a novel decomposition of the bias term $\mathbb{E}[\|\text{clip}_c(\nabla f_\xi) - \nabla f\|]$ to isolate the effect of clipping from stochastic noise.
Experimental results
Research questions
- RQ1How does the clipping threshold $c$ affect the convergence rate of clipped SGD in the deterministic setting?
- RQ2What is the precise bias introduced by gradient clipping in the stochastic setting, and how does it depend on $c$ and noise variance $\sigma^2$?
- RQ3Can convergence guarantees for clipped SGD be derived without strong assumptions such as bounded gradients or restricted angle conditions?
- RQ4Is the convergence neighborhood size $\min\{\sigma, \sigma^2/c\}$ tight, and can it be matched by a lower bound?
- RQ5Does clipped SGD converge to the true optimum in the stochastic case, or only to a neighborhood?
Key findings
- In the deterministic setting, clipped gradient descent converges to the same critical points as standard GD, with only higher-order terms affected by $c$; the leading convergence rate is unchanged.
- For stochastic gradients, clipped SGD converges to a neighborhood of the optimum where the expected gradient norm is bounded by $\min\{\sigma, \sigma^2/c\}$, which is tight.
- The bias introduced by clipping is quantitatively characterized as $\min\{\sigma, \sigma^2/c\}$, and this bound is matched by a lower bound construction.
- Even with arbitrarily small step-sizes, clipped SGD cannot converge to the true optimum in the stochastic case due to persistent bias from clipping.
- The analysis shows that the standard assumption of bounded gradients is insufficient to guarantee convergence to the true optimum under clipping.
- The convergence rate for DP-SGD is derived by combining clipping bias with differential privacy noise, yielding a total error term of $O(\sigma_{\text{DP}}^2 / c + \sqrt{\sigma_{\text{DP}} \eta} + \min\{\sigma, \sigma^2/c\} + \cdots)$.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.