Search

Search papers and lessons

Proximal Point Method

Level 3 · 12 min read

The proximal point method minimises a function by repeatedly taking a step that balances lowering the function against staying close to the current point, which works even where the function has sharp corners.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Linear algebra
  • Optimization
  • Probability
  • Losses & regularization
  • ReadReady to readNot yet

TL;DR

The proximal point method minimises a function ff by a sequence of small problems. At each step it finds the point that makes ff small while staying close to the current point, then moves there. The balance is set by a step size λ\lambda. Because each step solves a minimisation rather than computing a gradient, the method works even where ff has sharp corners, where a gradient does not exist.

Builds on: Subgradient, Gradient Descent · Leads to: Soft Thresholding, Lasso Regression

Where it's used

Sparse modelling. A lasso model penalises the absolute values of its weights, which has a corner at zero. Solvers for it take proximal steps, and the proximal step for the absolute value is soft thresholding. This is how a lasso fit ends up with weights that are exactly zero.

Image denoising. A total-variation denoiser keeps edges sharp by penalising the differences between neighbouring pixels. Its solvers repeatedly apply a proximal step, which smooths flat regions without blurring edges.

Constrained problems. Many optimisation libraries handle a constrained problem by replacing a hard constraint with a penalty, and solve the penalised problem by proximal steps. The step is cheap when the penalty has a closed-form proximal operator, such as a norm or an indicator of a simple set.

How it works

Take the simplest nonsmooth function, f(x)=∣x∣f(x) = |x|. Its corner at zero is what drives the sparse solutions in the applications above. It has a sharp corner at 00, so its gradient is undefined there. Start at x0=3x_0 = 3 with step size λ=1\lambda = 1, and find the next point.

The proximal step solves

x1=arg⁡min⁡x{∣x∣+12(x−3)2}.x_1 = \arg\min_x \left\{ |x| + \frac{1}{2}(x - 3)^2 \right\}.

The first term pulls toward zero. The second term pulls toward x0=3x_0 = 3, so the answer is a compromise.

  1. Write the objective. For a candidate xx, the value is ∣x∣+(x−3)2/2|x| + (x - 3)^2/2. For example, at x=3x = 3 it is 3+0=33 + 0 = 3, and at x=1x = 1 it is 1+2=31 + 2 = 3. Check: both candidates score 3, so the minimum is somewhere else.
  2. Try the positive side. For x>0x > 0, the objective is x+(x−3)2/2x + (x - 3)^2/2, whose slope is 1+(x−3)1 + (x - 3). Setting it to zero gives x=2x = 2. Check: the slope is 1+(2−3)=01 + (2 - 3) = 0 at x=2x = 2.
  3. Test the candidate. At x=2x = 2 the objective is 2+1/2=2.52 + 1/2 = 2.5, lower than the 3 at both earlier points. Check: 2.5<32.5 < 3, so moving toward zero by exactly 1 was worth it.
  4. Move and repeat. Set x1=2x_1 = 2. The next step, with the same rule, gives x2=1x_2 = 1 because 2−1=12 - 1 = 1. Check: each step moves toward zero by the step size, while the objective decreases.
  5. Keep going until the step hits zero. From x2=1x_2 = 1, the step gives x3=0x_3 = 0, because the corner at zero absorbs the step. From 00 the next step stays at 00. Check: x=0x = 0 is the minimiser of ∣x∣|x|, so the method has reached it in finitely many steps.
flowchart LR
  X0["Current point x_k"] --> S["Solve: minimise f(x) plus a pull toward x_k"]
  S --> X1["New point x_k+1"]
  X1 -->|repeat| X0

The math

Definition

Definition: Proximal operator

For a convex function ff, a step size λ>0\lambda > 0 and a point vv, the proximal operator is

prox⁡λf(v)=arg⁡min⁡x{f(x)+12λ∥x−v∥2}.\operatorname{prox}_{\lambda f}(v) = \arg\min_x \left\{ f(x) + \frac{1}{2\lambda} \lVert x - v \rVert^2 \right\}.

