Proximal gradient method

Also known as: proximal gradient descent · forward-backward splitting

On this page 7

The proximal gradient method is an iterative algorithm for minimizing a composite objective function of the form f(x) + g(x), where f is smooth and differentiable and g is convex but possibly nonsmooth. Each iteration takes an ordinary gradient step on f and then applies the proximal operator of g, which is why the method is also called forward-backward splitting or proximal gradient descent.

In mathematical optimization for artificial intelligence, the method is the standard workhorse for sparse and regularized learning: the lasso, group lasso, nuclear-norm matrix completion, total variation denoising and many constrained problems. It keeps the low per-iteration cost of gradient descent while handling penalties and constraints that plain gradient methods cannot differentiate.

How the proximal gradient update works

The update combines an explicit forward step and an implicit backward step. Given the current point x_k and a step size t, the method computes x_{k+1} = prox_{tg}(x_k – t∇f(x_k)). The forward step moves against the gradient of the smooth part; the backward step resolves the nonsmooth part exactly.

The proximal operator is defined as prox_{tg}(v) = argmin_x { g(x) + (1/2t)||x – v||^2 }. It returns the point that balances a small value of g against staying close to v. For convex g this subproblem has a unique solution, and for many penalties used in machine learning it has a closed-form answer that costs no more than a vector pass.

An equivalent view explains why the method works. At each iteration it minimizes a quadratic upper model of f plus the exact g. When the step size satisfies t ≤ 1/L, where L is the Lipschitz constant of ∇f, the model majorizes f, so every step is guaranteed not to increase the objective. This is the majorization-minimization principle in its simplest form.

Penalty g(x)Proximal operatorTypical use
L1 norm λ||x||_1Soft thresholding of each entryLasso, sparse coding
Squared L2 norm (λ/2)||x||^2Uniform scaling by 1/(1 + tλ)Ridge-style shrinkage
Group L2 normBlock soft thresholdingGroup lasso, feature groups
Nuclear normSoft thresholding of singular valuesLow-rank matrix completion
Indicator of a convex setEuclidean projection onto the setBox, simplex or norm-ball constraints
Common proximal operators in machine learning

Convergence rates and step-size rules

For convex f and g with a fixed step 1/L, the basic method reaches an objective error of O(1/k) after k iterations. When f is also strongly convex with parameter μ, convergence becomes linear, with the error shrinking by a factor close to (1 – μ/L) per step. The ratio L/μ, the condition number, therefore governs practical speed.

Accelerated variants add a momentum term to the point at which the gradient is evaluated. The best known is FISTA, the fast iterative shrinkage-thresholding algorithm, which improves the convex rate to O(1/k^2) with almost no extra cost per iteration. FISTA is not monotone, so practical implementations often add restarts when the objective rises.

When L is unknown or varies across the domain, a backtracking line search shrinks t until a sufficient-decrease condition holds. This is usually safer than guessing L, because a step that is too large causes divergence and a step that is far too small wastes iterations.

VariantRate on convex problemsMain trade-off
Basic proximal gradientO(1/k)Simple and monotone, but slow on ill-conditioned problems
FISTAO(1/k^2)Faster, but the objective may oscillate
Backtracking versionSame as fixed stepNo need to know L, extra function evaluations
Stochastic proximal gradientO(1/√k) without variance reductionCheap steps on large data, noisy progress
Proximal SVRG or SAGALinear under strong convexityFaster stochastic convergence, more memory or epochs
Variants and their guarantees

The proximal gradient method sits between plain gradient descent and heavier splitting schemes. It needs one gradient of f and one proximal evaluation of g per iteration, which makes it attractive whenever the proximal operator is cheap and the smooth part dominates the cost.

MethodHandles nonsmooth termsConvex rateBest fit
Subgradient methodYes, via any subgradientO(1/√k)Nonsmooth problems without a cheap prox
Proximal gradientYes, exactly through proxO(1/k), O(1/k^2) acceleratedSmooth loss plus simple penalty
Coordinate descentYes, if g is separableProblem-dependentVery high-dimensional lasso
ADMMYes, by splitting variablesO(1/k) in ergodic senseCoupled terms or distributed data
Interior-point methodThrough reformulationFew iterations, costly stepsModerate-size problems needing high accuracy
Comparison with neighboring methods

The key distinction from the subgradient method is that the proximal step uses the full structure of g instead of a single subgradient, which is why it produces exact zeros in sparse solutions. Subgradient iterates hover near zero but rarely reach it.

Practical use in machine learning

In practice the method is chosen when a model combines a differentiable data-fit term with a structural prior. Typical data-fit terms are least squares, logistic loss or a negative log-likelihood; typical priors enforce sparsity, low rank, smoothness or feasibility.

  • Sparse regression and classification: L1-regularized least squares or logistic regression for feature selection.
  • Compressed sensing and imaging: recovering signals from few measurements with sparsity or total variation priors.
  • Matrix completion: recommender systems that assume a low-rank rating matrix.
  • Neural network pruning: proximal steps on weight groups to remove entire channels during training.
  • Constrained learning: projected gradient descent is the special case where g is a set indicator.

Configuration usually comes down to three choices: the step-size policy, the acceleration scheme and the stopping rule. A reliable stopping test monitors the norm of the gradient mapping (x_k – x_{k+1})/t, which is zero exactly at a minimizer.

Limitations and common mistakes

The method is only as efficient as its proximal operator. When g has no closed-form prox, such as an overlapping group penalty or a complex constraint set, each iteration requires an inner solver and the advantage over ADMM or interior-point methods shrinks.

SymptomLikely causeRemedy
Objective divergesStep size above 1/LUse backtracking or estimate L by power iteration
Very slow progressPoor conditioningRescale features, use FISTA or a variance-reduced method
No exact zeros appearProx applied incorrectly or skippedVerify soft thresholding uses tλ, not λ
FISTA oscillatesMomentum overshootApply adaptive or function-value restarts
Stalls on nonconvex lossOnly stationarity is guaranteedUse several starts and monitor the gradient mapping
Frequent problems and remedies

For non-convex f, the method still converges to stationary points under mild conditions, but it offers no global optimum guarantee. Nonconvex penalties such as the L0 pseudo-norm or SCAD have computable proximal maps, yet the resulting iterations depend strongly on initialization.

The idea in brief

Many learning problems have two goals. One goal is to fit the data well. The other is to keep the model simple or tidy, for example by using few features. The first goal is smooth and easy to follow downhill. The second goal has sharp corners.

The proximal gradient method handles each goal with the right tool. First it takes a normal downhill step for the data fit. Then it applies a quick cleanup step for the simplicity rule. That cleanup can set small values to exactly zero. Repeating these two steps leads to a model that is both accurate and simple.

A practical scenario

A credit risk team builds a logistic regression model with 20,000 candidate features drawn from transaction histories. Regulators expect a model that analysts can explain, so the team adds an L1 penalty to keep only a small set of predictive features.

The data scientists solve the problem with FISTA and backtracking. Each iteration computes the gradient of the logistic loss over 2 million records and then applies soft thresholding to the weights. After about 300 iterations the gradient mapping falls below the tolerance, and only about 140 features remain nonzero.

The result is a model with accuracy close to the dense baseline but small enough for a risk committee to review line by line. Changing the penalty strength λ and warm-starting from the previous solution produces a full regularization path in minutes, which helps the team choose the sparsity level on validation data.