Proximal & Projected Methods
Optimizing nonsmooth objectives: ISTA, FISTA and projections.
The lasso's penalty has kinks, a constraint is a wall, and gradient descent handles neither well. Proximal methods split the objective in two: a smooth part that you differentiate, and a simple nonsmooth part that you solve exactly at every step. The split keeps every rate gradient descent enjoys on smooth problems, accelerates to , and lets huge problems be solved piece by piece.
What you’ll learn
- Define the proximal operator, compute it for the norm, indicators, group norms and the nuclear norm, and prove its fixed-point and nonexpansiveness properties.
- Derive proximal gradient descent (ISTA) and projected gradient as majorization–minimization, and prove the rate.
- State FISTA's rate, and explain its momentum sequence, its lack of monotonicity and restarts.
- Use the Moreau envelope to smooth nonsmooth functions, and derive ADMM for problems that split into two simple parts.
Composite problems and the proximal operator
Many objectives in machine learning have the composite form , with convex and -smooth (a data-fitting loss) and convex and closed but possibly nonsmooth (a penalty or a constraint). The lasso has and ; a constrained problem has , the indicator that is on and off it. The subgradient method ignores this structure and pays . The fix is to handle exactly through its proximal operator, which works whenever is simple: cheap to minimize after adding a quadratic.
| , the indicator of a closed convex set | the Euclidean projection , giving projected gradient methods |
| soft thresholding, in each coordinate | |
| (one group of the group lasso) | : the whole block shrinks, or vanishes together |
| , the nuclear norm of a matrix | singular value thresholding: when |
| indicator of a box | clip each coordinate to |
| indicator of the probability simplex | , with chosen so the entries sum to , found by sorting in |
Fixed points are minimizers. For any , minimizes if and only if , which by the characterization above says exactly:
Firm nonexpansiveness. Let and , so and . Adding the two subgradient inequalities shows that subdifferentials are monotone, for and . Hence:
Dividing by : the prox never expands distances, just like the projection onto a convex set, its special case . This is what makes iterations built from proximal steps stable.
Proximal gradient descent and its rate
Proximal gradient descent alternates a gradient step on with a prox step on :
With the first three terms in the braces bound from above (the descent lemma), so each step minimizes an upper model of that touches it at : a majorization–minimization step. With it is gradient descent; with , projected gradient descent; for the lasso, , the iterative shrinkage-thresholding algorithm (ISTA) that Daubechies, Defrise & De Mol (2004) analyzed as a Landweber iteration with thresholding.
Write one step as , which defines the gradient mapping . It reduces to when and vanishes exactly at minimizers. The prox characterization supplies a subgradient of at :
Bound from above by the descent lemma with , and bound and from below, for an arbitrary , by convexity and by the subgradient just found:
Add to the first inequality and substitute the other two. Every term cancels because , leaving a key inequality valid for every :
With it shows the method is monotone, . With , complete the square using :
Sum over the first steps. The right side telescopes to at most , and by monotonicity the last term on the left is the smallest:
Acceleration: FISTA
Nesterov's momentum carries over to composite problems unchanged: take the proximal gradient step not from the current iterate but from an extrapolated point.
FISTA(f, g, L, x0, T) # Beck & Teboulle (2009)
y ← x0; x_prev ← x0; s ← 1
for t = 1, ..., T:
x ← prox_{g/L}( y − ∇f(y) / L ) # proximal gradient step, taken from y
s_next ← (1 + sqrt(1 + 4·s²)) / 2
y ← x + ((s − 1) / s_next) · (x − x_prev) # extrapolate along the last move
x_prev ← x; s ← s_next
return xThe only extra cost over ISTA is one vector combination per iteration.
The sequence satisfies , so the momentum weight creeps toward : FISTA extrapolates ever more aggressively, and its convergence proof weights later iterates more heavily, the same mechanism as Nesterov's method (Momentum & Nesterov Acceleration). Two caveats matter in practice. FISTA is not monotone: can rise for a while, producing ripples. And it does not exploit strong convexity: its guarantee stays where proximal gradient converges linearly, unless the momentum is set from a known . Restarting the momentum () whenever the objective increases removes the ripples; O'Donoghue & Candès (2015) demonstrated that such adaptive restarts can dramatically speed up accelerated methods without knowledge of ; the best fixed restart interval is proportional to .
Suppose and you need . ISTA's bound needs iterations. How many iterations does FISTA's bound need?
Show the answer
141
requires , so (at the bound is , just above the target). Each further factor of in accuracy costs ISTA times more iterations but FISTA only about times more.
Moreau envelopes and splitting with ADMM
The envelope smooths kinks while keeping the minimizers. The envelope of is the Huber function, quadratic within of zero and linear beyond:
Gradient descent on the envelope with step is the proximal point method, , which converges for every ; the price is that each step is itself an optimization problem. The Moreau decomposition ties a function's prox to its conjugate's: for , whose conjugate is the indicator of the ball of radius , it splits every vector into a soft-thresholded part and a clipped part, .
ADMM. When a problem couples two simple parts through a linear constraint, minimize subject to . The alternating direction method of multipliers takes one exact minimization step in each block of the augmented Lagrangian , then a dual ascent step. In scaled form, with :
import numpy as np
from scipy.linalg import cho_factor, cho_solve
def lasso_admm(X, y, lam, rho=1.0, iters=500):
"""min 0.5*||X w - y||^2 + lam*||w||_1 by ADMM with the split w = z."""
d = X.shape[1]
Xty = X.T @ y
factor = cho_factor(X.T @ X + rho * np.eye(d)) # factor once, reuse every iteration
x, z, u = np.zeros(d), np.zeros(d), np.zeros(d)
for _ in range(iters):
x = cho_solve(factor, Xty + rho * (z - u)) # ridge-like x-update
v = x + u
z = np.sign(v) * np.maximum(np.abs(v) - lam / rho, 0.0) # soft threshold
u = u + x - z # scaled dual update
return zHere , and the constraint is . The -update solves with a cached Cholesky factor, so each iteration costs ; the -update is soft thresholding at .
Key takeaways
- The proximal operator is an implicit subgradient step with closed forms for simple : projection, soft thresholding, block and singular-value thresholding. It is firmly nonexpansive, and the minimizers of are the fixed points of a gradient step followed by a prox.
- Proximal gradient descent (ISTA, projected gradient) minimizes a quadratic upper model plus at every step and keeps gradient descent's rates: , and a linear rate under strong convexity.
- FISTA adds Nesterov momentum and reaches , optimal up to a constant, but it is not monotone; adaptive restarts remove the ripples and help it exploit strong convexity in practice.
- The Moreau envelope smooths without moving its minimizers (Huber is the envelope of ). ADMM splits subject to into alternating simple steps, converging under mild convexity assumptions with an ergodic rate.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Compute for with and .
Show the answer
C.
Soft thresholding at level shrinks each entry toward zero by and zeroes any entry with : , , .
Projected gradient descent for , with closed and convex, is proximal gradient descent with which ?
- The indicator : on and outside
- The distance function
- The penalty for a large
- The support function
Show the answer
A. The indicator : on and outside
, for every . The constrained problem is exactly , so the theorem's rates apply to projected gradient as stated.
Which statement about FISTA compared with ISTA is correct?
- FISTA's objective values decrease monotonically; ISTA's may not
- FISTA needs to be differentiable, because of the extrapolation step
- FISTA converges linearly on every strongly convex problem without modification
- FISTA's guarantee is against ISTA's , but its objective can increase from one iteration to the next
Show the answer
D. FISTA's guarantee is against ISTA's , but its objective can increase from one iteration to the next
Momentum buys the faster worst-case rate at the price of monotonicity: the extrapolated point can overshoot, and ripples. ISTA, by contrast, decreases at every step by at least . Restarts restore monotone behavior.
In ADMM for the lasso with the split ( the squared loss in , in ), what does the -update compute?
- A ridge regression solve with
- Soft thresholding of at level
- A gradient step on
- The projection of onto the ball of radius
Show the answer
B. Soft thresholding of at level
The -update minimizes , which is . All the data-dependent work sits in the -update, all the nonsmoothness in the -update.
Further reading
- A. Beck & M. Teboulle, "A fast iterative shrinkage-thresholding algorithm for linear inverse problems," SIAM Journal on Imaging Sciences 2(1), 183–202 (2009).
- N. Parikh & S. Boyd, "Proximal algorithms," Foundations and Trends in Optimization 1(3), 127–239 (2014).
- S. Boyd, N. Parikh, E. Chu, B. Peleato & J. Eckstein, "Distributed optimization and statistical learning via the alternating direction method of multipliers," Foundations and Trends in Machine Learning 3(1), 1–122 (2011).
- I. Daubechies, M. Defrise & C. De Mol, "An iterative thresholding algorithm for linear inverse problems with a sparsity constraint," Communications on Pure and Applied Mathematics 57(11), 1413–1457 (2004).
- J.-J. Moreau, "Proximité et dualité dans un espace hilbertien," Bulletin de la Société Mathématique de France 93, 273–299 (1965).