Coordinate Descent and Block-Coordinate Methods
Anchor (Master): Nesterov 2012 Efficiency of Coordinate Descent Methods on Huge-Scale Optimization Problems (SIAM Journal on Optimization 22:2, 341-362) §2-§5 (the coordinate-Lipschitz / sampling-probability framework, the expected O(R²/k) rate, the strongly-convex linear rate, and accelerated coordinate descent); Wright 2015 Coordinate Descent Algorithms (Mathematical Programming 151:1) §3-§7 (convergence for the separable-composite model, Gauss-Southwell, asynchronous/parallel CD); Beck 2017 First-Order Methods in Optimization (SIAM) §11 (block-coordinate minimisation, the Gauss-Seidel/alternating-minimisation connection, the sufficient-decrease analysis)
Intuition Beginner
Suppose you must tune a machine with hundreds of dials to make some reading as small as possible. Adjusting all the dials together is hard: you would need to feel how every dial pulls against every other one at once. Coordinate descent says: stop trying. Fix all the dials but one, and turn that single dial to its best setting while the rest stay frozen. Then move to the next dial and do the same. Sweep through the dials again and again. Each move is a one-dial problem, which is far easier than the all-dials problem, and the reading keeps dropping.
The win is that a one-dial move is cheap. For many large problems, turning one dial only touches a small slice of the data, not all of it, so a single coordinate update can be hundreds of times faster than a full step that touches everything. When the problem has millions of variables but each one connects to only a little data, this cheapness is decisive.
Which dial should you turn next? Three honest choices. Go in order, dial one then dial two, and repeat — the cyclic rule. Pick a dial at random each time — the randomized rule. Or look at all the dials and turn the one that is most out of tune right now — the greedy rule, also called Gauss-Southwell. Cyclic is simplest; random is easy to analyse and avoids bad orderings; greedy makes the most progress per move but costs more to decide.
There is a catch. Turning one dial at a time only reaches the true best setting when the dials do not fight in a tangled way. If the cost has a smooth part plus a penalty that splits cleanly into one piece per dial, the method lands at the genuine minimum. When the pieces are tangled together, one-dial-at-a-time can get stuck circling a spot that is not the best — so the structure of the problem, not just the method, decides whether it works.
Visual Beginner
Picture a bowl-shaped cost over two dials, drawn as oval contour rings. A full step heads straight downhill across both dials. Coordinate descent instead moves only sideways, then only up-and-down, then sideways again — a staircase of axis-aligned moves that still spirals into the centre. Each leg of the staircase is one cheap one-dial solve.
full step (both dials) coordinate descent (one dial at a time)
.-''''-. .-''''-.
/ ____ \ / ___|___ \ x0
| / \ | | / | |----> horizontal move (dial 1)
| | min | | straight | | min--+ | |
| \____/ | <-- downhill | \__|_/ | v vertical move (dial 2)
\ / path \ | / horizontal, vertical, ...
'-....-' '-..|..-' staircase into the centre| selection rule | how the next dial is chosen | trade-off |
|---|---|---|
| cyclic | sweep in fixed order | simplest; a bad order can be slow |
| randomized | pick a dial at random each step | easy to analyse; avoids worst orders |
| Gauss-Southwell (greedy) | turn the most out-of-tune dial | most progress per move; costs more to pick |
Worked example Beginner
We minimise a two-dial cost by hand, one dial at a time. Take the cost , and start at . The cleanest move per dial is "freeze the other dial, set this one to its best value."
Step 1. Turn dial one, freezing . The cost in alone is . Its slope is ; setting the slope to zero gives . So the point moves to .
Step 2. Turn dial two, freezing . The cost in alone is (plus constants). Its slope is ; setting it to zero gives . The point moves to .
Step 3. Turn dial one again, freezing . The cost in is . Slope gives . The point moves to .
Step 4. See the drift toward the true minimum. The exact minimum solves and , giving , . Our staircase is closing in on , dial by dial.
What this tells us. Each step was a one-variable minimisation — a single slope set to zero — yet the sequence marches toward the genuine two-variable minimum. The cost dropped at every move, and we never had to handle both dials at once.
Check your understanding Beginner
Formal definition Intermediate+
Throughout, is convex and differentiable with optimal value and minimiser ; the subdifferential and proximal calculus are as in 44.06.02, and denotes the -th standard basis vector. Write for the -th partial derivative.
Definition (coordinate Lipschitz constants). has coordinate Lipschitz constants if for all and ,
Each , the global gradient Lipschitz constant, and often for large , which is the source of the per-iteration advantage. The coordinate descent lemma is the one-variable descent lemma along : .
Definition (coordinate descent step). Given a coordinate , the exact-minimisation step is
and the coordinate-gradient step (minimising the coordinate descent lemma's quadratic model) is
Both change one coordinate while freezing the rest.
Definition (coordinate-selection rules). A coordinate descent method iterates a coordinate step at on coordinate , where is chosen by one of:
- Cyclic (Gauss-Seidel): , sweeping .
- Randomized: with probability (e.g. ), drawn independently of the history.
- Gauss-Southwell (greedy): , the steepest coordinate.
Definition (separable-composite model and the proximal coordinate step). For the composite objective
with convex -smooth and each proper closed convex (so the nonsmooth part is block-separable), the proximal coordinate-gradient step on coordinate is
using the scalar proximal operator of 44.06.02. Separability is what makes this single-coordinate prox well-defined: for a sum-separable acts coordinatewise.
Definition (block-coordinate descent). Partition the coordinates into blocks . Block-coordinate (Gauss-Seidel) minimisation updates one block at a time by exact minimisation,
and the two-block case is alternating minimisation.
Counterexamples to common slips Intermediate+
"Coordinate descent always converges to a minimiser of a convex function." For smooth convex it does, but for a nonsmooth nonseparable convex it can stall at a non-minimiser. The classic obstruction is Powell's example (1973): a smooth nonconvex three-variable function on which cyclic exact coordinate minimisation cycles among the vertices of a set and never reaches a stationary point. The cure is the smooth-plus-separable structure — the nonsmoothness must split coordinatewise.
"The exact-minimisation step and the coordinate-gradient step are the same." They coincide only for a coordinate-quadratic . In general exact minimisation solves along , while the gradient step moves by ; both decrease , but the rate analysis is cleanest for the gradient step via the coordinate descent lemma.
"Greedy is always best." Gauss-Southwell makes the most progress per iteration, but picking costs to scan unless special structure permits cheap maintenance; randomized CD with an draw can win on wall-clock time despite needing more iterations.
Key theorem with proof Intermediate+
The convergence of every coordinate method rests on one per-step inequality — the coordinate descent lemma's guaranteed decrease — from which the cyclic, randomized, and greedy rates each follow by a different accounting of the chosen coordinate.
Theorem (coordinate sufficient-decrease and the randomized rate). Let be convex with coordinate Lipschitz constants . Then the coordinate-gradient step satisfies
Consequently, for randomized coordinate descent with , , and any minimiser ,
Proof. Apply the coordinate descent lemma at along with :
which collapses to , i.e. .
For the rate, take conditional expectation over the random coordinate drawn with . By ,
Convexity gives , so . Writing and taking total expectation (using Jensen, , and that by ),
Divide by and use :
Summing this telescoping bound from to gives , hence , which is .
Bridge. This single per-step decrease is the foundational reason coordinate methods converge, and it builds toward the strongly-convex linear rate and the block and accelerated variants of the Advanced results, where the same inequality is summed under a different coordinate accounting. This is exactly the coordinate analogue of the descent lemma behind the proximal-gradient method of 44.06.02: where that argument decreased by a full-gradient quadratic, here only the -th term survives, so the proof generalises full-gradient descent to a one-coordinate move at of the cost. The randomized rate is dual to the stochastic-gradient rate of 44.06.05 — both read an expected one-step decrease against convexity — and the central insight is that sampling coordinate with probability turns the sum into the full , recovering a clean rate whose constant replaces the global . Putting these together, the deterministic, randomized, and greedy methods share one inequality, and it appears again in the asynchronous-parallel analysis where the expectation is taken over both the coordinate and a bounded staleness delay.
Exercises Intermediate+
Advanced results Master
Coordinate descent is the iteration a one-coordinate (or one-block) update of on a coordinate , and the results below extend the single decrease to the strongly-convex linear rate, the cyclic and greedy rules, the block and accelerated variants, and the asynchronous-parallel setting.
Theorem 1 (rates of randomized coordinate descent). For convex with coordinate Lipschitz constants and randomized sampling , , randomized coordinate descent attains (Key theorem). If is -strongly convex, the rate is linear, (Exercise 6) [Nesterov, Yu. — Efficiency of Coordinate Descent Methods on Huge-Scale Optimization Problems (2012)]. The constant , the sum of coordinate Lipschitz constants, replaces the global of full-gradient descent; when coordinates are well-conditioned ( so ) the iteration count matches full-gradient descent at of the per-iteration cost, which is the precise sense in which CD dominates on huge-scale problems.
Theorem 2 (the separable-composite model and proximal coordinate descent). For with convex -smooth and each proper closed convex, randomized proximal coordinate descent with the step converges with the same and strongly-convex linear rates, because the prox step satisfies a coordinate sufficient-decrease analogue of and the optimality condition decouples coordinatewise into [Wright, S. J. — Coordinate Descent Algorithms (2015)]. This separability is the hypothesis that makes coordinatewise minimisation equivalent to global minimisation; without it the equivalence fails. Powell's 1973 example — cyclic exact coordinate minimisation cycling on a smooth nonconvex function whose level sets couple the variables — is the canonical demonstration that the structural hypothesis cannot be dropped, and it is the reason the separable model, not mere convexity, is the right setting for coordinate methods. The model covers LASSO (, prox is soft-thresholding), elastic net, group structure with block separability, and the box-constrained SVM dual (, prox is clipping, Exercise 8).
Theorem 3 (Gauss-Southwell and the cyclic rule). The greedy Gauss-Southwell rule satisfies the per-step decrease , giving a deterministic rate that, on coordinates with comparable , can outpace randomized CD by a factor up to in the iteration count because replaces the averaged — the gain is real whenever the scan or its incremental maintenance is affordable [Wright, S. J. — Coordinate Descent Algorithms (2015)]. The cyclic rule has a worse worst-case dependence (a factor up to or over randomized in adversarial orderings) yet is often the fastest in practice for well-ordered problems; its analysis sums over a full sweep rather than in expectation, which is why a single bad coordinate can dominate a sweep.
Theorem 4 (block-coordinate descent and the Gauss-Seidel / alternating-minimisation connection). Block-coordinate exact minimisation, cycling over blocks , is the nonlinear Gauss-Seidel method; for the quadratic with the natural block partition of it is exactly the matrix Gauss-Seidel iteration solving [Beck, A. — First-Order Methods in Optimization (SIAM, 2017)]. The two-block case is alternating minimisation, which underlies the EM algorithm, nonnegative matrix factorisation, and iteratively reweighted schemes. Block exact minimisation is monotone (each block solve cannot increase ) and converges to a minimiser under block-separability of the nonsmooth part and a uniqueness or strict-convexity condition per block; the failure of plain two-block alternating minimisation when the blocks are coupled non-separably is again the Powell phenomenon at the block level.
Theorem 5 (accelerated, parallel, and asynchronous coordinate descent). Inserting a Nesterov momentum extrapolation into randomized coordinate descent yields accelerated coordinate descent with the optimal expected rate , where is an averaged coordinate constant [Nesterov, Yu. — Efficiency of Coordinate Descent Methods on Huge-Scale Optimization Problems (2012)]. Parallel coordinate descent updates a random subset of coordinates per round, with a step-size penalty governed by a separability/sparsity measure of ; asynchronous (Hogwild!-style) coordinate descent lets cores read and write shared coordinates without locks, and converges provided the staleness (the delay between a coordinate read and its write) is bounded — the convergence proof extends by taking expectation jointly over the sampled coordinate and the delay, absorbing the inconsistency into a contraction-factor penalty [Wright, S. J. — Coordinate Descent Algorithms (2015)]. These are the variants that make coordinate descent a default engine for very large sparse machine-learning problems on multicore hardware.
Synthesis. The single per-coordinate decrease is the foundational reason the entire coordinate-method family coheres, and the central insight is that the coordinate Lipschitz constants , not the global , set the rate — this is exactly why sampling with probability collapses into and replaces by the typically far smaller per unit of work. The randomized and strongly-convex linear rates are the in-expectation form of summed against convexity, and they are dual to the stochastic-gradient rates of 44.06.05: coordinate sampling and data sampling are two faces of one stochastic-first-order template, each extracting a rate from an expected one-step inequality. The proximal coordinate step generalises the proximal-gradient method of 44.06.02 to one coordinate at a time, and the foundational reason it is valid is the decoupling of the optimality condition under separability — the structural hypothesis whose failure Powell's example exhibits, which is exactly why the smooth-plus-separable composite, not mere convexity, is the correct domain. Putting these together, the cyclic, greedy, block, accelerated, and asynchronous variants are one inequality read under different coordinate accountings, and the bridge from this unit to large-scale machine learning is precisely the cheapness of a single coordinate update — touching one column of the data rather than all of it — which is why coordinate descent generalises full-gradient descent into the dominant solver for LASSO, the SVM dual, and huge sparse regression.
Full proof set Master
Proposition 1 (coordinate descent lemma). If has coordinate Lipschitz constant along , then for all and , .
Proof. This is Exercise 3. Let , so and . Decompose the integrand as ; the constant integrates to , and bounds the remainder by .
Proposition 2 (coordinate sufficient-decrease). For convex with coordinate constant , the step satisfies .
Proof. Apply Proposition 1 with : . Rearranging gives the claim; the right side is nonnegative, so the step is monotone.
Proposition 3 (expected one-step decrease, randomized rule). For randomized coordinate descent with , , .
Proof. Conditioning on and averaging Proposition 2 over the sampled coordinate, . With each term is ; summing over gives .
Proposition 4 (randomized rate). For convex with , randomized CD with gives .
Proof. By Proposition 2 the iterates stay in the sublevel set , so along the trajectory. Convexity gives , hence . Insert into Proposition 3 and take total expectation; with and Jensen (), . Dividing by and using gives ; telescoping from to yields , i.e. .
Proposition 5 (linear rate under strong convexity). If is additionally -strongly convex, randomized CD with gives .
Proof. Strong convexity gives the Polyak-Łojasiewicz inequality : minimising over (the minimiser is ) gives . Substituting into Proposition 3, . Taking total expectation and iterating gives the geometric bound; for some keeps .
Proposition 6 (block Gauss-Seidel for quadratics). For with symmetric positive definite and the splitting ( block-diagonal, strictly block-lower, strictly block-upper), block-coordinate exact minimisation in natural order equals the Gauss-Seidel iteration , which converges to .
Proof. Exact minimisation over block with earlier blocks already updated and later blocks at their old values sets the -th block-gradient to zero: evaluated with the partially-updated . Sweeping in order is precisely substituting the new blocks as they become available, which collects to , i.e. . The iteration matrix satisfies for symmetric positive-definite (a standard fact: Gauss-Seidel converges for SPD systems), so .
Proposition 7 (Gauss-Southwell per-step decrease). For convex with coordinate constants , the greedy step with the coordinate-gradient update satisfies .
Proof. By Proposition 2 applied to the chosen coordinate , . Since maximises , , giving the claim. Because , the greedy decrease is at least the expected randomized decrease and can be up to times larger.
Connections Master
Coordinate descent is the coordinatewise specialisation of the proximal-gradient method of
44.06.02: the proximal coordinate step is one coordinate of forward-backward splitting, the coordinate descent lemma is the descent lemma restricted to , and the separable-composite optimality condition is the composite Fermat rule of that unit read coordinatewise. The soft-thresholding prox that unit derives is exactly the per-coordinate update that makes coordinate descent the standard LASSO solver.Randomized coordinate descent is the coordinate-sampling sibling of the stochastic gradient method of
44.06.05: both replace an deterministic step by a cheap randomised step, both extract their rate from an expected one-step-decrease inequality, and the strongly-convex linear rate here mirrors the variance-reduced linear rate there. Where SGD samples a summand of a finite-sum objective, CD samples a coordinate of the variable; the two stochastic-first-order analyses share one template, and accelerated CD parallels accelerated SGD.The subgradient method of
44.06.01supplies the baseline that coordinate descent improves on for structured problems: where the black-box subgradient method is stuck at , coordinate descent exploits the separable structure to reach (and linear under strong convexity) at of the per-iteration cost, just as the proximal-gradient method does, so coordinate descent inherits and refines the structural-exploitation argument that lets first-order methods beat the nonsmooth black-box lower bound.
Historical & philosophical context Master
Coordinate-wise relaxation is among the oldest iterative ideas in numerical computation: the Gauss-Seidel method for linear systems, in which one solves for each variable in turn using the most recent values of the others, descends from work of Gauss and was formalised by Seidel in 1874 [Seidel 1874]. The recognition that cyclic coordinate minimisation can fail to converge on a smooth problem is due to M. J. D. Powell, whose 1973 note exhibited a differentiable function of three variables on which cyclic exact coordinate search cycles among non-stationary points [Powell 1973], establishing that convexity alone is insufficient and motivating the separable-structure hypotheses used since. The modern complexity theory of coordinate descent for huge-scale problems was set by Yurii Nesterov in 2012 [Nesterov 2012], who introduced the coordinate-Lipschitz / sampling-probability framework, proved the expected and strongly-convex linear rates, and gave the accelerated variant; the comprehensive survey unifying the cyclic, randomized, greedy, block, and asynchronous variants and their application to LASSO and the SVM dual is Stephen J. Wright's 2015 review [Wright 2015]. The sequential-minimal-optimization specialisation that made coordinate ascent the practical SVM-dual solver is due to John Platt in 1998 [Platt 1998].
Bibliography Master
@article{nesterov2012coordinate,
author = {Nesterov, Yurii},
title = {Efficiency of Coordinate Descent Methods on Huge-Scale Optimization Problems},
journal = {SIAM Journal on Optimization},
volume = {22},
number = {2},
pages = {341--362},
year = {2012}
}
@article{wright2015coordinate,
author = {Wright, Stephen J.},
title = {Coordinate Descent Algorithms},
journal = {Mathematical Programming},
volume = {151},
number = {1},
pages = {3--34},
year = {2015}
}
@book{beck2017fom,
author = {Beck, Amir},
title = {First-Order Methods in Optimization},
series = {MOS-SIAM Series on Optimization},
number = {25},
publisher = {SIAM},
year = {2017}
}
@article{powell1973search,
author = {Powell, M. J. D.},
title = {On search directions for minimization algorithms},
journal = {Mathematical Programming},
volume = {4},
number = {1},
pages = {193--201},
year = {1973}
}
@incollection{platt1998smo,
author = {Platt, John C.},
title = {Sequential Minimal Optimization: A Fast Algorithm for Training Support Vector Machines},
booktitle = {Advances in Kernel Methods: Support Vector Learning},
publisher = {MIT Press},
year = {1998}
}
@article{seidel1874,
author = {Seidel, Ludwig},
title = {{\"U}ber ein Verfahren, die Gleichungen, auf welche die Methode der kleinsten Quadrate f{\"u}hrt, sowie line{\"a}re Gleichungen {\"u}berhaupt durch successive Ann{\"a}herung aufzul{\"o}sen},
journal = {Abhandlungen der Bayerischen Akademie der Wissenschaften},
volume = {11},
pages = {81--108},
year = {1874}
}