TL;DR
The proximal point method minimises a function by a sequence of small problems. At each step it finds the point that makes small while staying close to the current point, then moves there. The balance is set by a step size . Because each step solves a minimisation rather than computing a gradient, the method works even where 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, . Its corner at zero is what drives the sparse solutions in the applications above. It has a sharp corner at , so its gradient is undefined there. Start at with step size , and find the next point.
The proximal step solves
The first term pulls toward zero. The second term pulls toward , so the answer is a compromise.
- Write the objective. For a candidate , the value is . For example, at it is , and at it is . Check: both candidates score 3, so the minimum is somewhere else.
- Try the positive side. For , the objective is , whose slope is . Setting it to zero gives . Check: the slope is at .
- Test the candidate. At the objective is , lower than the 3 at both earlier points. Check: , so moving toward zero by exactly 1 was worth it.
- Move and repeat. Set . The next step, with the same rule, gives because . Check: each step moves toward zero by the step size, while the objective decreases.
- Keep going until the step hits zero. From , the step gives , because the corner at zero absorbs the step. From the next step stays at . Check: is the minimiser of , 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
For a convex function , a step size and a point , the proximal operator is
The proximal point method is the iteration .
Here is the squared distance between and (see Vector Norm). A convex 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 with and . The factor is the weight on the pull toward . Small gives a large weight, so the new point stays near . Large gives a small weight, so the step can move far.
Step 2 in symbols: the optimality condition
A point minimises a convex function exactly when is a subgradient there. For the proximal problem, this means
Rearranging gives for some . 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 the condition in step 2 gives the closed form
This is Soft Thresholding: it moves toward zero by , and returns zero when . With and , the result is , matching step 2 of the walkthrough.
Step 4 in symbols: the convergence rate
For a convex with minimum value attained at some , and a fixed step size , the standard bound is
The bound shrinks as . Check it on the walkthrough, where , , , and . After step, and the bound is . After , and the bound is . After , and the bound is . The actual values stay below the bound at every step.
Worked examples
Take , and .
- The soft-thresholding formula gives .
- Check the objective at : .
- Check at : , which is larger.
- The minimiser is .
Interpretation: the point is within the threshold of the corner, so the step lands exactly on the corner. A gradient step from with the same step size would overshoot past zero, because the gradient of is on the right and on the left.
Take , which is smooth, and . Start at .
- The objective is . Its slope is .
- Setting the slope to zero gives , so .
- Check: at the objective is . At it is , and at it is . So is lower on both sides.
- Next step from : the same rule gives .
- The general formula for this function is , 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 , so the slope is taken at the new point rather than the old one. Here is the solution of that equation.
A sensor reports the vector . We believe most entries are really zero, so we choose the penalty with for each entry. The proximal step applies soft thresholding entry by entry.
- Entry 1: , with sign . The result is .
- Entry 2: is at most , so the result is .
- Entry 3: , with sign . The result is .
- The denoised vector is .
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 and . What is the result?
Answer: entry 1 is . Entry 2 has , so it is . Entry 3 is . The result is .
Common mistakes and tradeoffs
It is tempting to think that the proximal term is just a nuisance. In fact the term 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 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 moves far and may skip past good points, while small stays near the current point and makes slow progress. The bound in step 4 holds for any fixed , 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 , balancing progress against staying close to .
- The optimality condition makes it an implicit subgradient step, which works at corners where a gradient does not exist.
- For the step is Soft Thresholding, which moves a value toward zero and sets small values exactly to zero.
- The objective values converge at rate for convex 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 for , 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 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 with , and check that it minimises .Show answer
By soft thresholding, the result is . Check: at the objective is . At it is , and at it is . So gives the lowest value of the three.
QuestionWhy is a small step size 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 gives a large pull, so each step is short and the method barely moves, which is safe but slow. A large 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 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 , 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 has no gradient at zero, so the weights oscillate around zero without landing on it, and the final answer is only approximately sparse.