Module contents
Lesson 11 of 27Core 110 min

Proximal methods: ISTA, FISTA and the Moreau envelope

Introduce the proximal operator as a generalization of projection that handles simple nonsmooth terms exactly. Use it to build proximal gradient (ISTA) for composite f + g problems, its accelerated FISTA version, and the Moreau envelope, which smooths nondifferentiable functions while preserving their minimizers.

After this lesson you can

  • Define the proximal operator and calculate it for the ℓ1 and ℓ2 norms, convex indicators and the nuclear norm.
  • Derive proximal gradient by minimizing a quadratic model plus the nonsmooth term.
  • Prove ISTA's O(1/k) rate and explain how FISTA achieves O(1/k²).
  • Use the Moreau envelope and decomposition to relate the proximal operator of f to that of its conjugate.
  • Implement ISTA and FISTA with backtracking for lasso and matrix completion.

Before you start

Motivation: smooth plus simple

Almost all regularized learning problems have the same form:

min⁡x∈Rn  F(x)=f(x)+g(x),\min_{\vb{x} \in \R^n} \; F(\vb{x}) = f(\vb{x}) + g(\vb{x}),

where ff is convex and differentiable (a fitting error: least squares, logistic regression) and gg is convex but nondifferentiable, so it can be described very simply: a norm, a constraint, a rank penalty. Three recurring examples:

  • Lasso. f(w)=12n∥Xw−y∥22f(\vb{w}) = \frac{1}{2n}\norm{\mat{X}\vb{w} - \vb{y}}_2^2 and g(w)=λ∥w∥1g(\vb{w}) = \lambda\norm{\vb{w}}_1. The ℓ1\ell_1 penalty is nondifferentiable at every point with a zero coordinate, exactly the points of interest: sparse models.
  • Constraints. Minimizing ff over a closed convex set CC is equivalent to minimizing f+ιCf + \iota_C, with ιC(x)=0\iota_C(\vb{x}) = 0 if x∈C\vb{x} \in C and +∞+\infty otherwise. Here gg is not even finite.
  • Low rank. Matrix completion for ratings minimizes 12∥PΩ(X−M)∥F2+λ∥X∥∗\frac12\norm{P_\Omega(\mat{X} - \mat{M})}_F^2 + \lambda\norm{\mat{X}}_*, where the nuclear norm ∥X∥∗\norm{\mat{X}}_* (sum of singular values) is the matrix analogue of ℓ1\ell_1.

In the previous lesson we handled gg with subgradients. The subgradient method works but pays a high price: rate O(1/k)\bigO(1/\sqrt{k}) even when ff is smooth and, worse, in practice it never produces exact zeros: iterates bounce around the corner without landing on it. For a sparse model, a method that returns no zero coordinates misses the most valuable part of the problem.

This lesson’s idea is not to approximate gg at all. Leave ff to the gradient and solve gg exactly with an elementary operation, the proximal operator. For ℓ1\ell_1 this is one line of code; for the nuclear norm, an SVD. The resulting method retains the form of gradient descent, converges at O(1/k)\bigO(1/k) (and with acceleration, at O(1/k2)\bigO(1/k^2), which is optimal) and lands exactly on zeros.

The proximal operator

Start with one variable. We want to reduce g(x)=∣x∣g(x) = \abs{x} with step x←x−λsx \leftarrow x - \lambda s, where ss is a subgradient. From x=0.3x = 0.3 with λ=1\lambda = 1, the explicit step gives 0.3−1=−0.70.3 - 1 = -0.7: it crossed the vertex and ended farther away. An implicit step does something else: it finds x+x^+ such that

x+=x−λs+,s+∈∂g(x+),x^+ = x - \lambda s^+, \qquad s^+ \in \partial g(x^+),

so the subgradient is evaluated at the destination, not the starting point. This is analogous to backward versus forward Euler and has the same advantage: it cannot cross the vertex. If the vertex is within reach, it stays there. Passing from the equation to the minimization problem is immediate and defines the proximal operator.

Proof

The function h(x)=g(x)+12λ∥x−v∥2h(\vb{x}) = g(\vb{x}) + \frac{1}{2\lambda}\norm{\vb{x} - \vb{v}}^2 is proper and closed. A proper closed convex function has an affine lower bound, g(x)≥⟨a,x⟩+bg(\vb{x}) \ge \inner{\vb{a}}{\vb{x}} + b, so h(x)≥⟨a,x⟩+b+12λ∥x−v∥2→∞h(\vb{x}) \ge \inner{\vb{a}}{\vb{x}} + b + \frac{1}{2\lambda}\norm{\vb{x} - \vb{v}}^2 \to \infty as ∥x∥→∞\norm{\vb{x}} \to \infty: hh is coercive and lower semicontinuous, and attains its minimum. It is also (1/λ)(1/\lambda)-strongly convex, and a strongly convex function has at most one minimizer.

For the characterization, x\vb{x} minimizes hh iff 0∈∂h(x)\vb{0} \in \partial h(\vb{x}). Since the quadratic term is finite and differentiable throughout the space, the sum rule of subdifferential calculus gives ∂h(x)=∂g(x)+1λ(x−v)\partial h(\vb{x}) = \partial g(\vb{x}) + \frac{1}{\lambda}(\vb{x} - \vb{v}), and 0\vb{0} belongs to that sum exactly when (v−x)/λ∈∂g(x)(\vb{v} - \vb{x})/\lambda \in \partial g(\vb{x}).

∎

The characterization says v∈x+λ ∂g(x)\vb{v} \in \vb{x} + \lambda\,\partial g(\vb{x}), i.e. prox⁡λg=(I+λ ∂g)−1\operatorname{prox}_{\lambda g} = (\mat{I} + \lambda\,\partial g)^{-1}: the proximal operator is the inverse of “identity plus λ\lambda times the subdifferential”. This is why it is called the implicit step and why it exists and is unique even when ∂g\partial g is multivalued: I+λ ∂g\mat{I} + \lambda\,\partial g can always be inverted.

InteractiveThe proximal operator as an implicit step
The implicit step: min⁡x  g(x)+12λ(x−v)2\min_x\; g(x) + \frac{1}{2\lambda}(x - v)^2
v
The curve v↦prox⁡λg(v)v \mapsto \operatorname{prox}_{\lambda g}(v)
  • gg
  • 12λ(x−v)2\frac{1}{2\lambda}(x - v)^2
  • sum and its minimum
  • amount removed by the proximal
Function gg
1.40
0.60
v = 1.40
x=prox⁡λg(v)x = \operatorname{prox}_{\lambda g}(v)0.800
Amount removed: v−xv - x0.600
(v−x)/λ(v - x)/\lambda1.000
∂g(x)\partial g(x){1.00}
(v−x)/λ∈∂g(x)(v - x)/\lambda \in \partial g(x)yes
Outside the dead zone the minimum lies on the linear branch: x=v−λ sgn(v)x = v - \lambda\,\mathrm{sgn}(v). The proximal moves vv toward the origin by λ\lambda.
On the left, the function gg (gray), parabola 12λ(x−v)2\frac{1}{2\lambda}(x - v)^2 centered at vv (dashed blue), and their sum (magenta): the proximal point minimizes the sum, and the red arrow shows what is removed from vv. On the right the curve v↦prox⁡λg(v)v \mapsto \operatorname{prox}_{\lambda g}(v) is traced. With ∣x∣\abs{x}, drag vv until the magenta point sticks to the vertex: within the dead zone the proximal point is exactly 00. With the box, the curve is projection and does not depend on λ\lambda. With the hinge, the proximal point sticks at the corner. With the last function, which is nonconvex, the curve jumps: without convexity the proximal operator is no longer continuous, losing the guarantees that follow.

As you move vv in the figure, look at the readouts below. The last checks the theorem’s optimality condition: the quotient (v−x)/λ(v - x)/\lambda must lie in the subdifferential of gg at xx. Where gg is differentiable, the subdifferential is one point and the proximal operator solves an equation; at a corner it is an interval, and the longer it is, the more values of vv land on that corner. This gives the lesson’s central phenomenon: corners of gg trap the proximal point, and the corners of ℓ1\ell_1 are at zero.

Two properties will be used below. For g=0g = 0, prox⁡λg\operatorname{prox}_{\lambda g} is the identity; and the proximal operator is stronger than merely nonexpansive.

Proof

By the characterization, (u−x)/λ∈∂g(x)(\vb{u} - \vb{x})/\lambda \in \partial g(\vb{x}) and (v−y)/λ∈∂g(y)(\vb{v} - \vb{y})/\lambda \in \partial g(\vb{y}). A convex function’s subdifferential is a monotone operator: ⟨sx−sy,x−y⟩≥0\inner{\vb{s}_x - \vb{s}_y}{\vb{x} - \vb{y}} \ge 0 (add the two subgradient inequalities). Multiplying by λ\lambda, ⟨(u−v)−(x−y),x−y⟩≥0\inner{(\vb{u} - \vb{v}) - (\vb{x} - \vb{y})}{\vb{x} - \vb{y}} \ge 0, the first inequality. The second follows from Cauchy–Schwarz: ∥x−y∥2≤∥u−v∥∥x−y∥\norm{\vb{x} - \vb{y}}^2 \le \norm{\vb{u} - \vb{v}}\norm{\vb{x} - \vb{y}}.

∎

A catalog of proximal operators

Calculating a proximal operator solves a small problem, and for functions used in practice this has a closed-form solution. The table collects those you need; here t>0t > 0 is the proximal parameter and functions are applied coordinatewise where indicated.

