ADMM

Also known as: Alternating direction method of multipliers

On this page 7

ADMM, the alternating direction method of multipliers, is an algorithm for convex optimization that splits a problem into two simpler subproblems, solves them in alternation and forces them to agree through a scaled dual variable. In artificial intelligence and machine learning, it is used for distributed model fitting, sparse regression, constrained training and large structured problems where a single monolithic solver would be too slow or too memory-hungry.

The method combines the decomposability of dual ascent with the robust convergence of the augmented Lagrangian. Its appeal is practical: each step is often a closed-form update or a cheap proximal operator, and the work can be spread across many machines that only exchange small vectors.

How ADMM splits and coordinates a problem

ADMM solves problems of the form minimize f(x) + g(z) subject to Ax + Bz = c, where f and g are convex functions that are easy to handle separately but awkward to handle together. A typical split puts a smooth data-fitting loss in f and a nonsmooth regularizer or constraint in g.

The algorithm works on the augmented Lagrangian, which adds a quadratic penalty (ρ/2)·‖Ax + Bz − c‖² to the ordinary Lagrangian. Each iteration performs three updates in a fixed order, and the penalty parameter ρ links them. The table below lists the steps in scaled form, where u is the dual variable divided by ρ.

StepUpdateRole in the algorithm
x-updateMinimize f(x) + (ρ/2)‖Ax + Bz − c + u‖² over xFits the first block with z and u fixed
z-updateMinimize g(z) + (ρ/2)‖Ax + Bz − c + u‖² over zFits the second block using the new x
Dual updateu ← u + Ax + Bz − cAccumulates the remaining constraint violation
The three updates of one ADMM iteration

The dual update is a running sum of residuals. When the two blocks disagree, u grows and pulls the next x and z toward consistency. Because x and z are updated one after the other rather than jointly, the method is a Gauss-Seidel pass over the two blocks, which is the origin of the phrase alternating direction.

Convergence behavior and stopping criteria

For closed, proper convex f and g and a Lagrangian with a saddle point, ADMM converges for any positive ρ. The objective approaches the optimum and the constraint residual goes to zero. The general rate is sublinear, about O(1/k), and it becomes linear under strong convexity or similar regularity assumptions.

Practitioners monitor two quantities. The primal residual r = Ax + Bz − c measures how far the blocks are from agreement, and the dual residual s = ρAᵀB(z − z_prev) measures how much the solution is still moving. Iteration stops when both fall below absolute and relative tolerances, often in the range of 1e-3 to 1e-4 for machine learning use.

The following table summarizes the parameters that most strongly affect speed and accuracy in practice.

ParameterTypical settingEffect when increased
Penalty ρ0.1 to 10 after scaling the dataFaster agreement, slower objective progress
Relaxation α1.5 to 1.8Often speeds convergence; values above 2 diverge
Tolerance1e-3 to 1e-4Fewer iterations but a less accurate solution
Iteration capHundreds to a few thousandMore time for slow, ill-conditioned problems
Key ADMM parameters and their effects

A common refinement is residual balancing: if the primal residual is much larger than the dual residual, ρ is multiplied by a factor such as 2, and if the opposite holds it is divided. This adaptive scheme removes much of the sensitivity to the choice of ρ, although the theoretical guarantees then require ρ to settle eventually.

ADMM sits between pure first-order gradient methods and second-order solvers. It shares the dual variable idea with the Lagrange multiplier framework and the proximal step with the proximal gradient method, but it differs in how it decomposes the problem.

MethodCore mechanismMain strengthMain weakness
ADMMAlternating block updates plus dual ascentSplits coupled and distributed problemsSlow to reach high accuracy
Dual ascentGradient steps on the dual functionFully separable updatesNeeds strict convexity to converge
Method of multipliersJoint minimization of augmented LagrangianRobust convergenceJoint step is often not separable
Proximal gradientGradient step plus proximal operatorSimple for smooth plus nonsmooth sumsNeeds a gradient Lipschitz constant
Interior-point methodNewton steps on a barrier problemHigh accuracy in few iterationsHeavy linear algebra per step
How ADMM differs from neighboring methods

The practical rule is that ADMM reaches modest accuracy quickly and high accuracy slowly. For many learning problems, where statistical error dominates optimization error, a solution accurate to three or four digits is entirely adequate, which explains its popularity.

Where ADMM is used in machine learning

The method shines when a problem has a natural split. The most common patterns are listed below.

  • Lasso and sparse regression: the x-update is a ridge-type linear solve and the z-update is soft thresholding.
  • Consensus optimization: each worker fits a local copy of the model on its own data shard, and a global variable enforces agreement, which suits federated and distributed training.
  • Constrained problems: projections onto boxes, simplices or cones become the z-update, keeping the loss step unconstrained.
  • Total variation and image reconstruction: the nonsmooth gradient penalty is separated from the data term.
  • Model compression: pruning and quantization constraints are imposed through a split variable while the network trains with ordinary gradient steps.

In consensus form with N workers, each iteration requires only the exchange of one parameter vector per worker. Communication cost therefore scales with model size rather than data size, which is the property that made ADMM a standard tool for large-scale statistical learning.

Limitations and common mistakes

ADMM is robust but not automatic. Most failures come from poor scaling, careless choice of ρ or applying convex guarantees to problems that are not convex. The table maps frequent symptoms to causes and fixes.

SymptomLikely causeRemedy
Primal residual stalls highρ too smallIncrease ρ or use residual balancing
Objective barely improvesρ too largeDecrease ρ and rescale the data
Thousands of slow iterationsIll-conditioned A or featuresPrecondition or normalize the inputs
Oscillation or divergenceNon-convex splitTreat it as a heuristic and validate results
Expensive x-updateRepeated matrix factorizationCache the factorization across iterations
Typical ADMM problems and remedies

On non-convex problems, such as training neural networks with hard constraints, ADMM often works well empirically, but convergence to a global optimum is not guaranteed and results depend on initialization. It should be described as a heuristic in that setting, not as an exact solver.

In simple terms

ADMM is a way to solve a big problem by letting two helpers work on separate parts. Each helper solves its own easier piece. Then they compare answers. A referee notes how far apart they are and nudges both toward agreement.

This repeats many times. Each round, the helpers get closer. Soon their answers match and the full problem is solved. The key idea is simple: split the hard part, then negotiate a shared answer. This makes it possible to use many computers at once, because each one only needs its own piece and a short message.

A practical example

A hospital network wants a sparse logistic regression model that predicts readmission risk from 2,000 clinical features. Patient records stay at 12 separate hospitals, and privacy rules forbid pooling them on one server. The data science team sets up consensus ADMM so that each site fits a local model on its own records.

In every iteration, each hospital solves a small regularized logistic regression and sends only its 2,000-element coefficient vector to a coordinator. The coordinator averages the vectors, applies soft thresholding to enforce sparsity and returns the shared model. With ρ set to 1 and residual balancing enabled, the residuals fall below 1e-3 after about 150 iterations.

The final model uses about 90 nonzero features, matches the accuracy of a centralized fit within a fraction of a percentage point and never moves a single patient record off site. The outcome shows the main benefit of ADMM: coordination through small messages instead of shared raw data.