Английская Википедия:Chambolle-Pock algorithm
Шаблон:Short description Шаблон:Multiple image In mathematics, the Chambolle-Pock algorithm is an algorithm used to solve convex optimization problems. It was introduced by Antonin Chambolle and Thomas Pock[1] in 2011 and has since become a widely used method in various fields, including image processing,[2][3][4] computer vision,[5] and signal processing.[6]
The Chambolle-Pock algorithm is specifically designed to efficiently solve convex optimization problems that involve the minimization of a non-smooth cost function composed of a data fidelity term and a regularization term.[1] This is a typical configuration that commonly arises in ill-posed imaging inverse problems such as image reconstruction,[2] denoising[3] and inpainting.[4]
The algorithm is based on a primal-dual formulation, which allows for simultaneous updates of primal and dual variables. By employing the proximal operator, the Chambolle-Pock algorithm efficiently handles non-smooth and non-convex regularization terms, such as the total variation, specific in imaging framework.[1]
Problem statement
Let be <math> \mathcal{X}, \mathcal{Y} </math> two real vector spaces equipped with an inner product <math> \langle \cdot, \cdot \rangle </math> and a norm <math> \lVert \,\cdot \,\rVert = \langle \cdot, \cdot \rangle^{\frac{1}{2}} </math>. From up to now, a function <math>F</math> is called simple if its proximal operator <math> \text{prox}_{\tau F} </math> has a closed-form representation or can be accurately computed, for <math>\tau >0</math>,[1] where <math> \text{prox}_{\tau F} </math> is referred to
- <math display="block"> x = \text{prox}_{\tau F}(\tilde{x}) = \text{arg } \min_{x'\in \mathcal{X}}\left\{
\frac{\lVert x'-\tilde{x}\rVert^2}{2\tau} + F(x') \right\}</math>
Consider the following constrained primal problem:[1]
- <math display="block"> \min_{x\in\mathcal{X}} F(Kx) + G(x) </math>
where <math>K:\mathcal{X} \rightarrow \mathcal{Y}</math> is a bounded linear operator, <math>F:\mathcal{Y} \rightarrow [0, +\infty), G:\mathcal{X} \rightarrow [0, +\infty) </math> are convex, lower semicontinuous and simple.[1]
The minimization problem has its dual corresponding problem as[1]
- <math display="block"> \max_{y\in\mathcal{Y}} -\left(G^*(-K^*y) + F^*(y)\right)
</math>
where <math>F^*, G^*</math> and <math> K^*</math> are the dual map of <math> F, G </math> and <math> K </math>, respectively.[1]
Assume that the primal and the dual problems have at least a solution <math> (\hat{x}, \hat{y}) \in \mathcal{X}\times \mathcal{Y} </math>, that means they satisfies[7]
<math display="block"> \begin{align}
K\hat{x} &\in \partial F^*(\hat{y})\\ -(K^*\hat{y}) &\in \partial G(\hat{x}) \end{align}
</math>
where <math> \partial F^* </math> and <math> \partial G</math> are the subgradient of the convex functions <math> F^* </math> and <math> G </math>, respectively.[7]
The Chambolle-Pock algorithm solves the so-called saddle-point problem[1]
- <math display="block"> \min_{x\in\mathcal{X}} \max_{y\in\mathcal{Y}} \langle Kx, y \rangle + G(x) - F^*(y)
</math>
which is a primal-dual formulation of the nonlinear primal and dual problems stated before.[1]
Algorithm
The Chambolle-Pock algorithm primarily involves iteratively alternating between ascending in the dual variable <math> y </math> and descending in the primal variable <math> x </math> using a gradient-like approach, with step sizes <math>\sigma</math> and <math>\tau</math> respectively, in order to simultaneously solve the primal and the dual problem.[2] Furthermore, an over-relaxation technique is employed for the primal variable with the parameter <math>\theta</math>.[1]Шаблон:Algorithm-begin
Шаблон:Nowrap stopping criterion.
Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap end do
Шаблон:Algorithm-end Chambolle and Pock proved[1] that the algorithm converges if <math>\theta = 1</math> and <math>\tau \sigma \lVert K \rVert^2 \leq 1</math>, sequentially and with <math>\mathcal{O}(1/N)</math> as rate of convergence for the primal-dual gap. This has been extended by S. Banert et al.[8] to hold whenever <math>\theta>1/2</math> and <math>\tau \sigma \lVert K \rVert^2 < 4 / (1+2\theta)</math>.
The semi-implicit Arrow-Hurwicz method[9] coincides with the particular choice of <math>\theta = 0</math> in the Chambolle-Pock algorithm.[1]
Acceleration
There are special cases in which the rate of convergence has a theoretical speed up.[1] In fact, if <math>G </math>, respectively <math> F^* </math>, is uniformly convex then <math> G^* </math>, respectively <math> F </math>, has a Lipschitz continuous gradient. Then, the rate of convergence can be improved to <math> \mathcal{O}(1/N^2)</math>, providing a slightly changes in the Chambolle-Pock algorithm. It leads to an accelerated version of the method and it consists in choosing iteratively <math> \tau_n, \sigma_n</math>, and also <math> \theta_n</math>, instead of fixing these values.[1]
In case of <math> G </math> uniformly convex, with <math> \gamma>0 </math> the uniform-convexity constant, the modified algorithm becomes[1]
Шаблон:Nowrap stopping criterion.
Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap</math>}} Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap Шаблон:Nowrap end do
Шаблон:Algorithm-end Moreover, the convergence of the algorithm slows down when <math>L</math>, the norm of the operator <math>K</math>, cannot be estimated easily or might be very large. Choosing proper preconditioners <math>T</math> and <math>\Sigma</math>, modifying the proximal operator with the introduction of the induced norm through the operators <math>T</math> and <math>\Sigma</math>, the convergence of the proposed preconditioned algorithm will be ensured.[10]
Application
Шаблон:Multiple image A typical application of this algorithm is in the image denoising framework, based on total variation.[3] It operates on the concept that signals containing excessive and potentially erroneous details exhibit a high total variation, which represents the integral of the absolute value gradient of the image.[3] By adhering to this principle, the process aims to decrease the total variation of the signal while maintaining its similarity to the original signal, effectively eliminating unwanted details while preserving crucial features like edges. In the classical bi-dimensional discrete setting,[11] consider <math>\mathcal{X} = \mathbb{R}^{NM}</math>, where an element <math> u\in\mathcal{X} </math> represents an image with the pixels values collocated in a Cartesian grid <math>N\times M</math>.[1]
Define the inner product on <math> \mathcal{X} </math> as[1]
- <math displau="block">
\langle u, v\rangle_{\mathcal{X}} = \sum_{i,j} u_{i,j}v_{i,j},\quad u,v \in \mathcal{X} </math> that induces an <math> L^2</math> norm on <math> \mathcal{X} </math>, denoted as <math> \lVert \, \cdot \, \rVert_2 </math>.[1]
Hence, the gradient of <math> u </math> is computed with the standard finite differences,
- <math displau="block">\left(\nabla u \right)_{i,j} = \left(
\begin{aligned} \left(\nabla u \right)^1_{i,j}\\ \left(\nabla u \right)^2_{i,j} \end{aligned} \right)</math>
which is an element of the space <math> \mathcal{Y}=\mathcal{X}\times \mathcal{X} </math>, where[1]
- <math displau="block">\begin{align}
& \left( \nabla u \right)_{i,j}^1 = \left\{ \begin{aligned} &\frac{u_{i+1,j}-u_{i,j}}{h} &\text{ if } i<M\\ &0 &\text{ if } i=M \end{aligned} \right. ,\\ & \left( \nabla u \right)_{i,j}^2 = \left\{ \begin{aligned} &\frac{u_{i,j+1}-u_{i,j}}{h} &\text{ if } j<N\\ &0 &\text{ if } j=N \end{aligned} \right. \end{align}</math>
On <math>\mathcal{Y}</math> is defined an <math> L^1-</math> based norm as[1]
- <math displau="block">
\lVert p \rVert_1 = \sum_{i,j} \sqrt{\left(p_{i,j}^1\right)^2 + \left(p_{i,j}^2\right)^2}, \quad p\in \mathcal{Y}. </math> Then, the primal problem of the ROF model, proposed by Rudin, Osher, and Fatemi,[12] is given by[1]
- <math display="block">
h^2 \min_{u\in \mathcal{X}} \lVert \nabla u \rVert_1 + \frac{\lambda}{2} \lVert u-g\rVert^2_2 </math> where <math> u \in \mathcal{X}</math> is the unknown solution and <math> g \in \mathcal{X}</math> the given noisy data, instead <math> \lambda </math> describes the trade-off between regularization and data fitting.[1]
The primal-dual formulation of the ROF problem is formulated as follow[1]
- <math display="block">
\min_{u\in \mathcal{X}}\max_{p\in \mathcal{Y}} -\langle u, \text{div}\, p\rangle_{\mathcal{X}} + \frac{\lambda}{2} \lVert u-g\rVert^2_2 - \delta_P(p) </math> where the indicator function is defined as[1]
- <math display="block">
\delta_P(p) = \left\{ \begin{aligned} &0, & \text{if } p \in P\\ &+\infty,& \text{if } p \notin P \end{aligned} \right. </math> on the convex set <math> P = \left\{ p\in \mathcal{Y}\, : \, \max_{i,j}\sqrt{\left(p_{i,j}^1\right)^2 + \left(p_{i,j}^2\right)^2} \leq 1 \right\}, </math> which can be seen as <math> L^\infty </math> unitary balls with respect to the defined norm on <math> \mathcal{Y}</math>.[1]
Observe that the functions involved in the stated primal-dual formulation are simple, since their proximal operator can be easily computed[1]<math display="block"> \begin{align} p &= \text{prox}_{\sigma F^*}(\tilde{p}) &\iff p_{i,j} &= \frac{\tilde{p}_{i,j}}{\max\{1,| \tilde{p}_{i,j}| \}}\\ u &= \text{prox}_{\tau G}(\tilde{u}) &\iff u_{i,j} &= \frac{ \tilde{u}_{i,j}+\tau\lambda g_{i,j}}{1+\tau \lambda} \end{align} </math>The image total-variation denoising problem can be also treated with other algorithms[13] such as the alternating direction method of multipliers (ADMM),[14] projected (sub)-gradient[15] or fast iterative shrinkage thresholding.[16]
Implementation
- The Manopt.jl[17] package implements the algorithm in Julia
- Gabriel Peyré implements the algorithm in MATLAB,Шаблон:Refn Julia, R and Python[18]
- In the Operator Discretization Library (ODL),[19] a Python library for inverse problems, Шаблон:Code implements the method.
See also
- Alternating direction method of multipliers
- Convex optimization
- Proximal operator
- Total variation denoising
Notes
References
Further reading
External links
- EE364b, a Stanford course homepage.
Шаблон:Optimization algorithms
- ↑ 1,00 1,01 1,02 1,03 1,04 1,05 1,06 1,07 1,08 1,09 1,10 1,11 1,12 1,13 1,14 1,15 1,16 1,17 1,18 1,19 1,20 1,21 1,22 1,23 1,24 1,25 1,26 Шаблон:Cite journal
- ↑ 2,0 2,1 2,2 Шаблон:Cite journal
- ↑ 3,0 3,1 3,2 3,3 Шаблон:Cite journal
- ↑ 4,0 4,1 Шаблон:Cite journal
- ↑ Шаблон:Cite book
- ↑ Шаблон:Cite journal
- ↑ 7,0 7,1 Шаблон:Cite book
- ↑ Шаблон:Cite arXiv
- ↑ Шаблон:Cite book
- ↑ Шаблон:Cite book
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web