The proximal point method is the iteration xk+1=prox⁡λf(xk)x_{k+1} = \operatorname{prox}_{\lambda f}(x_k).

Here ∥x−v∥2\lVert x - v \rVert^2 is the squared distance between xx and vv (see Vector Norm). A convex ff plus a squared distance is strongly convex, so the minimiser exists and is unique. That uniqueness is what makes the iteration well defined.

Step 1 in symbols: the objective

The walkthrough's objective is f(x)+12λ(x−xk)2f(x) + \frac{1}{2\lambda}(x - x_k)^2 with f(x)=∣x∣f(x) = |x| and λ=1\lambda = 1. The factor 12λ\frac{1}{2\lambda} is the weight on the pull toward xkx_k. Small λ\lambda gives a large weight, so the new point stays near xkx_k. Large λ\lambda gives a small weight, so the step can move far.

Step 2 in symbols: the optimality condition

A point x⋆x^\star minimises a convex function exactly when 00 is a subgradient there. For the proximal problem, this means

0∈∂f(xk+1)+xk+1−xkλ.0 \in \partial f(x_{k+1}) + \frac{x_{k+1} - x_k}{\lambda}.

Rearranging gives xk+1=xk−λgx_{k+1} = x_k - \lambda g for some g∈∂f(xk+1)g \in \partial f(x_{k+1}). This is a gradient-like step, but the slope is taken at the new point, not the old one. That is why the method is called implicit, and why it can take steps that gradient descent cannot.

Step 3 in symbols: the soft-thresholding solution

For f(x)=∣x∣f(x) = |x| the condition in step 2 gives the closed form

prox⁡λ∣⋅∣(v)=sign⁡(v) max⁡(∣v∣−λ,0).\operatorname{prox}_{\lambda |\cdot|}(v) = \operatorname{sign}(v)\,\max(|v| - \lambda, 0).

This is Soft Thresholding: it moves vv toward zero by λ\lambda, and returns zero when ∣v∣≤λ|v| \le \lambda. With v=3v = 3 and λ=1\lambda = 1, the result is 3−1=23 - 1 = 2, matching step 2 of the walkthrough.

Step 4 in symbols: the convergence rate

For a convex ff with minimum value f⋆f^\star attained at some x⋆x^\star, and a fixed step size λ\lambda, the standard bound is

f(xk)−f⋆≤∥x0−x⋆∥22λk.f(x_k) - f^\star \le \frac{\lVert x_0 - x^\star \rVert^2}{2\lambda k}.

The bound shrinks as 1/k1/k. Check it on the walkthrough, where x⋆=0x^\star = 0, f⋆=0f^\star = 0, λ=1\lambda = 1, and ∥x0−x⋆∥2=9\lVert x_0 - x^\star \rVert^2 = 9. After k=1k = 1 step, f(x1)=2f(x_1) = 2 and the bound is 9/2=4.59/2 = 4.5. After k=2k = 2, f(x2)=1f(x_2) = 1 and the bound is 9/4=2.259/4 = 2.25. After k=3k = 3, f(x3)=0f(x_3) = 0 and the bound is 9/6=1.59/6 = 1.5. The actual values stay below the bound at every step.

Worked examples

Example
Example 1: a point already inside the flat zone

Take f(x)=∣x∣f(x) = |x|, v=0.5v = 0.5 and λ=1\lambda = 1.

  1. The soft-thresholding formula gives sign⁡(0.5)max⁡(0.5−1,0)=1×max⁡(−0.5,0)=0\operatorname{sign}(0.5)\max(0.5 - 1, 0) = 1 \times \max(-0.5, 0) = 0.
  2. Check the objective at x=0x = 0: ∣0∣+(0−0.5)2/2=0.125|0| + (0 - 0.5)^2/2 = 0.125.
  3. Check at x=0.1x = 0.1: 0.1+(0.1−0.5)2/2=0.1+0.08=0.180.1 + (0.1 - 0.5)^2/2 = 0.1 + 0.08 = 0.18, which is larger.
  4. The minimiser is x=0x = 0.

