The thread: Whose fault is it — page 12
The slopes were in the symbols
A separable BTTB kernel with a small isotropic part ε, preconditioned by the separable part's symbol circulant alone, has sixty-four eigenvalues at one that spread as ε grows — 13 times ε wide and shifted 7.7 times ε — while the mixture's own symbol spreads them only 1.7 times ε. Both slopes were predicted to follow, to five per cent, from first-order perturbation of that sixty-four-dimensional eigenspace: the shift as the mean of the perturbation's eigenvalues on it, the width as their spread. The widths come out at 13.372 and 1.732, matching the measurements to four digits. The shift does not come out as the mean, which is 5.77; it comes out as the midpoint of the extremes, 7.671, because that is what the measurement reads. And the decomposition says what the cheap preconditioner costs: the circulant part of the isotropic correction, which the separable symbol leaves in, carries ninety-nine per cent of its width. What looked like first order failing at a hundredth was the tread's centre moving, not its eigenvalues.
Sparsity, and what elimination costsThe spare vertices lean one way
Every separator a dissection drew on grids and sparse geometric graphs was a clique once its pieces were eliminated, so the order inside it changed nothing; only a separator two rows thick, built by hand, was not. On geometric graphs at twice the density, level-set separators were predicted to come out several vertices thick where the level crosses a dense patch, with vertices touching only one side — failing the clique condition, making their order matter by more than five per cent, and paying more for trimming than for any order. On twenty-four graphs at three densities the spare vertices are there: up to thirteen in one separator. Not one separator fails the clique condition, because on every graph the spare vertices all touch the same piece, and two vertices that share a piece are joined through it. No shuffle of any separator moves the fill or the work by a single entry. Trimming the spare vertices into the piece they touch shortens the critical path by up to 48 per cent — and denser graphs have fewer of them, not more.
The matrix that is a graphThree is where it can hear
A Godsil–McKay switch on four vertices conjugates by a matrix of halves, and the critical group hears it at the prime two exactly when the switching set's indicator is a Laplacian null vector modulo two. On six vertices the matrix is of thirds, and the switch was predicted to be heard only at three, only when every vertex of the set has an outward degree divisible by three — and, on cubic graphs, whenever the set has no edge inside. On 621 switches of random quartic and quintic graphs, the first two clauses hold on every one: 197 are heard, all at three alone, all with outward degree three. But divisibility is no longer enough — it is heard on 54 per cent of the quartic switches and 32 per cent of the quintic — and the rank of the Laplacian modulo three, not the outward degree, is what tells the heard from the silent, on all but two. The cubic clause has nothing to apply to: a six-vertex switching set on a cubic graph forces the graph's order to be 8, 10 or 12, and every one of 9,985 such switches gives back the graph it started from.
The arithmetic underneathTwice the block, half the depth
An eight-bit chain kept exact by a window per step was predicted to keep exactness with one exponent shared by two states, and to lose it with four from the depth where four of its steepest steps span more than the narrowest window, 4.8 octaves. Blocks of two fail on four chains of five, at 66 to 114 octaves. Blocks of four fail at 35 to 66, two to three times deeper than the predicted 13 to 26. Every block size fails within three octaves of the depth where its block's window empties, and that depth is 4.0 to 4.6 octaves for each state a block holds.
Methods that were designed apartThe 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. It removes every copy of the largest value, as predicted, on all seventy-two draws. It holds the power for at most one step. The second value converges one or two steps after the first, the third and fourth with it, and the basis loses orthogonality toward all of them at once. Holding off every Ritz vector as it converges holds the two runs together ten steps longer at least, and to the end of the run on the narrowest blur.
Where the flop count stopped predicting the timeThe need is set further on
A beam over contraction orders needs a wide tolerance at its partial-order cut, a median factor of 2.33 at seven tensors, and the beam was predicted to see that need in its own first level — the ratio of the dearest prefix it is offered to the cheapest, within a factor of 1.5 on four networks in five. The best such ratio is within 1.5 on 32 of 60, and none ranks the networks better than chance. A beam that sets its tolerance from its first level lands on the line the fixed tolerances draw. The ratio is exact where the need is set at the first level, and 35 of 60 networks set it later.
Randomised, and the guarantee that changes kindThe fall sets the undershoot
A trend-carried spread meets a turn sharper than the drift before it — the decay rising 0.02 a trace and then falling 0.06 — and the prediction was a spread about 0.6 of the truth on the trace after the turn, coverage under 55 per cent, a fresh pilot there restoring it, and the sequence's average within two points. All four hold: 0.617, 48.5 per cent, 71.0 per cent, and 67.7 against the table's 68.3. What fails is the rule the earlier essay gave for the error, the square of the last ratio. The undershoot is the last ratio over the next one, and the coverage it costs is the normal table's at that fraction.
Neither sparse nor denseA far pair is not a smooth pair
The admissibility test reads four numbers per pair of clusters and not one entry of the matrix, which was presented as its great economy. It is also an assumption: that distance from the diagonal is smoothness. On the kernel it was built for it lands within an eighth of the least storage any partition of the same tree has. Move the singularity onto a line off the diagonal and it stores twice the least, admitting blocks of rank 35 that cost more than their entries. Put no singularity anywhere and it stores nearly six times the least, carefully refusing pairs that needed no refusal. A random probe of a few entries finds the best partition, and a larger one can miss the singular line altogether and store the whole matrix as one block of rank 165, unless it checks the rank before believing it.
Reduction, and what a model is forThe coordinates set the number
κ(P)κ(Q) was read as useless for saying how reducible a model is, with one use left to it: it decides between two routes to the Hankel singular values, and past the square of one over the roundoff the route through the product has nothing left. Both halves depend on the state coordinates. Spread those coordinates over six decades and κ(P)κ(Q) moves from 10¹⁶ to 2·10³⁰ on a model whose Hankel values do not change, and every value is still read to five digits, by both routes, within a factor of a few of each other. Rotate the same model by an orthogonal matrix instead and κ(P)κ(Q) stays at 10¹⁶, while the product route's smallest value goes from thirteen digits to two. And one solve's own diagonals give the coordinates back: a second solve undoes the whole spread.
When the index is a tupleThe nearest product is not the nearest operator
A Kronecker sum is solved by one eigendecomposition per axis, and a variable-coefficient operator almost never is one. So the natural move is to solve the nearest separable problem instead and use it as a preconditioner, with the coefficient's first singular value saying how near. That number predicts nothing. A bump at contrast six has 99.9 per cent of its norm in its first singular value and takes 123 iterations, seven times what it takes at a share of 95 per cent, because a fit in the norm chases the peak and leaves the rest of the domain wrong by a factor of 167. Fit the logarithm instead and the misfit is a ratio, the iterations fall by more than half, and one number accounts for them on every case tried: the root of the spread of the pointwise ratio.
The matrix a constraint makesThe step was coarser than the test
Conjugate gradients stopped at a residual tolerance hands back energy errors far below what was asked, and that was read as the fault of the test. So the inner solve here stops on an estimate of the error itself, which was predicted to make the outer step rule count within one on 180 of 198 runs. It counts 154, against 156 for the residual. The estimate is honest: with two steps of look-ahead no run overshoots tenfold. But on 82 of 132 runs the two tests land on the same iterate to within a factor of two, because on these blocks the error falls gently for nine or eleven steps and then drops by orders in the last. A second prediction fails too: a fixed perturbation on the three smallest eigenvectors matches the real solve on four systems of twelve, no more than one spread evenly, and under two per cent of the real error lies on them.
Regularisation, and the answer that is chosenThe 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.
Iterating, instead of factorisingThe number that is re-derived
GMRES prints a residual it never computes from its answer either. On the matrix that sends a conjugate gradient recurrence 7.3·10¹⁰ wrong, and on two others chosen to be worse, its number is never more than a factor of 2.86 out — while the basis it is computed from has lost orthogonality entirely. The disease is not iterative methods, and it is not floating point.
Methods that were designed apartThe 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. At twice the second it fails on all seventy-two draws: the delay is eight steps against a gap of ten. It starts to succeed only near four times, and it does so without the repaired run going one step further. The repaired run parts at about step 30, 20 and 14 on the three blurs at every ratio from 1.25 to 32, within two steps of where the unaltered blur parted to begin with. Pulling the top value away moves the failure earlier; the repair only takes it back.
Where the flop count stopped predicting the timeThe second right-hand side
A hierarchical solve was priced at 0.16 of a dense factorisation at 512 unknowns, for one right-hand side. The second right-hand side costs one fifty-eighth of the first, and against the iteration the same format makes possible that is what decides everything. Plain conjugate gradients is overtaken after three right-hand sides on the easiest matrix and at the first on the harder ones. A coarse format inside the iteration holds out for twenty-one, at the same accuracy, and for one or two when the kernel is soft enough. The count was never a property of the method: it runs from under one to twenty-one on one size of matrix and depends on the conditioning.
The matrix that is a graphWhat the resistance was for
Sampling edges by effective resistance kept every eigenvalue of a complete graph's Laplacian within a factor of 1.7, and that was credited to the probability. On a complete graph every edge has the same resistance, so the probability was uniform. On a grid, uniform sampling gives the same band at 480 samples within one per cent. What separates the rules is the edge nothing else can see. On two cliques joined by one bridge, resistance keeps the graph connected on every draw from 240 samples, and uniform and degree-based sampling lose it on 14 and 15 draws of 24, and still on two or three at 960. The resistance is a cut's survival rate. And a crude one will do: two solves find the bridge, at a band nearly twice as wide.
The answer that depends on the machineThe seed stops mattering first
A randomised low-rank approximation's error moved by 31 per cent between draws and by 10⁻¹⁵ between partitionings of one draw, so a seeded method was called reproducible in the term that matters by a factor of 10¹⁴. That is true at no power iterations. Each pass cuts the spread between draws by a fixed factor and leaves the partitioning's spread where it was, so the two lines cross: at two passes on a decay of 0.7, at sixteen on 0.94. Past that point a recorded seed settles nothing a recorded machine does not, and a bitwise test is the only thing left that can tell two runs apart. The vectors take longer: at sixteen passes the error has settled to rounding while the leading subspace still differs between draws by 3·10⁻⁵.
Randomised, and the guarantee that changes kindOne nonzero is a birthday problem
A sketched preconditioner's quality is one number, how well the sketch preserves one subspace, and the sketch that ships has one nonzero in each column. It was said to supply the needed distortion at its own width. On an incoherent basis its own width is everyone else's: at four times the dimension CountSketch, uniform sampling and a Gaussian all read κ of 2.6. Put each direction of the basis on a single row and CountSketch is singular on 14 draws of 16 at the same width, by the formula for shared birthdays, and needs the dimension squared to escape it. Two nonzeros reduce that to three draws in sixteen at twice the dimension and none at four. Four nonzeros are a Gaussian for this purpose, at about a sixteenth of its cost to apply.
When the problem arrives againA kept vector buys one iteration
A kept Cholesky factor with a drift of rank r in the matrix takes exactly r + 1 iterations at every member, at any drift rate, because the preconditioned matrix is the identity plus a rank-r term. The run has found those directions and throws them away. Keep some from one member to the next and each one removes exactly one iteration: keep sixteen on a drift of rank sixteen and every later member takes one. Each vector also costs half an iteration a member, so the saving is half what it looks like, and past the rank it is all cost. On a drift across half the spectrum there is no rank to reach: sixteen vectors halve the iterations and save a fifth of the work, and rebuilding the factor still wins until a rebuild costs more than a hundred iterations.
Sparsity, and what elimination costsA count of fill is not a size
The fill of a sparse factor can be counted from the graph alone, before any arithmetic runs, and the count is exact: on a grid Laplacian not one of the entries the graph marks is zero. But a count holds every entry at one number. In the natural order, three quarters of the fill of a 20-by-20 grid is below a hundredth of its column's diagonal, and fifteen per cent is below 10⁻⁴. The better orderings remove exactly that part: under nested dissection almost nothing is that small. So the count's ranking stops meaning what it says once a factor is dropped. Minimum degree has the least fill of the four orderings, and at a threshold of a tenth it takes 20 iterations on more kept entries than the reverse Cuthill–McKee factor takes 14.
Orthogonality, measuredA repeated rotation drifts in a straight line
Composing rotation matrices drifts away from orthogonality, which is why graphics and robotics code re-orthonormalises. Rounding errors have no preferred sign, so a product of k rotations should lose orthogonality like the root of k, and it does when every factor is new: slope 0.52 over a million products. Multiply by the same factor every step, as a fixed-step integrator does, and the slope is 1.00. The factor's own rounding is one defect met in the same direction every time. At a million products in binary32 that is 622,000 units of roundoff against 2,400, a loss of 3.7 per cent. One polar step removes it at any period from ten products to ten thousand, the error in the rotation falling twenty times and hardly moving with how often it is run. Gram–Schmidt every ten products is six times worse, and for a reason that is not rounding.
Elimination, and the swapThe test that made the answer small
Solving by a computed inverse was measured twelve orders of magnitude less backward stable than solving by LU at a condition number of 10¹⁴, on a right-hand side built as b = Ax from a random x. That construction is how a known answer is arranged, and it makes the answer about as small as it can be. On a random right-hand side the inverse route's backward error is 2·10⁻¹⁷, the same as LU's, at every condition number measured. The backward error is about a tenth of the roundoff over ρ, the answer's size over its largest possible, and across 200 random right-hand sides ρ never falls below 0.016. The instability is real, and it belongs to right-hand sides whose answers are small, which is a class that includes most tests and many applications.
Structure, and the solver that cannot see itWhat the commuting family was hiding
A Sylvester solve's structured backward error climbed 26,000 times above its residual while its forward error did not move, on a family built so that X commutes with A and B. Replace X by a random matrix with the same singular values, and the backward error is within a factor of eleven of the residual at every setting, on both routes. The structured product and the residual's estimate agree too, within 45 and 9 times the forward error. So that gap, the prediction said, was the family's geometry, and it was. But the perturbation's share on C does not fall below a half as predicted: it rises to 88 and 99 per cent. And a residual in the Schur bases that costs nothing is not the residual: it is a twentieth of it, because what is left is the Schur factorisations' own rounding.
The matrix a constraint makesOn a block with room, the residual was honest
Conjugate gradients stopped at a relative residual inside a block preconditioner had delivered energy errors ten to a billion times below its tolerance, and a stop on the estimated energy error changed almost nothing, because blocks of a dozen unknowns converge by orders at their last step. The prediction for a block of 400 unknowns with evenly spread eigenvalues was that the energy stop would land within a factor of three of its target and the residual stop at least ten times below. The energy stop does, on every draw. So does the residual stop, within a factor of five, in the same number of steps. On an even spectrum the residual is already an estimate of the energy error. A geometric spectrum is where the two part, and there the cheap energy estimate overshoots its target fourfold.
Neither sparse nor denseThe rule told where to look
Told the line its kernel is singular on, the admissibility rule stores within six per cent of the least any partition of its tree has, and keeps that margin as the matrix doubles while the untold rule's overpayment grows from 1.7 to 2.6. Its other failure was never the geometry: at η = 1, where two touching clusters first pass, it is the least itself on both kernels singular on the diagonal, and the textbook 0.8 was costing an eighth to a quarter. On a smooth kernel nothing rescues it, because the dense diagonal it always keeps is, by itself, the whole of the least. And a probe that reads each block's ends sees only its corners, which is where the diagonal touches a block and not where a line crosses one.
The arithmetic underneathEvery equal tail has a cliff
A scaled binary32 norm of one entry of size one and 4,095 entries of two to the minus twelve is wrong by 2,047 units of roundoff, and that was read as a depth: a square half a spacing below the running sum is lost. It is not a depth. An equal tail at 0.003, eight bits shallower, loses 1,965 units, and 88 per cent of all depths between four and twelve lose more than a hundred. The error is one addition's rounding repeated once per entry, so a test that counts small entries misses nearly all of it, and a spread tail does not average it away. Adding the same squares pairwise, with the same number of additions, leaves under five units on everything measured.
Methods that were designed apartThe 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. Held off two vectors, it parts on the third value's clock on all 72 draws at every ratio measured, as predicted. Held off one, it meets the second value's clock only at the ratio the prediction named, and misses a third of the draws at two and at eight. The reason is that the lag is not the blur's: it is 11 steps after a second value that stands at 1.5 times the third and 4 after one at eight, on every blur, so lifting the second value moves the parting about twice as far as it moves the convergence.
Orthogonality, measuredA rounding chosen once is still repeated
One binary32 rotation multiplied into itself a million times loses orthogonality in a straight line, 622,126 units of roundoff on the first of five rotations, because its rounding defect is the same every time. The prediction was that choosing the best of the factor's representable neighbours would cut that rate tenfold and leave the angle alone. The best of 512 neighbours cuts it by 1 to 5 per cent. A greedy search eight ulps wide cuts it at most by half, and where it does, it moves the factor off the rotation and multiplies the angle's error by up to five. What works is to stop repeating the rounding: rounded afresh at random each product, the same factor loses 1,717 to 3,377 units at a million, and its angle is two hundred times nearer the truth than any fixed choice.