ggprox⁡tg(v)\operatorname{prox}_{t g}(\vb{v})Name
00v\vb{v}identity
∥x∥1\norm{\vb{x}}_1sgn⁡(vi)max⁡(∣vi∣−t, 0)\operatorname{sgn}(v_i)\max(\abs{v_i} - t,\, 0)soft thresholding
12∥x∥22\frac12\norm{\vb{x}}_2^2v/(1+t)\vb{v}/(1 + t)shrinkage
∥x∥2\norm{\vb{x}}_2(1−t/∥v∥2)+ v\big(1 - t/\norm{\vb{v}}_2\big)_+\,\vb{v}block thresholding
ιC\iota_CPC(v)P_C(\vb{v}), projection onto CCprojection
ι[a,b]n\iota_{[a,b]^n}clip⁡(vi,a,b)\operatorname{clip}(v_i, a, b)clipping
∥X∥∗\norm{\mat{X}}_*U diag⁡((σi−t)+)V⊤\mat{U}\,\operatorname{diag}\big((\sigma_i - t)_+\big)\mat{V}\Tsingular-value thresholding
ρ∥x∥1+1−ρ2∥x∥22\rho\norm{\vb{x}}_1 + \frac{1-\rho}{2}\norm{\vb{x}}_2^2sgn⁡(vi)(∣vi∣−tρ)+/(1+t(1−ρ))\operatorname{sgn}(v_i)(\abs{v_i} - t\rho)_+/(1 + t(1 - \rho))elastic net
1[x≠0]\ind[\vb{x} \neq \vb{0}] (nonconvex)v\vb{v} if ∥v∥>2t\norm{\vb{v}} > \sqrt{2t}, otherwise 0\vb{0}hard thresholding

Two calculus rules go a long way. If g(x)=∑igi(xi)g(\vb{x}) = \sum_i g_i(x_i) is separable, minimization splits into one problem per coordinate and the proximal operator applies coordinatewise (giving ∥x∥1\norm{\vb{x}}_1 from ∣x∣\abs{x}). And if the argument is shifted, prox⁡t g(⋅−a)(v)=a+prox⁡tg(v−a)\operatorname{prox}_{t\,g(\cdot - \vb{a})}(\vb{v}) = \vb{a} + \operatorname{prox}_{t g}(\vb{v} - \vb{a}). There is no general sum rule: the proximal operator of g1+g2g_1 + g_2 is not the composition of the two (you will check this in common mistakes).

Soft thresholding

The case that gives this lesson and its star algorithm their name is the ℓ1\ell_1 norm. One variable suffices: minimize ϕ(x)=t∣x∣+12(x−v)2\phi(x) = t\abs{x} + \frac12(x - v)^2. For x>0x > 0, ϕ\phi is a parabola with derivative t+x−vt + x - v, zero at x=v−tx = v - t; that point is admissible only if v>tv > t. For x<0x < 0, the derivative is −t+x−v-t + x - v, zero at x=v+tx = v + t, admissible only if v<−tv < -t. If ∣v∣≤t\abs{v} \le t, each branch’s parabola keeps falling toward the vertex and the minimum is at x=0x = 0. In summary:

It is continuous, piecewise linear, and has three regions: a dead zone [−t,t][-t, t] where the result is exactly zero, and two branches moving the value a distance tt toward the origin. Compare hard thresholding (zero small values and leave large ones alone), the proximal operator of the ℓ0\ell_0 “norm”, which is discontinuous. This difference matters when discussing convexity.

One interpretation explains almost everything: soft thresholding is identity minus clipping, St(v)=v−clip⁡(v,−t,t)S_t(v) = v - \operatorname{clip}(v, -t, t). The Moreau decomposition will soon explain why.

The proximal operator of the unsquared Euclidean norm, ∥x∥2\norm{\vb{x}}_2, does the same in higher dimensions: if ∥v∥≤t\norm{\vb{v}} \le t it returns 0\vb{0}; otherwise it shrinks the entire vector a length tt toward the origin while retaining its direction. This is block thresholding, used to zero whole groups of coefficients at once (group lasso). The proximal operator of an indicator is always a projection: if g=ιCg = \iota_C, then g(x)g(\vb{x}) is +∞+\infty outside CC and 00 inside, so the problem reduces to minimizing 12λ∥x−v∥2\frac{1}{2\lambda}\norm{\vb{x} - \vb{v}}^2 over CC, whose solution is the Euclidean projection PC(v)P_C(\vb{v}), without involving λ\lambda. The proximal operator thus generalizes projection: projection is the proximal operator of a constraint.

The nuclear norm: singular-value thresholding

For matrices, the analogue of ℓ1\ell_1 is the nuclear norm ∥X∥∗=∑iσi(X)\norm{\mat{X}}_* = \sum_i \sigma_i(\mat{X}), and its proximal operator is soft thresholding… applied to singular values.

Proof

Use the nuclear norm’s subdifferential description (Watson, 1992): if X=U1Σ1V1⊤\mat{X} = \mat{U}_1\mat{\Sigma}_1\mat{V}_1\T is a compact SVD of X\mat{X} with positive singular values, ∂∥X∥∗={U1V1⊤+W:U1⊤W=0, WV1=0, ∥W∥2≤1}\partial\norm{\mat{X}}_* = \{\mat{U}_1\mat{V}_1\T + \mat{W} : \mat{U}_1\T\mat{W} = \mat{0},\ \mat{W}\mat{V}_1 = \mat{0},\ \norm{\mat{W}}_2 \le 1\}. Split Y=U1Σ1V1⊤+U2Σ2V2⊤\mat{Y} = \mat{U}_1\mat{\Sigma}_1\mat{V}_1\T + \mat{U}_2\mat{\Sigma}_2\mat{V}_2\T, with Σ1\mat{\Sigma}_1 the singular values above tt and Σ2\mat{\Sigma}_2 the rest, and let X^=U1(Σ1−tI)V1⊤\hat{\mat{X}} = \mat{U}_1(\mat{\Sigma}_1 - t\mat{I})\mat{V}_1\T. Then

Y−X^=t U1V1⊤+U2Σ2V2⊤=t(U1V1⊤+W),W=U2(Σ2/t)V2⊤.\mat{Y} - \hat{\mat{X}} = t\,\mat{U}_1\mat{V}_1\T + \mat{U}_2\mat{\Sigma}_2\mat{V}_2\T = t\big(\mat{U}_1\mat{V}_1\T + \mat{W}\big), \qquad \mat{W} = \mat{U}_2(\mat{\Sigma}_2/t)\mat{V}_2\T.

We have U1⊤W=0\mat{U}_1\T\mat{W} = \mat{0}, WV1=0\mat{W}\mat{V}_1 = \mat{0} and ∥W∥2=σmax⁡(Σ2)/t≤1\norm{\mat{W}}_2 = \sigma_{\max}(\mat{\Sigma}_2)/t \le 1. Thus (Y−X^)/t∈∂∥X^∥∗(\mat{Y} - \hat{\mat{X}})/t \in \partial\norm{\hat{\mat{X}}}_* and by the proximal characterization, X^=prox⁡t∥⋅∥∗(Y)\hat{\mat{X}} = \operatorname{prox}_{t\norm{\cdot}_*}(\mat{Y}).

∎

The proof also shows the result: retain singular vectors, subtract tt from each singular value and zero those below tt. Thus the nuclear norm’s proximal operator reduces rank: output rank is the number of singular values of Y\mat{Y} exceeding tt.

InteractiveSingular-value thresholding
Observed YY
prox⁡τ∥⋅∥∗(Y)\operatorname{prox}_{\tau\norm{\cdot}_*}(Y)
True X0X_0
Singular values of YY and after thresholding
0714123456789101112noise edgeτ
Error ∥X−X0∥F\norm{X - X_0}_F versus τ\tau
  • soft (proximal)
  • hard (truncate)
  • observed singular values
  • after thresholding
  • signal singular values
  • positive entry
  • negative entry
3.00
3
0.50
Operation on singular values
Rank after thresholding3
∥X∥∗\norm{X}_* after thresholding20.50
Observation error ∥Y−X0∥F\norm{Y - X_0}_F5.89
Error after thresholding ∥X−X0∥F\norm{X - X_0}_F5.48
Best τ\tau (on grid) and its error1.4 → 4.15
The proximal retained exactly the 33 singular values of the signal and the reconstruction (5.485.48) improves on the observation (5.895.89).
Observe Y=X0+Y = X_0 + noise, with X0X_0 of rank rr (blue positive, red negative). Light bars are singular values of YY; magenta bars are those after thresholding; circles are the true signal's values. With the initial τ\tau, thresholded rank is already rr: noise concentrated in small singular values disappears and reconstruction approaches X0X_0. Lower τ\tau to admit spurious singular values; raise it and start erasing signal. Switch to hard thresholding (truncate without shrinking) and compare error curves: hard retains the size of large singular values and wins here; soft shrinks them by τ\tau, so its best τ\tau is smaller. Then increase σ\sigma until noise masks the signal.

The Moreau envelope

The proximal operator is computed by minimization; the value of that minimum is another very useful function.

For g=∣⋅∣g = \abs{\cdot} and ∣v∣≤λ\abs{v} \le \lambda the minimum is attained at x=0x = 0 and equals v2/(2λ)v^2/(2\lambda); for ∣v∣>λ\abs{v} > \lambda it is attained at v−λ sgn⁡(v)v - \lambda\,\operatorname{sgn}(v) and equals ∣v∣−λ/2\abs{v} - \lambda/2. This is the Huber function: a parabola rounding the tip of ∣x∣\abs{x} and continuing as straight lines. The envelope smooths the corner without moving the minimum.

Proof

(1) (x,v)↦g(x)+12λ∥x−v∥2(\vb{x}, \vb{v}) \mapsto g(\vb{x}) + \frac{1}{2\lambda}\norm{\vb{x} - \vb{v}}^2 is jointly convex, and minimizing a jointly convex function with respect to one variable gives a convex function of the other. It is finite because the minimum exists and is attained (previous theorem), and Mλg(v)≤g(v)M_{\lambda g}(\vb{v}) \le g(\vb{v}) by taking x=v\vb{x} = \vb{v}.