Interpretation: the point is within the threshold of the corner, so the step lands exactly on the corner. A gradient step from 0.50.5 with the same step size would overshoot past zero, because the gradient of ∣x∣|x| is 11 on the right and −1-1 on the left.

Example
Example 2: a smooth function, with two steps

Take f(x)=x2/2f(x) = x^2/2, which is smooth, and λ=1\lambda = 1. Start at v=3v = 3.

  1. The objective is x2/2+(x−3)2/2x^2/2 + (x - 3)^2/2. Its slope is x+(x−3)x + (x - 3).
  2. Setting the slope to zero gives 2x−3=02x - 3 = 0, so x1=1.5x_1 = 1.5.
  3. Check: at x=1.5x = 1.5 the objective is 1.125+1.125=2.251.125 + 1.125 = 2.25. At x=1x = 1 it is 0.5+2=2.50.5 + 2 = 2.5, and at x=2x = 2 it is 2+0.5=2.52 + 0.5 = 2.5. So 1.51.5 is lower on both sides.
  4. Next step from x1=1.5x_1 = 1.5: the same rule gives x2=0.75x_2 = 0.75.
  5. The general formula for this function is xk+1=xk/(1+λ)x_{k+1} = x_k/(1 + \lambda), so each step halves the distance to zero here.

Interpretation: for a smooth function, the proximal step is an implicit gradient step. The new point satisfies xk+1=xk−λ⋅xk+1x_{k+1} = x_k - \lambda \cdot x_{k+1}, so the slope is taken at the new point rather than the old one. Here xk+1=xk/(1+λ)x_{k+1} = x_k/(1+\lambda) is the solution of that equation.

Example
Example 3: denoising a sparse vector, and a try-it

A sensor reports the vector v=(3.0,−0.4,1.2)v = (3.0, -0.4, 1.2). We believe most entries are really zero, so we choose the penalty λ∣x∣\lambda|x| with λ=1\lambda = 1 for each entry. The proximal step applies soft thresholding entry by entry.

  1. Entry 1: ∣3.0∣−1=2.0|3.0| - 1 = 2.0, with sign ++. The result is 2.02.0.
  2. Entry 2: ∣−0.4∣=0.4|-0.4| = 0.4 is at most 11, so the result is 00.
  3. Entry 3: ∣1.2∣−1=0.2|1.2| - 1 = 0.2, with sign ++. The result is 0.20.2.
  4. The denoised vector is (2.0,0,0.2)(2.0, 0, 0.2).

Interpretation: the large readings are kept but pulled toward zero by the threshold. The small reading is set to exactly zero, which is the sparsity the penalty was chosen to produce.

Try it: the same method, with v=(−2.5,0.4,0.6)v = (-2.5, 0.4, 0.6) and λ=0.5\lambda = 0.5. What is the result?

Answer: entry 1 is −(2.5−0.5)=−2.0-(2.5 - 0.5) = -2.0. Entry 2 has ∣0.4∣≤0.5|0.4| \le 0.5, so it is 00. Entry 3 is 0.6−0.5=0.10.6 - 0.5 = 0.1. The result is (−2.0,0,0.1)(-2.0, 0, 0.1).

Common mistakes and tradeoffs

It is tempting to think that the proximal term is just a nuisance. In fact the term 12λ∥x−xk∥2\frac{1}{2\lambda}\lVert x - x_k\rVert^2 is an L2 penalty centred on the current point, and it is what keeps each step local and the subproblem well posed.

It is tempting to think that the proximal step is just gradient descent under another name. In fact it solves a small minimisation problem, and its answer is defined even at a corner where no gradient exists. The one-dimensional example at x=0x = 0 shows this: the proximal step lands exactly on the corner, while a gradient step does not know which way to go.

It is tempting to think that a large step is always better. In fact the step size trades progress for stability. Large λ\lambda moves far and may skip past good points, while small λ\lambda stays near the current point and makes slow progress. The 1/k1/k bound in step 4 holds for any fixed λ\lambda, but the constant changes with it.

It is tempting to think that every proximal step is cheap. In fact it is cheap only when the proximal operator has a closed form, as with the absolute value, a squared norm or simple constraints. For a general function, each step needs an inner optimisation, which is itself expensive.

