Algorithm Search⌘K

Algorithmadvanced

Chambolle-Pock algorithm

Also called primal-dual hybrid gradient, PDHG, Chambolle-Pock primal-dual algorithm.

Solve min F(Kx) + G(x) by alternating proximal steps on the primal and dual variables with an extrapolation, using only K and its adjoint.

Time
O(N (k + p)) worst
Space
O(m + n) extra
Where
N = the number of iterations; k = the cost of one product with K and one with its adjoint; m = the number of dual unknowns; n = the number of primal unknowns; p = the cost of the two proximal steps
Properties
deterministicnot exactiterativematrix free
Origin
Antonin Chambolle, Thomas Pock, 2011

The Chambolle-Pock algorithm solves convex problems of the form min⁡xF(Kx)+G(x)\min_x F(Kx) + G(x), where KK is a linear operator and FF and GG are convex functions whose proximal operators are cheap. It works on the saddle point form min⁡xmax⁡y⟨Kx,y⟩+G(x)−F∗(y)\min_x \max_y \langle Kx, y\rangle + G(x) - F^*(y), with the convex conjugate F∗F^*, and alternates a proximal ascent step in the dual variable yy with a proximal descent step in the primal variable xx. An extrapolation xˉ=2xn+1−xn\bar x = 2x^{n+1} - x^n between the two steps is what makes it converge. It needs only products with KK and its adjoint K∗K^*, never a linear solve, and it converges for every pair of steps with τσ∥K∥2<1\tau\sigma\|K\|^2 < 1. The averages of the iterates have a primal-dual gap of O(1/N)O(1/N) after NN steps. In imaging it is the standard solver for total variation, total generalized variation and other nonsmooth models with a forward operator.

In plain words

Many image problems have two parts: one part that wants the image to fit the measurements, and one part that wants the image to look clean, for example to have few edges. Each part is easy alone, but together they are hard, because the clean part acts on the edges of the image and not on its pixels. The method keeps two unknowns: the image, and a helper that lives on the edges and says how much each edge costs. It takes turns. The helper looks at the current image and updates its prices. Then the image takes a small step against those prices and toward the measurements. Before the helper looks again, the image is pushed a little further in the direction it just moved. This small push is the key detail. Without it the two turns can chase each other in circles.

The problem

Minimize F(Kx)+G(x)F(Kx) + G(x) over x∈Rnx \in \mathbb{R}^n, where:

  • K:Rn→RmK : \mathbb{R}^n \to \mathbb{R}^m is linear with norm L=∥K∥L = \|K\|, given as two routines for KxKx and K∗yK^*y;
  • F:Rm→(−∞,∞]F : \mathbb{R}^m \to (-\infty, \infty] and G:Rn→(−∞,∞]G : \mathbb{R}^n \to (-\infty, \infty] are closed, proper and convex, given by routines for prox⁡σF∗\operatorname{prox}_{\sigma F^*} and prox⁡τG\operatorname{prox}_{\tau G};
  • the saddle function L(x,y)=⟨Kx,y⟩+G(x)−F∗(y)\mathcal{L}(x, y) = \langle Kx, y\rangle + G(x) - F^*(y) has a saddle point (x∗,y∗)(x^*, y^*), so x∗x^* solves the primal problem and y∗y^* solves the dual problem max⁡y−F∗(y)−G∗(−K∗y)\max_y -F^*(y) - G^*(-K^*y) (see Fenchel duality).

The proximal step of the conjugate comes from the one of FF by Moreau's identity, prox⁡σF∗(v)=v−σprox⁡F/σ(v/σ)\operatorname{prox}_{\sigma F^*}(v) = v - \sigma\operatorname{prox}_{F/\sigma}(v/\sigma). The input is the routines, a start (x0,y0)(x^0, y^0), steps τ,σ>0\tau, \sigma > 0 with τσL2<1\tau\sigma L^2 < 1 and a number of iterations NN. The output is the last iterates and their averages.

The main example is total variation denoising, min⁡x12∥x−f∥2+λ∑ij∣(∇x)ij∣\min_x \tfrac12\|x - f\|^2 + \lambda\sum_{ij}|(\nabla x)_{ij}|. Here K=∇K = \nabla (forward differences), G(x)=12∥x−f∥2G(x) = \tfrac12\|x - f\|^2 with prox⁡τG(v)=(v+τf)/(1+τ)\operatorname{prox}_{\tau G}(v) = (v + \tau f)/(1 + \tau), and F(q)=λ∑∣qij∣F(q) = \lambda\sum|q_{ij}|, whose conjugate is the indicator of {∣yij∣≤λ}\{|y_{ij}| \le \lambda\}, so prox⁡σF∗\operatorname{prox}_{\sigma F^*} projects each pixel pair onto the disk of radius λ\lambda. In two dimensions ∥∇∥2≤8\|\nabla\|^2 \le 8, so τ=σ=0.35\tau = \sigma = 0.35 is a valid choice (0.352⋅8=0.98<10.35^2 \cdot 8 = 0.98 < 1). The weight λ\lambda is a design choice tuned for the class of images.

The algorithm

  1. ChambollePock(K, K*, prox_τG, prox_σF*, x⁰, y⁰, τ, σ, N)
  2. 1x ← x⁰, y ← y⁰, x̄ ← x⁰, X ← 0, Y ← 0
  3. 2for n = 1 to N
  4. 3y ← prox_σF*(y + σ K x̄) ▷ dual ascent step
  5. 4x_old ← x
  6. 5x ← prox_τG(x - τ K* y) ▷ primal descent step
  7. 6x̄ ← x + θ (x - x_old) ▷ extrapolation, θ = 1
  8. 7X ← X + x, Y ← Y + y
  9. 8return x, y, X / N, Y / N

Line L3 is a proximal step that increases L(xˉ,⋅)\mathcal{L}(\bar x, \cdot), and line L5 is a proximal step that decreases L(⋅,y)\mathcal{L}(\cdot, y). Line L6 uses the new and the old primal iterate to predict the next one; with θ=0\theta = 0 the method is the Arrow-Hurwicz method, which has no convergence guarantee for these step sizes. Line L7 keeps the ergodic averages for which the rate is proved. Some texts write the primal step first: xk+1=prox⁡τG(xk−τK∗yk)x^{k+1} = \operatorname{prox}_{\tau G}(x^k - \tau K^*y^k), then xˉ=2xk+1−xk\bar x = 2x^{k+1} - x^k, then the dual step with xˉ\bar x. This produces the same iterates with the dual index shifted by one.