(2) Let p=prox⁡λg(v)\vb{p} = \operatorname{prox}_{\lambda g}(\vb{v}) and s=(v−p)/λ\vb{s} = (\vb{v} - \vb{p})/\lambda. Using p\vb{p} as candidate in the envelope of another point w\vb{w}, M(w)≤g(p)+12λ∥p−w∥2M(\vb{w}) \le g(\vb{p}) + \frac{1}{2\lambda}\norm{\vb{p} - \vb{w}}^2. Subtract M(v)=g(p)+12λ∥p−v∥2M(\vb{v}) = g(\vb{p}) + \frac{1}{2\lambda}\norm{\vb{p} - \vb{v}}^2 and expand ∥p−w∥2=∥(p−v)+(v−w)∥2\norm{\vb{p} - \vb{w}}^2 = \norm{(\vb{p} - \vb{v}) + (\vb{v} - \vb{w})}^2 to obtain

M(w)≤M(v)+⟨s,w−v⟩+12λ∥w−v∥2for all w.(A)M(\vb{w}) \le M(\vb{v}) + \inner{\vb{s}}{\vb{w} - \vb{v}} + \frac{1}{2\lambda}\norm{\vb{w} - \vb{v}}^2 \qquad \text{for all } \vb{w}. \tag{A}

If u∈∂M(v)\vb{u} \in \partial M(\vb{v}), convexity gives M(w)≥M(v)+⟨u,w−v⟩M(\vb{w}) \ge M(\vb{v}) + \inner{\vb{u}}{\vb{w} - \vb{v}}, and with (A), ⟨u−s,w−v⟩≤12λ∥w−v∥2\inner{\vb{u} - \vb{s}}{\vb{w} - \vb{v}} \le \frac{1}{2\lambda}\norm{\vb{w} - \vb{v}}^2. Taking w=v+τ(u−s)\vb{w} = \vb{v} + \tau(\vb{u} - \vb{s}) with τ→0+\tau \to 0^+ yields ∥u−s∥2≤τ2λ∥u−s∥2→0\norm{\vb{u} - \vb{s}}^2 \le \frac{\tau}{2\lambda}\norm{\vb{u} - \vb{s}}^2 \to 0, so u=s\vb{u} = \vb{s}: the subdifferential is a singleton and MM is differentiable with gradient s\vb{s}. For the Lipschitz constant, the gradient is (I−prox⁡)/λ(\mat{I} - \operatorname{prox})/\lambda; if x\vb{x} and y\vb{y} are the proximal points of u\vb{u} and v\vb{v}, firm nonexpansiveness gives

∥(u−x)−(v−y)∥2=∥u−v∥2−2⟨u−v,x−y⟩+∥x−y∥2≤∥u−v∥2−∥x−y∥2≤∥u−v∥2.\norm{(\vb{u} - \vb{x}) - (\vb{v} - \vb{y})}^2 = \norm{\vb{u} - \vb{v}}^2 - 2\inner{\vb{u} - \vb{v}}{\vb{x} - \vb{y}} + \norm{\vb{x} - \vb{y}}^2 \le \norm{\vb{u} - \vb{v}}^2 - \norm{\vb{x} - \vb{y}}^2 \le \norm{\vb{u} - \vb{v}}^2.

(3) Mλg(v)≥inf⁡gM_{\lambda g}(\vb{v}) \ge \inf g for all v\vb{v}, and if v\vb{v} minimizes gg then Mλg(v)≤g(v)=min⁡gM_{\lambda g}(\vb{v}) \le g(\vb{v}) = \min g: the minimum value is the same and v\vb{v} minimizes MM. Conversely, if v\vb{v} minimizes MM, then ∇M(v)=0\grad M(\vb{v}) = \vb{0}, i.e. prox⁡λg(v)=v\operatorname{prox}_{\lambda g}(\vb{v}) = \vb{v}, and the proximal characterization means 0∈∂g(v)\vb{0} \in \partial g(\vb{v}). This chain also shows the final statement.

∎
InteractiveMoreau envelope
gg and its envelope MλgM_{\lambda g}
minimizers
Its gradient, 1/λ1/\lambda-Lipschitz
  • gg
  • MλgM_{\lambda g}
  • contact parabola (curvature 1/λ1/\lambda) and line of slope 1/λ1/\lambda
  • minimizers of gg and MλgM_{\lambda g}
  • numerical derivative
Function gg
0.80
1.60
Mλg(x)M_{\lambda g}(x)1.200
∇Mλg(x)=(x−prox⁡(x))/λ\nabla M_{\lambda g}(x) = (x - \operatorname{prox}(x))/\lambda1.000
Numerical derivative of MM1.000
Maximum formula error (grid)3.1e-5
Maximum slope of ∇M\nabla M1.25
Bound 1/λ1/\lambda1.25
The envelope of ∣x∣|x| is the Huber function: parabola x2/(2λ)x^2/(2\lambda) for ∣x∣≤λ|x| \le \lambda and line ∣x∣−λ/2|x| - \lambda/2 outside. With λ=0.80\lambda = 0.80 the valley is rounded on [−0.80,0.80][-0.80, 0.80] and remains at 00.
On the left, gg and its envelope MλgM_{\lambda g}. The contact parabola has curvature 1/λ1/\lambda, its vertex lies on the graph of gg (at prox⁡(x)\operatorname{prox}(x)), and it stays above the envelope touching it at xx: this is inequality (A) in the proof, hence the envelope is 1λ\frac{1}{\lambda}-smooth. The violet band (a point if the minimizer is unique) marks minimizers, the same for gg and MλgM_{\lambda g}. On the right, the envelope gradient (x−prox⁡(x))/λ(x - \operatorname{prox}(x))/\lambda against a numerical derivative (circles), and the line with slope 1/λ1/\lambda: the curve never rises faster. Increase λ\lambda with ∣x∣\abs{x} and recognize the Huber function; with the box, the envelope is half the squared distance divided by λ\lambda.

Two readings of the theorem. First, smoothing: the envelope is a differentiable version of gg that resembles it more as λ\lambda gets smaller (Mλg↑gM_{\lambda g} \uparrow g as λ↓0\lambda \downarrow 0), and its smoothness worsens as 1/λ1/\lambda. This is the universal smoothing tradeoff: accuracy versus conditioning. Second, an identity unifies the lesson’s two concepts:

v−λ∇Mλg(v)=prox⁡λg(v).\vb{v} - \lambda\grad M_{\lambda g}(\vb{v}) = \operatorname{prox}_{\lambda g}(\vb{v}).

The proximal operator is a gradient descent step on the envelope with step λ\lambda, the largest allowed by its 1/λ1/\lambda smoothness. Iterating xk+1=prox⁡λg(xk)\vb{x}_{k+1} = \operatorname{prox}_{\lambda g}(\vb{x}_k) (the proximal point method) is thus gradient descent on a smooth function with the same minimizers as gg, converging to one at gradient methods’ O(1/k)\bigO(1/k) rate.

The Moreau decomposition

We still need to explain “soft thresholding equals identity minus clipping”. It is an instance of a general law relating the proximal operator of gg to that of its conjugate g∗g^*.

Proof

Let x=prox⁡λg(v)\vb{x} = \operatorname{prox}_{\lambda g}(\vb{v}) and u=(v−x)/λ\vb{u} = (\vb{v} - \vb{x})/\lambda. By the characterization, u∈∂g(x)\vb{u} \in \partial g(\vb{x}), and by Fenchel–Young equality for closed convex functions this is equivalent to x∈∂g∗(u)\vb{x} \in \partial g^*(\vb{u}). Now x=v−λu=λ(v/λ−u)\vb{x} = \vb{v} - \lambda\vb{u} = \lambda(\vb{v}/\lambda - \vb{u}), so (v/λ−u)/(1/λ)∈∂g∗(u)(\vb{v}/\lambda - \vb{u})/(1/\lambda) \in \partial g^*(\vb{u}), characterizing u=prox⁡g∗/λ(v/λ)\vb{u} = \operatorname{prox}_{g^*/\lambda}(\vb{v}/\lambda). Substituting, v=x+λu\vb{v} = \vb{x} + \lambda\vb{u}.

∎

Apply it to g=∥⋅∥1g = \norm{\cdot}_1: its conjugate is the indicator of the unit ℓ∞\ell_\infty ball, g∗=ι[−1,1]ng^* = \iota_{[-1,1]^n}, whose proximal operator is clipping regardless of parameter. With λ=t\lambda = t,

prox⁡t∥⋅∥1(v)=v−t clip⁡(v/t, −1, 1)=v−clip⁡(v,−t,t).\operatorname{prox}_{t\norm{\cdot}_1}(\vb{v}) = \vb{v} - t\,\operatorname{clip}(\vb{v}/t,\, -1,\, 1) = \vb{v} - \operatorname{clip}(\vb{v}, -t, t).

Soft thresholding is what remains after clipping. For the Euclidean norm, g∗g^* is the unit ball indicator and block thresholding is v\vb{v} minus its projection onto the ball of radius tt. For the ℓ∞\ell_\infty norm, whose conjugate is the ℓ1\ell_1 ball indicator, the proximal operator reduces to projection onto the ℓ1\ell_1 ball: the decomposition transfers a difficult calculation to the other side when it is easier.

Proximal gradient (ISTA)

Return to the composite problem min⁡f+g\min f + g. Assumptions throughout: ff is convex and differentiable throughout Rn\R^n with LL-Lipschitz gradient (it is LL-smooth), gg is proper, closed and convex, and the problem has a minimizer x⋆\vb{x}^\star. The method follows a gradient descent idea: the descent lemma states f(x)≤f(y)+⟨∇f(y),x−y⟩+L2∥x−y∥2f(\vb{x}) \le f(\vb{y}) + \inner{\grad f(\vb{y})}{\vb{x} - \vb{y}} + \frac{L}{2}\norm{\vb{x} - \vb{y}}^2, a quadratic model majorizing ff. Gradient descent minimizes that model. For f+gf + g minimize the model plus unchanged gg:

