Algorithm Search⌘K

Techniquecore

Variational regularization

Also called energy minimization reconstruction.

Reconstruct by minimizing a data fidelity term plus a weighted regularization functional that encodes prior knowledge about the image.

Variational regularization reconstructs the unknown xx of an inverse problem y=Ax+ey = Ax + e as a minimizer of an energy D(Ax,y)+λR(x)\mathcal{D}(Ax, y) + \lambda R(x). The data fidelity term D\mathcal{D} measures the misfit to the data, the regularizer RR is small for the images that the model expects, and the weight λ>0\lambda > 0 sets the balance. Tikhonov regularization is the case of two quadratic terms; total variation, ℓ1\ell_1 sparsity and total generalized variation are the main nonquadratic cases. For convex, lower semicontinuous and coercive RR the minimizer exists, depends stably on the data and converges to an RR-minimizing solution when the noise and λ\lambda go to 0 at matched speeds, so the technique is a regularization method in the sense of the area.

In plain words

A measurement of an image is never perfect, and many different images explain it equally well. Some of these images are full of noise and wild patterns. To pick a good one, write down a score with two parts. The first part says how badly a candidate image explains the measurement. The second part says how strange the candidate looks, for example how many edges it has or how rough it is. Add the two parts, with a weight on the second, and search for the image with the lowest total score. The choice of the second part is where the knowledge about the images goes. The weight decides how much to trust the measurement against that knowledge.

When it applies

Setting. XX and YY are Hilbert spaces, A:X→YA: X \to Y is a bounded linear operator, and the data are yδy^\delta with ∥yδ−y∥≤δ\|y^\delta - y\| \le \delta and y=Ax†y = Ax^\dagger (deterministic noise). The discrete setting is X=RnX = \mathbb{R}^n, Y=RmY = \mathbb{R}^m with an m×nm \times n matrix AA. For Gaussian noise the energy is

Tλ(x)=12∥Ax−yδ∥2+λR(x),T_\lambda(x) = \tfrac12\|Ax - y^\delta\|^2 + \lambda R(x),

which is the form of the variational pages of this area. Other noise laws change only the first term (see data fidelity term). The pages on the regularization of inverse problems, such as Tikhonov regularization, write α\alpha for the same weight.

Use the technique when the problem is ill-posed and the prior knowledge is a statement about structure, not only about size: edges, sparsity in a basis or frame, piecewise smooth regions, nonnegativity. It also applies when no closed form exists, because the energy is minimized by a numerical solver.

Hypotheses (H). R:X→[0,∞]R: X \to [0, \infty] is convex, lower semicontinuous and proper, and for every cc the set {x:∥Ax∥2+R(x)≤c}\{x : \|Ax\|^2 + R(x) \le c\} is bounded. The last condition is the coercivity condition. It holds for R(x)=12∥x∥2R(x) = \tfrac12\|x\|^2 with any AA, for R=∥⋅∥1R = \|\cdot\|_1 in Rn\mathbb{R}^n, and for total variation on L2(Ω)L^2(\Omega) with Ω⊂R2\Omega \subset \mathbb{R}^2 when AA does not map constants to 0 (Acar and Vogel 1994).

Theorem (existence, stability, convergence). Under (H):

  1. For every yδ∈Yy^\delta \in Y and λ>0\lambda > 0, TλT_\lambda has a minimizer xλδx_\lambda^\delta. It is unique if AA is injective or RR is strictly convex.
  2. If yk→yδy_k \to y^\delta in YY, then every sequence of minimizers xkx_k for the data yky_k has a subsequence that converges weakly to a minimizer for yδy^\delta.
  3. Let y∈A(dom⁡R)y \in A(\operatorname{dom} R) and choose λ(δ)→0\lambda(\delta) \to 0 with δ2/λ(δ)→0\delta^2/\lambda(\delta) \to 0. Then every sequence xλ(δk)δkx_{\lambda(\delta_k)}^{\delta_k} with δk→0\delta_k \to 0 has a subsequence that converges weakly to an RR-minimizing solution, that is a minimizer of RR over {x:Ax=y}\{x : Ax = y\}, and R(xλ(δk)δk)→R(x†)R(x_{\lambda(\delta_k)}^{\delta_k}) \to R(x^\dagger) along it. If the RR-minimizing solution x†x^\dagger is unique, the whole family converges weakly to it.

Proof. A bounded sequence in a Hilbert space has a weakly convergent subsequence, and a convex lower semicontinuous function is weakly lower semicontinuous; x↦12∥Ax−y∥2x \mapsto \tfrac12\|Ax - y\|^2 is convex and continuous, so it is weakly lower semicontinuous too.

