NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Last-Iterate Convergence of Clipped Gradient Methods

Zijian LiuNeurIPS 2026

TL;DR

When training models in noisy, real-world environments, practitioners rely on gradient clipping to prevent wild updates, and they almost always just save the final model weights at the end of training. Yet, optimization theory has struggled to prove that this final step—rather than an awkward average of all past steps—actually converges optimally when gradient noise is "heavy-tailed." This paper closes that gap, proving the first optimal, high-probability convergence rates for the last iterate of Clipped-SGD.

What Problem Does This Paper Address?

Imagine hiking down a foggy mountain. Standard Stochastic Gradient Descent (SGD) assumes the fog only causes mild, predictable missteps (like Gaussian noise with finite variance). In modern machine learning—think transformers and complex datasets—the noise is often heavy-tailed: every once in a while, a gradient is wildly, catastrophically huge.Mathematically, instead of having a finite variance (2nd moment), the noise only has a finite $\mathsf{p}$-th moment, where $\mathsf{p} \in (1, 2]$. Under these conditions, standard SGD can completely fail to converge.

The practical fix is Clipped-SGD: if a gradient vector's length exceeds a threshold $\tau$, you simply scale it back down to $\tau$.

While Clipped-SGD works wonders in practice, there has been a nagging disconnect between how we use it and how we prove it works:

  1. Average vs. Last Iterate: Most theoretical guarantees apply to the average of all iterates visited during training. In reality, nobody averages their model checkpoints from step 1 to $T$; we just take the last iterate ($x_{T+1}$) and call it a day.
  2. Expectation vs. High Probability: Proving an algorithm works "on average" across infinite parallel universes (in expectation) isn't comforting if you only have the compute budget to train your model once. You want high-probability guarantees (convergence with probability $1 - \delta$).

Prior high-probability bounds for the last iterate of Clipped-SGD were either non-existent (for non-smooth Lipschitz functions) or noticeably slower than average-iterate bounds (for smooth functions). Can the last iterate actually match the best-known average-iterate rates?

Methods

The author analyzes proximal Clipped-SGD for composite convex optimization (minimizing $f(x) + r(x)$, which accommodates constraints and regularizers) across four settings: general convex vs. $\mu$-strongly star-convex (a slightly relaxed, broader version of strong convexity), paired with either Lipschitz (non-smooth) or smooth objectives.

To tame the last iterate without sacrificing speed, the paper combines standard gradient clipping with tailored schedules and a fresh proof technique:

  • Linearly Decaying Stepsizes: For general convex problems, instead of keeping the learning rate constant or decaying it like $1/\sqrt{t}$, the stepsize scales linearly with the remaining time: $\eta_t \propto (T - t + 1)$, gently braking the algorithm right as it approaches the finish line.
  • Two-Stage Schedules: For strongly star-convex problems, training is split in half. Stage 1 uses a $1/t$-style decay to pull the optimization trajectory close to the optimum in distance; Stage 2 switches to the linearly decaying stepsize to lock in a tiny function value gap.
  • Simplified Dynamic Clipping: For smooth functions where gradients can grow far from the optimum, the clipping threshold adapts to the current distance from the starting point ($\|x_t - x_1\|$), simplifying prior work that required tracking the maximum historical distance.
  • Beyond-Induction Probability Analysis: A novel martingale argument (more on this below!) replaces standard mathematical induction to keep probability bounds tight.

Datasets

Not discussed in the paper. (This is a purely theoretical work).

Key Insights and Ideas

  • The "One-Shot" Escape from the Union Bound Tax: To prove high-probability bounds, you usually have to ensure your iterates stay inside a "safe" bounded region at every step $t = 1 \dots T$. Standard proofs use induction step-by-step, paying a probability penalty at each step via union bounds. This bloats the final error rate with $\text{poly}(\ln(T/\delta))$ factors—meaning the longer you train, the worse that log factor gets! The author flips this on its head: by applying Freedman’s inequality to the maximum of a carefully truncated martingale sequence over the entire horizon $T$ all at once, they show that a single global high-probability event automatically implies step-by-step safety. This shaves off the $T$ dependence inside the log, preserving the optimal $\text{poly}(\ln(1/\delta))$ scaling.
  • Last Iterate Equals Average Iterate: You don't pay a convergence penalty for taking the final point of Clipped-SGD instead of averaging iterates, provided you decay the stepsize linearly toward the end of training.
  • Geometry of Noise Matters: By adopting a fine-grained noise model that distinguishes between worst-case directional noise ($\sigma_{\text{s}}$) and total norm noise ($\sigma_{\text{l}}$), the bounds naturally adapt to the "effective dimension" of the noise rather than pessimistic worst-case bounds.