x+=arg min⁡x  g(x)+my(x)\vb{x}^+ = \argmin_{\vb{x}} \; g(\vb{x}) + m_{\vb{y}}(\vb{x})
With my(x)=f(y)+⟨∇f(y),x−y⟩+L2∥x−y∥2m_{\vb{y}}(\vb{x}) = f(\vb{y}) + \inner{\grad f(\vb{y})}{\vb{x} - \vb{y}} + \frac{L}{2}\norm{\vb{x} - \vb{y}}^2, the quadratic model of ff at y\vb{y} that majorizes ff by the descent lemma. The function gg is not approximated.
1/3

Notice the threshold: ηλ\eta\lambda, not λ\lambda. The proximal parameter is the step η\eta, and regularization λ\lambda is already inside g=λ∥⋅∥1g = \lambda\norm{\cdot}_1. With g=λ∥⋅∥1g = \lambda\norm{\cdot}_1 and η=1/L\eta = 1/L, the threshold at each iteration is λ/L\lambda/L.

Three familiar cases are special cases, a good sign that the design is right:

  • g=0g = 0: the proximal operator is identity, leaving gradient descent.
  • g=ιCg = \iota_C: the proximal operator is projection, leaving projected gradient.
  • f=0f = 0: the proximal point method remains, xk+1=prox⁡ηg(xk)\vb{x}_{k+1} = \operatorname{prox}_{\eta g}(\vb{x}_k).

The method has the desired property: its fixed points are exactly the solutions.

Proof

By the proximal characterization, equality is equivalent to (x⋆−η∇f(x⋆)−x⋆)/η∈∂g(x⋆)\big(\vb{x}^\star - \eta\grad f(\vb{x}^\star) - \vb{x}^\star\big)/\eta \in \partial g(\vb{x}^\star), i.e. −∇f(x⋆)∈∂g(x⋆)-\grad f(\vb{x}^\star) \in \partial g(\vb{x}^\star), or 0∈∇f(x⋆)+∂g(x⋆)=∂F(x⋆)\vb{0} \in \grad f(\vb{x}^\star) + \partial g(\vb{x}^\star) = \partial F(\vb{x}^\star), convex optimality.

∎

The O(1/k)\bigO(1/k) rate

The proof needs a single lemma, valid for both ISTA and FISTA. It is the composite analogue of the descent lemma in the smooth case.

Proof

Three inequalities. The descent lemma gives f(x+)≤f(y)+⟨∇f(y),x+−y⟩+L2∥x+−y∥2f(\vb{x}^+) \le f(\vb{y}) + \inner{\grad f(\vb{y})}{\vb{x}^+ - \vb{y}} + \frac{L}{2}\norm{\vb{x}^+ - \vb{y}}^2. Convexity of ff gives f(y)≤f(z)+⟨∇f(y),y−z⟩f(\vb{y}) \le f(\vb{z}) + \inner{\grad f(\vb{y})}{\vb{y} - \vb{z}}. Added together, f(x+)≤f(z)+⟨∇f(y),x+−z⟩+L2∥x+−y∥2f(\vb{x}^+) \le f(\vb{z}) + \inner{\grad f(\vb{y})}{\vb{x}^+ - \vb{z}} + \frac{L}{2}\norm{\vb{x}^+ - \vb{y}}^2. By the proximal characterization, s=L(y−x+)−∇f(y)∈∂g(x+)\vb{s} = L(\vb{y} - \vb{x}^+) - \grad f(\vb{y}) \in \partial g(\vb{x}^+), and the subgradient inequality gives g(x+)≤g(z)+⟨s,x+−z⟩g(\vb{x}^+) \le g(\vb{z}) + \inner{\vb{s}}{\vb{x}^+ - \vb{z}}. Adding the last two cancels the ∇f(y)\grad f(\vb{y}) term:

F(x+)≤F(z)+L2∥x+−y∥2+L⟨y−x+,x+−z⟩.F(\vb{x}^+) \le F(\vb{z}) + \frac{L}{2}\norm{\vb{x}^+ - \vb{y}}^2 + L\inner{\vb{y} - \vb{x}^+}{\vb{x}^+ - \vb{z}}.

Finally, ∥y−z∥2=∥y−x+∥2+2⟨y−x+,x+−z⟩+∥x+−z∥2\norm{\vb{y} - \vb{z}}^2 = \norm{\vb{y} - \vb{x}^+}^2 + 2\inner{\vb{y} - \vb{x}^+}{\vb{x}^+ - \vb{z}} + \norm{\vb{x}^+ - \vb{z}}^2, whence L2∥x+−y∥2+L⟨y−x+,x+−z⟩=L2(∥y−z∥2−∥x+−z∥2)\frac{L}{2}\norm{\vb{x}^+ - \vb{y}}^2 + L\inner{\vb{y} - \vb{x}^+}{\vb{x}^+ - \vb{z}} = \frac{L}{2}\big(\norm{\vb{y} - \vb{z}}^2 - \norm{\vb{x}^+ - \vb{z}}^2\big).

∎
Proof

Apply the lemma with y=xk\vb{y} = \vb{x}_k and x+=xk+1\vb{x}^+ = \vb{x}_{k+1}. With z=xk\vb{z} = \vb{x}_k it gives F(xk+1)≤F(xk)−L2∥xk+1−xk∥2F(\vb{x}_{k+1}) \le F(\vb{x}_k) - \frac{L}{2}\norm{\vb{x}_{k+1} - \vb{x}_k}^2: ISTA is a (monotone) descent method. With z=x⋆\vb{z} = \vb{x}^\star, F(xk+1)−F⋆≤L2(∥xk−x⋆∥2−∥xk+1−x⋆∥2)F(\vb{x}_{k+1}) - F^\star \le \frac{L}{2}\big(\norm{\vb{x}_k - \vb{x}^\star}^2 - \norm{\vb{x}_{k+1} - \vb{x}^\star}^2\big). Summing from 00 to k−1k-1, the right side telescopes and ∑j=1k(F(xj)−F⋆)≤L2∥x0−x⋆∥2\sum_{j=1}^{k}\big(F(\vb{x}_j) - F^\star\big) \le \frac{L}{2}\norm{\vb{x}_0 - \vb{x}^\star}^2. Since F(xj)F(\vb{x}_j) decreases, each summand is at least F(xk)−F⋆F(\vb{x}_k) - F^\star, giving k (F(xk)−F⋆)≤L2∥x0−x⋆∥2k\,\big(F(\vb{x}_k) - F^\star\big) \le \frac{L}{2}\norm{\vb{x}_0 - \vb{x}^\star}^2.

∎

The rate matches gradient descent in the smooth case: adding gg and solving it with the proximal operator costs nothing in the bound. If ff is also μ\mu-strongly convex, convergence is linear, with factor 1−μ/L1 - \mu/L in ∥xk−x⋆∥2\norm{\vb{x}_k - \vb{x}^\star}^2 (Beck, 2017, ch. 10), as in the smooth case.

InteractiveThe proximal step in 2D
Contours of F=f+λ∥x∥1F = f + \lambda\norm{x}_1
x*
F(xk)−F⋆F(\vb{x}_k) - F^\star (logarithmic scale)
  • ISTA
  • FISTA
  • ISTA
  • FISTA
  • gradient step (hollow point)
  • minimum x⋆x^\star