(1) If Tλ(x)≤cT_\lambda(x) \le c, then R(x)≤c/λR(x) \le c/\lambda and ∥Ax∥≤∥yδ∥+2c\|Ax\| \le \|y^\delta\| + \sqrt{2c}, so the sublevel sets of TλT_\lambda are bounded by (H). Take a minimizing sequence; a subsequence converges weakly to some xˉ\bar x, and Tλ(xˉ)≤lim inf⁡Tλ(xk)=inf⁡TλT_\lambda(\bar x) \le \liminf T_\lambda(x_k) = \inf T_\lambda. If AA is injective the data term is strictly convex, and a strictly convex function has at most one minimizer.

(2) Let TkT_k be the energy with data yky_k. For a fixed xx with R(x)<∞R(x) < \infty, Tk(xk)≤Tk(x)T_k(x_k) \le T_k(x), which is bounded in kk; so (xk)(x_k) is bounded, and a subsequence converges weakly to some xˉ\bar x. Since Axk−yk⇀Axˉ−yδAx_k - y_k \rightharpoonup A\bar x - y^\delta, weak lower semicontinuity gives Tλ(xˉ)≤lim inf⁡Tk(xk)≤lim⁡Tk(x)=Tλ(x)T_\lambda(\bar x) \le \liminf T_k(x_k) \le \lim T_k(x) = T_\lambda(x) for every xx.

(3) Let x†x^\dagger be an RR-minimizing solution; it exists by the argument of (1) applied to RR on the closed affine set {Ax=y}\{Ax = y\}. Write xkx_k and λk\lambda_k for the iterates and weights. Comparing with x†x^\dagger, whose residual is at most δk\delta_k,

12∥Axk−yδk∥2+λkR(xk)≤12δk2+λkR(x†).\tfrac12\|Ax_k - y^{\delta_k}\|^2 + \lambda_k R(x_k) \le \tfrac12\delta_k^2 + \lambda_k R(x^\dagger).

So R(xk)≤R(x†)+δk2/(2λk)R(x_k) \le R(x^\dagger) + \delta_k^2/(2\lambda_k), which is bounded, and ∥Axk−yδk∥2≤δk2+2λkR(x†)→0\|Ax_k - y^{\delta_k}\|^2 \le \delta_k^2 + 2\lambda_k R(x^\dagger) \to 0. By (H) the sequence is bounded; a subsequence converges weakly to some xˉ\bar x with Axˉ=yA\bar x = y, and R(xˉ)≤lim inf⁡R(xk)≤lim sup⁡R(xk)≤R(x†)R(\bar x) \le \liminf R(x_k) \le \limsup R(x_k) \le R(x^\dagger). So xˉ\bar x is RR-minimizing and R(xk)→R(xˉ)=R(x†)R(x_k) \to R(\bar x) = R(x^\dagger). If x†x^\dagger is unique, every subsequence has a further subsequence with the limit x†x^\dagger, so the whole family converges. ■\blacksquare

The theorem gives convergence without a rate. A rate needs a source condition, and for convex RR the natural measure of the error is the Bregman distance: under A∗w∈∂R(x†)A^*w \in \partial R(x^\dagger) and λ∼δ\lambda \sim \delta the Bregman distance is O(δ)O(\delta) (convergence rates in Bregman distance). Nonconvex and Banach space versions with the weak topology replaced by a suitable one are in Scherzer et al. (2009), Chapter 3.

The template

  1. VARIATIONAL(A, y, data about the noise)
  2. 1choose the data term D from the noise law ▷ hole: least squares, Kullback-Leibler, l1
  3. 2choose the regularizer R from the prior knowledge ▷ hole: Tikhonov, TV, TGV, l1 of a transform
  4. 3choose a first λ ▷ hole: the starting weight
  5. 4repeat
  6. 5x_λ ← argmin_x D(Ax, y) + λ R(x) ▷ hole: the solver
  7. 6evaluate the parameter rule at λ ▷ hole: discrepancy, GCV, L-curve, learned
  8. 7if the rule is satisfied then return x_λ
  9. 8update λ ▷ hole: the search over λ

The holes are the model (L1, L2), the solver (L5) and the parameter choice (L3, L6, L8). For a quadratic model the solver is a linear system. For a convex nonsmooth model it is a first order method that uses AA and A∗A^* and the proximal operator of each term: the proximal gradient method or FISTA when RR has a cheap proximal operator, and the Chambolle-Pock algorithm, split Bregman or ADMM when RR acts on a linear transform of xx. The cost of the solver is counted per iteration, as one product with AA, one with A∗A^* and the proximal steps, and the iteration count depends on the accuracy, not on the data size alone.

Classic examples

Tikhonov. R(x)=12∥x∥2R(x) = \tfrac12\|x\|^2 gives the normal equations (A∗A+λI)x=A∗yδ(A^*A + \lambda I)x = A^*y^\delta, which is the Tikhonov solution of EHN with α=λ\alpha = \lambda. With R(x)=12∥Lx∥2R(x) = \tfrac12\|Lx\|^2 for a difference operator LL it is Phillips' smoothing. The minimizer is linear in the data, and edges are smeared.

Total variation against a smoothness penalty. Denoise f=(0,0,3,3)f = (0, 0, 3, 3) with A=IA = I and λ=1\lambda = 1, with DD the forward difference matrix (3×43 \times 4).

regularizer RR minimizer jump at the edge
12∥Dx∥2\tfrac12\|Dx\|^2 (3/7,6/7,15/7,18/7)=(0.4286,0.8571,2.1429,2.5714)(3/7, 6/7, 15/7, 18/7) = (0.4286, 0.8571, 2.1429, 2.5714) 1.2857
∥Dx∥1\|Dx\|_1 (total variation) (0.5,0.5,2.5,2.5)(0.5, 0.5, 2.5, 2.5) 2

The quadratic penalty solves (I+D⊤D)x=f(I + D^\top D)x = f and spreads the step over all four samples. Total variation keeps the flat parts flat and keeps a sharp edge, but lowers the jump from 3 to 2: each side moves toward the other by λ\lambda divided by its length 2. This is the contrast loss of total variation, which Bregman iteration removes. Rudin, Osher and Fatemi (1992) introduced the total variation model; total variation denoising has its theory and solver.

Sparsity. R(x)=∥x∥1R(x) = \|x\|_1 with A=IA = I gives soft thresholding: for y=(3,0.5,−2)y = (3, 0.5, -2) and λ=1\lambda = 1 the minimizer is (2,0,−1)(2, 0, -1). The quadratic penalty 12∥x∥2\tfrac12\|x\|^2 gives y/(1+λ)=(1.5,0.25,−1)y/(1 + \lambda) = (1.5, 0.25, -1): every entry shrinks and none becomes zero. With a forward operator, R=∥Wx∥1R = \|Wx\|_1 for a wavelet transform WW is the basis of compressed sensing and of compressed sensing MRI; the two ways to put a transform into RR are compared on analysis and synthesis sparsity.

Poisson data. For photon counts, D(Ax,y)=∑i[(Ax+b)i−yilog⁡(Ax+b)i]\mathcal{D}(Ax, y) = \sum_i [(Ax + b)_i - y_i\log(Ax + b)_i] with total variation and x≥0x \ge 0 is the standard model in emission tomography and fluorescence microscopy. The energy is convex, but the data term has no Lipschitz gradient near zero, so the solvers use its proximal operator.

Statistical reading. With noise N(0,σ2I)\mathcal{N}(0, \sigma^2 I) and a prior density proportional to exp⁡(−βR(x))\exp(-\beta R(x)), the maximum a posteriori estimate minimizes 12σ2∥Ax−y∥2+βR(x)\tfrac{1}{2\sigma^2}\|Ax - y\|^2 + \beta R(x), which is TλT_\lambda with λ=σ2β\lambda = \sigma^2\beta. For the Gaussian prior N(0,σpr2I)\mathcal{N}(0, \sigma_{pr}^2 I), βR(x)=∥x∥2/(2σpr2)\beta R(x) = \|x\|^2/(2\sigma_{pr}^2) and λR(x)=σ22σpr2∥x∥2\lambda R(x) = \tfrac{\sigma^2}{2\sigma_{pr}^2}\|x\|^2, so the weight of EHN Tikhonov is α=σ2/σpr2\alpha = \sigma^2/\sigma_{pr}^2. The MAP reading is a correspondence of minimizers. It does not make total variation a good model of the prior distribution of images.

Variations

  • Constrained forms. Morozov: minimize R(x)R(x) subject to ∥Ax−yδ∥≤τδ\|Ax - y^\delta\| \le \tau\delta. Ivanov: minimize ∥Ax−yδ∥\|Ax - y^\delta\| subject to R(x)≤ρR(x) \le \rho. For convex RR each is equivalent to the penalized form for some λ\lambda, which the constrained form chooses implicitly. The first is the discrepancy principle built into the problem.
  • Nonlinear forward maps. 12∥F(x)−yδ∥2+λR(x)\tfrac12\|F(x) - y^\delta\|^2 + \lambda R(x) with a nonlinear FF. Existence and convergence hold when FF is weakly sequentially closed; the energy is not convex, so solvers find stationary points (Scherzer et al. 2009, Chapter 3).
  • Several terms. ∑jλjRj(x)\sum_j \lambda_j R_j(x), for example total variation plus a nonnegativity constraint, or an infimal convolution of first and second order terms. Total generalized variation is a balanced form of the latter.
  • Iterative refinement. Bregman iteration solves the problem again with the residual added back, and replaces the choice of λ\lambda by a stop index.
  • Learned regularizers. RR is a network or has learned weights, chosen by bilevel learning, or the proximal step of RR is replaced by a denoiser in plug-and-play priors. The theorem above then holds only if the learned RR meets its hypotheses.