Example

Denoise the one-row signal f=(0,0,3,3)f = (0, 0, 3, 3) with λ=1\lambda = 1. Here KK is the difference operator with three active entries, Kx=(x2−x1,x3−x2,x4−x3)Kx = (x_2 - x_1, x_3 - x_2, x_4 - x_3), and ∥K∥2≤4\|K\|^2 \le 4, so τ=σ=0.45\tau = \sigma = 0.45 is valid (0.452⋅4=0.810.45^2 \cdot 4 = 0.81). Start with x0=fx^0 = f and y0=0y^0 = 0.

Step 1: Kxˉ=(0,3,0)K\bar x = (0, 3, 0), so the dual step projects 0.45⋅(0,3,0)=(0,1.35,0)0.45 \cdot (0, 3, 0) = (0, 1.35, 0) onto [−1,1][-1, 1] and gives y=(0,1,0)y = (0, 1, 0). Then K∗y=(0,−1,1,0)K^*y = (0, -1, 1, 0) and x−τK∗y=(0,0.45,2.55,3)x - \tau K^*y = (0, 0.45, 2.55, 3). The primal step averages this with ff: x=((0,0.45,2.55,3)+0.45f)/1.45=(0,0.3103,2.6897,3)x = ((0, 0.45, 2.55, 3) + 0.45 f)/1.45 = (0, 0.3103, 2.6897, 3). The edge has started to shrink, and the dual entry at the edge already sits at its bound λ=1\lambda = 1.

nn xx yy energy
1 (0,0.3103,2.6897,3)(0, 0.3103, 2.6897, 3) (0,1,0)(0, 1, 0) 3.0963
2 (0.0867,0.4377,2.5623,2.9133)(0.0867, 0.4377, 2.5623, 2.9133) (0.2793,1,0.2793)(0.2793, 1, 0.2793) 3.0257
3 (0.2012,0.4708,2.5292,2.7988)(0.2012, 0.4708, 2.5292, 2.7988) (0.4556,1,0.4556)(0.4556, 1, 0.4556) 2.8598
5 (0.3863,0.4577,2.5423,2.6137)(0.3863, 0.4577, 2.5423, 2.6137) (0.5638,1,0.5638)(0.5638, 1, 0.5638) 2.5861
10 (0.4937,0.4819,2.5181,2.5063)(0.4937, 0.4819, 2.5181, 2.5063) (0.4992,1,0.4992)(0.4992, 1, 0.4992) 2.5358
20 (0.4997,0.4997,2.5003,2.5003)(0.4997, 0.4997, 2.5003, 2.5003) (0.5001,1,0.5001)(0.5001, 1, 0.5001) 2.5001

The solution is x∗=(0.5,0.5,2.5,2.5)x^* = (0.5, 0.5, 2.5, 2.5) with energy 12⋅4⋅0.25+2=2.5\tfrac12 \cdot 4 \cdot 0.25 + 2 = 2.5, and y∗=(0.5,1,0.5)y^* = (0.5, 1, 0.5). This is −λ-\lambda times the dual field of Chambolle's projection algorithm on the same signal. After 100 steps the averaged iterate is only (0.4833,0.4944,2.5056,2.5167)(0.4833, 0.4944, 2.5056, 2.5167), while the last iterate has been exact to many digits since about step 50. The rate theorem is for the averages, but on this kind of problem the last iterate is usually much better; this is a measurement, not a theorem.

Correctness

The full proof is in proofs/correctness.md. The two proximal steps are subgradient inequalities for F∗F^* and GG. Adding them and using the identity 2⟨a−b,c−b⟩=∥a−b∥2+∥c−b∥2−∥a−c∥22\langle a - b, c - b\rangle = \|a - b\|^2 + \|c - b\|^2 - \|a - c\|^2 gives, for every (x,y)(x, y), a bound on L(xn+1,y)−L(x,yn+1)\mathcal{L}(x^{n+1}, y) - \mathcal{L}(x, y^{n+1}) by a difference of the weighted distances ∥x−xn∥2/(2τ)+∥y−yn∥2/(2σ)\|x - x^n\|^2/(2\tau) + \|y - y^n\|^2/(2\sigma) at steps nn and n+1n+1, plus the cross term ⟨K(xn+1−xˉn),y−yn+1⟩\langle K(x^{n+1} - \bar x^n), y - y^{n+1}\rangle. With the extrapolation, the cross term telescopes up to a remainder bounded by LτσL\sqrt{\tau\sigma} times squared step lengths, and the condition Lτσ≤1L\sqrt{\tau\sigma} \le 1 makes the remainder harmless. Summing and using convexity gives, for every (x,y)(x, y),

L(XN,y)−L(x,YN)≤1N(∥x−x0∥22τ+∥y−y0∥22σ),\mathcal{L}(X_N, y) - \mathcal{L}(x, Y_N) \le \frac1N\left(\frac{\|x - x^0\|^2}{2\tau} + \frac{\|y - y^0\|^2}{2\sigma}\right),

with the averages XNX_N and YNY_N of line L8 (Theorem 1 of Chambolle and Pock). With strict inequality τσL2<1\tau\sigma L^2 < 1, the same sum at a saddle point shows that the iterates are bounded and the step lengths are square summable. Limit points satisfy the fixed point equations of lines L3 and L5, so they are saddle points, and a restart of the sum at such a limit point shows that the whole sequence converges.

Proof: The Chambolle-Pock iterates converge to a saddle point for tau sigma ||K||^2 < 1, and their averages have a primal-dual gap of O(1/N)full

Setting. X=RnX = \mathbb{R}^n and Y=RmY = \mathbb{R}^m with the Euclidean inner product, K:X→YK : X \to Y linear with L=∥K∥L = \|K\|, and FF, GG closed, proper and convex. The saddle function is L(x,y)=⟨Kx,y⟩+G(x)−F∗(y)\mathcal{L}(x, y) = \langle Kx, y\rangle + G(x) - F^*(y), and we assume a saddle point (x∗,y∗)(x^*, y^*) exists: L(x∗,y)≤L(x∗,y∗)≤L(x,y∗)\mathcal{L}(x^*, y) \le \mathcal{L}(x^*, y^*) \le \mathcal{L}(x, y^*) for all x,yx, y. The algorithm with θ=1\theta = 1 is, for n≥0n \ge 0, with xˉ0=x0\bar x^0 = x^0:

yn+1=prox⁡σF∗(yn+σKxˉn),xn+1=prox⁡τG(xn−τK∗yn+1),xˉn+1=2xn+1−xn.y^{n+1} = \operatorname{prox}_{\sigma F^*}(y^n + \sigma K\bar x^n),\qquad x^{n+1} = \operatorname{prox}_{\tau G}(x^n - \tau K^*y^{n+1}),\qquad \bar x^{n+1} = 2x^{n+1} - x^n.

Set x−1=x0x^{-1} = x^0, so that xˉn=2xn−xn−1\bar x^n = 2x^n - x^{n-1} for all n≥0n \ge 0. Let c=Lτσc = L\sqrt{\tau\sigma} and, for (x,y)∈X×Y(x, y) \in X \times Y, Δ(x,y)=∥x−x0∥2/(2τ)+∥y−y0∥2/(2σ)\Delta(x, y) = \|x - x^0\|^2/(2\tau) + \|y - y^0\|^2/(2\sigma).

Facts used. (P) For a closed proper convex hh and t>0t > 0, u=prox⁡th(v)u = \operatorname{prox}_{th}(v) if and only if (v−u)/t∈∂h(u)(v - u)/t \in \partial h(u), and prox⁡th\operatorname{prox}_{th} is continuous (it is nonexpansive). (T) For all vectors a,b,ca, b, c: 2⟨a−b,c−b⟩=∥a−b∥2+∥c−b∥2−∥a−c∥22\langle a - b, c - b\rangle = \|a - b\|^2 + \|c - b\|^2 - \|a - c\|^2. (Y) For all a∈Xa \in X and b∈Yb \in Y: ∣⟨Ka,b⟩∣≤L∥a∥ ∥b∥≤c(∥a∥2/(2τ)+∥b∥2/(2σ))|\langle Ka, b\rangle| \le L\|a\|\,\|b\| \le c\big(\|a\|^2/(2\tau) + \|b\|^2/(2\sigma)\big), because L∥a∥∥b∥=c (∥a∥/τ)(∥b∥/σ)L\|a\|\|b\| = c\,(\|a\|/\sqrt\tau)(\|b\|/\sqrt\sigma) and 2st≤s2+t22st \le s^2 + t^2 for real s,ts, t.

Lemma 1 (one step). For every (x,y)(x, y) and n≥0n \ge 0,

L(xn+1,y)−L(x,yn+1)≤∥x−xn∥2−∥x−xn+1∥2−∥xn+1−xn∥22τ+∥y−yn∥2−∥y−yn+1∥2−∥yn+1−yn∥22σ+⟨K(xn+1−xˉn),y−yn+1⟩.\mathcal{L}(x^{n+1}, y) - \mathcal{L}(x, y^{n+1}) \le \frac{\|x - x^n\|^2 - \|x - x^{n+1}\|^2 - \|x^{n+1} - x^n\|^2}{2\tau} + \frac{\|y - y^n\|^2 - \|y - y^{n+1}\|^2 - \|y^{n+1} - y^n\|^2}{2\sigma} + \langle K(x^{n+1} - \bar x^n), y - y^{n+1}\rangle.

Proof. By (P), (yn−yn+1)/σ+Kxˉn∈∂F∗(yn+1)(y^n - y^{n+1})/\sigma + K\bar x^n \in \partial F^*(y^{n+1}) and (xn−xn+1)/τ−K∗yn+1∈∂G(xn+1)(x^n - x^{n+1})/\tau - K^*y^{n+1} \in \partial G(x^{n+1}). The subgradient inequalities at yy and xx read

F∗(yn+1)−F∗(y)≤−1σ⟨yn−yn+1,y−yn+1⟩−⟨Kxˉn,y−yn+1⟩,F^*(y^{n+1}) - F^*(y) \le -\tfrac1\sigma\langle y^n - y^{n+1}, y - y^{n+1}\rangle - \langle K\bar x^n, y - y^{n+1}\rangle,
G(xn+1)−G(x)≤−1τ⟨xn−xn+1,x−xn+1⟩+⟨K(x−xn+1),yn+1⟩.G(x^{n+1}) - G(x) \le -\tfrac1\tau\langle x^n - x^{n+1}, x - x^{n+1}\rangle + \langle K(x - x^{n+1}), y^{n+1}\rangle.

Now L(xn+1,y)−L(x,yn+1)=⟨Kxn+1,y⟩−⟨Kx,yn+1⟩+G(xn+1)−G(x)+F∗(yn+1)−F∗(y)\mathcal{L}(x^{n+1}, y) - \mathcal{L}(x, y^{n+1}) = \langle Kx^{n+1}, y\rangle - \langle Kx, y^{n+1}\rangle + G(x^{n+1}) - G(x) + F^*(y^{n+1}) - F^*(y). Insert the two inequalities. The bilinear terms add up to ⟨Kxn+1,y⟩−⟨Kxn+1,yn+1⟩−⟨Kxˉn,y−yn+1⟩=⟨K(xn+1−xˉn),y−yn+1⟩\langle Kx^{n+1}, y\rangle - \langle Kx^{n+1}, y^{n+1}\rangle - \langle K\bar x^n, y - y^{n+1}\rangle = \langle K(x^{n+1} - \bar x^n), y - y^{n+1}\rangle. By (T), −2⟨xn−xn+1,x−xn+1⟩=∥x−xn∥2−∥x−xn+1∥2−∥xn−xn+1∥2-2\langle x^n - x^{n+1}, x - x^{n+1}\rangle = \|x - x^n\|^2 - \|x - x^{n+1}\|^2 - \|x^n - x^{n+1}\|^2, and the same for yy. □\square

Lemma 2 (summed bound). Let τσL2≤1\tau\sigma L^2 \le 1, so c≤1c \le 1. For every (x,y)(x, y), every 0≤M<N0 \le M < N,