0.10
60
1.00
Method
iteration k = 60
F(xk)−F⋆F(\vb{x}_k) - F^\star, ISTA0
F(xk)−F⋆F(\vb{x}_k) - F^\star, FISTA0
Exact x2=0x_2 = 0 in ISTAyes (exact)
Exact x2=0x_2 = 0 in FISTAyes (exact)
Iterations where FISTA increases FF5
The minimum lies on the axis x2=0x_2 = 0: the proximal lands exactly there (soft thresholding), whereas gradient descent on f+λ∥x∥1f + \lambda\norm{x}_1 would only bounce around it.
A poorly conditioned quadratic plus λ∥x∥1\lambda\norm{\vb{x}}_1. At each iteration ISTA takes a gradient step (dashed arrow to the hollow point) and then applies the proximal operator (solid arrow), landing exactly on the x2=0x_2 = 0 axis. Drag the violet starting point and play. Compare ISTA with FISTA (on the right curve, the latter falls much faster; the trajectory shows momentum's effect) and enable restart. Then raise ηL\eta L above 1 and 2: what happens to ISTA and FISTA?

The safe step η=1/L\eta = 1/L is the one proved. The figure shows why the actual limit is 2/L2/L: in a direction of curvature LL, the gradient step multiplies error by 1−ηL1 - \eta L, whose absolute value is less than 1 only if η<2/L\eta < 2/L. The proximal operator cannot fix a diverging step, because it is nonexpansive and cannot recover what the gradient has already amplified.

FISTA: acceleration for composite problems

Nesterov acceleration improved O(1/k)\bigO(1/k) to O(1/k2)\bigO(1/k^2) in the smooth case by extrapolating before evaluating the gradient. Beck and Teboulle (2009) showed the same idea survives intact with a proximal operator in between, calling the result FISTA (Fast ISTA).

This is ISTA with one change: gradient and proximal operator are evaluated at extrapolated yk\vb{y}_k instead of xk\vb{x}_k. Per-iteration cost is the same. With g=0g = 0 this is exactly lesson 9’s Nesterov acceleration (with indices shifted by one).

Proof

Two properties of sequence tkt_k: tk+12−tk+1=tk2t_{k+1}^2 - t_{k+1} = t_k^2 (from the definition, since (2tk+1−1)2=1+4tk2(2t_{k+1} - 1)^2 = 1 + 4t_k^2) and tk≥(k+2)/2t_k \ge (k + 2)/2 (by induction, tk+1≥tk+12t_{k+1} \ge t_k + \frac12). Let ak=F(xk)−F⋆a_k = F(\vb{x}_k) - F^\star and, for k≥0k \ge 0, uk=tk−1xk−(tk−1−1)xk−1\vb{u}_k = t_{k-1}\vb{x}_k - (t_{k-1} - 1)\vb{x}_{k-1} (with u0=x0\vb{u}_0 = \vb{x}_0).

Apply the fundamental inequality at y=yk\vb{y} = \vb{y}_k with z=(1−1tk)xk+1tkx⋆\vb{z} = (1 - \frac{1}{t_k})\vb{x}_k + \frac{1}{t_k}\vb{x}^\star. By convexity of FF, F(z)−F⋆≤(1−1tk)akF(\vb{z}) - F^\star \le (1 - \frac{1}{t_k})a_k, so

ak+1≤(1−1tk)ak+L2(∥yk−z∥2−∥xk+1−z∥2).a_{k+1} \le \Big(1 - \frac{1}{t_k}\Big)a_k + \frac{L}{2}\Big(\norm{\vb{y}_k - \vb{z}}^2 - \norm{\vb{x}_{k+1} - \vb{z}}^2\Big).

Multiply by tk2t_k^2. We have tkz=(tk−1)xk+x⋆t_k\vb{z} = (t_k - 1)\vb{x}_k + \vb{x}^\star, and the definitions of yk\vb{y}_k and u\vb{u} give tkyk−tkz=uk−x⋆t_k\vb{y}_k - t_k\vb{z} = \vb{u}_k - \vb{x}^\star and tkxk+1−tkz=uk+1−x⋆t_k\vb{x}_{k+1} - t_k\vb{z} = \vb{u}_{k+1} - \vb{x}^\star. With tk2−tk=tk−12t_k^2 - t_k = t_{k-1}^2:

tk2ak+1+L2∥uk+1−x⋆∥2≤tk−12ak+L2∥uk−x⋆∥2(k≥1),t_k^2 a_{k+1} + \frac{L}{2}\norm{\vb{u}_{k+1} - \vb{x}^\star}^2 \le t_{k-1}^2 a_k + \frac{L}{2}\norm{\vb{u}_k - \vb{x}^\star}^2 \qquad (k \ge 1),

and for k=0k = 0 (with t0=1t_0 = 1), t02a1+L2∥u1−x⋆∥2≤L2∥x0−x⋆∥2t_0^2 a_1 + \frac{L}{2}\norm{\vb{u}_1 - \vb{x}^\star}^2 \le \frac{L}{2}\norm{\vb{x}_0 - \vb{x}^\star}^2. The quantity tk−12ak+L2∥uk−x⋆∥2t_{k-1}^2 a_k + \frac{L}{2}\norm{\vb{u}_k - \vb{x}^\star}^2 is a Lyapunov function: it does not increase. Thus tk−12ak≤L2∥x0−x⋆∥2t_{k-1}^2 a_k \le \frac{L}{2}\norm{\vb{x}_0 - \vb{x}^\star}^2, and tk−1≥(k+1)/2t_{k-1} \ge (k + 1)/2 yields the bound.

∎

This has the same structure as the smooth case: energy tk−12ak+L2∥uk−x⋆∥2t_{k-1}^2 a_k + \frac{L}{2}\norm{\vb{u}_k - \vb{x}^\star}^2 that the method does not let increase. The O(1/k2)\bigO(1/k^2) rate is optimal: no first-order method improves it in the class of convex problems with LL-Lipschitz gradient (lesson 9’s lower bound), so nothing better can be sought in this class using only gradients and proximal operators.

What FISTA does not promise

The theorem bounds F(xk)F(\vb{x}_k) from above with an envelope; it does not say FF falls at every iteration. Indeed it does not: momentum makes iterates overshoot the minimum and FF rise for several consecutive iterations, and the error curve ripples with peaks (visible on the previous figure’s logarithmic scale). ISTA, by contrast, is monotone, as proved. There are two remedies, as for smooth acceleration (adaptive restart):

  • Function restart. Whenever F(xk+1)>F(xk)F(\vb{x}_{k+1}) > F(\vb{x}_k), discard the step, set t=1t = 1 (erase momentum) and repeat from xk\vb{x}_k as an ISTA step, which cannot increase FF. The resulting monotone curve often converges faster in practice than FISTA without restart, especially when the problem is locally well conditioned, as lasso near its sparse solution. O’Donoghue and Candès (2015) proposed adaptive restart and analyzed it for strongly convex quadratics; their version only erases momentum and continues without repeating the step, so FF may rise on the restart iteration. Repeating the step as ISTA guarantees an exactly monotone curve; this lesson implements that variant.
  • Monotone variant (MFISTA). Keep the better of the new and previous candidates.

The theorem’s O(1/k2)\bigO(1/k^2) guarantee applies to FISTA without restart; restart gains monotonicity and observed speed, not a new bound. A later result (Chambolle and Dossal, 2015) also proved FISTA iterates converge (with sequence tk=(k+a−1)/at_k = (k + a - 1)/a for a>2a > 2), which was unknown for the original version.

Backtracking and stopping criterion

The method needs LL, which is rarely known: for lasso it is λmax⁡(X⊤X)/n\lambda_{\max}(\mat{X}\T\mat{X})/n, calculable but expensive; for logistic loss or a network loss it is a loose bound. The answer is as in backtracking line search: try estimate LkL_k and check what the proof actually uses, the descent lemma at the two points involved,

f(x+)≤f(yk)+⟨∇f(yk),x+−yk⟩+Lk2∥x+−yk∥2.f(\vb{x}^+) \le f(\vb{y}_k) + \inner{\grad f(\vb{y}_k)}{\vb{x}^+ - \vb{y}_k} + \frac{L_k}{2}\norm{\vb{x}^+ - \vb{y}_k}^2.

If it fails, multiply LkL_k by a factor γ>1\gamma > 1 (e.g. 2) and repeat. Each attempt costs a proximal operation and an evaluation of ff, never a new gradient. The proofs above use only that inequality, not the global constant, so they hold with LL replaced by LkL_k; FISTA additionally needs LkL_k nondecreasing (so tk2/Lkt_k^2/L_k behaves well). Thus even L0L_0 need not be correct: an underestimate corrects itself and an overestimate only makes steps too short. The final bound is the original with LL replaced by max⁡(L0,γL)\max(L_0, \gamma L).

We still need to know when to stop. As in the previous lesson, the norm of an arbitrary subgradient of FF is unsuitable: near a corner it does not tend to zero. A cheap criterion is the difference between iterates, ∥xk+1−xk∥/η\norm{\vb{x}_{k+1} - \vb{x}_k}/\eta, measuring fixed-point residual, but it does not bound F−F⋆F - F^\star. For lasso there is something much better: an optimality certificate from duality.

Proof

For feasible θ\vb{\theta}, ⟨θ,Xw⟩=⟨X⊤θ,w⟩≤∥X⊤θ∥∞∥w∥1≤a∥w∥1\inner{\vb{\theta}}{\mat{X}\vb{w}} = \inner{\mat{X}\T\vb{\theta}}{\vb{w}} \le \norm{\mat{X}\T\vb{\theta}}_\infty\norm{\vb{w}}_1 \le a\norm{\vb{w}}_1, so P(w)≥12∥y−Xw∥2+⟨θ,Xw⟩P(\vb{w}) \ge \frac12\norm{\vb{y} - \mat{X}\vb{w}}^2 + \inner{\vb{\theta}}{\mat{X}\vb{w}}. Check that, with r=y−Xw\vb{r} = \vb{y} - \mat{X}\vb{w},

12∥r∥2+⟨θ,Xw⟩−D(θ)=12∥r∥2−⟨θ,r⟩+12∥θ∥2=12∥r−θ∥2≥0,\frac12\norm{\vb{r}}^2 + \inner{\vb{\theta}}{\mat{X}\vb{w}} - D(\vb{\theta}) = \frac12\norm{\vb{r}}^2 - \inner{\vb{\theta}}{\vb{r}} + \frac12\norm{\vb{\theta}}^2 = \frac12\norm{\vb{r} - \vb{\theta}}^2 \ge 0,

using D(θ)=⟨y,θ⟩−12∥θ∥2D(\vb{\theta}) = \inner{\vb{y}}{\vb{\theta}} - \frac12\norm{\vb{\theta}}^2 and y=r+Xw\vb{y} = \vb{r} + \mat{X}\vb{w}. Scaling is feasible by construction, and the final claim follows from D(θ)≤P⋆D(\vb{\theta}) \le P^\star.

∎

The gap P(wk)−D(θk)P(\vb{w}_k) - D(\vb{\theta}_k) costs one extra matrix-vector product, is always at least the true error, and converges to zero with the iterates: a guaranteed stopping criterion. Also, w=0\vb{w} = \vb{0} is optimal iff a≥∥X⊤y∥∞a \ge \norm{\mat{X}\T\vb{y}}_\infty (optimality condition 0∈−X⊤y+a ∂∥0∥1\vb{0} \in -\mat{X}\T\vb{y} + a\,\partial\norm{\vb{0}}_1), so λmax⁡=∥X⊤y∥∞/n\lambda_{\max} = \norm{\mat{X}\T\vb{y}}_\infty/n is the value above which the model is empty and the natural scale for scanning λ\lambda values.

InteractiveEmerging sparsity
ISTA, iteration 300: 12 nonzero coefficients
FISTA, iteration 300: 12 nonzero coefficients
Suboptimality F(wk)−F⋆F(\vb{w}_k) - F^\star and theoretical bounds
  • ISTA
  • FISTA
  • ISTA bound
  • FISTA bound
Nonzero coefficients versus kk
  • ISTA
  • FISTA
  • optimum
  • ISTA
  • FISTA
  • true coefficient
  • coefficient exactly 0
0.158
iteration k = 300
Nonzero in ISTA12
Nonzero in FISTA12
Nonzero at optimum12
Final support fixed from (ISTA / FISTA)221 / 61
F(wk)−F⋆F(\vb{w}_k) - F^\star, ISTA1.7·10⁻⁵
F(wk)−F⋆F(\vb{w}_k) - F^\star, FISTA5.35·10⁻⁸
FISTA duality gap2.71·10⁻⁴
The optimum has 12 nonzero coefficients out of 50 (the true signal has 6). ISTA fixes its support at iteration 221; FISTA does so at 61.
Lasso with 40 observations and 50 correlated variables, only 6 truly nonzero (circles). Each bar panel shows ISTA and FISTA coefficients at iteration kk; gray points on the axis are exactly zero coefficients. Play with default regularization and compare how many iterations each method takes to fix the final support. Raise λ\lambda until almost all are zero, then lower it until support grows and ISTA no longer reaches it in 300 iterations. On the error curve, dashed lines are theoretical bounds L∥x⋆∥2/(2k)L\norm{\vb{x}^\star}^2/(2k) and 2L∥x⋆∥2/(k+1)22L\norm{\vb{x}^\star}^2/(k + 1)^2: both methods stay below. Enable restart and see FISTA's curve stop oscillating.

Something remarkable happens in that figure: ISTA and FISTA identify support (which coefficients are nonzero) before converging in value. With default regularization FISTA fixes final support at iteration 61, when FF error is of order 4×10−54\times 10^{-5} and still has about three orders of magnitude to fall in 300 iterations; ISTA does so at 221, with error of order 10−410^{-4}. This directly follows from the proximal operator: once wk\vb{w}_k is close enough to the solution, coefficients that are zero at the optimum fall in soft thresholding’s dead zone and become zero, remaining there. The method discovers structure and then refines values on it. A subgradient method cannot do this because it has no operation sending a value exactly to zero.

Implementation from scratch

Start with proximal operators and check the theory: soft thresholding minimizes its problem (against a fine grid), it is “identity minus clipping”, the envelope of ∣x∣\abs{x} is the Huber function, and its gradient is (v−prox⁡)/λ(v - \operatorname{prox})/\lambda.

[ ]Proximal operators and the Moreau envelopeBrowser
import numpy as np

def soft(v, t):
    """Umbral suave: prox de t*|.| aplicado componente a componente."""
    return np.sign(v) * np.maximum(np.abs(v) - t, 0.0)

def prox_l2(v, t):
    """Umbral por bloques: prox de t*||.||_2 (encoge el vector entero hacia 0)."""
    n = np.linalg.norm(v)
    return np.zeros_like(v) if n <= t else (1 - t / n) * v

def prox_box(v, lo, hi):
    """Proximal de la indicatriz de [lo, hi]^n: la proyección."""
    return np.clip(v, lo, hi)

# 1) comprobación por fuerza bruta: el proximal es el mínimo de g(x) + (x - v)^2/(2 lam)
rng = np.random.default_rng(0)
xs = np.linspace(-6, 6, 120001)
peor = 0.0
for _ in range(200):
    v, lam = rng.uniform(-4, 4), rng.uniform(0.1, 2)
    h = np.abs(xs) + (xs - v) ** 2 / (2 * lam)
    peor = max(peor, abs(xs[np.argmin(h)] - soft(v, lam)))
print(f"proximal de |x|: error máximo frente a la rejilla fina = {peor:.1e}")

# 2) el umbral suave es 'identidad menos recorte' (descomposición de Moreau con g* = indicatriz de [-1, 1])
v, lam = rng.normal(size=1000) * 3, 0.8
print("soft(v, lam) == v - lam*clip(v/lam, -1, 1):", np.allclose(soft(v, lam), v - lam * np.clip(v / lam, -1, 1)))

# 3) la envolvente de Moreau de |x| es la función de Huber, y su gradiente es (v - prox)/lam
def moreau_abs(v, lam):
    p = soft(v, lam)
    return np.abs(p) + (p - v) ** 2 / (2 * lam)

def huber(v, lam):
    return np.where(np.abs(v) <= lam, v ** 2 / (2 * lam), np.abs(v) - lam / 2)

v = np.linspace(-3, 3, 13)
print("envolvente == Huber:", np.allclose(moreau_abs(v, 0.8), huber(v, 0.8)))
eps = 1e-6
grad_num = (moreau_abs(v + eps, 0.8) - moreau_abs(v - eps, 0.8)) / (2 * eps)
print("gradiente numérico == (v - prox)/lam:", np.allclose(grad_num, (v - soft(v, 0.8)) / 0.8, atol=1e-5))
print("pendiente máxima del gradiente = 1/lam =", 1 / 0.8)

# 4) bloques y caja
w = np.array([3.0, 4.0])
print("prox de 2*||.||_2 en (3, 4):", prox_l2(w, 2.0), " norma:", np.linalg.norm(prox_l2(w, 2.0)))
print("prox de la caja [-1, 1] en (2.5, -0.3):", prox_box(np.array([2.5, -0.3]), -1, 1))

Now the algorithm. One loop serves ISTA and FISTA; function restart repeats the step without momentum from xk\vb{x}_k when FF rises. The problem is lasso with n<dn < d and correlated columns, where FISTA stands out. The objective uses scikit-learn’s normalization, 12n∥Xw−y∥2+λ∥w∥1\frac{1}{2n}\norm{\mat{X}\vb{w} - \vb{y}}^2 + \lambda\norm{\vb{w}}_1, enabling comparison below. The previous section’s duality gap is included.

[ ]ISTA and FISTA with restart: curves and boundsBrowser
import numpy as np

def prox_grad(f, grad_f, g, prox_g, x0, L, iters, accel=False, restart=False):
    """ISTA (accel=False) o FISTA (accel=True) con paso 1/L. prox_g(v, t) es el prox de t*g en v."""
    x, y, t = x0.copy(), x0.copy(), 1.0
    Fx = f(x) + g(x)
    xs, Fs = [x], [Fx]
    for _ in range(iters):
        x_new = prox_g(y - grad_f(y) / L, 1.0 / L)
        F_new = f(x_new) + g(x_new)
        if accel and restart and F_new > Fx:           # reinicio por función: repetir sin momento desde x
            t = 1.0
            x_new = prox_g(x - grad_f(x) / L, 1.0 / L)
            F_new = f(x_new) + g(x_new)
        if accel:
            t_new = (1 + np.sqrt(1 + 4 * t * t)) / 2
            y = x_new + ((t - 1) / t_new) * (x_new - x)
            t = t_new
        else:
            y = x_new
        x, Fx = x_new, F_new
        xs.append(x)
        Fs.append(Fx)
    return xs, np.array(Fs)

# ---- el problema: lasso 0.5/n ||Xw - y||^2 + lam ||w||_1 con columnas correlacionadas (rho = 0.8) y n < d
rng = np.random.default_rng(1)
n, d, k = 100, 200, 8
Z = rng.normal(size=(n, d))
X = Z.copy()
for j in range(1, d):
    X[:, j] = 0.8 * X[:, j - 1] + 0.6 * Z[:, j]
w_true = np.zeros(d)
w_true[rng.choice(d, k, replace=False)] = rng.choice([-1, 1], k) * rng.uniform(1, 2, k)
y = X @ w_true + 0.1 * rng.normal(size=n)

lam_max = np.max(np.abs(X.T @ y)) / n
lam = 0.03 * lam_max
f = lambda w: 0.5 / n * np.sum((X @ w - y) ** 2)
grad_f = lambda w: X.T @ (X @ w - y) / n
g = lambda w: lam * np.sum(np.abs(w))
prox_g = lambda v, t: soft(v, t * lam)                # el umbral es t*lam, con t = 1/L
L = np.linalg.norm(X, 2) ** 2 / n                     # constante de Lipschitz de grad_f
print(f"L = {L:.3f}   lambda = {lam:.4f} = 0.03 lambda_max")

def gap(w):
    """Gap de dualidad: P(w) - D(theta), con theta = residuo escalado a ||X^T theta||_inf <= n lam."""
    r = y - X @ w
    a = n * lam
    s = min(1.0, a / np.max(np.abs(X.T @ r)))
    theta = s * r
    primal = 0.5 * r @ r + a * np.sum(np.abs(w))
    dual = 0.5 * y @ y - 0.5 * np.sum((y - theta) ** 2)
    return (primal - dual) / n

x0 = np.zeros(d)
W_ref, F_ref = prox_grad(f, grad_f, g, prox_g, x0, L, 3000, accel=True, restart=True)
F_star, w_star = F_ref.min(), W_ref[int(np.argmin(F_ref))]
print(f"F* = {F_star:.8f}   no nulos en el óptimo: {np.count_nonzero(w_star)}   gap de dualidad = {gap(w_star):.1e}")

N = 1000
runs = {
    "ISTA": prox_grad(f, grad_f, g, prox_g, x0, L, N),
    "FISTA": prox_grad(f, grad_f, g, prox_g, x0, L, N, accel=True),
    "FISTA con reinicio": prox_grad(f, grad_f, g, prox_g, x0, L, N, accel=True, restart=True),
}
R2 = np.sum((x0 - w_star) ** 2)
ks = np.arange(1, N + 1)
for nombre, (W, Fs) in runs.items():
    err = Fs - F_star
    k6 = int(np.argmax(err < 1e-6)) if np.any(err < 1e-6) else None
    subidas = int(np.sum(np.diff(Fs) > 1e-13))
    print(f"{nombre:19s} F-F* tras {N} it.: {err[-1]:.1e}   it. hasta 1e-6: {k6}   no nulos: {np.count_nonzero(W[-1])}   subidas de F: {subidas}   gap: {gap(W[-1]):.1e}")

print("ISTA  cumple L R^2/(2k):", np.all(runs["ISTA"][1][1:] - F_star <= L * R2 / (2 * ks) + 1e-9))
print("FISTA cumple 2 L R^2/(k+1)^2:", np.all(runs["FISTA"][1][1:] - F_star <= 2 * L * R2 / (ks + 1) ** 2 + 1e-9))

The last two lines numerically check the theorem bounds on one problem. The numbers tell the preceding sections’ story. After 1000 iterations ISTA has error 2.7×10−62.7\times 10^{-6} and has never fallen below 10−610^{-6}, whereas FISTA reaches 10−610^{-6} at iteration 239 and with restart at 119. ISTA never increases FF; FISTA increases it in 434 of 1000 iterations; function restart never does. All three end with the same 13 nonzero coefficients, but ISTA’s final duality gap (4.7×10−34.7\times 10^{-3}) is still large: the certificate requires more iterations than the true error. Plot the curves with the bounds.

[ ]The gap between ISTA and FISTABrowser
import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(7.5, 4))
for nombre, (W, Fs), c in zip(runs, runs.values(), ["tab:orange", "tab:green", "tab:blue"]):
    err = np.maximum(Fs - F_star, 1e-16)
    ax.semilogy(err, label=nombre, color=c, lw=1.6)
