Regularisation, and the answer that is chosen

Choosing without knowing

Three published rules for choosing a regularisation parameter, scored against an oracle that requires the exact answer and is therefore not a method. Generalised cross-validation lands on the oracle's λ exactly; the discrepancy principle costs 6%; the L-curve costs 129%. And told a noise level ten times too small, the discrepancy principle's error goes from 0.112 to 10,449.

Worth reading first: When the answer is a choice.

The first essay in this field establishes that the answer is a choice and that both standard methods make it by weighting one sum. The second finds the index where the data stops carrying signal and shows it is not the index where stopping is best.

This essay is about the three published rules for making the choice, and about the fact that they can be scored here — against a parameter that requires the exact answer and is therefore not a method at all.

The L-curve, and where four rules put λThe norm of the solution against the norm of its residual, on logarithmic axes, as λ sweeps eight decades. The curve has a corner: to the left of it the noise is being amplified and to the right the signal is being thrown away. Four points are marked — the three rules that use only the data, and the oracle, which requires the exact answer and is not a method.10⁻²10⁻¹110¹10²10³10⁴‖Ax − b‖‖x‖the oraclediscrepancyL-curvegeneralisedscored against a truth none hasoracle, relative error0.11discrepancy principle, as a multiple1.1L-curve corner, as a multiple2.3generalised cross-validation, as a multiple1the oracle needs the exact answer and is not a methodit is the reference the others are scored on
Fig. 1 The norm of the solution against the norm of its residual, on logarithmic axes, as λ sweeps eight decades. Four points are marked: the three rules that use only the data, and the oracle, which requires the answer.

The oracle, which is not a method

The problem is constructed, so the exact signal is known, so for every λ on the sweep the actual relative error is computable. The λ that minimises it is the best any parameter choice could do.

That is not a method and it must not be mistaken for one. It requires the answer to the question being asked. It is here for one reason: without it, three rules can only be compared with each other, and a comparison between three heuristics tells a reader which is most popular rather than which is right.

assertNoRuleReachesTheOracle asserts that no rule beats it — which is a statement about the experiment rather than about the rules, and would catch a rule that had cheated by touching the exact answer. And assertTheRegularisationAssertionsReject feeds the claim that a rule beats the oracle and requires it to fail, so a future refactor that accidentally handed a rule the truth would stop the build.

This is exact ground truth in the one place a field could not be written without it.

The three rules, and what each of them knows

They differ in what information they are entitled to, and that is the interesting axis rather than their names.

The discrepancy principle is told the noise level. Choose the largest λ whose residual is still no bigger than ‖e‖, on the reasoning that fitting the data more closely than the noise permits is fitting the noise. It is the only rule here that needs something outside the data, and the standard criticism of it is that nobody knows ‖e‖.

The L-curve is told nothing. Plot ‖x‖ against ‖Ax − b‖ on log–log axes as λ sweeps; the curve has a corner, and to the left of it the noise is being amplified while to the right the signal is being thrown away. Choose the corner, found here as the point of maximum discrete curvature.

Generalised cross-validation is also told nothing. Minimise ‖Ax_λ − b‖²/trace(I − AA⁺_λ)², which is a leave-one-out prediction error with the leaving-out done in closed form. The trace is available exactly from the filter factors — it is Σ(1 − fₖ) — which is what makes GCV cheap once the SVD is in hand and expensive otherwise.

The L-curve, and where four rules put λThe norm of the solution against the norm of its residual, on logarithmic axes, as λ sweeps eight decades. The curve has a corner: to the left of it the noise is being amplified and to the right the signal is being thrown away. Four points are marked — the three rules that use only the data, and the oracle, which requires the exact answer and is not a method.10⁻¹110¹10²10³10⁴10⁵‖Ax − b‖‖x‖the oraclediscrepancyL-curvegeneralisedscored against a truth none hasoracle, relative error0.14discrepancy principle, as a multiple1L-curve corner, as a multiple1.3generalised cross-validation, as a multiple1the oracle needs the exact answer and is not a methodit is the reference the others are scored on
Fig. 2 The same L-curve at ten times the noise. The corner is blunter, every rule’s answer moves right, and the ordering between them is not the same — which is why the table below is one problem’s result rather than a ranking.

What they score

At 64 points with 0.1% noise:

rule λ relative error against the oracle
oracle 3.98·10⁻³ 0.1051
generalised cross-validation 3.98·10⁻³ 0.1051 1.00×
discrepancy principle 1.00·10⁻² 0.1118 1.06×
L-curve corner 6.31·10⁻⁴ 0.2406 2.29×

GCV lands on the oracle’s λ exactly — the same grid point, not merely nearby. The discrepancy principle over-smooths slightly and pays 6%. The L-curve under-smooths substantially and pays 129%.

Three things about that table are worth saying carefully.

It is one problem. No claim is made that GCV wins in general, and the drag exists partly to show that the ordering is not stable across noise levels. The assertion is deliberately weak — that at least one rule pays a real price — because asserting a ranking would be asserting something about this problem and calling it a result.

GCV landing exactly is a property of the grid. The sweep has 61 λ values over eight decades, so “exactly” means the same grid point rather than the same real number. On a finer grid the two would differ slightly. What the coincidence does establish is that GCV’s minimum and the error’s minimum are in the same place to within a sixth of a decade, which is what the claim amounts to.

And the L-curve is not broken. The corner is a real feature of the curve, it is where the two regimes meet, and the curvature maximum finds it. Choosing the corner is simply not the same as choosing the minimiser of the error, and the figure shows both points on one curve so the difference between them is visible rather than argued.

Two filters on one sum, λ = 0.001The weight each term of the solution is given, against its index. Truncation is a step: one for the first 32 terms and zero after. Tikhonov is σ²/(σ² + λ²), which falls smoothly through the same place. The unregularised solution is the constant one, which is why it divides noise by a σ of 1.7·10⁻¹³.081624324048566400.250.50.751index kfilter factor fₖno regularisation: fₖ = 1truncationTikhonovthe same sum, three weightsTikhonov, relative error0.16truncation, relative error0.13no filter at all5.5·10⁸both filters are one expression with a different weightfₖ = 1 is the catastrophe
Fig. 3 What a λ two decades below the oracle’s actually does. The shoulder moves right and the filter keeps components whose coefficients are already noise — which is the under-regularised failure direction, drawn as a weight rather than as a signal.

A parameter for choosing a parameter

The L-curve has a detail that deserves stating rather than hiding: computing the curvature of a discrete curve from three consecutive points is noisy, so the implementation smooths first.

That smoothing is a parameter of the rule for choosing a parameter. The rule advertised as requiring no information about the noise requires a decision about how much to smooth its own curve, and different decisions move the corner.

This is not a criticism unique to the L-curve — GCV’s minimum is also found on a grid, and the grid is a choice — but it is worth naming because the L-curve is usually presented as the parameter-free option, and a parameter-free rule with a smoothing window in it is a rule with a parameter in a place nobody looks.

The recovered signal at three λ, 0.10% noiseThree recovered signals against the truth. At the best λ the two bumps are recovered and the step is rounded off. Fifty times smaller and the answer is dominated by amplified noise; fifty times larger and the step has gone entirely. The step is the feature that costs the most to represent and it is the first thing any filter loses.0816243240485600.511.5positionvaluethe truthbest λtoo littletoo mucheither side of the bestbest λ, relative error0.11fifty times smaller0.73fifty times larger0.15the step is the first thing every filter losesand it does not come back
Fig. 4 What each of the four λ in the table above returns. The middle curve is the oracle’s; the two either side of it are the failure directions, fifty times smaller and fifty times larger. The L-curve’s answer sits between the middle and the under-regularised one, which is what a factor of 2.29 in the error looks like.

The asymmetry, which is the finding

The obvious objection to the discrepancy principle is that ‖e‖ is unknown. The obvious response is that it is often known approximately. So the measurement worth making is not how well it does when told the truth — 6% — but how fast it degrades when told a wrong one.

Fed a noise level ten times too large and ten times too small:

told λ chosen relative error against being told the truth
ten times too large 8.58·10⁻² 0.1423 1.27×
the truth 1.00·10⁻² 0.1118
ten times too small 1.00·10⁻⁸ 10,449 93,000×

The same factor of ten, in the two directions, costs 27% and five orders of magnitude.

Over-stating the noise over-smooths: the answer is blurrier than it needed to be, some detail is lost, and the error rises gently. Under-stating it under-smooths: the rule keeps searching for a λ whose residual is small enough, does not find one until λ is at the bottom of the grid, and returns the unregularised catastrophe the first essay measures at 5.5·10⁸.

The assertion states the direction of each — an overstated level over-smooths, an understated one under-smooths — because those are properties of the rule. The sizes are properties of this problem and are reported rather than asserted.

The practical conclusion is a rule about which way to be wrong, and it is unusually clear-cut: when the noise level is uncertain, over-state it. The penalty for caution is a factor of 1.3 and the penalty for optimism is a factor of ninety thousand.

That is the same shape as the cliff in the block-size scan — a gradual slope on one side of an optimum and a discrete failure on the other — and the same practical advice falls out of both: when the curve is asymmetric, err towards the gradual side.

The recovered signal at three λ, 1.0% noiseThree recovered signals against the truth. At the best λ the two bumps are recovered and the step is rounded off. Fifty times smaller and the answer is dominated by amplified noise; fifty times larger and the step has gone entirely. The step is the feature that costs the most to represent and it is the first thing any filter loses.0816243240485600.511.5positionvaluethe truthbest λtoo littletoo mucheither side of the bestbest λ, relative error0.14fifty times smaller1.6fifty times larger0.43the step is the first thing every filter losesand it does not come back
Fig. 5 The three signals at ten times the noise, where every rule has less to work with. The step is lost sooner and the best available answer is worse — 0.1445 against 0.1051 — before any rule has made a mistake.

Why no rule can reach the oracle, in principle

Not a limitation of these three. Every rule that uses only A and b is choosing λ from information that does not determine the answer, which is the definition of the problem this field is about.

The oracle uses x_true. The discrepancy principle uses ‖e‖, which is one number about x_true’s absence. The L-curve and GCV use nothing beyond the data, and are therefore inferring the noise level from the shape of the sweep — which is a genuine inference and a lossy one.

So the rules form a ladder in information rather than in cleverness, and the measured errors are roughly monotone in it: the oracle at 0.1051, the rule told ‖e‖ at 0.1118, and the rules told nothing at 0.1051 and 0.2406. GCV’s position on that ladder is the anomaly worth noticing — it is told nothing and does as well as the oracle here — and the honest reading is that GCV’s inference happened to be right on this problem rather than that it has escaped the ladder.

The randomised SVD against the optimum it cannot beatA semi-logarithmic plot of approximation error against target rank. A shaded band shows the spread across seeds, a solid line the optimal error from the exact singular values, and a dashed line the published probabilistic bound well above both.04812162010⁻¹10⁻⁰.⁵1target rank k‖A − A_k‖₂published boundrandomisedσ_{k+1}, optimalhow far apart the three areworst seed spread1.6bound / median at k = 125.9median / optimum at k = 121.960×60, 6 seeds, oversampling p = 5band is best to worst
Fig. 6 A bound reported rather than tuned, from the randomised field. The HMT bound was not violated once in eighty seeds and is loose by 5.43× against the median — so what is published is the looseness and the spread, not a corrected constant. The same discipline is why the Picard crossing’s bias is reported here rather than subtracted.

What the L-curve is actually a picture of

Worth keeping, because the figure is drawn on those axes and the axes carry an argument.

‖x‖ against ‖Ax − b‖ is a trade-off curve, and its two arms are the two failure directions the first essay measures. The vertical arm on the left is λ too small: the residual is as small as it will get and ‖x‖ is climbing without limit, which is the amplified noise having to go somewhere. The horizontal arm on the right is λ too large: ‖x‖ has collapsed towards zero and the residual is climbing, which is the signal being thrown away.

The corner is where neither is happening much. That is a genuine and useful thing to identify — and it is a statement about where the curve bends, not about where the error is least, and those are two different points on the same curve. The figure marks both.

Why the sweep is a sweep

A detail of construction that decides what the comparison means.

Every rule is scored on the same grid of sixty-one λ values over eight decades, and every λ on it is applied to the same noise — the noise vector is drawn once from a fixed seed and added before any λ is chosen. So a sweep over λ is a sweep over λ, rather than over λ and the noise together.

That sounds obvious and it is the discipline the gap sweep in the subspace field had to adopt for the same reason: with the perturbation redrawn at every point, a curve that should have been smooth in the parameter would have been a scatter of unrelated experiments, and the shape being measured would have been the seed’s rather than the parameter’s.

It also means the oracle is the oracle for this noise draw. A different draw moves it, and the rules’ errors move with it in a correlated way. The essay reports one draw and does not average, which is a shortfall recorded rather than concealed — acrossSeeds exists in this site’s library and this field does not use it.

Three rules, three kinds of failure

The errors in the table are one number each, and the ways they arrive at them are not the same kind of thing.

The discrepancy principle fails by being told wrong. Given ‖e‖ correctly it is 6% off the best, and given it wrongly it is anywhere. Its error is entirely an error in its input, which is a comfortable place for a rule to be: it is right about what it needs and honest about needing it.

The L-curve fails by answering a different question. It finds the corner reliably, on this problem and on others, and the corner is 2.29× off the best. Its error is not an error at all in its own terms; it is a mismatch between what it optimises and what a reader wants.

And GCV fails by not always working. It landed on the oracle here. It is known to fail occasionally and badly — its objective can be nearly flat, so its minimum is sometimes decided by noise in the noise — and a rule that is exactly right most of the time and occasionally far wrong is a harder thing to advise about than one that is consistently 6% off.

Which is the most useful summary this field can offer: the three rules are not three attempts at the same thing with different accuracies. They fail differently, and the choice between them is a choice about which failure is acceptable.

The oracle is what makes this a field rather than a survey

A closing note about method, because the device is unusual enough to be worth defending.

A comparison of parameter-choice rules without an oracle can say two things. It can say what each rule chooses, which is a description. And it can say that they disagree, which is a fact about them rather than about the problem. Neither says which to use.

With an oracle it can say a rule costs 6% and another costs 129%, on a problem where the answer is known — and it can then be honest about the fact that the answer is known only because the problem was built for the purpose.

That trade is one this collection has made repeatedly. The Hilbert matrix’s exact rational inverse is not a realistic problem; it is the one place a forward error can be known rather than estimated, and an answer that is known is a whole essay about what that buys. The discrete Laplacian’s closed-form spectrum is not a realistic operator; it is what lets every stationary rate be checked against a number that was not measured.

A constructed problem is a measuring instrument. What matters is that it is stated as one — which is why every figure in this field draws the oracle in a different colour, marked as requiring the answer, rather than as a fourth method.

The rules that are not here

Three more are in common use and none of them is measured, which is worth listing so the comparison is not read as exhaustive.

The unbiased predictive risk estimator, which needs the noise variance and estimates the prediction error directly rather than through cross-validation. It sits between the discrepancy principle and GCV in what it is told.

The quasi-optimality criterion, which needs nothing and chooses the λ at which the solution changes least — a stability argument rather than an error argument, and one that fails in a completely different way.

And residual-based stopping for an iterative method, which is what most large computations actually use, and where the parameter is an integer and the sweep is the iteration itself rather than a separate loop.

Three is enough to show that rules using different information land in different places, which is the essay’s claim. It is not enough to rank them, and nothing here does.

Singular values and |uₖᵀb|, with and without 0.010% noiseThree curves against the index on a logarithmic vertical axis. The singular values fall exponentially to the level of rounding. With an exact right-hand side the coefficients fall faster and every term of the solution stays bounded. With noise they flatten at index 40, and from there on each term is noise divided by a σ of 1.3·10⁻⁵.081624324048566410⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹index kmagnitudethe floor: k = 40best truncation: k = 32σₖ|uₖᵀb| exact|uₖᵀb| with noisetwo different indicesthe crossing, from the data alone40the truncation that is actually best32relative error there0.098the exact coefficients never flattenthe noisy ones stop at ‖e‖/√n
Fig. 7 Where the search should stop, at a tenth of the noise this essay’s table is drawn at. The crossing moves right as the measurement improves — 40 here against 32 at 0.1% — so the range a parameter-choice rule has to search is itself a function of the data rather than of the operator.

What is left

Iterative regularisation. Conjugate gradients on the normal equations, stopped early, is itself a regulariser with its own filter factors, and the parameter is the iteration count — an integer, chosen from the same three kinds of information. It is what anybody solving a large problem does, since it needs no SVD, and none of it is here.

The general form. Everything above penalises ‖x‖. Penalising ‖Lx‖ for a derivative operator L is what a real deconvolution does, and the parameter-choice rules all have general-form versions whose behaviour is not the same — the L-curve in particular changes shape, because ‖Lx‖ and ‖x‖ have different arms.

And multiple parameters. A problem with two regularisation terms has a two-dimensional trade-off surface rather than a curve, the L-curve becomes an L-surface, and “find the corner” stops being well defined. That is where the whole approach reaches its limit, and it is the case most modern inverse problems are in.

What links here

Computed from the collection, not written here: the essays that point at this one.

Named objects

A flat tag is an object no other essay names yet.

Cross validationDiscrepancy principleIll posed problemL curveNoise floorParameter choiceRegularisationTikhonov regularisation