When to use it: the method is the natural choice for convex functions with nonsmooth parts, such as penalties with corners, and when the proximal operator is known in closed form.

When not to use it: if the function is smooth and cheap to differentiate, plain gradient descent is simpler and usually faster. If the proximal operator has no closed form, the method needs an inner solver and may not be worth the cost.

Alternatives: the subgradient method works for nonsmooth functions but converges more slowly and needs carefully decreasing steps. Proximal gradient methods split a function into a smooth part, handled by a gradient, and a nonsmooth part, handled by a proximal step. Methods such as ADMM split a problem further when several penalties interact.

History

Jean-Jacques Moreau introduced the proximity operator in the 1960s, as a tool for studying convex functions in Hilbert spaces. It gave a smooth approximation to a nonsmooth function, and it became central to convex analysis.

R. Tyrrell Rockafellar analysed the proximal point algorithm in 1976 as a method for finding zeros of monotone operators, and showed that it converges under mild conditions. For optimisation it was a steady but unfashionable method for decades, because most problems then were smooth. The rise of sparse modelling and large-scale penalised problems in the 2000s brought the proximal step back into common use, through proximal gradient methods and their implementations.

Recap

  • The proximal step minimises f(x)+12λ∥x−xk∥2f(x) + \frac{1}{2\lambda}\lVert x - x_k \rVert^2, balancing progress against staying close to xkx_k.
  • The optimality condition makes it an implicit subgradient step, which works at corners where a gradient does not exist.
  • For f(x)=∣x∣f(x) = |x| the step is Soft Thresholding, which moves a value toward zero and sets small values exactly to zero.
  • The objective values converge at rate 1/k1/k for convex ff with a fixed step size.
  • Read next: Lasso Regression for the main application, where the proximal step produces exact zeros in the weights.

Check yourself

QuestionWhy does the proximal point method still work at x=0x = 0 for f(x)=∣x∣f(x) = |x|, where gradient descent has no gradient to use?Show answer

The proximal step solves a minimisation over the whole objective, not a derivative at the current point. The subproblem has a unique minimiser even when ff has a corner, because the squared-distance term makes it strongly convex. The solution is found from the subgradient condition, which is defined at a corner as a set of slopes.

QuestionCompute prox⁡λ∣⋅∣(−4)\operatorname{prox}_{\lambda|\cdot|}(-4) with λ=2\lambda = 2, and check that it minimises ∣x∣+(x+4)2/4|x| + (x + 4)^2/4.Show answer

By soft thresholding, the result is sign⁡(−4)max⁡(4−2,0)=−2\operatorname{sign}(-4)\max(4 - 2, 0) = -2. Check: at x=−2x = -2 the objective is 2+(2)2/4=2+1=32 + (2)^2/4 = 2 + 1 = 3. At x=−1x = -1 it is 1+(3)2/4=3.251 + (3)^2/4 = 3.25, and at x=−3x = -3 it is 3+1/4=3.253 + 1/4 = 3.25. So −2-2 gives the lowest value of the three.

QuestionWhy is a small step size λ\lambda safe but slow, while a large one is fast but can overshoot?Show answer

The step size weights the pull toward the current point. A small λ\lambda gives a large pull, so each step is short and the method barely moves, which is safe but slow. A large λ\lambda gives a weak pull, so each step can travel far, which is fast, but it may pass the minimiser and need many steps to come back. The convergence bound has λ\lambda in its denominator, which makes this trade explicit.

QuestionA lasso model is fitted to 10,000 features, and most of them should be exactly zero in the final answer. Why is a proximal method a natural fit, and what would go wrong with plain gradient descent on the absolute values?Show answer

The penalty on each weight is ∣w∣|w|, which has a corner at zero. The proximal step for it is soft thresholding, which sets small weights exactly to zero in each step, so the iterates reach sparse solutions. Plain gradient descent on ∣w∣|w| has no gradient at zero, so the weights oscillate around zero without landing on it, and the final answer is only approximately sparse.

Sources