∑n=MN−1(L(xn+1,y)−L(x,yn+1))+∥x−xN∥22τ+(1−c)∥y−yN∥22σ+(1−c)∑n=MN−1(∥xn+1−xn∥22τ+∥yn+1−yn∥22σ)\sum_{n=M}^{N-1}\big(\mathcal{L}(x^{n+1}, y) - \mathcal{L}(x, y^{n+1})\big) + \frac{\|x - x^N\|^2}{2\tau} + (1 - c)\frac{\|y - y^N\|^2}{2\sigma} + (1 - c)\sum_{n=M}^{N-1}\Big(\frac{\|x^{n+1} - x^n\|^2}{2\tau} + \frac{\|y^{n+1} - y^n\|^2}{2\sigma}\Big)
≤∥x−xM∥22τ+∥y−yM∥22σ+RM,RM=c ∥xM−xM−1∥22τ−⟨K(xM−xM−1),y−yM⟩.\le \frac{\|x - x^M\|^2}{2\tau} + \frac{\|y - y^M\|^2}{2\sigma} + R_M,\qquad R_M = c\,\frac{\|x^M - x^{M-1}\|^2}{2\tau} - \langle K(x^M - x^{M-1}), y - y^M\rangle.

In particular R0=0R_0 = 0 because x−1=x0x^{-1} = x^0.

Proof. Write dn=xn−xn−1d^n = x^n - x^{n-1}. Then xn+1−xˉn=dn+1−dnx^{n+1} - \bar x^n = d^{n+1} - d^n and

⟨K(dn+1−dn),y−yn+1⟩=⟨Kdn+1,y−yn+1⟩−⟨Kdn,y−yn⟩−⟨Kdn,yn−yn+1⟩.\langle K(d^{n+1} - d^n), y - y^{n+1}\rangle = \langle Kd^{n+1}, y - y^{n+1}\rangle - \langle Kd^n, y - y^n\rangle - \langle Kd^n, y^n - y^{n+1}\rangle.

The first two terms telescope over n=M,…,N−1n = M, \dots, N-1 to ⟨KdN,y−yN⟩−⟨KdM,y−yM⟩\langle Kd^N, y - y^N\rangle - \langle Kd^M, y - y^M\rangle. By (Y), ∣⟨Kdn,yn−yn+1⟩∣≤c (∥dn∥2/(2τ)+∥yn+1−yn∥2/(2σ))|\langle Kd^n, y^n - y^{n+1}\rangle| \le c\,(\|d^n\|^2/(2\tau) + \|y^{n+1} - y^n\|^2/(2\sigma)) and ∣⟨KdN,y−yN⟩∣≤c (∥dN∥2/(2τ)+∥y−yN∥2/(2σ))|\langle Kd^N, y - y^N\rangle| \le c\,(\|d^N\|^2/(2\tau) + \|y - y^N\|^2/(2\sigma)). Sum Lemma 1 over n=M,…,N−1n = M, \dots, N-1. The distance terms telescope to ∥x−xM∥2/(2τ)+∥y−yM∥2/(2σ)−∥x−xN∥2/(2τ)−∥y−yN∥2/(2σ)\|x - x^M\|^2/(2\tau) + \|y - y^M\|^2/(2\sigma) - \|x - x^N\|^2/(2\tau) - \|y - y^N\|^2/(2\sigma). The negative step terms are ∑n=M+1N∥dn∥2/(2τ)+∑n=MN−1∥yn+1−yn∥2/(2σ)\sum_{n=M+1}^{N}\|d^n\|^2/(2\tau) + \sum_{n=M}^{N-1}\|y^{n+1} - y^n\|^2/(2\sigma), and the positive terms from (Y) are c∑n=MN∥dn∥2/(2τ)+c∑n=MN−1∥yn+1−yn∥2/(2σ)+c∥y−yN∥2/(2σ)c\sum_{n=M}^{N}\|d^n\|^2/(2\tau) + c\sum_{n=M}^{N-1}\|y^{n+1} - y^n\|^2/(2\sigma) + c\|y - y^N\|^2/(2\sigma). Collect terms: the xx steps with index M+1M+1 to NN keep the factor 1−c1 - c, the term c∥dM∥2/(2τ)c\|d^M\|^2/(2\tau) and −⟨KdM,y−yM⟩-\langle Kd^M, y - y^M\rangle form RMR_M, and the rest is as stated. □\square

Theorem 1 (ergodic rate). Let τσL2≤1\tau\sigma L^2 \le 1, XN=1N∑n=1NxnX_N = \frac1N\sum_{n=1}^N x^n and YN=1N∑n=1NynY_N = \frac1N\sum_{n=1}^N y^n. For every (x,y)(x, y),

L(XN,y)−L(x,YN)≤Δ(x,y)N.\mathcal{L}(X_N, y) - \mathcal{L}(x, Y_N) \le \frac{\Delta(x, y)}{N}.

Proof. Lemma 2 with M=0M = 0 and nonnegative extra terms gives ∑n=0N−1(L(xn+1,y)−L(x,yn+1))≤Δ(x,y)\sum_{n=0}^{N-1}\big(\mathcal{L}(x^{n+1}, y) - \mathcal{L}(x, y^{n+1})\big) \le \Delta(x, y). The map x′↦L(x′,y)x' \mapsto \mathcal{L}(x', y) is convex and y′↦L(x,y′)y' \mapsto \mathcal{L}(x, y') is concave, so by Jensen's inequality L(XN,y)≤1N∑L(xn,y)\mathcal{L}(X_N, y) \le \frac1N\sum\mathcal{L}(x^{n}, y) and L(x,YN)≥1N∑L(x,yn)\mathcal{L}(x, Y_N) \ge \frac1N\sum\mathcal{L}(x, y^n). Divide by NN. □\square

If B1×B2B_1 \times B_2 is a bounded set that contains a saddle point, the partial gap sup⁡(x,y)∈B1×B2L(XN,y)−L(x,YN)\sup_{(x,y) \in B_1 \times B_2}\mathcal{L}(X_N, y) - \mathcal{L}(x, Y_N) is therefore at most sup⁡Δ/N\sup\Delta/N. For total variation denoising the domain of F∗F^* is bounded, so this is the true primal-dual gap with a bounded B2B_2.

Lemma 3 (boundedness). Let τσL2<1\tau\sigma L^2 < 1, so c<1c < 1. Then the iterates are bounded and ∑n(∥xn+1−xn∥2+∥yn+1−yn∥2)<∞\sum_n\big(\|x^{n+1} - x^n\|^2 + \|y^{n+1} - y^n\|^2\big) < \infty.

