The thread: Measured, not assumed — page 20
A graph is alternating modulo two
Random 0/1 matrices are invertible modulo two at the uniform law's rate, 0.289, and a random graph's adjacency matrix was predicted to follow the symmetric law instead, about 0.42. At twenty vertices it does: 0.409 of 3,000 graphs. At twenty-one it is zero, and at every odd order from nine to twenty-one, on every graph. An adjacency matrix has a zero diagonal, so modulo two it is alternating, its rank is even, and its determinant is the parity of the graph's perfect matchings — of which a graph with an odd number of vertices has none. The law it follows is the alternating one, which the symmetric law matches only at even order; put a coin on the diagonal and the symmetric law returns at every order. Modulo three and five, where a zero diagonal is only a constraint, graphs reach the symmetric law from below by sixteen vertices, as predicted.
Least squares, and the road not to takeChebyshev 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.
When the problem arrives againThe gap was the square
Eisenstat and Walker's second forcing rule was a third dearer than the first on a strongly nonlinear problem, and the cost had been traced to one over-tight step: its safeguard is skipped below 0.1, so the forcing term fell to 0.024 and the step took 109 inner iterations. Applying the safeguard always was predicted to hold that step at 0.04, halve its cost and bring the rule within fifteen per cent of the first. It holds the step at 0.038 and saves twenty iterations; the rule stays forty per cent dearer. The residual still rises after that step, because at that point Newton's own step overshoots and any solve tighter than about 0.06 reproduces it. A line search removes the rise and the reset and still leaves the second rule thirty-six per cent above the first. What is left is the rule itself: 0.9 times the square of the last residual ratio, which after every fast fall asks for a solve far tighter than the next step needs.
Orthogonality, measuredEvery trip comes back shorter
An applied Householder factor stops losing orthogonality after about twenty reflectors, at a height that grows like the square root of the vectors' length, because rounding to nearest makes errors of random sign. Rounding every operation toward zero makes errors of one sign, and the plateau was predicted to grow like the length itself — doubling for each doubling. In single precision it does nothing of the kind: from 96 rows to 768, eight times the length, the departure after 64 reflectors grows by a factor of 1.6. An inner product does pile up its errors toward zero, a third of a unit a term, but only when its terms share a sign; Householder's inner products do not, and theirs grow like the square root as before. What rounding toward zero adds is something nearest never does: every vector sent through the factor and back comes home about a unit shorter per reflector, at every length. That shrink is a floor under the departure and has no plateau; rescaling every reflection to its input's length removes it and leaves the departure still climbing.
The answer that depends on the machineA bound on the fall, not the error
A five-step window in Hestenes and Stiefel's error clause stopped forty steady conjugate-gradient runs promptly and safely, and was predicted to stay safe through a stall, because a lower bound on the error should sit just below an error that is sitting still. On twenty runs that stall because rounding has made them repeat themselves, it does: the bound stays above half the error on every stalled step and window 5 stops within 1.12 of the least. On runs that stall in exact arithmetic — one eigenvalue far below the other forty-seven, carrying a share of the energy — it stops more than half again too high on six runs of twenty-four, and on two at nine and ten times the least. The window sum is the energy the error lost over the window, which is a lower bound only because what is left is not negative. On a stall the loss is the other eigenvalues' remainder; it falls geometrically while the error waits, by a factor of about the square root of the isolated eigenvalue, and at low precision it crosses the threshold first.
Two errors, and whose fault they areThe vector moves with its eigenvalue
The Sylvester–Kac matrix's middle eigenvectors came back exact to fourteen digits by inverse iteration while their eigenvalues lost eleven, and the route LAPACK uses — back substitution in the computed Schur form, then the accumulated orthogonal transformation — was predicted to lose them, at about the eigenvalue's error divided by the gap of two: 10⁻⁵ at order 80. It does, at 2.3·10⁻⁵, so the route is the whole of the difference: nine orders of magnitude between two ways of computing the same vectors from the same eigenvalues. The constant is not one over the gap. On all 274 eigenvectors whose eigenvalues are off by more than 10⁻¹¹, at every order from 40 to 80, the Schur route's error is 0.76 to 0.84 times its eigenvalue's error, and 0.79 is a number the exact vectors carry: how fast a unit Krawtchouk vector turns as its eigenvalue moves. The Schur route returns the right eigenvector of a wrong eigenvalue.
The eigenvalue problem that is not linearThe middle root has no neighbour to lean on
A quartic matrix polynomial's four groups of eigenvalues, up to eight decades apart, were all kept by two scaled reductions of its companion pencil — the trailing one at the second tropical root for the lower pair, the leading one at the third for the upper pair. For a quintic the same pair was predicted to keep the middle group as well up to six decades, and to fail at eight, making the quintic the first polynomial that needs three. The pair keeps the four outer groups to six decades on both families, as predicted, and never keeps the middle group at all — not at eight decades, six, four or even two. Scaled at the middle root, both end coefficients shrink together, as 10 to the minus three times the separation, so every reduction that inverts one end of the pencil is far from the middle. Where the middle group is kept, it is by a reduction centred on it: on the structured family the leading reduction at the third root keeps it at every separation, and with the scaled trailing one that makes two routes again — not the predicted two. On the generic family none of thirteen routes keeps it at four or six decades.
Structure, and the solver that cannot see itThe 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.
Eigenvalues, singular values, rankAn eigenvalue count that cannot be slightly wrong
Every spectral computation here returns floats with errors in them. Counting eigenvalues below a shift by the signs of an unpivoted elimination returns an integer, and an integer cannot be 6.9999999997 — so the answer is exactly right, or wrong by a whole eigenvalue, and where the second happens is a band of measurable width.
The arithmetic underneathThe division the norm did not need
Dividing by the largest entry is the standard repair for a Euclidean norm that overflows, and it was said to make about the same rounding errors as the expression it replaces. It is about a third worse on short vectors, up to 1.74 times, and it misses 801 of 4,518 integer norms the plain expression returns exactly, because a power of two buys the same range with no rounding at all. But the scale was never the main liability. One entry of size one and 4,095 entries of two to the minus twelve lose 2,047 units of roundoff in every route alike, from a sum that throws each small square away on arrival.
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.
Exact arithmetic, and what it costs insteadThe budget was a worst case
The number of primes a modular determinant needs was said to have to be fixed in advance by a theorem, not by trying more until the answer settles. Hadamard's bound is that theorem, and it is tight on a Hadamard matrix and within one prime on random entries. On a Pascal matrix of order 32 it budgets forty-six primes for a determinant of one, and on a scaled Hilbert matrix three times what is needed. Stopping when the value repeats finds the right determinant on all eighteen matrices tried, at one prime more than needed. It can be fooled: a determinant built on the first six primes of an ordered list is reported as seven by every stop asking fewer than six repeats. Draw the primes at random from a pool and the same matrix fools it at the rate chance predicts.
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⁻⁵.
The eigenvalue problem that is not linearThe circle a general solver leaves
A palindromic quadratic's eigenvalues come in reciprocal pairs, and on a real chain that made the small half one division from being right. A pair on the unit circle is the other case, and there reciprocity is a statement that the mode neither grows nor decays. A general solver owes that nothing: it moves unit-modulus eigenvalues off the circle by 10⁻⁷ at a leading factor's condition number of a million, and at a thousand it puts six of sixteen outside by more than rounding, which is a growing mode that is not there. A route through the definite pencil in λ + 1/λ stays within 2·10⁻¹⁶ at every conditioning, and its angles are nine decades better. Where two eigenvalues collide at λ = 1 the structure protects nothing, and both routes fail together.