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 operator | Typical use |
|---|---|---|
| L1 norm λ||x||_1 | Soft thresholding of each entry | Lasso, sparse coding |
| Squared L2 norm (λ/2)||x||^2 | Uniform scaling by 1/(1 + tλ) | Ridge-style shrinkage |
| Group L2 norm | Block soft thresholding | Group lasso, feature groups |
| Nuclear norm | Soft thresholding of singular values | Low-rank matrix completion |
| Indicator of a convex set | Euclidean projection onto the set | Box, simplex or norm-ball constraints |
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.
| Variant | Rate on convex problems | Main trade-off |
|---|---|---|
| Basic proximal gradient | O(1/k) | Simple and monotone, but slow on ill-conditioned problems |
| FISTA | O(1/k^2) | Faster, but the objective may oscillate |
| Backtracking version | Same as fixed step | No need to know L, extra function evaluations |
| Stochastic proximal gradient | O(1/√k) without variance reduction | Cheap steps on large data, noisy progress |
| Proximal SVRG or SAGA | Linear under strong convexity | Faster stochastic convergence, more memory or epochs |
How it compares with related optimization methods
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.
| Method | Handles nonsmooth terms | Convex rate | Best fit |
|---|---|---|---|
| Subgradient method | Yes, via any subgradient | O(1/√k) | Nonsmooth problems without a cheap prox |
| Proximal gradient | Yes, exactly through prox | O(1/k), O(1/k^2) accelerated | Smooth loss plus simple penalty |
| Coordinate descent | Yes, if g is separable | Problem-dependent | Very high-dimensional lasso |
| ADMM | Yes, by splitting variables | O(1/k) in ergodic sense | Coupled terms or distributed data |
| Interior-point method | Through reformulation | Few iterations, costly steps | Moderate-size problems needing high accuracy |
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.
| Symptom | Likely cause | Remedy |
|---|---|---|
| Objective diverges | Step size above 1/L | Use backtracking or estimate L by power iteration |
| Very slow progress | Poor conditioning | Rescale features, use FISTA or a variance-reduced method |
| No exact zeros appear | Prox applied incorrectly or skipped | Verify soft thresholding uses tλ, not λ |
| FISTA oscillates | Momentum overshoot | Apply adaptive or function-value restarts |
| Stalls on nonconvex loss | Only stationarity is guaranteed | Use several starts and monitor the gradient mapping |
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.