Proof. Take (x,y)=(x∗,y∗)(x, y) = (x^*, y^*) in Lemma 2 with M=0M = 0. Each summand L(xn+1,y∗)−L(x∗,yn+1)=(L(xn+1,y∗)−L(x∗,y∗))+(L(x∗,y∗)−L(x∗,yn+1))\mathcal{L}(x^{n+1}, y^*) - \mathcal{L}(x^*, y^{n+1}) = \big(\mathcal{L}(x^{n+1}, y^*) - \mathcal{L}(x^*, y^*)\big) + \big(\mathcal{L}(x^*, y^*) - \mathcal{L}(x^*, y^{n+1})\big) is at least 0 by the saddle point property. So for every NN, ∥x∗−xN∥2/(2τ)+(1−c)∥y∗−yN∥2/(2σ)≤Δ(x∗,y∗)\|x^* - x^N\|^2/(2\tau) + (1 - c)\|y^* - y^N\|^2/(2\sigma) \le \Delta(x^*, y^*) and (1−c)∑n<N(… )≤Δ(x∗,y∗)(1 - c)\sum_{n<N}(\dots) \le \Delta(x^*, y^*). □\square

Theorem 2 (convergence). Let τσL2<1\tau\sigma L^2 < 1. Then (xn,yn)(x^n, y^n) converges to a saddle point of L\mathcal{L}.

Proof. By Lemma 3 there is a subsequence with (xnk,ynk)→(x^,y^)(x^{n_k}, y^{n_k}) \to (\hat x, \hat y), and the step lengths tend to 0. So also xnk−1→x^x^{n_k - 1} \to \hat x, xnk+1→x^x^{n_k + 1} \to \hat x, ynk+1→y^y^{n_k + 1} \to \hat y and xˉnk=2xnk−xnk−1→x^\bar x^{n_k} = 2x^{n_k} - x^{n_k - 1} \to \hat x. The prox maps are continuous by (P), so passing to the limit in the two update equations gives

y^=prox⁡σF∗(y^+σKx^),x^=prox⁡τG(x^−τK∗y^).\hat y = \operatorname{prox}_{\sigma F^*}(\hat y + \sigma K\hat x),\qquad \hat x = \operatorname{prox}_{\tau G}(\hat x - \tau K^*\hat y).

By (P) these say Kx^∈∂F∗(y^)K\hat x \in \partial F^*(\hat y) and −K∗y^∈∂G(x^)-K^*\hat y \in \partial G(\hat x). The first means y^\hat y maximizes the concave function L(x^,⋅)\mathcal{L}(\hat x, \cdot), and the second means x^\hat x minimizes the convex function L(⋅,y^)\mathcal{L}(\cdot, \hat y). So (x^,y^)(\hat x, \hat y) is a saddle point.

Now apply Lemma 2 with (x,y)=(x^,y^)(x, y) = (\hat x, \hat y), M=nkM = n_k and any N>nkN > n_k. The sum is at least 0 as in Lemma 3, so

∥x^−xN∥22τ+(1−c)∥y^−yN∥22σ≤∥x^−xnk∥22τ+∥y^−ynk∥22σ+c ∥xnk−xnk−1∥22τ+L∥xnk−xnk−1∥ ∥y^−ynk∥.\frac{\|\hat x - x^N\|^2}{2\tau} + (1 - c)\frac{\|\hat y - y^N\|^2}{2\sigma} \le \frac{\|\hat x - x^{n_k}\|^2}{2\tau} + \frac{\|\hat y - y^{n_k}\|^2}{2\sigma} + c\,\frac{\|x^{n_k} - x^{n_k - 1}\|^2}{2\tau} + L\|x^{n_k} - x^{n_k - 1}\|\,\|\hat y - y^{n_k}\|.

The right side tends to 0 as k→∞k \to \infty and does not depend on NN. So xN→x^x^N \to \hat x and yN→y^y^N \to \hat y. □\square

Remarks. The averages XN,YNX_N, Y_N then converge to the same limit. The bound of Theorem 1 holds with τσL2≤1\tau\sigma L^2 \le 1, but the convergence of the iterates uses the strict inequality through the factor 1−c1 - c. The accelerated rates for strongly convex GG (Theorem 2 of Chambolle and Pock 2011) are not proved here.

Complexity

Each iteration costs one product with KK, one with K∗K^*, the two proximal steps and O(m+n)O(m + n) vector operations. For total variation on an image with PP pixels all of these are O(P)O(P), so NN iterations cost O(NP)O(NP) time and O(P)O(P) extra memory. The number of iterations for a gap ε\varepsilon is O(1/ε)O(1/\varepsilon) by the ergodic bound. If GG is γ\gamma-strongly convex, the accelerated variant (Algorithm 2 of the paper) reaches ∥xN−x∗∥=O(1/N)\|x^N - x^*\| = O(1/N), which is a gap of O(1/N2)O(1/N^2), and if both GG and F∗F^* are strongly convex a fixed choice of steps gives a linear rate. These are theorems of Chambolle and Pock (2011), cited here without proof.

Properties

  • It is matrix free: only KK, K∗K^* and the two proximal steps are used, so a forward operator such as a blur or a Radon transform can be applied as a function.
  • The steps are fixed and need only a bound on ∥K∥\|K\|, which a few steps of the power method on K∗KK^*K estimate.
  • Written with the primal step first, the method is the proximal point method in the metric M=(I/τ−K∗−KI/σ)M = \begin{pmatrix} I/\tau & -K^* \\ -K & I/\sigma\end{pmatrix}, and MM is positive definite exactly when τσ∥K∥2<1\tau\sigma\|K\|^2 < 1 (He and Yuan 2012). This explains the step condition.
  • It is not a descent method: neither the primal energy nor the gap of the last iterates is monotone in general. The bound above holds for the averages.
  • The dual iterate gives a certificate: with yny^n in the domain of F∗F^*, the dual value −F∗(yn)−G∗(−K∗yn)-F^*(y^n) - G^*(-K^*y^n) is a lower bound of the optimal value.

Variants and improvements

  • Accelerated (Algorithm 2): for γ\gamma-strongly convex GG, use θn=1/1+2γτn\theta_n = 1/\sqrt{1 + 2\gamma\tau_n}, τn+1=θnτn\tau_{n+1} = \theta_n\tau_n, σn+1=σn/θn\sigma_{n+1} = \sigma_n/\theta_n. The implementation includes this form.
  • Preconditioned steps: Pock and Chambolle (2011) give diagonal step matrices from the row and column sums of ∣K∣|K|, which removes the need for ∥K∥\|K\| and helps when KK is badly scaled.
  • Linesearch and adaptive steps balance τ\tau and σ\sigma during the run when the scale of the dual variable is not known in advance.
  • Condat and Vu added a smooth term H(x)H(x) treated by its gradient, with a step condition that also involves the Lipschitz constant of ∇H\nabla H.
  • Relation to other methods: with θ=0\theta = 0 and varying steps it is the primal-dual hybrid gradient method of Zhu and Chan (2008), which first carried the name PDHG; with K=IK = I and τσ=1\tau\sigma = 1 it is a form of Douglas-Rachford splitting; and Esser, Zhang and Chan (2010) show that it equals a linearized form of ADMM, the split inexact Uzawa method. Split Bregman instead solves a linear system with KK in each step.
  • Unrolled networks: learned primal-dual replaces the two proximal steps by trained networks and keeps the structure of the loop.