Key Results

Measuring error by the function value gap $F(x_{T+1}) - F_\star$ after $T$ steps with failure probability at most $\delta$ (or $2\delta$), Clipped-SGD achieves:

  • General Convex (Lipschitz & Smooth): Convergence at a rate of $\mathcal{O}\left(\frac{\ln^{1 - 1/\mathsf{p}}(1/\delta)}{T^{1 - 1/\mathsf{p}}}\right)$ (focusing on $T$ and $\delta$). For smooth convex functions, this substantially beats the only prior last-iterate bound of $\mathcal{O}\left(\frac{\ln^2(T^2/\delta)}{T^{\frac{2}{3}(1 - 1/\mathsf{p})}}\right)$. Notice that when variance is finite ($\mathsf{p}=2$), the new rate cleanly recovers the classic $1/\sqrt{T}$ rate, whereas the prior bound stalled at $1/T^{1/3}$.
  • Strongly Star-Convex (Lipschitz & Smooth): Convergence accelerates to $\mathcal{O}\left(\frac{\ln^{2 - 2/\mathsf{p}}(1/\delta)}{T^{2 - 2/\mathsf{p}}}\right)$. This provides the first last-iterate function-value bounds in this regime and strips away extra $\ln(T)$ factors present in prior smooth distance-based bounds.
  • Minimax Optimality: Under classical heavy-tailed noise ($\sigma_{\text{s}} = \sigma_{\text{l}} = \sigma$), the Lipschitz bounds are minimax optimal across all parameters ($T, \delta, G, D, \sigma$).

Limitations and Future Work

  • Knowing the Tail Index $\mathsf{p}$: Setting the optimal stepsizes and clipping thresholds requires knowing $\mathsf{p}$ in advance. In practice, estimating how heavy your gradient tails are is notoriously tricky. Designing parameter-free methods that adapt to unknown $\mathsf{p}$ is a major open problem.
  • Fixed Time Horizon $T$: Because the stepsizes depend explicitly on $T$ (e.g., $T - t + 1$), you have to decide exactly when you're going to stop training before you start. Extending these optimal last-iterate guarantees to "anytime" algorithms (where you can stop whenever you like) remains open.
  • Fine-Grained Lower Bounds & Higher-Order Terms: Matching high-probability lower bounds for smooth objectives don't exist yet, and under the fine-grained noise assumption, there is still a slight gap in how $\sigma_{\text{s}}$ and $\sigma_{\text{l}}$ appear compared to existing lower bounds. Additionally, a three-stage stepsize schedule might improve the non-leading terms in the smooth strongly-convex rate from polynomial to exponential decay.

Summary updated

Abstract

In stochastic (strongly) convex optimization, establishing last-iterate convergence guarantees for first-order methods has recently garnered increasing attention, as this not only deepens the theoretical understanding of these algorithms but also aligns more closely with practice. Notably, people have demonstrated that one of the most famous, simple, and popular methods, Stochastic Gradient Descent ($\mathtt{SGD}$), provably achieves last-iterate convergence. However, the existing results may have limited applicability, since they typically rely on strong conditions on the gradient noise (e.g., an exponentially decaying tail) rather than the more realistic heavy-tailed noise. Unfortunately, when faced with heavy-tailed noise, $\mathtt{SGD}$ is known to exhibit undesirable behavior or even fail to converge. To address the challenge of heavy-tailed noise, people have proposed $\mathtt{Clipped}\text{-}\mathtt{SGD}$, an algorithm that combines $\mathtt{SGD}$ with a simple mechanism, gradient clipping. Although $\mathtt{Clipped}\text{-}\mathtt{SGD}$ performs well in practice, its last-iterate convergence property remains highly underexplored. In this work, we prove the first optimal last-iterate rates in high probability for $\mathtt{Clipped}\text{-}\mathtt{SGD}$ under heavy-tailed noise, thereby closing a gap in the literature.
BibTeX
@inproceedings{liu2026last,
  author = {Zijian Liu},
  title = {{On the Last-Iterate Convergence of Clipped Gradient Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zgEpuLdwBv},
}
Figure