Paper commentary
Nearly Tight Almost Sure Convergence Rates for the Last iterate of SGD
- Problem Last-iterate SGD is what practitioners monitor and stop on, but almost-sure rates for it were scarce, and the optimal exponent under second-moment noise was unknown.
- Method Lower-bound constructions with rare, increasingly separated noise shocks, combined with deterministic anytime step-size schedules and a Moreau-envelope supermartingale argument for the upper bounds.
- Results Lower bound exponent −1/3 for smooth objectives with a stationary minimizer, up to logarithmic factors (Theorem 3.1 (ii)); upper bound exponent −1/4 for nonsmooth objectives under Assumption 6, with logarithmic correction [log(k+t0)]^{1/2+η}.
Why almost-sure rates for the last iterate are hard
An almost-sure rate describes how the optimization error decays along almost every realization of a single run, and it holds from a path-dependent starting time onward without giving an explicit finite-time confidence bound. High-probability bounds for one horizon-free run can produce almost-sure rates through the Borel–Cantelli lemma, provided their dependence on 1/δ is polylogarithmic.
Under second-moment assumptions alone, polynomial dependence on 1/δ can arise, and the direct conversion then may worsen the exponent or yield no decaying bound.
Liu and Yuan obtained last-iterate rates O(k−1/3+β) for smooth convex objectives, for any β in (0,1/3), under a standard variance assumption on the gradient noise. Whether the exponent −1/3 is intrinsic for smooth objectives, and how constraints change it, were therefore open questions.
Setting and admissible step-sizes
The iterates follow a projected stochastic recurrence started from a fixed point x1 in X, where each step moves against the oracle response scaled by Γk and projects back onto X. The class Sα consists of predictable step-sizes that are Fk-measurable and lie in (0, α] almost surely, and it contains every deterministic schedule bounded by α.
The larger class Sfin only requires each Γk to be finite and Fk-measurable, and Sα is contained in Sfin.
Bounded adaptive rules that depend on past oracle responses, and randomized policies whose randomness is drawn before the current oracle call, both belong to Sα. Gradient clipping and the usual AdaGrad-Norm update are generally outside the class, because their effective scalar step-size depends on the current response when written in the form of the recurrence.
A sequence has almost-sure rate ρk when the ratio of Yk to ρk tends to zero with probability one. The lower bounds are proved in a stronger form, in which the limit superior of the rescaled optimization error is infinite with probability one, and the analysis works with rk equal to the reciprocal of the rate.
Smooth objectives: exponents −1/3 and −1/4
The smooth analysis assumes a Lipschitz gradient with constant L, and a conditional abc oracle model in which the expected oracle response equals the gradient and the conditional second moment is bounded by a times the optimization error plus b times the squared gradient norm plus c. A stationary minimizer is a constrained minimizer x⋆ with a vanishing gradient, which always exists in the unconstrained case or when a minimizer lies in the interior of the feasible set.
The lower bound for smooth objectives without a stationary minimizer, over X = [0,1] × [−2,2], shows that for every Sfin schedule and every p > 0 the optimization error is not almost-surely of order (log(e+k))^{−p} · k^{−1/4}. For smooth objectives with a stationary minimizer, the corresponding lower bound uses the same almost-sure formulation with exponent −1/3, for every Sα schedule and every p > 0.
Together with the deterministic upper bounds, this identifies −1/3 for the stationary-minimizer case and −1/4 without it, up to logarithmic factors.
The authors compare this with averaging: for the averaged iterate, a rate of k−1/2+β for β in (0,1/2) holds under standard second-moment assumptions, so averaging improves the polynomial exponent rather than only the logarithm.
The upper bound without a stationary minimizer holds under Assumption 4 with exponent −1/4 and logarithmic correction [log(k+t0)]^{1/2+η}, for an α-bounded predictable step-size sequence. When a stationary minimizer exists, the upper bound has exponent −1/3 with correction [log(k+t0)]^{1/3+η}, and it sharpens the polynomial slack of Liu and Yuan into a logarithmic factor.
The −1/3 bound extends to projected SGD only when the feasible set contains a stationary minimizer.
The lower-bound instance couples a flat coordinate, whose objective value is reduced only by enough cumulative movement, with a noisy coordinate perturbed by rare shocks; the step-size controls both updates. At a nonstationary boundary minimizer an inward displacement h gives a linear objective gap, whereas at a stationary minimizer a quadratic coordinate turns the same displacement into an error of order h².
Shock scales are separated so that the variance budget in Assumption 4 is spread across rare events, and each policy either makes too little progress or meets shocks whose conditional probabilities sum to infinity, which the Borel–Cantelli lemma turns into almost-sure failure.
The construction sets ϱj = 2−3j, Rj = 4 exp(2j²) and Tj = ⌈R_j^4⌉, and the flat profile ψ takes the value βj on [ϱj/2, 2ϱj], where βj = ϱj/4 · exp(−2j²). The resulting oracle satisfies Assumption 4 with a = b = 0 and c = 2.
Because the objective on the feasible set has the form γb·(u + φ(v)) with both terms nonnegative, the optimization error splits into the two coordinate contributions. If the summed probabilities of large negative shocks are finite for some M, the cumulative step-size up to Tj is o(Rj), and the flat coordinate stays above ϱj eventually, which forces a large error at times Tj.
If these probabilities sum to infinity for every M, the noisy coordinate is pushed inward at infinitely many times, and the conditional Borel–Cantelli lemma gives lim sup of rk·Δ(Xk) equal to infinity on that event.
Nonsmooth objectives and the Moreau envelope
Assumption 6 requires that the conditional expectation of the oracle lies in the subdifferential and that the conditional second moment is bounded by σ². Under this model, the lower bound for the set X = [−1,1] × [−2,2] shows that every Sfin schedule and every p > 0 fail to achieve the almost-sure rate (log(e+k))^{−p} · k^{−1/4}. Shamir and Zhang obtained an expected rate of (log k)·k^{−1/2} for nonsmooth objectives on bounded domains with horizon-independent stepsizes, so the almost-sure guarantee must allow for a polynomial loss.
The upper bound for nonsmooth objectives holds for anytime k ≥ 1 with exponent −1/4 and correction [log(k+t0)]^{1/2+η}, using deterministic step-sizes that do not depend on the horizon.
A one-step supermartingale does not work here, since without smoothness or unconstrained structure a single step can raise the objective by an amount of order Γk. The approach instead tracks a Moreau envelope of the constrained objective, whose smoothing deviates from the objective when strong and amplifies per-step noise when weak, and it balances these by letting the smoothing shrink over time.
The proof takes p = 1/2 + η and step-size Γk = γ0·(k+t0)^{−3/4}·[log(k+t0)]^{−p}, together with a smoothing parameter λk = λ0·(k+t0)^{−1/4}·[log(k+t0)]^{−p} and rk = (k+t0)^{1/4}·[log(k+t0)]^p. The Moreau envelope Φλ is defined as an infimum over y of Φ(y) plus the squared distance divided by 2λ, and its minimizer pλ(x) is the proximal point of x.
Projection onto X keeps every iterate in X, and the subgradient inequality bounds the optimization error by σ times the distance of the iterate to x⋆.
Summing the squared-distance recursion gives a finite weighted sum of expected errors, which shows that Δ(Xk) is integrable. The surrogate error Yk = Φλk(Xk) − F⋆ satisfies 0 ≤ Yk ≤ Δ(Xk) and obeys an approximate supermartingale recursion, and the normalized supermartingale lemma gives rk·Yk → 0 almost surely. The gap between rk·Δ(Xk) and rk·Yk is bounded by a term that vanishes, so rk·Δ(Xk) → 0 almost surely.
Limits of the current results
The optimality of the logarithmic corrections in the upper bounds is not settled by these results. The interpolation regime, where stochastic gradients vanish at the minimizer, is left as a direction where faster rates may be possible. Whether gradient clipping and AdaGrad-Norm can improve the rates is also left open, since their step-sizes depend on the current oracle response.
Paper info
- Authors
- Ou, Weiming, Paudice, Andrea, Wang, Xiao
- Venue
- arXiv · Preprint
- First published
- 2026-11-18
- Added
- 2026-11-20
- Updated
- 2026-11-18
- Version
- v1
- arXiv
- 2611.24151
- Category
- math.OC · cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
We study the almost sure convergence of the last-iterate optimization error of Stochastic (sub)Gradient Descent (SGD) for convex objectives. For smooth objectives, we establish convergence rates of order $k^{-1/3}$ when a stationary minimizer exists, and $k^{-1/4}$ otherwise, up to polylogarithmic factors, where $k$ denotes the iteration counter. We further show that the latter rate extends to nonsmooth convex objectives. All these rates are achieved by deterministic, anytime stepsize policies. Finally, we establish matching lower bounds showing that the exponents $-1/3$ and $-1/4$ are optimal, up to polylogarithmic factors, for the corresponding problem classes.
Quote from the paper
Ou, Weiming, Paudice, Andrea, Wang, Xiao (2026). Nearly Tight Almost Sure Convergence Rates for the Last iterate of SGD. arXiv:2611.24151v1. https://arxiv.org/abs/2611.24151v1
BibTeX
@misc{weiming2026nearly,
title = {{Nearly Tight Almost Sure Convergence Rates for the Last iterate of SGD}},
author = {Ou, Weiming and Paudice, Andrea and Wang, Xiao},
year = {2026},
eprint = {2611.24151},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.24151v1}
}