When to use it

Use it for a convex model with a nonsmooth term on KxKx, such as total variation, total generalized variation, ℓ1\ell_1 of wavelet or frame coefficients, or a hard constraint, when KK and K∗K^* are cheap but solving a system with K∗KK^*K is not. Compared with ADMM and split Bregman, it has no inner linear solve; compared with the proximal gradient method, it does not need the prox of F∘KF \circ K, which is itself an iterative problem for total variation. When the system with K∗KK^*K is cheap, for example a convolution solved with the FFT, split Bregman or ADMM can need fewer iterations.

Pitfalls

  • The step condition is on τσ∥K∥2\tau\sigma\|K\|^2, not on each step alone. For the 2D forward difference gradient ∥∇∥2≤8\|\nabla\|^2 \le 8, but with a forward operator AA stacked on top the norm of the stacked KK is larger, and KK must then be scaled or the norm estimated.
  • The ratio τ/σ\tau/\sigma is a free parameter, and a bad ratio slows the method by orders of magnitude, even though the theorem still holds. Balance it so that the primal and dual residuals decrease at similar speeds.
  • K∗K^* must be the exact adjoint of KK, including the border rules. Test ⟨Kx,y⟩=⟨x,K∗y⟩\langle Kx, y\rangle = \langle x, K^*y\rangle on random vectors.
  • Moreau's identity has a scaling: prox⁡σF∗(v)=v−σprox⁡F/σ(v/σ)\operatorname{prox}_{\sigma F^*}(v) = v - \sigma\operatorname{prox}_{F/\sigma}(v/\sigma), and the factor inside is easy to get wrong.
  • The rate is for the averages. A stop rule on the last iterates needs a computable gap, which requires the domain of F∗F^* to be bounded or a restriction to a bounded set.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

chambolle_pock_algorithm.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/chambolle-pock-algorithm/. The authors are listed in prov/JY6DNX.jsonl.
"""The primal-dual algorithm of Chambolle and Pock.

It solves min_x F(K x) + G(x) through the saddle point problem
min_x max_y <K x, y> + G(x) - F*(y). The caller gives K and its adjoint as
functions on flat lists of floats, and the two proximal maps
prox_{tau G} and prox_{sigma F*}. Two problems are built in: total variation
denoising (ROF) on an image and the LASSO.
"""

import math
from typing import Callable

Vec = list[float]
LinOp = Callable[[Vec], Vec]
Prox = Callable[[Vec, float], Vec]


def chambolle_pock(K: LinOp, KT: LinOp, prox_g: Prox, prox_fstar: Prox, x0: Vec, y0: Vec,
                   tau: float, sigma: float, iters: int,
                   theta: float = 1.0) -> tuple[Vec, Vec, Vec, Vec]:
    """Run iters steps and return (x, y, X, Y): the last iterates and the ergodic averages.

    prox_g(v, tau) must return prox_{tau G}(v) and prox_fstar(v, sigma) must
    return prox_{sigma F*}(v). Precondition: F and G closed proper convex,
    a saddle point exists, and tau * sigma * ||K||^2 < 1 (theta = 1).
    Cost: iters * (one K, one KT, two prox calls) plus O(n + m) per step.
    """
    x = x0[:]  # @line L1
    y = y0[:]
    xbar = x0[:]
    sx, sy = [0.0] * len(x), [0.0] * len(y)
    for _ in range(iters):  # @line L2
        kx = K(xbar)
        y = prox_fstar([a + sigma * b for a, b in zip(y, kx)], sigma)  # @line L3
        x_old = x  # @line L4
        kty = KT(y)
        x = prox_g([a - tau * b for a, b in zip(x, kty)], tau)  # @line L5
        xbar = [a + theta * (a - b) for a, b in zip(x, x_old)]  # @line L6
        sx = [a + b for a, b in zip(sx, x)]  # @line L7
        sy = [a + b for a, b in zip(sy, y)]
    n = max(iters, 1)
    return x, y, [a / n for a in sx], [a / n for a in sy]  # @line L8


def chambolle_pock_accelerated(K: LinOp, KT: LinOp, prox_g: Prox, prox_fstar: Prox, x0: Vec, y0: Vec,
                               tau: float, sigma: float, gamma: float, iters: int) -> tuple[Vec, Vec]:
    """Algorithm 2 of Chambolle and Pock for G that is gamma-strongly convex.

    The steps change as theta = 1 / sqrt(1 + 2 gamma tau), tau <- theta tau,
    sigma <- sigma / theta. Precondition: tau * sigma * ||K||^2 <= 1.
    Then ||x^N - x*|| = O(1/N). Cost as above.
    """
    x, y, xbar = x0[:], y0[:], x0[:]
    for _ in range(iters):
        kx = K(xbar)
        y = prox_fstar([a + sigma * b for a, b in zip(y, kx)], sigma)
        x_old = x
        kty = KT(y)
        x = prox_g([a - tau * b for a, b in zip(x, kty)], tau)
        theta = 1.0 / math.sqrt(1.0 + 2.0 * gamma * tau)
        tau, sigma = theta * tau, sigma / theta
        xbar = [a + theta * (a - b) for a, b in zip(x, x_old)]
    return x, y


# ---- Total variation denoising: G(x) = (1/2)||x - f||^2, F(q) = lam sum |q_ij|, K = grad.

def grad_op(n1: int, n2: int) -> LinOp:
    """Forward differences with a Neumann border, image in row major order; output (d1, d2) stacked."""
    def K(u: Vec) -> Vec:
        out = [0.0] * (2 * n1 * n2)
        for i in range(n1):
            for j in range(n2):
                k = i * n2 + j
                if i < n1 - 1:
                    out[k] = u[k + n2] - u[k]
                if j < n2 - 1:
                    out[n1 * n2 + k] = u[k + 1] - u[k]
        return out
    return K


