betaFeedback

WorksComputer Science

Last-Iterate Convergence of Clipped SGD with Linear Decay

Abstract

In this paper, we study the last-iterate convergence of clipped stochastic gradient descent under heavy-tailed noise. We assume that the stochastic gradients are unbiased and that the noise has a bounded central pp-th moment, where 1<p≤21<p\le2. For smooth convex objectives, a linearly decreasing learning rate gives a high-probability error bound of order O(LR2log⁡(1/δ)/T+σR(log⁡(1/δ)/T)(p−1)/p)O(LR^2\log(1/δ)/T+σR(\log(1/δ)/T)^{(p-1)/p}). We further establish last-iterate guarantees for nonsmooth composite objectives and smooth composite objectives with proximal updates. In addition, when a causal adversary replaces at most qq gradients, the same clipped update achieves a bound with log⁡(1/δ)\log(1/δ) replaced by log⁡(1/δ)+q\log(1/δ)+q. The corresponding lower bounds for the clean and corrupted oracle models are also provided.

Introduction

In this paper, we study the problem

min⁡x∈RdF(x):=f(x)+r(x).(1)\min_{x \in\mathbb{R}^{d}} F(x) := f(x) + r(x). \tag*{(1)}

When r=0r = 0, the problem reduces to the smooth unconstrained problem. For such a problem, gradient clipping allows stochastic optimization methods to handle noise whose variance may be infinite. For convex objectives, high-probability guarantees with the statistical rate T−(p−1)/pT^{-(p-1)/p} are available for averaged outputs under a bounded central pp-th moment [3, 2]. Obtaining this rate for the last iterate of clipped SGD requires a different analysis, since a bound on the average objective value does not control the objective value after the final update.

This paper studies last-iterate convergence of clipped SGD algorithm. We first establish a last-iterate guarantee for smooth convex objectives. Then, we investigate proximal updates for nonsmooth and smooth composite objectives, seperately. Finally, we analyze the setting in which a number of samples can be replaced by a causal adversary. Table 1 summarizes these bounds.

SettingObjective errorOracle calls
Smooth, Theorem 1LR2ℓ/T+σR(ℓ/T)aLR^2\ell/T+\sigma R(\ell/T)^aTT
Nonsmooth composite, Theorem 2GR/T+GRℓ/T+σR(ℓ/T)aGR/\sqrt{T}+GR\ell/T+\sigma R(\ell/T)^aTT
Smooth composite, Theorem 3LR2ℓ/T+σR(ℓ/T)aLR^2\ell/T+\sigma R(\ell/T)^aT+O(ℓ)T+O(\ell)
qq replacements, Theorem 4LR2(ℓ+q)/T+σR((ℓ+q)/T)aLR^2(\ell+q)/T+\sigma R((\ell+q)/T)^aT+O(ℓ)T+O(\ell)

Table 1. High-probability guarantees for the final update. Here a=(p−1)/pa=(p-1)/p, ℓ≍log⁡(1/δ)\ell\asymp\log(1/\delta).

Theoretical guarantee

We first introduce the assumptions used.

Assumption 1. Function f:Rd→Rf : \mathbb{R}^{d} \to\mathbb{R} is convex, and r:Rd→R∪{+∞}r : \mathbb{R}^{d} \to\mathbb{R} \cup\{+\infty\} is proper, lower semicontinuous, and convex. There exists x⋆∈arg⁡min⁡Fx^\star\in\arg\min F and we denote F⋆=F(x⋆)F^\star= F(x^\star). The initial point satisfies x1∈dom⁡rx_1 \in\operatorname{dom} r and ∥x1−x⋆∥≤R\lVert x_1 - x^\star\rVert\le R, for a known R>0R > 0.

Assumption 2. For some 1<p≤21 < p \le2 and σ≥0\sigma\ge0, the vector gtg_t satisfies, almost surely,

ht:=Et[gt]∈∂f(xt),Et[∥gt−ht∥p]≤σp.(2)h_t := \mathbb{E}_t[g_t] \in\partial f(x_t), \qquad\mathbb{E}_t[\lVert g_t - h_t \rVert^p] \le\sigma^p. \tag*{(2)}

When ff is differentiable, ht=∇f(xt)h_t = \nabla f(x_t).

Assumption 3. Function ff has an LL-Lipschitz gradient:

∥∇f(x)−∇f(y)∥≤L∥x−y∥,L>0,x,y∈Rd.\lVert\nabla f(x) - \nabla f(y) \rVert\le L\lVert x-y\rVert,\qquad L > 0,\qquad x,y \in\mathbb{R}^{d}.

Algorithm 1 Clipped SGD with linear decay

Require: Initial point x1x_1, iteration number TT, clipping level λ>0\lambda>0, base learning rate η>0\eta>0

  1. for t=1,…,Tt=1,\ldots,T do

  2. Query the stochastic gradient gtg_t at xtx_t

  3. Set ηt=η(T−t+1)/T\eta_t=\eta(T-t+1)/T and g^t=clip⁡(gt,λ)\widehat{g}_t=\operatorname{clip}(g_t,\lambda)

  4. Update xt+1=xt−ηtg^tx_{t+1}=x_t-\eta_t\widehat{g}_t

  5. end for

  6. return xT+1x_{T+1}

For λ>0\lambda>0, define

clip⁡(g,λ)=gmin⁡{1,λ/∥g∥},clip⁡(0,λ)=0.\operatorname{clip}(g,\lambda)=g\min\{1,\lambda/\lVert g\rVert\},\qquad\operatorname{clip}(0,\lambda)=0.

Clipped SGD performs one oracle call per iteration, as described in Algorithm 1. Its output is xT+1x_{T+1}. The learning rate decreases from η\eta to η/T\eta/T. We use a fixed clipping level λ\lambda throughout the run. The two terms in the λ\lambda below have separate roles: 4LR4LR ensures that the true gradient remains below the clipping level, while σ(T/ℓ)1/p\sigma(T/\ell)^{1/p} controls the accumulated clipping bias and noise.

Theorem 1. Under Assumptions 1–3 with r=0r=0, fix an integer T≥1T\geq1 and δ∈(0,1)\delta\in(0,1). Run Algorithm 1 with

ℓ=log⁡8δ,λ=max⁡{4LR,σ(T/ℓ)1/p},η=R128λℓ.(3)\ell=\log\frac{8}{\delta},\qquad\lambda=\max\{4LR,\sigma(T/\ell)^{1/p}\},\qquad\eta=\frac{R}{128\lambda\ell}. \tag*{(3)}

With probability at least 1−δ1-\delta,

f(xT+1)−f(x⋆)≤256RλℓT(4)f(x_{T+1})-f(x^\star)\leq\frac{256R\lambda\ell}{T} \tag*{(4)}
≤1024LR2ℓT+256σR(ℓT)(p−1)/p.(5)\leq1024\frac{LR^2\ell}{T}+256\sigma R\left(\frac{\ell}{T}\right)^{(p-1)/p}. \tag*{(5)}

For p=2p=2, the dominant term in (5) is O(σRlog⁡(1/δ)/T)O(\sigma R\sqrt{\log(1/\delta)/T}). The result needs neither a bounded feasible set nor a uniform bound on ∥∇f(x)∥\lVert\nabla f(x)\rVert. Proposition 1 gives the corresponding lower bound.

Clipped SGD with proximal updates

Nonsmooth composite objectives

We now replace smoothness by the following condition.

Assumption 4 (Lipschitz continuity). For a known G≥0G\geq0, ∣f(x)−f(y)∣≤G∥x−y∥\lvert f(x)-f(y)\rvert\leq G\lVert x-y\rVert for all x,y∈Rdx,y\in\mathbb{R}^d.

Every subgradient of ff then has norm at most GG. The regularizer rr need not be Lipschitz. We assume exact access to

prox⁡αr(y)=arg⁡min⁡u∈Rd{r(u)+∥u−y∥22α},α>0.\operatorname{prox}_{\alpha r}(y)=\underset{u\in\mathbb{R}^d}{\arg\min}\left\{r(u)+\frac{\lVert u-y\rVert^2}{2\alpha}\right\},\qquad\alpha>0.

We use the proximal clipped update

xt+1=prox⁡ηtr(xt−ηtclip⁡(gt,λ)),ηt=ηT−t+1T.(6)x_{t+1}=\operatorname{prox}_{\eta_t r}\left(x_t-\eta_t\operatorname{clip}(g_t,\lambda)\right),\qquad\eta_t=\eta\frac{T-t+1}{T}. \tag*{(6)}

Theorem 2. Under Assumptions 1, 2, and 4, suppose G+σ>0G+\sigma>0. For an integer T≥1T\ge1 and δ∈(0,1)\delta\in(0,1), set

ℓ=log⁡4δ,λ=max⁡{2G,σ(T/ℓ)1/p},H=GT+λℓ,η=R128H.(7)\ell=\log\frac{4}{\delta},\qquad\lambda=\max\{2G,\sigma(T/\ell)^{1/p}\},\qquad H=G\sqrt{T}+\lambda\ell,\qquad\eta=\frac{R}{128H}. \tag*{(7)}

After TT updates of (6), with probability at least 1−δ1-\delta,

F(xT+1)−F⋆≤256RHT(8)F(x_{T+1})-F^\star\le\frac{256RH}{T} \tag*{(8)}
≤256GRT+512GRℓT+256σR(ℓ/T)(p−1)/p.(9)\le\frac{256GR}{\sqrt{T}}+\frac{512GR\ell}{T}+256\sigma R(\ell/T)^{(p-1)/p}. \tag*{(9)}

*If T≥ℓ2T\ge\ell^2, the right-hand side is at most 768GR/T+256σR(ℓ/T)(p−1)/p768GR/\sqrt{T}+256\sigma R(\ell/T)^{(p-1)/p}.

Smooth composite objectives

At x1x_1, query m=⌈32log⁡(2/δ)⌉m=\lceil32\log(2/\delta)\rceil pilot gradients g1(0),…,gm(0)g_1^{(0)},\ldots,g_m^{(0)}, and let

c∈arg⁡min⁡z∈Rd∑j=1m∥z−gj(0)∥.(10)c\in\mathop{\arg\min}_{z\in\mathbb{R}^d}\sum_{j=1}^{m}\lVert z-g_j^{(0)}\rVert. \tag*{(10)}

We use a measurable choice of this geometric median. The pilot gradients satisfy the conditional oracle assumption at x1x_1, and the main-stage filtration includes all pilot data. The updates are

References

  1. [1]D. A. Freedman. On tail probabilities for martingales. The Annals of Probability, 3 (1):100–118, 1975.DOI
  2. [2]Z. Liu. Clipped gradient methods for nonsmooth convex optimization under heavy-tailed noise: A refined analysis. In International Conference on Learning Representations, 2026.arxiv.org/abs/2512.23178
  3. [3]T. D. Nguyen, T. H. Nguyen, A. Ene, and H. L. Nguyen. Improved convergence in high probability of clipped gradient methods with heavy tailed noise. In Advances in Neural Information Processing Systems, volume 36, 2023.DOI

Paper details

vlnc:W_dyhr3jcr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents