Inferensys

Glossary

Proximal Gradient Method

The proximal gradient method is an iterative optimization algorithm for minimizing composite objective functions that are the sum of a differentiable term and a potentially non-differentiable, convex term.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
OPTIMIZATION ALGORITHM

What is the Proximal Gradient Method?

The proximal gradient method is a first-order optimization algorithm designed to minimize composite objective functions common in machine learning, particularly for problems involving non-smooth regularization.

The proximal gradient method is an iterative optimization algorithm for minimizing an objective function that is the sum of a differentiable term, ( f(x) ), and a potentially non-differentiable, convex term, ( g(x) ), such as an L1 or nuclear norm. It combines a standard gradient descent step on ( f ) with a proximal operator step that handles ( g ). This operator, defined as ( \text{prox}_{\lambda g}(v) = \arg\min_x (g(x) + \frac{1}{2\lambda}|x - v|^2) ), efficiently computes a point that balances minimizing ( g ) and staying near the gradient-updated point.

This method is fundamental for regularized regression (e.g., LASSO), matrix completion, and model compression techniques like inducing low-rank structure via the nuclear norm. Its convergence is guaranteed for convex problems with a Lipschitz-continuous gradient. Variants like accelerated proximal gradient (FISTA) and proximal stochastic gradient extend its efficiency. The algorithm's core strength is decomposing a complex, non-smooth problem into simpler, tractable sub-steps, making it a cornerstone of modern large-scale convex optimization.

PROXIMAL GRADIENT METHOD

Key Applications in Machine Learning

The proximal gradient method is an optimization algorithm for minimizing an objective function that is the sum of a differentiable term and a potentially non-differentiable term (like the nuclear norm), using a proximal operator step. This card grid explores its primary applications in machine learning and model compression.

01

Optimization with Non-Differentiable Regularizers

The proximal gradient method's core application is solving composite optimization problems of the form: minimize f(x) + g(x), where f is differentiable (e.g., a data fidelity loss) and g is convex but potentially non-differentiable. Common non-differentiable regularizers g include:

  • L1 Norm (Lasso): Promotes sparsity in model weights.
  • Nuclear Norm: Encourages low-rank solutions, crucial for matrix completion and low-rank factorization.
  • Group Lasso: Induces group-wise sparsity. The algorithm alternates between a gradient step on f and a proximal step (e.g., soft-thresholding for L1) on g, efficiently handling the non-smooth component.
02

Low-Rank Matrix Completion & Robust PCA

This method is fundamental for recovering missing entries in a matrix under a low-rank assumption. The objective typically uses the Frobenius norm for the differentiable data-fitting term f and the nuclear norm (sum of singular values) as the non-differentiable regularizer g to promote low rank. The proximal operator for the nuclear norm is singular value thresholding, which shrinks singular values toward zero. This same framework powers Robust PCA, which separates a matrix into a low-rank component (modeled with a nuclear norm) and a sparse outlier component (modeled with an L1 norm).

03

Model Compression via Structured Sparsity

Proximal gradient methods enable aggressive model compression by enforcing structured sparsity patterns during training, a technique known as learning-compression. Key applications include:

  • Weight Pruning: Using L1 or group Lasso regularizers to drive unimportant weights to exactly zero, creating a sparse model.
  • Low-Rank Factorization of Layers: Applying nuclear norm regularization on weight matrices to implicitly encourage low-rank factorizations without pre-defining the rank.
  • Channel Pruning in CNNs: Using group Lasso on filters to remove entire channels from convolutional layers. The proximal step cleanly handles the non-differentiable sparsity-inducing penalty, resulting in models that are natively compressed and hardware-friendly.
04

Fast Iterative Shrinkage-Thresholding Algorithm (FISTA)

FISTA is a momentum-accelerated variant of the proximal gradient method that dramatically improves convergence rates. It achieves an O(1/k²) convergence rate for the objective function value, compared to the standard method's O(1/k) rate. The algorithm introduces an auxiliary sequence of points and uses a specific momentum term, performing:

  1. A gradient descent step on the smooth part f.
  2. A proximal operator application to the non-smooth part g.
  3. An update with Nesterov-type momentum. FISTA is the workhorse algorithm for large-scale L1-regularized problems (like LASSO) in high-dimensional statistics and compressed sensing.