def grad_adjoint(n1: int, n2: int) -> LinOp:
    """The adjoint of grad_op, which is minus the divergence."""
    N = n1 * n2

    def KT(q: Vec) -> Vec:
        out = [0.0] * N
        for i in range(n1):
            for j in range(n2):
                k = i * n2 + j
                if i < n1 - 1:
                    out[k] -= q[k]
                    out[k + n2] += q[k]
                if j < n2 - 1:
                    out[k] -= q[N + k]
                    out[k + 1] += q[N + k]
        return out
    return KT


def project_balls(lam: float, N: int) -> Prox:
    """prox of sigma F* for F = lam * isotropic TV: project each pixel pair onto the ball of radius lam."""
    def prox(v: Vec, sigma: float) -> Vec:
        out = v[:]
        for k in range(N):
            r = math.hypot(v[k], v[N + k])
            if r > lam:
                out[k] = v[k] * lam / r
                out[N + k] = v[N + k] * lam / r
        return out
    return prox


def rof_energy(u: Vec, f: Vec, lam: float, n1: int, n2: int) -> float:
    g = grad_op(n1, n2)(u)
    N = n1 * n2
    return 0.5 * sum((a - b) ** 2 for a, b in zip(u, f)) + lam * sum(math.hypot(g[k], g[N + k]) for k in range(N))


def rof_denoise(f: list[list[float]], lam: float, tau: float = 0.35, sigma: float = 0.35,
                iters: int = 500) -> list[list[float]]:
    """TV denoising of an image (list of rows). Needs tau * sigma * 8 < 1. Cost O(iters * pixels)."""
    n1, n2 = len(f), len(f[0])
    N = n1 * n2
    fl = [a for row in f for a in row]
    x, _, _, _ = chambolle_pock(grad_op(n1, n2), grad_adjoint(n1, n2),
                                lambda v, t: [(a + t * b) / (1 + t) for a, b in zip(v, fl)],
                                project_balls(lam, N), fl, [0.0] * (2 * N), tau, sigma, iters)
    return [x[i * n2:(i + 1) * n2] for i in range(n1)]


# ---- LASSO: G(x) = lam ||x||_1, F(z) = (1/2)||z - b||^2, K = A.

def soft(v: Vec, t: float) -> Vec:
    return [math.copysign(max(abs(a) - t, 0.0), a) for a in v]


def lasso(A: list[list[float]], b: Vec, lam: float, iters: int = 2000) -> Vec:
    """min (1/2)||A x - b||^2 + lam ||x||_1 with tau = sigma = 0.99 / ||A||_F."""
    m, n = len(A), len(A[0])
    L = math.sqrt(sum(a * a for row in A for a in row))  # ||A|| <= ||A||_F
    t = 0.99 / L
    K = lambda x: [sum(A[i][j] * x[j] for j in range(n)) for i in range(m)]
    KT = lambda y: [sum(A[i][j] * y[i] for i in range(m)) for j in range(n)]
    x, _, _, _ = chambolle_pock(K, KT, lambda v, s: soft(v, s * lam),
                                lambda v, s: [(a - s * c) / (1 + s) for a, c in zip(v, b)],
                                [0.0] * n, [0.0] * m, t, t, iters)
    return x
test_chambolle_pock_algorithm.py 166 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/chambolle-pock-algorithm/. The authors are listed in prov/JY6DNX.jsonl.

import itertools
import math
import random

from chambolle_pock_algorithm import (
    chambolle_pock,
    chambolle_pock_accelerated,
    grad_adjoint,
    grad_op,
    lasso,
    project_balls,
    rof_denoise,
    rof_energy,
)


def solve(M: list[list[float]], r: list[float]) -> list[float] | None:
    """Gaussian elimination with partial pivoting; None if singular."""
    n = len(r)
    a = [row[:] + [r[i]] for i, row in enumerate(M)]
    for c in range(n):
        piv = max(range(c, n), key=lambda i: abs(a[i][c]))
        if abs(a[piv][c]) < 1e-12:
            return None
        a[c], a[piv] = a[piv], a[c]
        for i in range(c + 1, n):
            t = a[i][c] / a[c][c]
            for j in range(c, n + 1):
                a[i][j] -= t * a[c][j]
    x = [0.0] * n
    for i in range(n - 1, -1, -1):
        x[i] = (a[i][n] - sum(a[i][j] * x[j] for j in range(i + 1, n))) / a[i][i]
    return x


def lasso_obj(A, b, lam, x) -> float:
    r = [sum(A[i][j] * x[j] for j in range(len(x))) - b[i] for i in range(len(b))]
    return 0.5 * sum(t * t for t in r) + lam * sum(abs(t) for t in x)


def lasso_brute(A, b, lam) -> list[float]:
    """Try every sign pattern; on the support S solve A_S^T A_S x = A_S^T b - lam s_S."""
    n = len(A[0])
    best, best_val = [0.0] * n, lasso_obj(A, b, lam, [0.0] * n)
    for s in itertools.product((-1, 0, 1), repeat=n):
        S = [j for j in range(n) if s[j] != 0]
        if not S:
            continue
        M = [[sum(A[i][p] * A[i][q] for i in range(len(b))) for q in S] for p in S]
        r = [sum(A[i][p] * b[i] for i in range(len(b))) - lam * s[p] for p in S]
        xs = solve(M, r)
        if xs is None:
            continue
        x = [0.0] * n
        for p, v in zip(S, xs):
            x[p] = v
        val = lasso_obj(A, b, lam, x)
        if val < best_val:
            best, best_val = x, val
    return best


def rof_brute_1d(f: list[float], lam: float) -> list[float]:
    n = len(f)
    best, best_val = None, math.inf
    for s in itertools.product((-1, 0, 1), repeat=n - 1):
        cuts = [0] + [b + 1 for b in range(n - 1) if s[b] != 0] + [n]
        u = []
        for a, b in zip(cuts, cuts[1:]):
            sl = s[a - 1] if a > 0 else 0
            sr = s[b - 1] if b < n else 0
            u.extend([sum(f[a:b]) / (b - a) - lam * (sl - sr) / (b - a)] * (b - a))
        val = rof_energy(u, f, lam, 1, n)
        if val < best_val:
            best, best_val = u, val
    return best


