The collection

Every essay — page 22

Essays 505 to 528 of 626, in the same order.

Methods that were designed apart

Every field here introduced its own knob and its own vocabulary, and the essays that did so were written as though the methods were alternatives. Put four of them on one problem with an answer that is known and they land within a few per cent of each other, because what each one controls is how much of the data to believe and how much is worth believing belongs to the problem. This field is what happens when two methods meet: which parts of a solver can be computed at three significand bits, which cannot be rounded at all, and where the reading that every knob is the same knob stops being true.

each method's best, dimensionconjugate gradients24Tikhonov23truncated SVD21and the error thereconjugate gradients0.14Tikhonov0.14truncated SVD0.140510152025301effective dimensionrelative errorconjugate gradientsTikhonovtruncated SVDdashed vertical: the iteration's bestthe iteration drawn while its dimension still rises

One arc, and what each filter pays to be on it

Conjugate gradients and Tikhonov stop at the same effective dimension, and that could have meant two curves crossing once or one curve.

6 figures · Iterative regularisation, essay 13
sum with overshoot clippedwidest departure, 1.1 to 1.30.17widest departure, 0.3 to 0.50.690.30.50.70.91.11.30.7511.251.51.7522.252.5clipped sum ÷ the answer'serror ÷ the iteration'sTikhonovtruncated SVDshaded column: 0.7 to 1.0 of the answerthe axis decides the band above the top

The overshoot was the lead

Past its best, conjugate gradients' error rose more slowly than Tikhonov's at the same effective dimension — on the narrow blur at 0.1% noise Tikhonov was 2.35 times worse at 1.3 of the answer — and the reading was that the iteration spends its dimension where the data has content.

5 figures · Iterative regularisation, essay 14
p = 2widest departure, 0.3 to 0.50.11Tikhonov's, same stretch0.690.30.50.70.91.11.30.811.21.41.61.8clipped sum ÷ the answer'serror ÷ the iteration'sp = 2Tikhonovshaded column: the first one to five stepssharpening closes the band below half

A tail from Tikhonov and a corner from truncation

Below half the answer, conjugate gradients beat Tikhonov at a matched count of directions by up to 69 per cent, and the proposed measurement was the sharpness p of a roll-off between Tikhonov and truncation that matches the iteration there.

7 figures · Iterative regularisation, essay 15
widest departure from oneramp, below half0.044best of the family, below half0.110.010.11largest distance of the error ratio from oneTikhonov, p = 1p = 1.5p = 2p = 3p = 4p = 8truncationthe ramppower ramp, Ritz-read0.3 to 0.5 of the answer0.7 to 1.01.1 to 1.3shaded rows: the two filters this essay addsone parameter closes what the family left open

The first step's filter, kept for the whole run

Conjugate gradients' first step applies a ramp — Tikhonov's slope up to a corner, then one — and the essay that found it proposed the ramp as a fixed method, predicting that it would match the iteration below half the answer better than any sharpened Tikhonov and lose the match near the answer.

5 figures · Iterative regularisation, essay 16
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.

5 figures · Iterative regularisation, essay 17
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.

5 figures · Iterative regularisation, essay 18
10203040506010¹10²squared singular values above the cornerRitz values heldshort recurrencereorthogonaliseddashed: one Ritz value per singular valuewithout copies, still not one each

The copies cost steps, not the filter

Past the answer, conjugate gradients holds more Ritz values than singular values above its corner, because rounding lets it find the leading ones again and again.

5 figures · Iterative regularisation, essay 19
0102030405060blur 1.5, noise 1%blur 2.5, noise 1%blur 4, noise 1%blur 1.5, noise 0.1%1.3 of the answer at step 141, off the axisblur 2.5, noise 0.1%1.3 of the answer at step 145, off the axisblur 4, noise 0.1%leading Ritz value convergedbasis loses orthogonalitythe two runs' m partfirst copythe answer, median1.3 of the answer, medianstep of conjugate gradients on the normal equationsmedians and ranges over twelve drawsthe runs part before the copy

The runs part before the copy

Conjugate gradients by its short recurrence and the same iterates computed with every basis vector reorthogonalised were predicted to have the same filter power at the same step, to within 0.01, until the short recurrence found its first copy of a converged Ritz value.

5 figures · Iterative regularisation, essay 20
0102030405060blur 1.5, noise 1%past 60blur 2.5, noise 1%blur 4, noise 1%blur 1.5, noise 0.1%past 60blur 2.5, noise 0.1%blur 4, noise 0.1%the short recurrenceone vector held offevery vector, formed at 10⁻¹³every vector, formed at 10⁻⁸first Ritz value convergedsecond convergedstep at which m parts from the reorthogonalised run'smedians and ranges over twelve drawsone vector buys a step at most

The second value was not late

Holding conjugate gradients' new basis vectors off the first Ritz vector to converge was predicted to keep its filter power within 10⁻⁶ of a fully reorthogonalised run until the second Ritz value converged, six to twelve steps later.

5 figures · Iterative regularisation, essay 21
110¹05101520253035largest singular value over the secondstep, medianholding one vector, partssecond value convergesshort recurrence, partsfirst value convergessix problems, 72 draws · this blur, 24the repair goes back to the blur's own step

The hold ends where the blur parted

Holding conjugate gradients' basis off its first converged Ritz vector failed on the blurs because their second value converges a step or two behind the first, and it was predicted to work on an operator whose top singular value stands at twice the second.

6 figures · Iterative regularisation, essay 22
110¹05101520253035ratio of the first to the second, and of the second to the thirdstep, medianholding two, partsthird convergesholding one, partssecond convergesshort recurrence, partssix problems, 72 draws · this blur, 24each hold waits for the next value

The lag belongs to the value it follows

Conjugate gradients on a blur, held off its first converged Ritz vector, parts from the reorthogonalised run a fixed lag after the second value converges, and the account offered was one clock per value with the blur setting the lag.

6 figures · Iterative regularisation, essay 23

When the problem arrives again

Every other field here solves one system and measures how wrong the answer is. Almost no computation is shaped like that: a solve is one step of an outer loop, and the vector it returns is an input rather than a deliverable. That changes what its accuracy is for. An outer iteration recomputes its residual from the matrix at every step, so whatever the inner solve got wrong is measured again rather than carried — and four quantities that looked like accuracy requirements turn out to be assets with a shelf life, priced here against a root that is known exactly.

nothing8.3%the right-hand side16.5%the matrix, slowly85.9%everything100.0%what can be reused: the answerwhat can be reused: the factorisationwhat can be reused: the factorisation, for a whilewhat can be reused: nothingshare of the cost of a sequence that shares nothingwhat 12 members cost in factorisationssame: factorisations1rhs: factorisations1drift: factorisations4independent: factorisations12what changes between the membersdecides what may be carried

The problem that arrives again

A hundred and thirty essays have solved a system once and measured how wrong the answer was.

5 figures · Sequence of solves, essay 1
10⁻¹⁵10⁻¹²10⁻⁹10⁻⁶10⁻³110⁻⁴10⁻³10⁻²10⁻¹1inner tolerance η, relative residual of the linear solvedistance from the root after the stepd² = 0.00138distance before the step, 0.03721093547231126the number by each point is the iterations it costeleven decades, one landing placedistance before the step0.037its square0.0014where η = 10⁻³ lands0.0025where η = 10⁻¹⁴ lands0.0025iterations for the first354iterations for the second1126the accuracy that is thrown awaymeasured against a root that is known

The accuracy that is thrown away

A Newton step is the exact answer to a linearised problem, and the linearisation is wrong at second order.

8 figures · Inexact newton, essay 1
0123456789101110⁻¹⁵10⁻¹²10⁻⁹10⁻⁶10⁻³110³Newton steptolerance asked for, and iterations paiditerations paidtolerance asked forouter residualthe adaptive policy, step by stepNewton steps10inner iterations, total1009first step's cost1last step's cost271final outer residual3.4·10⁻¹¹the rule reads the last two residualsand asks for nothing it cannot use

A tolerance that reads its own residual

The cheapest constant forcing term costs 980 inner iterations and arrives with a hundred times the forward error of the dearest, which costs 9,358.

8 figures · Inexact newton, essay 2
024681012141618202210⁶10⁷10⁸members served by one factorisationmultiplications for the whole sequencedoes not convergethe contraction ruledrift 0.01 a memberevery member1.6·10⁷every 5 members9.3·10⁶contraction rule9.2·10⁶its factorisations4cliff at a period of20a factorisation has a shelf lifeand the cliff is past the optimum

A factorisation kept past its date

One Cholesky factor can serve five members of a drifting sequence and save 44 per cent of the work.

5 figures · Reuse, essay 1
10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹10112233445566relative drift ‖E‖ / ‖A₀‖preconditioned conjugate gradient iterationson the small eigenvalueson the large onessame drift, two placessmall end at 10⁻²38large end at 10⁻²9κ(M⁻¹A), small end36κ(M⁻¹A), large end1.3‖E‖/‖A₀‖, both0.01how much the matrix changedis not what the preconditioner cares about

Where the drift lands

The standing rule for when a preconditioner has gone stale is to rebuild it once the matrix has changed by more than some fraction of itself.

7 figures · Reuse, essay 2
10¹10²10³03691215what one rebuild is worth, in preconditioned iterationscheapest number of members between rebuildsa dense Cholesky here is worth 6.7 iterationsringed: where the growth rule beats every fixed periodcheapest period, by setup costsetup worth 51setup worth 102setup worth 203setup worth 506setup worth 1008setup worth 20012how long to keep itis a question about what it cost to build

What a rebuild is worth

One sequence, one drift, one preconditioner — and six different right answers, because the cheapest rebuild period depends on what a rebuild cost to build and on nothing else.

7 figures · Reuse, essay 3
10²10³10⁴10⁻¹⁷10⁻¹⁶10⁻¹⁵10⁻¹⁴10⁻¹³10⁻¹²steps taken‖RᵀR − AᵀA‖ ⁄ ‖AᵀA‖the bound, linear in the steps√k · uevery step safe, the chain notdrift after the run3.9·10⁻¹⁴the bound there3.3·10⁻¹³√k · u there6.1·10⁻¹⁵worst single amplification2.7worst leverage met0.69refreshes1backward stable onceand three thousand times is a different claim

Stable once, and three thousand times

A sliding window adds a row and removes one at every step and never looks at the data again.

10 figures · Sequence stability, essay 1
-1-0.75-0.5-0.25010⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹10⁴log₁₀ σ — the barrier's reduction factorresidual after one reused stepconvergedthe pattern free, the factors notentries moved6off-diagonal0survived at σ = 0.996survived at σ = 0.106 steps0 stepsthe few entries that movedare the ones that dominate

What survives one step of the barrier

An interior-point method solves the same system dozens of times with the same pattern and different numbers, and exactly p entries change between one step and the next.

6 figures · Reuse, essay 4
0246810121416182001020304050member of the sequencepreconditioned conjugate gradient iterationskept from the first memberrebuilt every memberone operator, two policieskept, first member18kept, last member52rebuilt, first member18rebuilt, last member13ε at the last member0.033the problem got easierand the kept preconditioner got worse at it

The penalty for keeping it is a ratio

A kept incomplete Cholesky costs 40 iterations against a rebuilt one's 10 on 64 unknowns, and 55 against 17 on 256.

6 figures · Reuse, essay 5
10²10³10⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹steps takenlargest relative error in a coefficientcarried factorrecomputedcarried + one correction+ a second correctionHouseholder QR, same rowsdrift of the factorafter 2875 stepsκ(A) of the window2·10⁴carried factor2.8·10⁻⁸recomputed5.8·10⁻⁹carried + one correction7.1·10⁻¹³+ a second correction3.7·10⁻¹²Householder QR, same rows1.1·10⁻¹²measured against the coefficients in exact rationalsthe refresh repairs the factor, not the answer

The repair the drift did not need

A sliding window's carried Cholesky factor drifts 3.9·10⁻¹⁴ from its data, and multiplying by κ(AᵀA) predicts eight lost digits in the coefficients, a stream conditioned at 10¹² losing the answer, and a periodic refresh of the factor as the default repair.

6 figures · Sequence stability, essay 2
10⁻²10⁻¹10¹10²drift between consecutive membersinner steps over the whole runthe previous answer — a warm startthe parabola through the last threethe line through the last twodegree zero is a choicemembers per factorisation4warm, at drift 0.02160linear, at 0.0212quadratic, at 0.0226the factor13drifts where warm fails2one more term in the extrapolationand a factor of thirteen

A warm start is degree zero

The previous answer used as the next member's starting point costs 160 inner steps over twenty members.

5 figures · Sequence of solves, essay 3
0204060801001share of shufflings, per centarithmetic ÷ the sorted order'sthe sorted order, and the nearest-neighbour paththe order is a free variabledrift between neighbours0.04median penalty1.5worst penalty1.8factorisations, sorted4worst shuffle's16greedy ÷ sorted1the same sixteen problemsat two prices

The order a batch arrives in

Sixteen problems over a parameter, solved in the order the loop produced them, cost a median of 1.54 times what the same sixteen cost sorted, and 2.80 times at the worst shuffling.

5 figures · Sequence of solves, essay 2
total inner iterationscold at η = 1e-107016scaled warm start6837unscaled728910⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²10³10³.⁵10⁴forcing term ηinner iterationsthe previous stepstarted at zerothe previous step, scaledthree curves within eight per cent of each otherand the unscaled guess is the worst of the three

A guess worth two per cent

The previous Newton step looks like a free guess at the next one, and it is worth nothing.

5 figures · Inexact newton, essay 3