Methods that were designed apart

The step that stops mattering

Regularise the problem the iteration has built rather than the problem it was given, and the error curve stops turning. The unregularised run ends 1,127 times above its own best; the same run with a penalty inside it ends 1.000000000003 times above.

Worth reading first: A parameter that counts steps · The rate the condition number predicts · When the answer is a choice.

A parameter that counts steps established the awkward fact this essay removes. On an ill-posed problem an iterative method’s error falls, reaches a minimum, and then climbs by orders of magnitude — and the residual, the only quantity a solver can see, falls at every step throughout. The step count is the regularisation parameter, and getting it wrong in the safe-looking direction is expensive.

Everything about that is a statement about where the penalty is not. The iteration builds a subspace, projects the problem onto it, and solves the projection exactly. Nothing regularises the projected problem, because the projection was supposed to be the regularisation.

So put a penalty there too.

One subspace, solved and regularised, at 1.0% noiseTwo error curves against the number of bidiagonalisation steps, on a logarithmic vertical axis. The unregularised iterate reaches 0.1426 at step 20 and then climbs to 161 — a factor of 1127. The iterate with a penalty on the projected problem reaches 0.1429 and stays within 0.00% of it for the rest of the run.1591317212529333710⁻¹110¹10²bidiagonalisation stepsrelative errorleast without: 20no penaltypenalty insidewhat stopping is worthbest without a penalty0.14and at step 40161best with one0.14and at step 400.14the same floor, reached twiceand only one run stays on it
Fig. 1 One bidiagonalisation, driving two curves. The lower curve solves the projected problem at every step; the upper one regularises it. Both reach the same floor. Only one of them leaves it.

What is being built

The Golub–Kahan bidiagonalisation generates two orthonormal bases at once — one for the row space and one for the column space — and between them a matrix Bₖ that is (k+1)×k and has entries on only two diagonals, satisfying A Vₖ = U_{k+1} Bₖ exactly. Least squares over the subspace spanned by the columns of Vₖ is then a least-squares problem in k unknowns with a bidiagonal matrix, which is what LSQR solves at every step. Its answer is the projected problem’s exact one.

A hybrid method changes one line. Instead of minimising ‖Bₖ y − β₁e₁‖ it minimises ‖Bₖ y − β₁e₁‖² + λ²‖y‖², and takes the same x = Vₖ y. There are now two parameters — the step count k on the outside and the penalty λ on the inside — and the whole question is what having both does.

The construction is not a hybrid of two methods in the sense of alternating between them. It is one iteration with a second decision taken inside every step of it, and the reason that is worth a name is that the two decisions are about the same quantity: how much of the data to believe.

Two identities make the small problem the same problem

A penalty applied to a projection is only meaningful if the projection has kept what the penalty is supposed to act on. Two facts settle that, and both are asserted rather than quoted.

The residual is preserved exactly. U_{k+1} has orthonormal columns, so ‖b − A Vₖ y‖ equals ‖β₁e₁ − Bₖ y‖ for every y. Not approximately: the residual of the (k+1)×k problem is the residual of the 64×64 one. Checked at four subspace sizes and three penalties — twelve pairs — the worst relative disagreement is 7.7·10⁻¹⁵, on a basis whose own orthogonality error is 1.8·10⁻¹⁵.

That is what makes the small problem worth choosing a parameter on. A rule that reads a residual is reading the same number either way, and the next essay is about what happens to a rule that reads something else.

And the projected problem is solved twice. The stacked route hands the (2k+1)×k system [B; λI] y ≈ [β₁e₁; 0] to this site’s own Householder least squares; the second route takes the singular value decomposition of B and applies the filter σ²/(σ² + λ²) to each projected component, which is the regularisation field’s own filter applied to a 17×16 matrix instead of a 64×64 one. At three penalties the two agree to 1.4·10⁻¹⁵.

Two filters on one sum, λ = 0.01The weight each term of the solution is given, against its index. Truncation is a step: one for the first 26 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.11truncation, relative error0.11no filter at all5.5·10⁸both filters are one expression with a different weightfₖ = 1 is the catastrophe
Fig. 2 The filter the penalty applies, on the full problem. The projected problem’s filter is the same expression evaluated at the singular values of B — which are the Ritz values, and are the leading singular values of A wherever the subspace has converged.

The measurement

Forty steps, sixty-four unknowns, 1% noise, and the inner λ chosen at every step by generalised cross-validation on the projected problem.

best error at step error at step 40 overrun
no inner penalty 0.14259 20 160.77 1,127×
a penalty inside 0.14286 28 0.14286 1.000000000003×

The unregularised run is the one this site has drawn before under another name — that column is LSQR, and its shape is semi-convergence. Twenty steps in it is at its best; twenty steps later it is wrong by a factor of a thousand, and its residual has fallen monotonically the whole way.

The regularised run reaches a floor 0.2% higher and then does not move. The last twelve steps change the answer in the twelfth significant figure.

Conjugate gradients on an ill-posed problem at 1.0% noiseTwo curves against the step count on a logarithmic vertical axis. The relative residual falls at every one of the 120 steps without exception. The error against the true signal falls to 0.1426 at step 20 and then climbs, reaching 6.02 by the end — 42.2 times its best value.015304560759010512010⁻²10⁻¹110¹steprelative sizeleast error: 20discrepancy stop: 7errorresidualthe knob is an integerleast error, at step20error there0.14error at step 1206the residual falls at every stepthe error turns and keeps rising
Fig. 3 The same behaviour on the pure step-count knob, drawn over 120 steps, with the discrepancy principle’s stop marked beside the step that is actually best. The gap between those two verticals is what the inner penalty makes irrelevant.

What is bought is not accuracy. The two floors are within a fifth of a per cent of each other, which is the combination field’s own finding arriving again: the floor belongs to the problem, four knobs find it, and a fifth arrangement of two of them finds the same one. What is bought is that the floor is reached and held, so the outer parameter can be set by a budget rather than by a rule.

Four knobs on one problem at 1.0% noiseRelative error against the fraction of each method's own range, on a logarithmic vertical axis. A truncation, a Tikhonov parameter, a conjugate gradient step count and a randomised rank each have an interior minimum, and the four minima are 0.1445, 0.1406, 0.1426, 0.1449 — a spread of 3%. The horizontal line is the best of them.00.250.50.75110⁻¹110¹10²10³fraction of the method's own rangerelative errorfloor 0.141truncation KTikhonov λCGLS steprandomised rankfour methods, one floortruncation K0.14Tikhonov λ0.14CGLS step0.14randomised rank0.14four knobs from four fieldsand one obstruction underneath them
Fig. 4 The floor, drawn as four sweeps: a truncation, a Tikhonov λ, a step count and a randomised rank on one problem, agreeing to 3%. The hybrid run above lands on the same number by turning two of these at once.

Why the curve turned in the first place

The obvious explanation for semi-convergence is that the projected problem inherits the ill-posedness: more steps, more of the small singular values, more amplified noise. The first half of that is true and the arithmetic in it is not.

The singular values of B_k are the Ritz values of the bidiagonalisation, and they converge to the largest singular values of A first — the top four agree with A’s to 10⁻⁶ by the end of the run. So the projected condition number does climb:

steps κ(B_k) σ_min(B_k)
2 1.38 0.724
8 3.64 0.275
16 11.3 0.0885
24 103 9.7·10⁻³
32 1,470 6.8·10⁻⁴
40 7.6·10⁴ 1.3·10⁻⁵
48 7.8·10⁶ 1.3·10⁻⁷

And κ(A) is 5.7·10¹². At forty-eight steps the projected problem is a million times better conditioned than the problem, and the unregularised answer there is wrong by a factor of 14,300. A condition number six orders of magnitude short of the one being blamed is not the explanation.

The smallest singular value the subspace has let inThree quantities against the number of steps, on a logarithmic vertical axis. The smallest singular value of the projected problem falls from 0.724 to 1.28·10⁻⁷; the noise divided by it, and the unregularised error, rise together and stay a factor of about 0.21 apart over four decades.27121722273237424710⁻⁷10⁻⁵10⁻³10⁻¹10¹10³10⁵steps takensize‖e‖ / σ_minerrorσ_min of Bwhich number is the oneσ_min at the last step1.3·10⁻⁷κ(B) there7.8·10⁶κ(A), for comparison5.7·10¹²error ÷ (‖e‖/σ_min)0.2κ of the projection is a million times too smalland σ_min is exactly right
Fig. 5 Three quantities against the number of steps. The smallest projected singular value falls through seven decades; the noise divided by it, and the error, rise together and stay a fixed factor apart.

The quantity that moves with the error is the last column of that table. Each step admits one more direction, each new direction has a smaller singular value than the last, the noise has a component along it, and that component is divided by the singular value. So the cost of a step is ‖e‖/σ_min, and from twenty-four steps on the error is a fixed fraction of it:

steps σ_min(B_k) error error ÷ (‖e‖/σ_min)
24 9.7·10⁻³ 0.230 0.241
32 6.8·10⁻⁴ 4.05 0.298
40 1.3·10⁻⁵ 161 0.227
48 1.3·10⁻⁷ 14,300 0.196

The error moves by a factor of 62,000 and the fraction moves by a factor of 1.5. The numerator of a condition number — the largest singular value — has nothing to do with any of it, which is why the ratio is the quantity worth drawing and κ is not.

This also says exactly what the penalty is doing. σ²/(σ² + λ²) is small where σ is small, so the directions the subspace has just admitted are the ones it suppresses, and it suppresses more of them the further the run goes. The inner knob tracks the outer one because both are functions of the same thing.

It is the penalty, not the rule

The reading the table above invites is that the rule is doing the work: GCV watches the projected problem grow ill-posed and raises λ to match. That reading is wrong, and the check is cheap — fix λ once, never revisit it, and run the same forty steps.

fixed λ best error at step error at step 40 overrun
0.200 0.1587 23 0.1587 1.0000000×
0.100 0.1468 23 0.1468 1.0000000×
0.068 0.1446 23 0.1446 1.0000025×
0.046 0.1428 23 0.1429 1.0000660×
0.020 0.1400 23 0.1408 1.006×
0.010 0.1424 20 0.1611 1.13×
0.001 0.1426 20 1.3533 9.49×

Any λ of about 0.02 or above removes the turn completely, and every one of them lands on the floor — the best of the fixed runs, at λ = 0.02, reaches 0.1400, which is better than both the adaptive run and the best unregularised iterate. A penalty chosen once and left alone is enough.

What a fixed penalty does not survive is being too small. At λ = 0.01 the run turns again, gently; at λ = 0.001 it turns properly and ends 9.5 times above its own best. A penalty an order of magnitude below what the subspace has just admitted suppresses nothing that the subspace has just admitted, which is the same sentence as the σ_min table one paragraph up.

So the inner rule’s job is not to remove the turn. It is to remove the need to know in advance which λ is large enough — and that is the outer rule’s job moved one level down rather than abolished. This construction redistributes the difficulty; it does not eliminate it. The redistribution is worth having because the new question has a much flatter answer: a factor of ten in λ is the difference between working and not, where a factor of two in the step count was.

The projection is a truncation until it stops being one

There is a reading of the table above that makes the whole construction unsurprising, and it is worth stating because it is nearly right.

At small k the projected problem is well conditioned because the subspace has not let the difficult part of the problem in. That is a truncation — the same object the rank essay is about, arrived at without anybody choosing a cut-off. It is why stopping early was ever a regularisation, and it is why the two knobs land on the same floor.

What the table shows is where that reading expires. By thirty-two steps the projected problem is ill-conditioned in its own right, and the projection has stopped being a truncation and become a faithful reproduction of a problem that has no answer in it. From there, only the inner penalty is regularising anything.

What a rank-10 approximation can achieve, by spectrumA semi-logarithmic plot of singular value against index for three spectra — geometric decay, algebraic decay, and flat — with the rank-ten approximation error marked on each.1112131415110⁻³10⁻²10⁻¹1index jσⱼσ11geometric, 0.85ʲalgebraic, j^−1.00flatmeasured, and equal to σ₁₁rank-10 error, geometric0.2rank-10 error, algebraic0.091rank-10 error, flat160×60, spectrum chosen rather than the entriesthe matrix decides, not the method
Fig. 6 Why the singular values keep getting smaller and never stop: exponential decay with no gap anywhere, which is what makes this problem ill-posed rather than ill-conditioned, and what makes “how many components to keep” a decision rather than a measurement.

The one thing the construction cannot skip

The bases have to stay orthogonal, and on this problem the plain three-term recurrence does not keep them.

‖VᵀV − I‖ at 32 steps worst error in the top four projected σ repeated projected values
full reorthogonalisation 2.1·10⁻¹⁵ 5.1·10⁻¹⁵ 0
the plain recurrence 4.00 0.066 1

The right-hand column is the Lanczos field’s ghost arriving in a regularisation method. A lost basis produces a projected matrix with two singular values where the problem has one, and every quantity computed from that matrix — the filter, the trace GCV divides by, the residual the discrepancy principle reads — is then computed on a problem the method is not solving.

What makes it worth stating as a rule rather than a caution is that the error is often barely affected. A method can be choosing its parameter on a fictional spectrum and returning a reasonable answer, which is the condition under which nobody investigates.

What each reorthogonalisation costs and what it leaves, n = 40Two quantities for three variants on one logarithmic axis: the number of projections performed, and the departure from orthogonality left behind. Doing nothing costs nothing and leaves a basis that is not one. Full reorthogonalisation costs 820 projections and leaves 1.9·10⁻¹⁵. Selective costs 137 — 6.0 times fewer — and leaves 10·10⁻⁸, which is √u and is enough.010⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹count, and ‖QᵀQ − I‖√u — semi-orthogonalitynoneselectivefullprojections‖QᵀQ − I‖two counters, three methodsghosts, none4ghosts, selective0selective is cheaper by6the cheap repair leaves a basis that is not orthogonaland that is the claim, not a shortfall
Fig. 7 What keeping the basis costs, from the Lanczos field: full reorthogonalisation against selective against none, in projections rather than in seconds. The hybrid construction pays the full column, and the reason is that its parameter choice reads the projected spectrum rather than only the projected residual.

What it costs

Per step, the hybrid method adds one sweep over a grid of forty-three penalties, each of which is a least-squares solve of a (2k+1)×k bidiagonal-plus-diagonal system. At k = 28 that is forty-three solves of a 57×28 system against one solve of a 29×28 system — arithmetically trivial beside the two products with A that the step itself costs once the matrix is large, and not trivial at all at the sizes drawn here, where A is 64×64 and dense.

That is the honest scaling statement and it runs in the method’s favour: the inner problem’s cost depends on k and the outer problem’s on n, so the arrangement gets cheaper relative to the iteration exactly as the problem gets big enough for an iterative method to be the right choice.

What it does not cost is a decision. The comparison that matters is against running LSQR and stopping well, and stopping well requires a rule, and the rules do not reach the oracle.

Two knobs, and only one of them is now a knob

Two inner rules, and the quantity one of them divides byThree quantities against the subspace size on a logarithmic vertical axis. The trace in GCV's denominator climbs from 1.01 to 26.98, a factor of 27; the λ it selects moves by 2.15. The discrepancy principle has no answer below 8 steps, where no parameter brings the residual down to the noise, and returns 0.0681 at every size above it.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
Fig. 8 What the inner rule does as the subspace grows, and the quantity it divides by. The next essay is about the middle curve; what matters here is that the λ it selects settles by about twelve steps and then stops moving, which is why the outer parameter can be abandoned.

The step count has not disappeared. It still decides how much arithmetic is done, and it still has to be large enough for the subspace to contain the answer — below twelve steps the error is visibly worse whatever λ is chosen, because no penalty can recover a component the subspace does not have.

What it has stopped being is a modelling decision. Past the point where the subspace holds the answer, running longer changes nothing that matters, and the parameter that decides how much of the data to believe is the inner one. The outer loop can then stop on a budget, on a residual, or on the wall clock, and none of those choices is wrong by a factor of a thousand.

The filter 12 conjugate gradient steps apply, measured and predictedFilter factors against the singular-value index. The factors measured off the iterate and the polynomial predicted from the recurrence coefficients agree to 10⁻¹³ and are drawn as one curve. It rises above one — 1.120 at its largest — and changes direction several times. Tikhonov's filter at the matching cutoff is monotone and never exceeds one.081624324048566400.250.50.7511.25index kfilter factoronezeroCG, both routesTikhonovone of these is not a weightlargest CG factor1.1measured vs predicted10⁻¹³largest Tikhonov factor0.99two routes to the same curveand a curve that goes above one
Fig. 9 The filter the outer iteration applies on its own, before any penalty. It goes above one and changes direction, which is what the inner λ is applied on top of.
Singular values and |uₖᵀb|, with and without 1.0% 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 32, and from there on each term is noise divided by a σ of 6.8·10⁻⁴.081624324048566410⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹index kmagnitudethe floor: k = 32best truncation: k = 21σₖ|uₖᵀb| exact|uₖᵀb| with noisetwo different indicesthe crossing, from the data alone32the truncation that is actually best21relative error there0.14the exact coefficients never flattenthe noisy ones stop at ‖e‖/√n
Fig. 10 Why there is a floor at all: the data’s coefficients fall until they reach the noise and then stop. Everything both curves in the hero figure do is bounded below by this.
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. 11 What the floor looks like as an answer. The two runs’ best solutions are indistinguishable at this scale, which is what a 0.2% difference in relative error means.

What the drag does

The slider is the noise level. Less noise moves the floor down and the unregularised turn later, in exactly the way the step-count essay’s figure does — at 0.1% noise the unregularised run’s best sits further right and lower, and its overrun by the end of the run is larger rather than smaller, because a smaller σ_min is reached before the run ends and the noise is divided by it just the same.

What does not change at any position of the slider is which of the two curves has a minimum in it. That is the claim the figure is drawn to be falsifiable about, and it is asserted at every frame: the unregularised run must end at least five times above its own best, and the regularised one must end within 50% of its own.

What links here

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

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

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

Golub kahan bidiagonalisationHybrid regularisationIll posed problemIterative regularisationProjected problemReorthogonalisationRitz valuesSemi convergenceStopping criterionTikhonov regularisation