def test_adjoint_and_norm() -> None:
    rng = random.Random(2)
    n1, n2 = 4, 5
    K, KT = grad_op(n1, n2), grad_adjoint(n1, n2)
    u = [rng.uniform(-1, 1) for _ in range(n1 * n2)]
    q = [rng.uniform(-1, 1) for _ in range(2 * n1 * n2)]
    assert abs(sum(a * b for a, b in zip(K(u), q)) - sum(a * b for a, b in zip(u, KT(q)))) < 1e-12
    # Power iteration on K^T K: the estimate of ||K||^2 stays below 8.
    v = u
    est = 0.0
    for _ in range(200):
        w = KT(K(v))
        est = math.sqrt(sum(a * a for a in w))
        v = [a / est for a in w]
    assert 7.0 < est < 8.0


def test_step_image() -> None:
    f = [[0.0, 0.0, 4.0, 4.0] for _ in range(4)]
    u = rof_denoise(f, 1.0, 0.35, 0.35, iters=600)
    for row in u:
        for a, b in zip(row, (0.5, 0.5, 3.5, 3.5)):
            assert abs(a - b) < 1e-5


def test_rof_brute_force_1d() -> None:
    rng = random.Random(11)
    for _ in range(8):
        n = rng.randint(2, 6)
        f = [float(rng.randint(-3, 3)) for _ in range(n)]
        lam = rng.choice((0.3, 0.7, 1.5))
        u = rof_denoise([f], lam, 0.45, 0.45, iters=3000)[0]
        ref = rof_brute_1d(f, lam)
        assert max(abs(a - b) for a, b in zip(u, ref)) < 1e-5


def test_lasso_brute_force() -> None:
    rng = random.Random(5)
    for _ in range(5):
        m, n = 5, rng.randint(2, 4)
        A = [[rng.gauss(0, 1) for _ in range(n)] for _ in range(m)]
        b = [rng.gauss(0, 1) for _ in range(m)]
        lam = rng.choice((0.2, 0.8, 2.0))
        x = lasso(A, b, lam, iters=4000)
        ref = lasso_brute(A, b, lam)
        assert max(abs(a - c) for a, c in zip(x, ref)) < 1e-5


def test_ergodic_gap_bound() -> None:
    rng = random.Random(9)
    n1, n2, lam = 3, 4, 0.6
    N = n1 * n2
    f = [rng.uniform(0, 3) for _ in range(N)]
    K, KT = grad_op(n1, n2), grad_adjoint(n1, n2)
    tau = sigma = 0.35
    x0, y0 = f[:], [0.0] * (2 * N)

    def L(x, y):
        return sum(a * b for a, b in zip(K(x), y)) + 0.5 * sum((a - c) ** 2 for a, c in zip(x, f))

    for iters in (1, 5, 20, 80):
        _, _, X, Y = chambolle_pock(K, KT, lambda v, t: [(a + t * c) / (1 + t) for a, c in zip(v, f)],
                                    project_balls(lam, N), x0, y0, tau, sigma, iters)
        for _ in range(30):
            x = [rng.uniform(-2, 5) for _ in range(N)]
            y = project_balls(lam, N)([rng.uniform(-1, 1) for _ in range(2 * N)], 1.0)
            bound = (sum((a - c) ** 2 for a, c in zip(x, x0)) / (2 * tau)
                     + sum((a - c) ** 2 for a, c in zip(y, y0)) / (2 * sigma)) / iters
            assert L(X, y) - L(x, Y) <= bound + 1e-9


def test_accelerated_rof() -> None:
    f = [[0.0, 0.0, 4.0, 4.0] for _ in range(4)]
    fl = [a for row in f for a in row]
    K, KT = grad_op(4, 4), grad_adjoint(4, 4)
    ref = [0.5, 0.5, 3.5, 3.5] * 4
    prev = math.inf
    # G is 1-strongly convex; tau sigma ||K||^2 <= 1 with tau = 1, sigma = 1/8.
    for n in (25, 50, 100, 200):
        x, _ = chambolle_pock_accelerated(K, KT, lambda v, t: [(a + t * c) / (1 + t) for a, c in zip(v, fl)],
                                          project_balls(1.0, 16), fl, [0.0] * 32, 1.0, 0.125, 1.0, n)
        err = math.sqrt(sum((a - b) ** 2 for a, b in zip(x, ref)))
        assert n * err < 2.5  # the O(1/N) rate of the error
        assert err < prev
        prev = err

History

Arrow, Hurwicz and Uzawa studied primal-dual gradient steps for saddle point problems in 1958. Zhu and Chan (2008) proposed the primal-dual hybrid gradient method for total variation restoration, with good results but no general proof. Pock, Cremers, Bischof and Chambolle (2009) used the extrapolated form for a convex relaxation of the Mumford-Shah functional, and Esser, Zhang and Chan (2010) related the family to ADMM and to the split inexact Uzawa method. Chambolle and Pock (2011) gave the general algorithm with the extrapolation, the convergence proof for τσ∥K∥2<1\tau\sigma\|K\|^2 < 1, the ergodic O(1/N)O(1/N) bound and the accelerated variants, and showed many imaging applications. He and Yuan (2012) interpreted it as a proximal point method in a fixed metric. It became the default first order solver for nonsmooth convex imaging models.

References

  1. Antonin Chambolle and Thomas Pock, A first-order primal-dual algorithm for convex problems with applications to imaging, Journal of Mathematical Imaging and Vision 40(1), 2011, pages 120 to 145 (Algorithm 1 and Theorem 1 for convergence and the ergodic O(1/N) bound; Algorithm 2 and Theorem 2 for strongly convex G)
  2. Ernie Esser, Xiaoqun Zhang and Tony F. Chan, A general framework for a class of first order primal-dual algorithms for convex optimization in imaging science, SIAM Journal on Imaging Sciences 3(4), 2010, pages 1015 to 1046
  3. Antonin Chambolle and Thomas Pock, An introduction to continuous optimization for imaging, Acta Numerica 25, 2016, pages 161 to 319
  4. Bingsheng He and Xiaoming Yuan, Convergence analysis of primal-dual algorithms for a saddle-point problem, from contraction perspective, SIAM Journal on Imaging Sciences 5(1), 2012, pages 119 to 149 (the method as a proximal point step in a fixed metric)
  5. Leonid I. Rudin, Stanley Osher and Emad Fatemi, Nonlinear total variation based noise removal algorithms, Physica D 60(1-4), 1992, pages 259 to 268

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example