Fundamentals / Numerical mathematics / Inverse problems and least squares

Regularisation, resolution and the price of stability

Choose which features to recover, derive the associated filter and quantify the bias introduced by that choice.

From first principles

Derive how a quadratic penalty filters small singular values

Suppose whitened data \(b\) are modeled by \(Ax\), and large reconstructed coefficients are implausible. Penalize their squared norm with strength \(\lambda^2>0\). The minimizer balances the measured residual and penalty,

\[\min_x\,\|Ax-b\|^2+\lambda^2\|x\|^2 .\]

In singular-vector coordinates let \(z_j=v_j^Tx\) and \(\beta_j=u_j^Tb\), where \(Av_j=\sigma_j u_j\). Orthogonality makes the objective a sum of scalar terms \((\sigma_jz_j-\beta_j)^2+\lambda^2z_j^2\), plus a constant from unmodeled data directions. Setting the derivative of each term to zero gives

\[z_j=\frac{\sigma_j}{\sigma_j^2+\lambda^2}\beta_j .\]

At \(\sigma_j\gg\lambda\) this is close to the ordinary inverse. At a tiny singular value it avoids dividing the noise by that tiny number, at the price of attenuating the true coefficient. A null component is set to zero by this penalty. A different physical reference state or a derivative penalty imposes different information and changes what the reconstruction preserves.

Background · Tikhonov estimate
\[\arg\min_m\{\|Gm-y\|^2+\alpha\|Lm\|^2\}\]

The regularisation operator selects which departures are costly. Compare values of alpha only after fixing how both terms are scaled.

Derivation and applications

Predict a withheld observation without repeating every regularized fit

Suppose a linear model has independent equal-variance readings \(y_i\), design rows \(a_i^T\), and a fixed positive quadratic penalty \(\lambda^2\|x\|^2\). One way to compare penalty strengths is prediction on withheld readings. Define \(H=A^TA+\lambda^2I\), fit all rows to obtain \(\widehat x\), and let \(\widehat x_{-i}\) be the fit with row \(i\) removed while retaining the same penalty. Adding and subtracting the omitted row in the smaller normal equations yields

\[H\widehat x=A^Ty,\]
\[H\widehat x_{-i}=A^Ty-a_i(y_i-a_i^T\widehat x_{-i}).\]

Subtract the second identity from the first. Multiplying by \(a_i^TH^{-1}\) shows that the shift in the fitted prediction is proportional to the withheld residual. The constant of proportionality \(h_i\) is its regularized leverage,

\[a_i^T(\widehat x-\widehat x_{-i})=h_i(y_i-a_i^T\widehat x_{-i}),\]
\[h_i=a_i^TH^{-1}a_i .\]

Writing \(r_i=y_i-a_i^T\widehat x\) and rearranging gives the leave-one-out residual and corresponding validation score,

\[y_i-a_i^T\widehat x_{-i}=\frac{r_i}{1-h_i},\]
\[{\rm CV}(\lambda)=\frac1m\sum_{i=1}^m\left(\frac{r_i}{1-h_i}\right)^2 .\]

A point with large leverage helps set its own fitted value, so its ordinary residual can be misleadingly small. The formula assumes rowwise omission makes sense for the data. If nearby observations share noise or the intended prediction is a whole new experiment, withholding complete independent groups answers a different question.

Worked example

Check the shortcut against two explicit refits

Fit a constant to \(y=(1,3)^T\) with \(\lambda^2=1\). The all-data estimate is \(4/3\), and both leverages are \(1/3\). Dividing the ordinary residuals by \(2/3\) gives withheld errors \(-0.5,2.5\), hence \({\rm CV}=3.25\). Fitting only 3 yields \(3/2\); fitting only 1 yields \(1/2\), confirming both predictions.

Second application

Detect a high-leverage reading

For another scalar fit take sensitivities \(1,3\), data \(2,4\) and \(\lambda^2=1\). The estimate is \(14/11\), and the second reading has ordinary residual \(2/11\) and leverage \(9/11\). Its withheld error is

\[(2/11)/(2/11)=1.\]

Directly using only the first reading gives \(x=1\), which predicts 3 at the second station rather than the observed 4.

Two ways to control the unstable inverse

A truncated SVD keeps only the first \(k\) singular vectors ordered by decreasing singular value. All retained coefficients are inverted exactly; the others are set to zero. Its noiseless reconstruction is a projection onto the retained right-singular subspace. The choice is transparent but a hard cutoff can place two comparably informative directions on opposite sides of the threshold. In some spatial reconstructions sharp spectral cutoffs also introduce oscillations.

A smoother choice is zero-order Tikhonov regularisation. In scaled parameters and whitened measurements minimise \(\|Bx-b\|^2+\lambda^2\|x\|^2\) for \(\lambda>0\). Differentiation gives

\[(B^\mathsf{T}B+\lambda^2 I)x_\lambda=B^\mathsf{T}b.\]

Solve with an augmented QR or with the SVD. Each coefficient now carries a filter:

\[x_\lambda=\sum_j\frac{\sigma_j}{\sigma_j^2+\lambda^2}(u_j^\mathsf{T}b)v_j,\]
\[f_j=\frac{\sigma_j^2}{\sigma_j^2+\lambda^2}.\]

If \(b=Bx\) exactly, the estimate of \(v_j^\mathsf{T}x\) is the true coefficient times \(f_j\). Where \(\sigma_j=\lambda\) the noiseless amplitude is halved. For a very small singular value, the noise gain now approaches zero; the price is that a real fine-scale feature in the same direction is also suppressed.

A smooth Tikhonov curve rises through one half at a singular value equal to lambda; a truncated singular-value filter jumps from zero to one there.
Noiseless resolution of an individual singular mode. A value of one half means that the inversion retains half of the true amplitude, even with perfect data.

Calculate the bias and variance for one component

Suppose a scalar instrument reads \(b=0.1x+\epsilon\), true \(x=2\), with noise standard deviation 0.1. Direct inversion gives an unbiased estimate with standard deviation 1. At \(\lambda=0.1\) the filter is \(1/2\); the estimated mean is 1 and the standard deviation is 0.5. Mean squared error is bias squared plus variance: 1.25 here, compared with 1 for direct inversion. For true \(x=0\) the same regularisation would reduce mean squared error from 1 to 0.25. Stabilising an estimate does not guarantee a smaller error for every possible signal. The importance assigned to plausible signals is part of the modelling decision.

Turn a source condition into a noise-dependent accuracy bound

The bias–variance calculation describes a particular signal and a noise distribution. Suppose instead we know only a deterministic data-error bound \(\|b^\delta-Bx^\dagger\|_2\le\delta\). To derive a uniform reconstruction guarantee we must also specify which signals qualify. One useful assumption is the source condition \(x^\dagger=B^Tw,\ \|w\|_2\le R\), in scaled coordinates. In singular coordinates a coefficient of \(x^\dagger\) is then \(\sigma_j\) times a coefficient of \(w\). Thus arbitrarily large features cannot hide in arbitrarily weak directions for the given \(R\). This assumption also excludes a component in the null space.

Write \(\alpha=\lambda^2\) for the penalty coefficient. Split the reconstruction error into the data perturbation passed through the regularised inverse and the loss produced by regularising exact data. In a mode of singular value \(\sigma\), the noise multiplier is \(\sigma/(\sigma^2+\alpha)\). The noiseless bias is \(-\alpha/(\sigma^2+\alpha)\) times the true coefficient, or \(-\alpha\sigma/(\sigma^2+\alpha)\) times the source coefficient. Because \((\sigma-\sqrt\alpha)^2\ge0\), the first multiplier is bounded by \(1/(2\sqrt\alpha)\). The same inequality bounds the magnitude of the second by \(\sqrt\alpha/2\). Orthogonality and the triangle inequality now give

\[\|x_\alpha^\delta-x^\dagger\|_2\le\frac{\delta}{2\sqrt\alpha}+\frac{R\sqrt\alpha}{2}.\]

If \(R,\delta>0\), the two terms balance at \(\alpha=\delta/R\), giving the bound \(\sqrt{R\delta}\). This is an a priori parameter choice based on stated uncertainty. For a family of increasingly resolved operators, keeping \(R\) controlled matters. If the model class admits large coefficients in directions of vanishing sensitivity, the same claim has no uniform basis.

When bias and data error reinforce one another

Take \(B=\operatorname{diag}(1,0.1)\) and \(w=(0,1)^T\), so \(R=1\), the true signal is \((0,0.1)^T\), and exact data are \((0,0.01)^T\). Suppose the second measurement is perturbed downwards by \(0.01\). Then

\[\delta=0.01,\ \alpha=0.01.\]

With exact data, reconstruction would retain half the weak coefficient, producing \(0.05\) and bias \(-0.05\). The data perturbation is multiplied by \(0.1/(0.01+0.01)=5\), adding another \(-0.05\). The reported signal is zero, and the error \(0.1\) attains the theoretical bound. Here the vulnerable direction has precisely \(\sigma=\sqrt\alpha\). On another spectrum the achievable error may be much smaller.

Practise on sheet 2 · A source ball and a different weak direction. Further reading · University of Cambridge · Inverse Problems, Mathematical Tripos Part III · §3.2.3 Tikhonov regularisation and §3.2.4 Source-conditions, pp. 37–39.

Choose what the penalty expresses

For an expected background \(x_0\) and a derivative operator \(D\), a suitable criterion may use \(\|D(x-x_0)\|^2\). A first-difference penalty discourages adjacent jumps while leaving constants unpenalised; a second-difference penalty instead leaves affine trends unpenalised on a simple uniform open grid. The minimiser is unique if \(\ker B\cap\ker D=\{0\}\) for \(\lambda>0\). Check this condition before interpreting a smooth result. Penalising a field whose true behaviour has a sharp interface spreads the interface; inspect the response to a synthetic sharp feature before claiming a physical transition width.

Choose a strength from measurements, then report resolution

If a bound \(\delta\) for the whitened data error is known, the discrepancy principle seeks a fit whose residual norm is comparable to \(\delta\). Smaller \(\lambda\) usually fits data more closely; larger values raise residual and reduce the penalised norm. A noise level estimated in the original physical units must be transformed consistently. If model error alone exceeds the assumed discrepancy, no amount of careful parameter tuning makes the noise model correct. Other choices include validation on genuinely independent observations and examining the residual-versus-penalty curve across several decades.

Report the chosen operator, units, strength and selection criterion. Alongside a reconstruction, show how its resolution changes under a modest change of regularisation. A feature that vanishes under a noise-consistent alternative requires more evidence. A predicted quantity can remain stable despite substantial uncertainty in the underlying image; testing that quantity directly can be the scientifically relevant validation.

Per Christian Hansen develops the singular-value picture and parameter choice further in Discrete Inverse Problems.

When a specified discrepancy determines a unique strength

Consider the zero-background quadratic penalty and express the data in left singular coordinates \(b_j\). Substituting the filtered solution back into the forward model gives residual coefficient \(\lambda^2 b_j/(\sigma_j^2+\lambda^2)\), with the sign chosen as data minus prediction. The data component \(b_\perp\) orthogonal to the range of the matrix survives unchanged for every strength. Orthogonality therefore expresses the squared discrepancy as \(\|b_\perp\|^2+\sum_j |b_j|^2[\lambda^2/(\sigma_j^2+\lambda^2)]^2\), with the sum taken over positive singular values. This equation allows a statement more definite than the heuristic that smoothing worsens the fit.

For each positive singular value the quantity in brackets increases strictly from zero to one as \(\lambda\) grows from zero to infinity. Thus the residual norm increases continuously from the irreducible distance \(\|b_\perp\|\) to the full data norm. There is a unique positive finite strength for every target strictly between these endpoints provided at least one measured singular component is nonzero. A target below the first endpoint is infeasible. A target near the upper endpoint can permit a nearly zero reconstruction. The exact same reasoning for general penalties needs care when some physical modes receive no penalty.

Allocate a discrepancy after accounting for an unmodelled reading

A scaled instrument produces \(b=(3,1)^T\) for a single unknown \(x\), with predictions \(Bx=(2x,0)^T\). The second channel, which should be zero according to the stated model, already consumes one unit of residual norm. Set a total target of \(\sqrt{1.36}\) and use the zero-background criterion. Squaring the norm leaves \(1.36-1=0.36\) for the squared discrepancy in channel one. The required nonnegative first-coordinate discrepancy is therefore 0.6. Its prediction is \(3-0.6=2.4\), so the reconstructed coefficient must be 1.2.

Check by solving the actual penalised problem. The normal equation is

\[(4+\lambda^2)x=6.\]

Substituting \(x=1.2\) gives \(4+\lambda^2=5\), hence \(\lambda=1\). The noiseless resolution factor for that coefficient is

\[4/(4+1)=0.8.\]

This calculation identifies the amplitude tradeoff associated with the selected discrepancy. It also shows why setting the target to 0.9 could never work: the second channel alone contributes one unit for every value of \(x\).

Suppose a second independent reading of the missing channel also repeatedly lies near one, despite a nominal uncertainty of only 0.05 units. The persistent signed defect would be evidence to inspect the forward model or reference subtraction. Treating that behaviour as an excuse to enlarge the noise budget can produce an attainable discrepancy while systematically oversmoothing the channel that does measure \(x\). Inspect residuals by physical observation as well as their aggregate norm before attributing a discrepancy-selected strength to the uncertainty of the instrument.

In this example the formula for arbitrary strength is \(x=6/(4+\lambda^2)\). Differentiating it shows that near \(\lambda=1\) a strength increase of 0.1 initially lowers the coefficient by about 0.048. This local sensitivity is another interpretable number to publish if the noise target is itself estimated from a short calibration series.

Change parameters · Regularisation, resolution and the price of stability

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Study the full derivation

Choose a regularisation scale by predicting omitted data · Inferring parameters and fields from observations

Regularised least squares can fit each observation partly with itself. Derive leave-one-out residuals from a single factorisation, approximate them by a trace and identify when a generalised cross-validation score misses a highly influential sensor.