ax.semilogy(ks, L * R2 / (2 * ks), "--", color="tab:orange", lw=1, label="cota ISTA  $LR^2/(2k)$")
ax.semilogy(ks, 2 * L * R2 / (ks + 1) ** 2, "--", color="tab:green", lw=1, label="cota FISTA  $2LR^2/(k+1)^2$")
ax.set_ylim(1e-12, 10)
ax.set_xlabel("iteración k"); ax.set_ylabel("F(x_k) - F*"); ax.legend(fontsize=8)
plt.show()

FISTA without restart oscillates and remains well below its bound; ISTA is monotone and much slower. One piece remains: backtracking, avoiding the need for LL, together with stopping by duality gap.

[ ]FISTA with backtracking and duality-gap stoppingBrowser
def fista_bt(f, grad_f, g, prox_g, x0, L0, gap_fn, tol=1e-6, max_iter=5000, gamma=2.0):
    """FISTA con retroceso (L nunca decrece) que para cuando gap_fn(x) < tol. Devuelve x e información."""
    x, y, t, L = x0.copy(), x0.copy(), 1.0, L0
    intentos = 0
    for k in range(1, max_iter + 1):
        gy, fy = grad_f(y), f(y)
        while True:
            x_new = prox_g(y - gy / L, 1.0 / L)
            dlt = x_new - y
            if f(x_new) <= fy + gy @ dlt + 0.5 * L * (dlt @ dlt) + 1e-12 * abs(fy):
                break                                   # el modelo cuadrático majora a f: paso válido
            L *= gamma
            intentos += 1
        t_new = (1 + np.sqrt(1 + 4 * t * t)) / 2
        y = x_new + ((t - 1) / t_new) * (x_new - x)
        x, t = x_new, t_new
        if k % 5 == 0 and gap_fn(x) < tol:              # el gap cuesta un producto matriz-vector: no se mira siempre
            break
    return x, {"iteraciones": k, "L_final": round(float(L), 3), "retrocesos": intentos}

