Algorithm Search⌘K

Conceptintro

Data fidelity term

Also called data discrepancy functional.

The term of a variational objective that measures misfit to the data, chosen as the negative log likelihood of the noise, such as least squares or Kullback-Leibler.

The data fidelity term D(Ax,y)\mathcal{D}(Ax, y) is the part of a variational objective D(Ax,y)+λR(x)\mathcal{D}(Ax, y) + \lambda R(x) that measures how badly a candidate xx explains the data yy. The standard choice is the negative log likelihood of the noise model: least squares 12∥Ax−y∥2\tfrac12\|Ax - y\|^2 for Gaussian noise, the Kullback-Leibler divergence for photon counts, and the ℓ1\ell_1 norm for impulsive noise and outliers. A wrong data term gives a biased or unstable reconstruction even with a good regularizer.

In plain words

A measured image is a noisy copy of what the instrument would show for the true object. To judge a candidate object, simulate what the instrument would show for it and compare that with the measurement. The data fidelity term is the rule for this comparison. A good rule punishes the errors that the noise rarely makes and forgives the errors that it often makes. If the noise is usually small, large differences must cost a lot. If the noise sometimes makes a few huge errors, a few large differences must not cost too much. If the noise grows with the brightness, bright pixels may differ more than dark ones.

The idea

From likelihood to data term. Let the data have the density p(y∣x)p(y \mid x). The maximum likelihood estimate maximizes it, and the maximum a posteriori estimate with prior density proportional to e−βR(x)e^{-\beta R(x)} minimizes

−log⁡p(y∣x)+βR(x).-\log p(y \mid x) + \beta R(x).

So the data term is D(Ax,y)=−log⁡p(y∣x)\mathcal{D}(Ax, y) = -\log p(y \mid x) with the terms that do not depend on xx removed. This gives the table below, with z=Axz = Ax the predicted data and b≥0b \ge 0 a known background.

noise model data term D(z,y)\mathcal{D}(z, y) proximal operator of τD\tau\mathcal{D}, per entry
Gaussian, N(0,σ2I)\mathcal{N}(0, \sigma^2 I) 12σ2∥z−y∥2\frac{1}{2\sigma^2}\|z - y\|^2 (v+τy/σ2)/(1+τ/σ2)(v + \tau y/\sigma^2)/(1 + \tau/\sigma^2)
Gaussian, covariance Σ\Sigma 12(z−y)⊤Σ−1(z−y)\tfrac12(z - y)^\top\Sigma^{-1}(z - y) a linear solve
Poisson counts ∑i(z+b)i−yilog⁡(z+b)i\sum_i (z + b)_i - y_i\log(z + b)_i t=12(v−τ+(v−τ)2+4τy)t = \tfrac12\big(v - \tau + \sqrt{(v - \tau)^2 + 4\tau y}\big) for b=0b = 0
Laplace, impulse noise ∥z−y∥1\|z - y\|_1 soft thresholding of v−yv - y by τ\tau, then add yy
Gaussian with outliers Huber function of z−yz - y piecewise linear in vv
Gamma, multiplicative ∑ilog⁡zi+yi/zi\sum_i \log z_i + y_i/z_i root of a cubic

The Poisson term equals the Kullback-Leibler divergence KL(y,z+b)=∑iyilog⁡yi(z+b)i−yi+(z+b)i\mathrm{KL}(y, z + b) = \sum_i y_i\log\frac{y_i}{(z + b)_i} - y_i + (z + b)_i up to a constant. The KL form is 0 when the prediction equals the data and is positive otherwise, so it is a true measure of misfit. It is defined only for z+b>0z + b > 0 where yi>0y_i > 0, which adds a positivity constraint to the problem.

Why the choice matters. The data term decides which residuals Ax−yAx - y are cheap. Least squares makes large residuals very costly, so a single outlier moves the solution far. The ℓ1\ell_1 term grows only linearly, and its minimizers fit most entries exactly and ignore a few (Nikolova 2004). The Poisson term weights each residual by about 1/yi1/y_i, so bright pixels may have larger residuals, as their noise is larger.

The noise level in the deterministic theory. In the rz pages of this area the noise is a bound ∥yδ−y∥≤δ\|y^\delta - y\| \le \delta in the Hilbert norm, and the data term is 12∥Ax−yδ∥2\tfrac12\|Ax - y^\delta\|^2. Other data terms need their own form of δ\delta, for example a bound on KL(yδ,y)\mathrm{KL}(y^\delta, y), and their own convergence theory. The theorems of variational regularization for least squares do not transfer without change.

Convexity and the solver. Each term in the table except the gamma term is convex in zz, and so convex in xx. The gamma term log⁡z+y/z\log z + y/z is convex only for z<2yz < 2y; Aubert and Aujol (2008) study this model and its nonconvexity. The Gaussian term has a gradient with Lipschitz constant ∥A∥2/σ2\|A\|^2/\sigma^2, so proximal gradient steps are possible. The Poisson and ℓ1\ell_1 terms have no Lipschitz gradient, so solvers such as the Chambolle-Pock algorithm use their proximal operator in the table instead.

Examples

Gaussian against Poisson for one count. Let y=4y = 4 counts. The Poisson term in its KL form is KL(4,t)=4log⁡(4/t)−4+t\mathrm{KL}(4, t) = 4\log(4/t) - 4 + t. The Gaussian term with the same variance σ2=4\sigma^2 = 4 is (t−4)2/8(t - 4)^2/8.

prediction tt 2 4 6
KL(4,t)\mathrm{KL}(4, t) 0.7726 0 0.3781
(t−4)2/8(t - 4)^2/8 0.5 0 0.5

The Gaussian term is symmetric. The Poisson term punishes a prediction that is too low more than one that is too high, and it is infinite at t=0t = 0, as a Poisson source with mean 0 cannot give 4 counts.

The Poisson proximal step. The proximal operator of τ(t−ylog⁡t)\tau(t - y\log t) at vv solves t−v+τ−τy/t=0t - v + \tau - \tau y/t = 0, the quadratic t2+(τ−v)t−τy=0t^2 + (\tau - v)t - \tau y = 0. Its positive root is the formula in the table. For v=1v = 1, τ=0.5\tau = 0.5 and y=4y = 4 it is t=1.68614t = 1.68614; for y=0y = 0 it is t=0.5=v−τt = 0.5 = v - \tau, a plain shift.

An outlier. Fit one constant cc to the data (1,2,3,100)(1, 2, 3, 100), so AA is the column of ones. Least squares gives the mean c=26.5c = 26.5, far from three of the four values. The ℓ1\ell_1 term ∑i∣c−yi∣\sum_i |c - y_i| is minimal for every cc in [2,3][2, 3], the set of medians, and the outlier 100 has no effect on it.

Salt and pepper noise. In an image where a few pixels are set to 0 or 255 and the rest are exact, the total variation model with ℓ1\ell_1 data term restores the image and keeps most pixels exactly equal to the data. The model with a squared data term spreads the error of each corrupted pixel over its neighbors.

Where it is used

  • Least squares: most deblurring, inpainting, MRI and tomography models, where the noise after many independent events is near Gaussian; the Tikhonov and total variation models of this area.
  • Kullback-Leibler: emission tomography, fluorescence microscopy and astronomy at low counts (Bertero et al. 2009); without a regularizer its minimization is the MLEM iteration.
  • ℓ1\ell_1 and Huber: impulse noise, dead pixels, and data with a few corrupt detector entries; the Huber estimator is the robust statistics form.
  • Multiplicative terms: speckle in synthetic aperture radar and ultrasound, often handled through a log transform.
  • Mixed Poisson and Gaussian: camera images at low light, where photon noise and read noise are both present; see image noise for the models.

References

  1. Martin Benning and Martin Burger, Modern regularization methods for inverse problems, Acta Numerica 27, 2018, pages 1 to 111 (data fidelity terms from noise models and the variational framework)
  2. Mario Bertero, Patrizia Boccacci, Gabriele Desidera and Giuseppe Vicidomini, Image deblurring with Poisson data, from cells to galaxies, Inverse Problems 25(12), 2009, article 123006 (the Kullback-Leibler data term for photon counting and its use in microscopy and astronomy)
  3. Mila Nikolova, A variational approach to remove outliers and impulse noise, Journal of Mathematical Imaging and Vision 20(1-2), 2004, pages 99 to 120 (nonsmooth l1 data fidelity and the exact fit of most data entries)
  4. Gilles Aubert and Jean-Francois Aujol, A variational approach to removing multiplicative noise, SIAM Journal on Applied Mathematics 68(4), 2008, pages 925 to 946 (the data term for gamma distributed multiplicative noise)
  5. Antonin Chambolle and Thomas Pock, An introduction to continuous optimization for imaging, Acta Numerica 25, 2016, pages 161 to 319 (proximal operators of the common data terms)

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)
WritingW4 complete
  • a review of the text: no review record reviews/BVB5NT/text.yaml