Week 8: Regression and inverse problems: pseudoinverses + regularisation as optimisation
Return to the two stress measurements that opened the course. A least-squares optimum solved the disagreement, but did not tell us whether small observation errors could produce large changes in stiffness. The SVD in Week 2 exposed that sensitivity; compact operators in Week 5 showed why infinitely many weak directions make it unavoidable.
We now choose to leave some information unrecovered. Regularisation trades a controlled bias for reduced noise amplification. The central question is no longer “can we invert every mode?” but “which modes does the data justify recovering?”
Route through this chapter
Optimisation approach to inverse problems
Least squares and feature-based linear regression
Ill-posedness of inverse problems
Generalised inverses
Regularisation: Tikhonov regularisation (ridge regression) and other examples
Simply put, an inverse problem means fitting/learning unknown parameters in a mathematical model to best explain some data/observation about the system being modelled. (Sometimes we distinguish between parameter estimation and state estimation for dynamical systems.)
Classic example: According to Hooke's law, for a linear elastic material, the force F applied to stretch a material and the resulting dimensionless strain ε are proportional. Writing σ:=F/A, A being the cross-sectional area of the material, σ=Eε, with σ being the stress, ε the strain, and E the Young's modulus for the material. We can apply known forces and measure extension to get a data set (εj,σj)j=1J and find an E that "best" explains the data. A classic choice for "best" is an E that minimises the sum of squared residuals
Φ(E):=j=1∑J∣σj−Eεj∣2.
With noisy data, an overdetermined system will generally have positive minimum misfit, although exact consistency is possible. Overdetermined does not by itself mean inconsistent.
This is a simple example of linear regression: given a set of J input-output pairs (xj,yj), find a constant θ∈R such that
Φ(θ):=21j=1∑J∣θxj−yj∣2=21∥xθ−y∥22
is minimised. (Here x=(x1,…,xJ) and y=(y1,…,yJ).)
As a mild generalisation, we can do linear regression with an intercept that does not have to be zero: we seek θ=(θ0,θ1)T∈R2, using the model yj=θ0+θ1xj, to minimise
We can take this a bit further and fit models linear in their parameters of the form
y=k=0∑Kθkfk(x),
where the parameters θ0,…,θK∈R appear linearly, and the f0,…,fK:R→R are possibly nonlinear feature functions. A Fourier expansion is an example, with fk(x)=eikx.
The misfit function Φ:RK+1→R≥0 that needs to be minimised here is again a sum of squared residuals
The matrix above is the feature matrix or design matrix (or "Vandermonde matrix" if the fk are polynomials).
All of the above is motivation for, and special cases of, the following:
(problem setup) Given Hilbert spaces H1 and H2, and a linear operator A:H1→H2 (usually a compact op.) and y∈H2,
(solution) find u∈H1
s.t. 21∥Au−y∥H22 is minimised.
(We call A the forward operator.)
Mathematical forward problems are usually well posed: Hadamard called a problem well posed if
For each problem setup, a solution exists
That solution is unique
This unique solution depends "nicely"/stably (e.g. continuously or differentiably) on the problem setup.
However, inverse problems are typically ill posed and violate one or more of Hadamard's criteria. Just think of over- and under-determined linear systems to see why the eqn Au=y cannot typically be solved for u in a stable way. (Even the minimisation problem is a relaxation of the original goal of solving an equation exactly.)
Generalised inverses for compact linear inverse problems
We'd like to solve the equation Au=y for u∈H1 given a compact linear op. A:H1→H2 and y∈H2. This may be impossible, e.g. if y∈/ran(A), cf. Hadamard (1). If A is not injective, i.e. if ker(A)={0}, then solutions are not unique, cf. Hadamard (2). And what about (3)?
The situation is not hopeless: we relax the problem and seek u to minimise
21∥Au−y∥H22=:Φ(u).
As we have seen, minimisers of Φ are exactly solutions of ∇Φ(u)=0, i.e. solutions of the normal equations
A∗Au=A∗y.
If we have the SVD
A=n∈N∑σnϕn⊗ψn,
then, whenever the following series converges, the minimum-norm least-squares solution is given by
u=A†y=n∈N∑σn1⟨ψn,y⟩H2ϕn(∗),
where
A†=n∈N∑σn1ψn⊗ϕn.
(Moore–Penrose pseudoinverse / generalised inverse of A)
Two issues present themselves:
The expansion (*) for u only converges in H1 if the data y∈H2 satisfies the Picard condition
∥A†y∥H12=n∈N∑σn2∣⟨ψn,y⟩H2∣2<∞.
(Parseval)
So A† is not a globally-defined operator H2→H1; it is only defined on a domain dom(A†)⊆H2 on which the Picard condition holds.
A†:dom(A†)⊆H2→H1 is an unbounded operator: there is no finite constant C s.t.
∥A†y−A†(y+δy)∥≤C∥δy∥.
(The only way this can hold is the "boring" case that A has finite rank r, in which case C=∥A†∥op=σr−1; otherwise ∥A†∥op=(minnσn)−1=σ−1=∞.) Thus A†y is highly sensitive to small perturbations of the data y, cf. Hadamard (3).
Despite these issues, A† does have many nice properties, e.g.
AA†A=A,A†AA†=A†,A†A=P(kerA)⊥,AA†=PranAdomA†.
Furthermore, for y∈dom(A†), if we set u+:=A†y, then
argminΦ={u∈H1:∥Au−y∥H22 is minimised}=u++kerA,
and u+ minimises ∥u∥H1 in this set. That is, among all solutions to the least squares problem, A†y is the "smallest", the closest to the origin in H1.
Regularisation
This all leads to the idea of regularisation: we approximate the partially-defined unbounded op. A†:dom(A†)⊆H2→H1 by a family of bounded operators Gα:H2→H1, with α>0 being a regularisation parameter. Note that ∥Gα∥op→+∞=∥A†∥op as α→0. We ask only that
Gαy→A†yas α→0
for all y∈dom(A†).
There's clearly a lot of flexibility here. An accessible example is Tikhonov regularisation / ridge regression.
Tikhonov regularisation
Although there are many ways to regularise inverse problems, an accessible first approach to consider is Tikhonov regularisation.
Instead of minimising the misfit functional
Φ(u):=21∥Au−y∥H22
w.r.t. u∈H1, we minimise
Φα(u):=21∥Au−y∥H22+2α∥u∥H12,
with α>0 a regularisation parameter. Small α promotes fidelity to the data, with a risk of overfitting; large α promotes a stable, small solution regardless of the data.
We can derive Tikhonov-regularised normal equations:
Clearly, the choice of α plays an important role. Often, α is chosen to depend upon the quality/amount of data available.
Inv. probs: y=Au+η with observational noise η of "size" δ>0; choose α(δ)→0 as δ→0.
Statistics and machine learning: n noisy observations at a fixed noise level; choose α(n)→0 as n→∞.
The choice of α as a function of δ or n is called a regularisation schedule. When coupled with source conditions of the form
n∈N∑σn2s∣⟨ϕn,u⟩∣2<∞,
we can bound the reconstruction error Gαy−u and show that ∥Gα(δ)y−u∥→0 as δ→0 for an appropriate schedule. See handout!
On a fixed noisy data vector, reduce the penalty weight and watch the reconstructed coefficients. Strong modes settle first. Eventually the weak directions begin to explain the noise as if it were signal.
Trust the modes the observations can support
Recover the coefficients
Inverse amplification
α=1.00e+0, reconstruction error=0.549
Dashed truth stays fixed. The marked singular values sample the filter; weak modes receive more amplification as alpha decreases.
Play once, pause, or scrub to inspect an intermediate state.
Ready to explore.Eight-mode diagonal forward map σₙ=1/n, truth uₙ=1/n², fixed signed noise of norm 0.04. Solid coefficient curves are compared with the dashed truth. Tikhonov multiplies noisy data by σₙ/(σₙ²+α); reducing α restores signal and eventually amplifies weak-mode noise. ↗
Sparsity and edge preserving regularisation
We can consider more general penalties/regularisations: find uR to minimise
Φ(u)+R(u)
with R:H1→[0,∞] some regularisation function.
In some situations, we have a prior belief that u=∑nunψn should be "simple" or "sparse", i.e. most un=0. It turns out that a choice of R that promotes sparsity in the minimiser is the ℓ1-norm or Manhattan norm of u
∥u∥1:=n∈N∑∣un∣,R(u)=αn∑∣un∣.
This is known as sparse regularisation, ℓ1 regularisation, or the LASSO.
Source conditions and why they matter for convergence of regularised reconstructions
Consider the inverse problem of recovering u∈H from y∈Y, given the linear model
Assume that ∥η∥Y≤δ. How should we send α→0 as δ→0 to ensure that uα(δ)→u? Do we need any assumptions on u?
We will focus on Tikhonov regularisation,
gα(σ):=σ2+ασ.
Many generalisations are possible.
Assume u⊥kerA; an invisible kernel component cannot be recovered by any spectral inverse. Write un=⟨ϕn,u⟩ and ηn=⟨ψn,η⟩. The error splits into a deterministic bias and propagated observation noise:
The first term decreases as more modes are trusted; the second can increase. For a scalar singular value t≥0,
(t−α)2≥0⟹t2+αt≤2α1.
Therefore the noise term is at most δ2/(2α). Equality in the scalar bound occurs at t=α; the actual operator norm can be smaller if no singular value lies there.
What exactly does regularisation refuse to invert? Compare the filters and the two competing error bounds.
Left: Tikhonov caps amplification at 2.5 for α=0.04. Right: source radius M₂=1 and noise bound δ=0.02; curves are norm-error bounds, not realised errors. ↗
The smallest singular values are suppressed rather than accurately inverted. Increasing α lowers noise amplification but raises bias; the derivation below quantifies a schedule that sends both to zero.
Follow the bias and noise vectors separately for those same data. Their norms compete as alpha changes, but the final error is the norm of their vector sum. This distinction explains why an upper bound need not trace the realised error exactly.
Follow bias and noise separately
Actual error components
Error vectors add before norms
bias=0.553, noise=0.011, total=0.549
Teal bias shrinks while amber propagated noise grows. Their vectors add; the dashed total norm shows the realised compromise for this fixed noise.
Play once, pause, or scrub to inspect an intermediate state.
Ready to explore.The same fixed eight-mode problem as the spectral-filter animation. Left shows actual bias norm, propagated-noise norm and total error on a logarithmic α axis. Right compares coefficient error vectors. Total error is not the sum of the two norms; cancellation is possible. ↗
Convergence without a rate, then a source condition
For a fixed recoverable u, each bias factor tends to zero and is bounded by one. Dominated convergence for the summable series ∑n∣un∣2 gives bias convergence without an extra smoothness assumption. Thus
α(δ)→0,δ/α(δ)→0⟹uα(δ)→u.
A source condition gives a quantitative rate uniformly over a smoother class. Define
Ms2:=n∑σn2s∣un∣2<∞,s>0.
For 0<s≤2, put t=αr. Then
t2+ααts=αs/21+r2rs≤αs/2,
because rs≤1+r2. Consequently,
∥uα−u∥2≤2αsMs2+2αδ2.
Balancing the two terms gives α≍δ2/(s+1) and norm error O(δs/(s+1)), with fixed source bound. For s>2, use t≤∥A∥ to obtain
t2+ααts≤α∥A∥s−2.
The bias bound saturates at order α for ordinary Tikhonov; the source's supremum over all t>0 was infinite for s>2. This restriction is not a technicality: a smoother truth does not remove the filter's limited qualification.
Exercise. Let σn=1/n and put noise of size δ in a single output mode. Compare the unregularised error δn with the regularised error δn/(1+αn2). Which mode is most amplified? Week 9 turns this balance into parameter-choice rules and then a distribution over reconstructions.