Pitfalls

  • Coercivity fails. If AA and RR share a direction with no cost, a minimizer need not exist or be unique. For total variation, constants cost nothing, so AA must see the mean of xx; for blind inpainting or a sampling mask that misses a region, the solution in that region is decided by RR alone.
  • The weight depends on the scaling. λ\lambda has the units of the data term over those of RR. Doubling the image intensity doubles ∥Dx∥1\|Dx\|_1 but quadruples the squared residual, so a weight tuned on one intensity range does not transfer. Values of λ\lambda in papers are design choices tuned for a data set, not constants of the method.
  • Contrast loss and bias. Every penalty with R(0)=0R(0) = 0 pulls the solution toward its zero set: total variation lowers jumps, ℓ1\ell_1 shrinks large coefficients. Debiasing or Bregman iteration corrects this.
  • Staircasing. Total variation turns smooth ramps in noisy data into piecewise constant steps. Total generalized variation avoids it.
  • Parameter rules. The L-curve and GCV are heuristics; only rules that use the noise level give a convergent method in the worst case (Bakushinskii veto).
  • Discretization. The anisotropic discrete total variation ∑∣∂1x∣+∣∂2x∣\sum|\partial_1 x| + |\partial_2 x| favors edges along the axes. The isotropic form with the Euclidean length per pixel is closer to the continuous model.

Exercises

  1. Show that for R(x)=12∥x∥2R(x) = \tfrac12\|x\|^2 the minimizer is (A∗A+λI)−1A∗yδ(A^*A + \lambda I)^{-1}A^*y^\delta, and compute its spectral filter factors.
  2. Verify the two rows of the table for f=(0,0,3,3)f = (0, 0, 3, 3). For the total variation row, check the optimality condition f−x∈D⊤∂∥⋅∥1(Dx)f - x \in D^\top \partial\|\cdot\|_1(Dx) with the dual vector (0.5,1,0.5)(0.5, 1, 0.5).
  3. Show that the convergence part of the theorem fails if λ(δ)=δ2\lambda(\delta) = \delta^2: construct a diagonal operator with σk=1/k\sigma_k = 1/k, R=12∥x∥2R = \tfrac12\|x\|^2 and noise along one singular vector such that ∥xλδ−x†∥\|x_\lambda^\delta - x^\dagger\| does not go to 0.
  4. Prove that for convex RR the constrained problem min⁡R(x)\min R(x) subject to ∥Ax−yδ∥≤τδ\|Ax - y^\delta\| \le \tau\delta has a solution that also minimizes TλT_\lambda for some λ∈(0,∞]\lambda \in (0, \infty], if τδ<∥yδ−Ax^∥\tau\delta < \|y^\delta - A\hat x\| for every minimizer x^\hat x of RR.
  5. For A=IA = I in R\mathbb{R} and R(x)=∣x∣R(x) = |x|, write the minimizer of 12(x−y)2+λ∣x∣\tfrac12(x - y)^2 + \lambda|x| and of the Kullback-Leibler version x−ylog⁡x+λxx - y\log x + \lambda x for y>0y > 0, and compare how each shrinks.

References

  1. Otmar Scherzer, Markus Grasmair, Harald Grossauer, Markus Haltmeier and Frank Lenzen, Variational Methods in Imaging, Springer, 2009, Applied Mathematical Sciences 167, Chapter 3, Variational Regularization Methods for the Solution of Inverse Problems (existence, stability and convergence for convex and nonconvex regularizers)
  2. Heinz W. Engl, Martin Hanke and Andreas Neubauer, Regularization of Inverse Problems, Kluwer, 1996, Chapter 5, Tikhonov Regularization (the quadratic case and its convergence theory)
  3. Robert Acar and Curtis R. Vogel, Analysis of bounded variation penalty methods for ill-posed problems, Inverse Problems 10(6), 1994, pages 1217 to 1229 (existence, uniqueness and stability for total variation penalties with a forward operator)
  4. 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 (the total variation model)
  5. Martin Benning and Martin Burger, Modern regularization methods for inverse problems, Acta Numerica 27, 2018, pages 1 to 111 (survey of variational and iterative regularization with convex functionals)
  6. Antonin Chambolle and Thomas Pock, An introduction to continuous optimization for imaging, Acta Numerica 25, 2016, pages 161 to 319 (the models and the first order solvers)

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 proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples