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

The Cost of an Unknown Horizon for the Last Iterate of Clipped SGD under Heavy-Tailed Noise

Yuxing Peng, Zhiqing Tang, Weijia Jia

In the world of large-scale machine learning, training is rarely a fixed-duration affair. We use early stopping, checkpoint selection, and "schedule-free" methods that don't require us to commit to a specific number of steps in advance. Furthermore, modern models (like LLMs) often face "heavy-tailed" gradient noise, where extreme values are more common than a standard Gaussian distribution would suggest.

This paper, "The Cost of an Unknown Horizon for the Last Iterate of Clipped SGD under Heavy-Tailed Noise," investigates a fundamental theoretical question: If you don't know when you're going to stop, how much does that uncertainty cost you in terms of convergence speed?

TL;DR

The authors prove that for clipped Stochastic Gradient Descent (SGD) under heavy-tailed noise, not knowing the training duration (the "horizon") in advance imposes a fundamental polynomial penalty on the convergence rate of the last iterate. They identify the optimal "time-uniform" rate and show that this gap can be closed by querying gradients at the running average of iterates rather than the current state.

What Problem Does This Paper Address?

Most optimization theory assumes a "known horizon" $T$—you know exactly how many steps you will take, allowing you to tune your step sizes and clipping thresholds perfectly for that endpoint. However, in practice, we often stop training based on validation performance (early stopping).

To guarantee performance at any stopping time, we need "time-uniform" bounds. Under standard sub-Gaussian noise, the transition from fixed-time to time-uniform bounds only costs a small logarithmic factor. But under heavy-tailed noise (where only the $p$-th moment is bounded for $1 < p \le 2$), the authors show the cost is much higher—a polynomial drop in the convergence rate.

Methods

The paper focuses on Clipped SGD, a standard technique for stabilizing training against heavy-tailed noise. The update rule is: $$x_{t+1} = x_t - \eta_t \text{clip}(g_t, \lambda_t)$$ where $g_t$ is the stochastic gradient, $\eta_t$ is the step size, and $\lambda_t$ is the clipping threshold.

The authors contribute:

  1. A New Horizon-Free Schedule: They propose a deterministic schedule for $\eta_t$ and $\lambda_t$ that requires no knowledge of the total time $T$ or the desired confidence level $\delta$.
  2. Recursive Potential Analysis: To prove upper bounds, they develop a novel "recursively averaged potential" function. This allows them to use martingale concentration inequalities (like Freedman’s inequality) to provide guarantees that hold for all time steps simultaneously.
  3. A Counting Argument for Lower Bounds: They use a sophisticated "counting argument" to prove that no "gradient-only" rule (one that only queries the gradient at the current iterate) can beat their proposed rate.

Datasets

This is a theoretical paper. It does not use real-world datasets like ImageNet. Instead, it uses synthetic "hard instances" (one-dimensional smooth convex functions with specifically designed noise distributions) to prove the lower bounds and illustrate the performance gap numerically.

Key Insights and Ideas

  • The "Cost of Ignorance": For a known horizon $T$, the optimal rate is $O(T^{-(p-1)/p})$. For an unknown horizon, the authors prove the optimal rate is $\tilde{O}(t^{-\beta_p})$ where $\beta_p = \frac{2(p-1)}{3p-1}$. For the common case of finite variance ($p=2$), the exponent drops from 1/2 to 2/5.
  • The Gradient-Only Barrier: The paper identifies a fundamental limitation of "gradient-only" rules. If you only know the gradient at your current position, you cannot move too far without risking a massive error on a slightly different potential objective function. This "caution" is what slows down the convergence.
  • Location Matters More Than Scaling: The most surprising insight is that the "cost" of an unknown horizon disappears if you change where you query the gradient. By querying at the running average of the iterates (even if you still output the last iterate), you can recover the optimal $O(T^{-1/2})$ rate even without knowing the horizon.

Key Results

The paper provides a comprehensive map of the "rate frontier" for clipped SGD, summarized in the table below (extracted from the paper):

Comparison of best last-iterate error rates at p=2 (finite variance). The shaded areas represent new results from this paper.
  • Optimal Time-Uniform Rate: They improve the previous best-known rate for unknown horizons from $t^{-1/3}$ to $t^{-2/5}$ (at $p=2$) and prove this is the absolute best possible for gradient-only rules.
  • Averaging Momentum: They show that a specific form of "averaging momentum" (Theorem 12) achieves the $t^{-1/2}$ rate at all times, effectively bypassing the "cost" of the unknown horizon.
  • Almost Sure Convergence: Because their bounds are time-uniform and independent of the confidence level $\delta$, the rates also hold "almost surely" (with probability 1).

Limitations and Future Work

  • Parameter Dependence: The proposed schedules still depend on problem parameters like the smoothness $L$, the initial distance $R$, and the noise scale $\sigma$. Developing "fully adaptive" methods that don't need these constants is a natural next step.
  • Non-Convexity: The results are derived for smooth convex objectives. While gradient clipping is widely used in non-convex deep learning, the theoretical "cost of an unknown horizon" in non-convex landscapes remains an open question.
  • Update Directions: The lower bounds apply to rules that move in the direction of the current stochastic gradient. Exploring whether more complex update directions (beyond standard momentum) could break the $\beta_p$ barrier is another area for future research.

Summary updated

BibTeX
@misc{peng2026cost,
  author = {Yuxing Peng and Zhiqing Tang and Weijia Jia},
  title = {{The Cost of an Unknown Horizon for the Last Iterate of Clipped SGD under Heavy-Tailed Noise}},
  year = {2026},
  eprint = {2610.33381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.33381},
}

Loading related content...

Figure