for L0 in [0.01 * L, L, 100 * L]:
    xb, info = fista_bt(f, grad_f, g, prox_g, x0, L0, gap, tol=1e-6)
    print(f"L0 = {L0:9.3f}:  {info}   F - F* = {f(xb) + g(xb) - F_star:.1e}   gap = {gap(xb):.1e}")
print(f"(L verdadera = {L:.3f})")

Three readings. With L0L_0 a hundred times smaller than the true value, backtracking needs only 6 failed attempts, and the resulting LL (8.47) is below the global constant (13.24): the descent lemma is needed only along points visited by the method, and that local constant is smaller. It therefore finishes in 1040 iterations, fewer than 1375 for fixed step 1/L1/L with exact LL. With L0L_0 a hundred times larger, backtracking cannot lower LL and steps are a hundred times too short: after 5000 iterations the gap remains 2.7×10−32.7\times 10^{-3}. This asymmetry was predicted by theory. Gap stopping guarantees that when the loop ends true error is below 10−610^{-6} without needing F⋆F^\star.

Using libraries

In practice lasso and elastic net are solved by coordinate descent (proximal coordinate descent), as sklearn.linear_model.Lasso does: update one variable at a time with the same soft threshold. This is a useful comparison and validation of our code because it should reach the same minimizer. For elastic net, g(w)=λ(ρ∥w∥1+1−ρ2∥w∥22)g(\vb{w}) = \lambda\big(\rho\norm{\vb{w}}_1 + \frac{1 - \rho}{2}\norm{\vb{w}}_2^2\big) has the table’s proximal operator (threshold then shrink) and plugs into the same loop unchanged.

[ ]Lasso and elastic net versus scikit-learnBrowser
from sklearn.linear_model import Lasso, ElasticNet

# lasso: nuestro FISTA con reinicio frente a la implementación de scikit-learn (descenso por coordenadas)
sk = Lasso(alpha=lam, fit_intercept=False, tol=1e-12, max_iter=200000).fit(X, y)
print(f"lasso: |w_FISTA - w_sklearn|_inf = {np.max(np.abs(w_star - sk.coef_)):.1e}   "
      f"no nulos: {np.count_nonzero(w_star)} frente a {np.count_nonzero(sk.coef_)}")

# elastic net: solo cambia el proximal
rho = 0.5
g_en = lambda w: lam * (rho * np.sum(np.abs(w)) + 0.5 * (1 - rho) * w @ w)
prox_en = lambda v, t: soft(v, t * lam * rho) / (1 + t * lam * (1 - rho))
L_en = L                                              # la parte suave es la misma; el término l2 está en el proximal
W_en, F_en = prox_grad(f, grad_f, g_en, prox_en, x0, L_en, 3000, accel=True, restart=True)
w_en = W_en[-1]
sk_en = ElasticNet(alpha=lam, l1_ratio=rho, fit_intercept=False, tol=1e-12, max_iter=200000).fit(X, y)
print(f"elastic net: |w_FISTA - w_sklearn|_inf = {np.max(np.abs(w_en - sk_en.coef_)):.1e}   "
      f"no nulos: {np.count_nonzero(w_en)} (lasso: {np.count_nonzero(w_star)})")
print("tamaño de los coeficientes: ||w_lasso||_2 =", round(float(np.linalg.norm(w_star)), 3), "  ||w_enet||_2 =", round(float(np.linalg.norm(w_en)), 3))

The two solutions match scikit-learn to 10−810^{-8} and 10−1110^{-11}, respectively. Elastic net retains many more variables than lasso (57 versus 13) with correlated columns: the ℓ2\ell_2 term shares weight among nearly identical columns instead of choosing one at random, and shrinks coefficient norm (3.41 versus 4.01). In PyTorch soft thresholding already exists as torch.nn.functional.softshrink, and since the ℓ1\ell_1 proximal operator is nondifferentiable at corners, it is usually applied by hand after the optimizer step during training:

import torch
import torch.nn.functional as F

w = torch.nn.Parameter(torch.randn(200))
opt = torch.optim.SGD([w], lr=0.1)
lam, lr = 0.05, 0.1
loss = (w ** 2).sum() * 0.01          # ... la parte suave del objetivo
loss.backward()
opt.step()                            # paso de gradiente sobre la parte suave
with torch.no_grad():
    w.copy_(F.softshrink(w, lambd=lr * lam))   # proximal de lr * lam * ||w||_1: el umbral es lr*lam, no lam
opt.zero_grad()

This is stochastic proximal gradient: the threshold includes the step (lr * lam), as in ISTA. If instead lam * w.abs().sum() is added to the loss and left to Adam, coefficients become very small but almost never exactly zero: the ℓ1\ell_1 corner is crossed in jumps and not landed on.

Matrix completion

A second laboratory with the matrix proximal operator. A ratings matrix M∈R40×30\mat{M} \in \R^{40 \times 30} has rank 2, and only half its entries are observed (plus noise). Recover the missing ones by solving

min⁡X  12∥PΩ(X−Y)∥F2+λ∥X∥∗,\min_{\mat{X}} \; \tfrac12\norm{P_\Omega(\mat{X} - \mat{Y})}_F^2 + \lambda\norm{\mat{X}}_*,

where PΩP_\Omega zeros unobserved entries. The smooth part’s gradient is PΩ(X−Y)P_\Omega(\mat{X} - \mat{Y}), which is 1-Lipschitz (L=1L = 1), and the proximal operator is singular-value thresholding at level λ\lambda: this is Soft-Impute (Mazumder, Hastie and Tibshirani, 2010), and accelerated it is FISTA. Since the optimum is X=0\mat{X} = \mat{0} above λmax⁡=∥PΩ(Y)∥2\lambda_{\max} = \norm{P_\Omega(\mat{Y})}_2, sweep λ\lambda from largest to smallest, starting each from the previous solution (continuation), saving nearly all iterations.

[ ]Matrix completion with singular-value thresholdingBrowser
import numpy as np, time

def svt(Z, tau):
    """Proximal de tau*||.||_*: umbral suave sobre los valores singulares."""
    U, s, Vt = np.linalg.svd(Z, full_matrices=False)
    s = np.maximum(s - tau, 0.0)
    r = int(np.count_nonzero(s))
    return (U[:, :r] * s[:r]) @ Vt[:r], r

