Concept

Generalised cross-validation — where it appears

A parameter-choice rule whose objective divides the residual by a trace over the fitted subspace, so at scale it contains an estimated quantity. It needs no noise level, which is its advantage over the discrepancy principle, and its objective contains a trace that has to be estimated at any interesting size.

Named by 22 essays across 4 fields — each of them below, with the objects they name alongside it.

1112131415193111.365129.731148.096166.461probes takenrunning estimate of the tracenormal±1one probe, no errorthe exact trace99±1 variance, this matrix0±1 variance, rotated57normal variance545the same spectrum in a general basiscosts the ±1 probe its whole advantage

Counting what cannot be looked at

The trace is n additions and one of the most expensive quantities in the subject to estimate, because the matrices whose trace is wanted are never stored. Hutchinson's estimator is unbiased with one line of algebra — and its variance depends on which random vector is used, by a factor that is a property of the matrix, and on a diagonal matrix one choice is exact from the first probe and the other is not.

randomised · Trace estimation
192123252729313335373941434500.10.20.30.40.50.60.7position jweight on the true signal at jthe blur's row, 5.89 widethe kernel, 2.82 widecomputed from A and λ alonekernel width at half height2.8components kept, Σfₖ28width × Σfₖ / n1.2deepest negative lobe-0.075no data and no truth went into this curvethe answer is the truth seen through it

A second blur, narrower than the first

A regularised answer is not the truth with the noise taken out. It is the truth seen through a second blur, V F Vᵀ, which depends on the operator and λ and on nothing that was measured. At the best λ for 0.1% noise its rows are 2.82 points wide against the instrument's 5.89, they dip to −0.075 on either side, and their width times the number of components kept stays between 1.10n and 1.27n across seven decades of λ. Two spikes four points apart come back as two; three apart, as one.

regularisation · Regularisation
27121722273237424710⁻²10⁻¹110¹subspace size kvalueno answer below 8GCV's traceλ from GCVλ from the residuala denominator that is not the problem'strace at k = 41trace at k = 4827λ range across the run2.2subspace before an answer8the divisor moves by twenty-sevenand the answer does not move

A parameter chosen on a smaller problem

Inside a hybrid method the regularisation parameter is chosen on a 25×24 problem rather than a 64×64 one. The rule that reads a residual transfers exactly; the rule that reads a trace is biased by exactly two grid steps at twenty-four steps and one at forty, at every noise level from 10% to 0.1%.

combination · Parameter choice
081624324048566410⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹index kmagnitudethe floor: k = 43best truncation: k = 31σₖ|uₖᵀb| exact|uₖᵀb| with noise|uₖᵀe|, smoothedcorrelation ρ = 0.9noise energy, first 28 directions0.98tilt of the noise floor, decades1.1the crossing43the best truncation31the floor tilts, and is still a floorρ = 0.9

Noise that spares the answer and fools the rules

Make each noise sample remember the last one, keep its size fixed, and the best answer available gets slightly better — 0.1056 to 0.1010 — because slow noise hides in the directions where dividing by σ costs nothing. The Picard crossing still lands two dozen indices past the best truncation. What breaks is the rules. Generalised cross-validation more than doubles the best error on 14 draws of 48 instead of 3, the discrepancy principle's typical cost triples, and the two miss in opposite directions. Whitening by the covariance takes GCV back to 3.

regularisation · Regularisation
110¹10²10³10⁴10⁵10⁶error ÷ the oracle's, on the same drawten times the oracleover tendiscrepancy principletold ‖e‖0 of 1000unbiased risktold σ²15 of 1000cross-validationtold nothing57 of 1000quasi-optimalitytold nothing0 of 1000L-curvetold nothing0 of 1000blue: median · bar to the 90th percentile · line to the 99th · red: worstthe counts are the tail

One draw in twenty

Sixteen draws gave generalised cross-validation a worst case of 12%. A thousand draws at each of five noise levels give it a second answer on four to six in every hundred, ten to seven million times worse than the oracle, while its median stays among the best of five rules. The quasi-optimality criterion, told nothing either, never costs more than 1.41 in five thousand draws. The share settles by a thousand draws, and letting the search look further down more than triples it.

regularisation · Parameter choice
10⁻⁸10⁻⁷10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹110⁻⁴10⁻³10⁻²10⁻¹110¹10²10³10⁴λnoise part ÷ signal part, in ‖x‖where every corner sitsthe corner, ×2.29the oraclethe corner reads ‖x‖noise share at the corner0.23noise share at the oracle0.026corner ÷ oracle, this draw2.3corner ÷ oracle, 60-draw median1.5noise share: ‖L·(noise part)‖ ÷ ‖L·(signal part)‖the corner reads that share

The corner reads the norm it is drawn in

The L-curve was the costliest rule this field scored, and the cost was not the rule's. On the same sixty draws, with the same best achievable error, the corner of ‖x‖ against the residual costs 1.53 times the oracle and the corner of ‖L₁x‖ costs 1.003. Across five signals and three penalties the corner lands wherever amplified noise is between a tenth and a fifth of the norm being plotted, and it finds the oracle only when the oracle happens to sit there — twenty-nine times too costly on a smooth signal under ‖x‖, within half a per cent on four spikes.

regularisation · Parameter choice
unpreconditionedbest step20best error0.14edge τ0.01cutoffs at τ = 0.5λdiscrepancy0.032GCV0.016L-curve0.00410⁻⁴10⁻³10⁻²10⁻¹10⁻¹110¹truncation τbest relative errorunpreconditioned floor: 0.1426discrepancy: 0.144GCV: 0.142L-curve: 0.234the cutoff read as 0.5 × each rule's own λthe plateau is wide and the cliff is steep

The rule that is wrong in the right direction

The preconditioner's cutoff is not a new parameter. It is the regularisation parameter this field already knows how to choose, halved — and the rule criticised for choosing λ a factor of two or three too large is the one whose cutoff keeps the floor on every draw, where the rule that chooses λ to within 3% has a worst draw two hundred times off it.

combination · Iterative regularisation
where each λ sitsoracle's share0.0037corner's share0.1corner's cost25and what a target costsbest fixed target0.0035its cost1estimate ÷ truth at the oracle0.9210⁻⁸10⁻⁶10⁻⁴10⁻²110⁻³10⁻²10⁻¹110¹10²10³10⁴λnoise part ÷ signal parttarget 0.0035oracle λ: share 0.0037corner: share 0.102solid: the share on this draw · dashed: the share a rule can estimatethe rule is a level set of the dashed curve

A rule that has to be told how good its answer will be

The L-curve's corner reads a noise share of 0.10 to 0.21 across fifteen pairings of signal and penalty, and the share the best λ sits at runs from 0.0037 to 0.43 — a factor of a hundred and fifteen. A rule aimed at the right share is within a few per cent of the oracle on every one of them. The right share is about a third to four-fifths of the relative error that λ will achieve, which is the number the answer was wanted for.

regularisation · Parameter choice
worst draw on any grid, % over the oraclediscrepancy13GCV4·10⁶L-curve291median on 96 points, % overdiscrepancy3.4GCV0.18L-curve282030405060708090100110¹grid pointserror ÷ the oracle's, same drawdiscrepancy, mediandiscrepancy, worstGCV, medianGCV, worstL-curve, mediansolid: the median draw; dashed: the worst of sixteenthe axis stops at twenty times the oracle

The data count their dimensions, not the step's

Every grid in the deconvolution essays was chosen with the answer in hand, and so was every λ. From the data alone, the discrepancy principle's worst draw is within 16 per cent of the oracle on every grid from 16 points to 96; generalised cross-validation is better on the median draw and, on grids of thirty points and more, has draws thousands of times worse. And the data can say how many dimensions they carry — about 20, 25 and 29 at three noise levels, one number once the grid exceeds it — but not how many more the step needs: the grid that count chooses is 14 to 19 per cent worse than forty points at the lower two.

regularisation · Regularisation
worst draw on any grid, ÷ the oracleGCV4·10⁴rightmost minimum1.6discrepancy1.1draws more than twice the oracleGCV10rightmost minimum02030405060708090100110¹10²10³10⁴grid pointsworst error ÷ the oracle'sGCV, worst drawrightmost minimumdiscrepancythe worst of sixteen draws on each gridthe axis stops at ten thousand times the oracle

The minimum on the right

Generalised cross-validation's worst draws on a fine grid were all one mistake: a second dip in its function at λ near zero, deeper than the real minimum. The proposed repair was a residual threshold, one number, refusing any λ whose residual falls too far below the real minimum's. Measured over 528 draws, a threshold of one half still lets two hundredfold misses through; only the extreme value, which is no threshold at all but the rule 'take the rightmost local minimum', removes all eleven. It costs nothing on the coarse grids where the dip is the right answer, and on the collection's own problem over five thousand draws it turns 243 tenfold misses into 17.

regularisation · Regularisation
square systemfloor minima21interior dips28four samples per unknownfloor minima0interior dips4051015202530samples per unknowndraws of 24011.251.524minimum at the floorinterior dipGCV over 10× the oracleover 100×horizontal axis doubles at each gridlinethe floor goes at once and the dip does not

More samples take the floor and leave the dip

GCV's catastrophic misses on fine grids were blamed on squareness: on an n × n system the residual and n − t both reach zero as λ does, and their ratio can dip there. With more samples than unknowns neither reaches zero, and the prediction was that the dip would be gone by construction. Half of it is. The minimum at the floor of the scale, 21 draws in 240 on square systems, is gone at every ratio. The interior dip is not — 28, 20, 13, 8 and 4 draws at one to four samples per unknown — and at four per unknown one draw still misses the oracle by 877 times.

regularisation · Regularisation
how lopsided the valley isσ = 0.1: 6 too few ÷ 40 too many17σ = 10⁻³: 6 too few ÷ 40 too many231σ = 10⁻⁶: 6 too few ÷ 40 too many8184-50510152025303540110¹10²10³10⁴degree minus the best degreeerror ÷ best degree's errorσ = 0.1σ = 10⁻³σ = 10⁻⁶left of the line: too few degrees; right: too manya missing degree costs orders, an extra one a few per cent

The degree that is safe to overshoot

The rules that choose a Tikhonov parameter miss by factors of millions on one draw in twenty. Transplanted to the degree of a polynomial fit, in a basis orthonormal on the data, the same rules never cost more than 2.7 times the best degree's error in three hundred draws. The reason is the shape of the valley they search: six degrees too few costs from 44 to 16,000 times the best error, forty degrees too many costs about twice it. The one rule with a tail, the discrepancy principle, has its threshold half a standard deviation above the residual it is waiting for.

leastsquares · Fitting
45 interior dipsρ at the dip, true noise, median0.84ρ at the dip, estimated, median0.980.50.7511.251.51.7520.50.7511.251.51.752ρ at the dip, true noiseρ̂ at the dip, estimated noisedashed: the estimate equal to the truththe estimate pins every dip at one

An estimate that shares the dip's luck

GCV's interior dips form where the residual per remaining degree of freedom is low, and the proposal was a guard that estimates the noise from the least-squares residual and refuses a minimum whose residual is implausibly small. Over 960 draws holding 45 dips it refuses none, and picks plain GCV's minimum on every draw. At the dip ρ is 0.84 with the true noise and 0.98 with the estimate, because the estimate is made from the residual at the dip's own end of the scale and inherits its luck. Told the true noise instead, the guard can refuse 14 dips only by refusing 78 real minima. Handed the same estimate, the discrepancy principle misses by 570,000 times.

regularisation · Regularisation
125101001000error over the filter's best error, logarithmicdiscrepancy principlegeneralised cross-validationGCV, first minimum from the regularised endL-curve cornerTikhonov59 of 72 within a tenththe ramp40 of 72 within a tenthconjugate gradients47 of 72 within a tenthTikhonov57 of 72 within a tenththe ramp53 of 72 within a tenthconjugate gradients37 of 72 within a tenthTikhonov59 of 72 within a tenththe ramp64 of 72 within a tenthconjugate gradients63 of 72 within a tenthTikhonov8 of 72 within a tenththe ramp13 of 72 within a tenthconjugate gradients2 of 72 within a tenthdot: median · bar: to the worst drawsame best, very different rules

A corner chosen without the iteration

The ramp — conjugate gradients' first-step filter kept as a fixed method — matches the iteration's error at the same position, but every comparison placed it at the iterate's position, which needs the iteration. Placed instead by the iteration's own stopping rules, it was predicted to land within the same tenth of its best and earlier. The discrepancy principle does exactly that, earlier on 61 draws of 72 and dearer by a few hundredths on 71. The L-curve finds the ramp's corner as well as Tikhonov's and far better than the iteration's: twice the best on 26 draws against 44, worst 16 against 896. And GCV fails the ramp in a way it never fails the iteration — choosing a solution that discards three quarters of one direction, 696 times its best — until its first minimum from the regularised end is taken, after which the ramp is within a tenth of its best on 64 draws of 72 and never worse than 1.25.

combination · Iterative regularisation
worst of 960, over the oraclediscrepancy, least-squares estimate, worst5.7·10⁵GCV with the held-out guard, worst1.8·10⁴discrepancy, held-out estimate, worst18rightmost minimum, worst3.7110¹10²10³10⁴10⁵10⁶samples per unknownerror ÷ oracle's, worst draw1.251.524discrepancy, least-squares estimateGCV with the held-out guarddiscrepancy, held-out estimaterightmost minimum960 draws, four ratiosan estimate that shares nothing with the fit

An estimate that shares nothing with the fit

GCV's guard failed because the noise estimate it read came from the residual its dips live in, and the proposal was to estimate the noise from samples held out of the fit instead. Over the same 960 draws the held-out guard refuses none of the 45 dips at the 1% threshold — fewer than the guard told the true noise, which refuses three — because a quarter of the samples gives its threshold too few degrees of freedom to refuse anything. Loosened to 10%, it refuses sixteen dips and 170 real minima. But the discrepancy principle, which missed by 570,000 times when told the least-squares estimate, never misses by more than eighteen told the held-out one, at every ratio and not only where the held-out set is the larger. The held-out estimate is the worse estimate, biased upward by up to half. What makes it the better input is that it is independent of the residual it is compared with.

regularisation · Regularisation
11.5234blur 1.5, noise 1%, answerblur 1.5, noise 1%, 1.3×blur 2.5, noise 1%, answerblur 2.5, noise 1%, 1.3×blur 4, noise 1%, answerblur 4, noise 1%, 1.3×blur 1.5, noise 0.1%, answerblur 1.5, noise 0.1%, 1.3×blur 2.5, noise 0.1%, answerblur 2.5, noise 0.1%, 1.3×blur 4, noise 0.1%, answerblur 4, noise 0.1%, 1.3×the power m, median of twelve drawsthe iteration's, from its Ritz valuesthe operator's singular values above the same cornerthe blur width's closed form, same cornershaded: within 0.1 of the iteration's mthe operator does not set the power

A power the spectrum does not set

Conjugate gradients' filter past the answer is a ramp raised to a power m between 1.27 and 1.50, read off its own Ritz values, and the power was predicted to be the blur's: computable from the decay of the singular values to within 0.1, so the iteration's filter could be built without running it. It is not. Summed over the singular values above the iteration's own corner, the decay gives anything from 0.76 to 4.3, because the Ritz values are not those singular values — fewer of them early in the run, each standing for a cluster, and more of them late, the leading ones found again and again. The power is the spacing between the smallest Ritz value and its two neighbours. And nothing depends on it: placed by GCV's first minimum, the power ramp at every m from 1 to 3 lands within a tenth of its best on 63 to 66 draws of 72.

combination · Iterative regularisation
worst of 960, over the oraclediscrepancy, four folds, worst1.2discrepancy, told the noise, worst1.2discrepancy, one held-out quarter, worst18110¹10²10³10⁴samples per unknownerror ÷ oracle's, worst draw1.251.524GCV with the four-fold guarddiscrepancy, one held-out quarterrightmost minimumdiscrepancy, four foldsdiscrepancy, told the noise960 draws, four ratiosfolds fix one rule and not the other

Four folds feed one rule

GCV's guard failed when told a noise level estimated from one held-out quarter of the samples, and the proposal was four folds: hold out each quarter in turn, so the estimate rests on every sample. The prediction was that the guard would then refuse about as many dips as it does told the true noise, three of 45, and that the discrepancy principle's worst draw would fall below four. The second half holds and then some: the four-fold estimate is never below the true noise on any of 960 draws, and the discrepancy principle told it never misses by more than 1.19 times the oracle — the same as told the truth. The first half fails. The guard refuses no dips at the 1% threshold and 44 of 45 at 10%, along with 520 real minima, because the ratio it reads moves against the true one: at the real minima the guard's ρ̂ is confined between 0.38 and 1.01 and anti-correlated with the ρ̂ the true noise gives. The one held-out quarter was anti-correlated the same way.

regularisation · Regularisation
11.11.21.31.41.51.61.711.11.21.31.41.51.61.7the square root of m over m minus dfleave-one-out ÷ true noisenoise 10⁻², mediansnoise 10⁻³, mediansnoise 10⁻⁴, mediansopen: single drawstwelve medians on the diagonalthe excess is what the fit spent

The excess is what the fit spent

A noise level estimated by four-fold cross-validation was never below the true noise, and its upward bias was put down to each fit training on three quarters of the samples. More folds should then shrink it, and leave-one-out, the limit, was predicted to bring the median under 1.1 times the noise everywhere. It does not: at 1.25 samples per unknown leave-one-out reads 1.27 to 1.52, within four per cent of four folds on every cell, because the bias was never the folds'. It is the degrees of freedom the fit spends — the median matches the square root of m over m minus the hat matrix's trace to within five per cent on all twelve cells. Taking that share out gives an estimate within 1.08 of the noise that is below it on 344 of 960 draws, and the discrepancy principle told it does exactly as well as told the truth.

regularisation · Regularisation
124816the smooth function, σ = 0.01generalised cross-validationleave-one-outinformation criteriondiscrepancy principlethe smooth function, σ = 0.0001generalised cross-validationleave-one-outinformation criteriondiscrepancy principle|x|, σ = 0.01generalised cross-validationleave-one-outinformation criteriondiscrepancy principle|x|, σ = 0.0001generalised cross-validationleave-one-outinformation criteriondiscrepancy principle1/(1.05 − x), σ = 0.01generalised cross-validationleave-one-outinformation criteriondiscrepancy principle1/(1.05 − x), σ = 0.0001generalised cross-validationleave-one-outinformation criteriondiscrepancy principleerror of the rule's degree over the best degree'sdot: median · line: to the 95th percentile · logarithmicone rule stops at the kink

The rule that divides by one minus the leverage

On a smooth function the rules that choose a polynomial fit's degree were forgiven by a lopsided valley: too few degrees cost thousands of times the best error, too many about twice. On |x| and on a function with a pole just outside the interval, the left wall was predicted to flatten, the best degree to climb, and the information criterion's tight threshold to become a liability. All three happen. The wall falls to a twentieth more, the best degree on |x| runs to the largest the basis has, and the criterion is the costliest rule on |x| at one per cent noise. But the rule that actually fails is leave-one-out: at small noise it stops at degree 26 and costs twelve times the best error, because by degree 26 the leverage of the end points is 0.97 and its formula divides every residual by what is left.

leastsquares · Fitting
08162432404856join at a quarterflooredunguardedjoin at a halfflooredunguardedjoin at three quartersflooredunguardedpicked join, grid pointopen: a collapse, more than ten times the errora join, not the join

The search finds a join, not the join

A smooth arch joined to a staircase is reconstructed 10 to 31 per cent better by a pair of penalties split at the join — the second difference before it, the first after — than by any uniform mixture, when the join is at three quarters and the penalty is told where it is. A search that tries every join and keeps the one generalised cross-validation likes best was predicted to find it within two grid points on every draw and keep two thirds of the gain. Left to itself, GCV collapses on three draws of twenty-four, choosing a first-difference strength of 10⁻⁴ and twenty times the error. With both strengths floored at a thousandth it finds the join within two points on seven draws of eight — and keeps a third of the gain, because the strengths it picks are not the error's. And where the join was at a quarter, so that splitting there buys nothing, it puts the join past the staircase's last step instead, and that split beats the best uniform pair by up to fifteen per cent: a structure nobody had told it about.

regularisation · Parameter choice
124816equispaced points, σ = 0.01generalised cross-validationleave-one-outinformation criteriondiscrepancy principleChebyshev points, σ = 0.01generalised cross-validationleave-one-outinformation criteriondiscrepancy principleequispaced points, σ = 10⁻⁴generalised cross-validationleave-one-outinformation criteriondiscrepancy principleChebyshev points, σ = 10⁻⁴generalised cross-validationleave-one-outinformation criteriondiscrepancy principleequispaced points, σ = 10⁻⁶generalised cross-validationleave-one-outinformation criteriondiscrepancy principleChebyshev points, σ = 10⁻⁶generalised cross-validationleave-one-outinformation criteriondiscrepancy principleerror of the rule's degree over the best degree'sred: leave-one-out · logarithmic, cut at 16the points, not the rule

Chebyshev points make the two rules one

On 200 equispaced points leave-one-out cross-validation stopped a fit to |x| at degree 26, where the best was 120, because the end points' leverage had reached one and the score divides by what is left. On Chebyshev points the largest leverage stays at twice the average, and leave-one-out was predicted to follow the best degree to within five and cost within ten per cent. At small noise it lands on the best degree on the median draw at no cost at all; at one per cent it is six degrees off and within 1.06, which is as close as any rule gets there. What the prediction did not say is that it stops being a different rule: on Chebyshev points leave-one-out and generalised cross-validation choose the same degree on 86 to 100 draws in a hundred. And the earlier defence of the equispaced stop — that degree 26 was the honest degree for the ends — does not survive measuring the ends: there it costs the end points a thousand times the best they could have.

leastsquares · Fitting
040801201602002400.60.70.80.911.11.21.31.41.5draws, in order of the first estimateestimate over the true noisecorrected onceread again1.25 samples per unknown · 240 drawsthe bottom lifts, the middle rises

The share read twice moves the middle

Leave-one-out's noise estimate, with the fit's degrees of freedom taken out, was nearly unbiased in the median and low on a third of 960 draws, down to 0.645 of the noise. The prediction was that the low draws are those whose leave-one-out λ sat furthest left of the oracle's, so that the degrees of freedom were read too high, and that reading them again at the discrepancy principle's own λ would lift every one above 0.85 without moving the median by more than two per cent. Nine of the twelve lowest draws do sit far left; three sit six decades to the right. One more reading lifts the lowest to 0.783 and leaves seven draws under 0.85, not none. And it moves the median by up to 6.2 per cent, because it lowers the share it takes out from every draw, not only the low ones. The rule told the new estimate is no better on any cell.

regularisation · Regularisation

Named alongside it

The objects these essays reach for when they reach for this one.

Discrepancy principleParameter choiceTikhonov regularisationRegularisationL-curveCross-validationDeconvolutionLeast squaresDiscretisationFilter factorsInfluence matrixLeverage

All concepts