05

Connection to Alternating Direction Method of Multipliers (ADMM)

The proximal gradient method is closely related to ADMM, another powerful optimization framework. Both can solve composite optimization problems. ADMM often decomposes the problem differently, using variable splitting and the method of multipliers. In many cases, a single iteration of ADMM involves solving subproblems that are themselves proximal operations. For problems with simple proximal operators, the proximal gradient method can be more straightforward and efficient. For problems with complex constraints or multiple non-smooth terms, ADMM's splitting strategy may be preferred. Understanding both provides a toolkit for designing custom training loops for compressed models.

06

Implementation in Modern Frameworks

While often implemented custom for research, core concepts are embedded in popular ML libraries:

  • PyTorch: Custom optimizers can be built using torch.optim.Optimizer with a step() method that computes gradients for f and then applies a proximal operator (e.g., torch.nn.functional.soft_threshold for L1).
  • TensorFlow: The tf.train.ProximalGradientDescentOptimizer is available for L1 and L2 regularization, implementing the proximal method for these specific cases.
  • JAX: Its functional nature and jax.grad make it ideal for implementing custom proximal gradient loops with JIT compilation. The efficiency hinges on the proximal operator being computationally cheap, which is true for norms like L1, L2, and nuclear norm.
OPTIMIZATION ALGORITHMS

Comparison to Other Optimization Methods

This table compares the Proximal Gradient Method to other common first-order optimization algorithms, highlighting key features relevant to solving composite objective functions common in model compression and low-rank factorization.

Feature / MetricProximal Gradient MethodSubgradient MethodStochastic Gradient Descent (SGD)Adam / Adaptive Methods

Objective Function Type

Composite: f(x) + g(x) (differentiable + non-differentiable)

Non-differentiable or composite

Differentiable

Differentiable

Handles Non-Differentiable Terms (e.g., L1/Nuclear Norm)

Convergence Rate (for convex, smooth f)

O(1/k) to O(1/k²) with acceleration

O(1/√k)

O(1/√k)

O(1/√k) (varies)

Per-Iteration Cost

Moderate (gradient + proximal op)

Low (subgradient)

Low (stochastic gradient)

Low-Moderate (maintains moments)

Key Hyperparameter(s)

Step size (learning rate)

Step size schedule (diminishing)

Learning rate, momentum

Learning rate, β₁, β₂, ε

Standard Use Case

Low-rank matrix completion, sparse regression

General convex non-smooth problems

Training deep neural networks

Training deep neural networks

Requires Smooth Term f(x) to be L-Lipschitz

Common in Low-Rank/Compression Problems

PROXIMAL GRADIENT METHOD

Frequently Asked Questions

The proximal gradient method is a first-order optimization algorithm for minimizing composite objective functions common in machine learning, particularly for problems with non-smooth regularization. These questions address its core mechanics, applications, and relationship to other optimization techniques.

The proximal gradient method is an iterative optimization algorithm designed to minimize an objective function that is the sum of a differentiable term, (f(x)), and a potentially non-differentiable term, (g(x)), using a proximal operator step. It is the foundational algorithm for solving composite optimization problems of the form (\min_x f(x) + g(x)), where (f) has a computable gradient and (g) has a computable proximal operator, even if it is not differentiable (e.g., the L1 norm or nuclear norm). The method iteratively takes a gradient step in (f) and then applies the proximal operator of (g), which acts as a generalized projection or shrinkage step.

Key Components:

  • Gradient Step: Moves the parameters in the direction of steepest descent for (f).
  • Proximal Operator: Solves a subproblem that balances moving towards the gradient step's result and minimizing (g). For (g(x) = \lambda |x|_1), this is the soft-thresholding operator.
  • Step Size: Governed by a parameter (\eta) (or learning rate), which must be chosen appropriately for convergence.
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.