rng = np.random.default_rng(3)
m, n, r0 = 40, 30, 2
M = rng.normal(size=(m, r0)) @ rng.normal(size=(r0, n))       # matriz verdadera de rango 2
mask = rng.random((m, n)) < 0.5                               # alrededor de la mitad de las entradas observadas
Y = M + 0.3 * rng.normal(size=(m, n))
print(f"observadas: {mask.mean():.0%}   valores singulares de M: {np.round(np.linalg.svd(M, compute_uv=False)[:3], 2)}")

def completar(lam, X0, iters=200):
    """FISTA para 0.5*||P_Omega(X - Y)||_F^2 + lam*||X||_*   (L = 1: el gradiente es P_Omega(X - Y))."""
    X, Z, t = X0.copy(), X0.copy(), 1.0
    for _ in range(iters):
        X_new, r = svt(Z - mask * (Z - Y), lam)
        t_new = (1 + np.sqrt(1 + 4 * t * t)) / 2
        Z = X_new + ((t - 1) / t_new) * (X_new - X)
        X, t = X_new, t_new
    return X, r

lam_max = np.linalg.norm(mask * Y, 2)                         # por encima de esto, X = 0
print(f"lambda_max = {lam_max:.2f}")
X = np.zeros((m, n))
t0 = time.perf_counter()
print("  lambda   rango   error en observadas   error en ocultas")
for lam in lam_max * np.array([0.4, 0.2, 0.1, 0.05, 0.025, 0.01]):
    X, r = completar(lam, X)
    e_obs = np.linalg.norm(mask * (X - M)) / np.linalg.norm(mask * M)
    e_ocu = np.linalg.norm((~mask) * (X - M)) / np.linalg.norm((~mask) * M)
    print(f"{lam:8.3f} {r:6d} {e_obs:19.3f} {e_ocu:18.3f}")
    if abs(lam - lam_max * 0.4) < 1e-9:
        print("   valores singulares de X:", np.round(np.linalg.svd(X, compute_uv=False)[:3], 2), "(los verdaderos son mayores: el umbral suave encoge)")
print("tiempo (s):", round(time.perf_counter() - t0, 2))

The table tells a three-act story. With large λ\lambda rank is correct (2), but the solution is biased: its singular values (21.0 and 16.1) are far below the true values (42.1 and 35.4) and hidden-entry error is 62%. Lowering λ\lambda reduces bias and that error to 20%, but spurious singular values enter (rank rises to 12), fitting noise in observations, and below λ=1.2\lambda = 1.2 hidden error rises again. The best λ\lambda for predicting hidden entries is not the one giving true rank, but a compromise. This is convex regularization’s general pattern and why in practice the proximal operator often selects support or rank, then the model is refitted there without penalty.

Common mistakes

Exercises

NumericApply soft thresholding
Apply soft thresholding at level λ=0.5\lambda = 0.5 to v=(1.2, −0.3, −2)\vb{v} = (1.2,\, -0.3,\, -2) and calculate ∥S0.5(v)∥22\norm{S_{0.5}(\vb{v})}_2^2, the sum of squared components of the result.
NumericISTA's threshold
A lasso with g(w)=0.2∥w∥1g(\vb{w}) = 0.2\norm{\vb{w}}_1 has L=4L = 4. In an ISTA iteration with η=1/L\eta = 1/L, the point after the gradient step has first component 0.300.30. What is that component after the proximal operator?
NumericHow many iterations does FISTA guarantee?
With L=10L = 10 and ∥x0−x⋆∥=1\norm{\vb{x}_0 - \vb{x}^\star} = 1, what is the smallest kk for which FISTA's bound 2L∥x0−x⋆∥2/(k+1)22L\norm{\vb{x}_0 - \vb{x}^\star}^2/(k + 1)^2 guarantees F(xk)−F⋆≤10−3F(\vb{x}_k) - F^\star \le 10^{-3}?
NumericSingular-value thresholding
Matrix Y\mat{Y} has singular values 5, 2, 0.85,\ 2,\ 0.8. Calculate the nuclear norm of prox⁡t∥⋅∥∗(Y)\operatorname{prox}_{t\norm{\cdot}_*}(\mat{Y}) with t=1t = 1.
NumericThe envelope value
Calculate Mλg(2)M_{\lambda g}(2) for g=∣⋅∣g = \abs{\cdot} and λ=0.5\lambda = 0.5.
QuizSame minimizers
Why does the Moreau envelope MλgM_{\lambda g} have exactly the same minimizers as gg?
QuizWhat is true of ISTA and FISTA
Which statements hold for lasso with step 1/L1/L?

More than one answer may be correct.

ProofSoft thresholding from the subdifferential
Prove: For t>0t > 0, prox⁡t∣⋅∣(v)=sgn⁡(v)max⁡(∣v∣−t,0)\operatorname{prox}_{t\abs{\cdot}}(v) = \operatorname{sgn}(v)\max(\abs{v} - t, 0).
0
By the proximal characterization, x=prox⁡t∣⋅∣(v)x = \operatorname{prox}_{t\abs{\cdot}}(v) iff v−x∈t ∂∣x∣v - x \in t\,\partial\abs{x}, with ∂∣x∣={sgn⁡(x)}\partial\abs{x} = \{\operatorname{sgn}(x)\} if x≠0x \neq 0 and ∂∣0∣=[−1,1]\partial\abs{0} = [-1, 1]. The proximal point is unique, so it suffices to find an xx satisfying the condition.

Step 1 of 3. Assume x≠0x \neq 0. What does the condition say?

ProofThe proximal operator of an indicator is projection
Prove: If C⊂RnC \subset \R^n is nonempty, closed and convex, prox⁡λιC(v)=PC(v)\operatorname{prox}_{\lambda\iota_C}(\vb{v}) = P_C(\vb{v}) for all λ>0\lambda > 0 and v\vb{v}.
0
Recall PC(v)P_C(\vb{v}) is the unique point of CC closest to v\vb{v}, and ιC\iota_C is 00 on CC and +∞+\infty outside.

Step 1 of 3. Write the problem defining prox⁡λιC(v)\operatorname{prox}_{\lambda\iota_C}(\vb{v}). What do you observe about x∉C\vb{x} \notin C?

CodeFISTA with backtracking and function restart
Implement fista_restart(f, grad_f, g, prox_g, x0, L0, iters). Return (x, hist), with x the last iterate and hist the list of values F(x0),…,F(xiters)F(\vb{x}_0), \dots, F(\vb{x}_{\text{iters}}) of F=f+gF = f + g (length iters + 1). prox_g(v, t) is the proximal operator of t gt\,g. Rules: (1) backtracking: at each step, starting with current LL, multiply LL by 2 while the quadratic model does not majorize f(x+)f(\vb{x}^+) (never decrease it); (2) FISTA momentum with t0=1t_0 = 1; (3) function restart: if the momentum step makes FF rise relative to the previous iterate, discard it, set t=1t = 1 and repeat the step (with backtracking) from xk\vb{x}_k without momentum. Thus hist is nonincreasing.
import numpy as np

def fista_restart(f, grad_f, g, prox_g, x0, L0, iters):
  """Devuelve (x, hist): el último iterado y [F(x_0), ..., F(x_iters)]."""
  # tu código: retroceso para L, momento de FISTA y reinicio por función
  x = x0.copy()
  return x, [f(x) + g(x)]
Shift+Enter to run

Summary

Key idea
The proximal operator solves the nonsmooth part of f+gf + g exactly with an implicit step (a small problem with closed-form solution), so proximal gradient keeps gradient descent’s form, converges at O(1/k)\bigO(1/k), accelerates to O(1/k2)\bigO(1/k^2) with FISTA, and lands on exact zeros the subgradient method does not find.
  • prox⁡λg(v)=arg min⁡x g(x)+12λ∥x−v∥2\operatorname{prox}_{\lambda g}(\vb{v}) = \argmin_{\vb{x}}\, g(\vb{x}) + \frac{1}{2\lambda}\norm{\vb{x} - \vb{v}}^2 exists uniquely and is characterized by (v−x)/λ∈∂g(x)(\vb{v} - \vb{x})/\lambda \in \partial g(\vb{x}). It is projection for indicators and soft thresholding for ℓ1\ell_1; for the nuclear norm, soft thresholding of singular values.
  • The Moreau envelope MλgM_{\lambda g} is a differentiable version of gg with gradient (v−prox⁡λg(v))/λ(\vb{v} - \operatorname{prox}_{\lambda g}(\vb{v}))/\lambda, 1λ\frac{1}{\lambda}-Lipschitz, preserving the minimum and minimizers. The proximal operator is its gradient step. The Moreau decomposition relates the proximal operator of gg to that of its conjugate: soft thresholding is identity minus clipping.
  • ISTA, xk+1=prox⁡g/L(xk−1L∇f(xk))\vb{x}_{k+1} = \operatorname{prox}_{g/L}(\vb{x}_k - \frac{1}{L}\grad f(\vb{x}_k)), minimizes the quadratic model of ff plus gg. It is monotone and satisfies F(xk)−F⋆≤L∥x0−x⋆∥2/(2k)F(\vb{x}_k) - F^\star \le L\norm{\vb{x}_0 - \vb{x}^\star}^2/(2k). The threshold is ηλ\eta\lambda, not λ\lambda.
  • FISTA adds Nesterov momentum: F(xk)−F⋆≤2L∥x0−x⋆∥2/(k+1)2F(\vb{x}_k) - F^\star \le 2L\norm{\vb{x}_0 - \vb{x}^\star}^2/(k + 1)^2, optimal for first order. It is not monotone; function restart fixes this.
  • Backtracking removes the need to know LL; for lasso the duality gap gives a guaranteed stopping criterion. With a nonconvex proximal operator (like ℓ0\ell_0) the guarantees disappear.