The thread: Whose fault is it — page 11
Accurate is not a property of a method
A bidiagonal matrix whose every entry is 1 or 4096 has singular values spanning thirty decades. On it, the method recommended for small singular values loses the small one by one and a half per cent, the sweep with the theorem behind it does not converge at all, and the shift the theorem is a warning about gets every value to 5·10⁻¹⁶. Nothing there contradicts the theory.
Iterating, instead of factorisingThe division that cannot be done
Conjugate gradients divides by pᵀAp at every step, and on a matrix that is not positive definite that number can be zero or negative. The guard against it has been here from the first essay and described it as a failure. In the method that made conjugate gradients famous it is the single most valuable object the iteration can produce, and it costs six matrix–vector products.
The arithmetic underneathAn octave to land in
A window read off a chain's own rates kept an eight-bit recurrence exact to sixty octaves, and its width, falling towards zero, was predicted to mark where it would stop being exact, to within an octave. It stops two to seven octaves earlier, as soon as the window is narrower than the octave a power-of-two rescale moves by. The rule that aims every step, predicted to outlast it, fails too, once the value it aims at no longer fits. A window computed for each step separately never narrows below 4.8 octaves, reproduces the unbounded exponent on every depth at which the format can still store the chain, and makes the fewest rescales of the three.
Methods that were designed apartThe 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. Before they part they agree to eleven digits, not two. And they part three to seventeen steps before the copy, at a step the blur decides and the noise does not: one to two steps after the short recurrence's basis loses orthogonality past 10⁻⁴, four to eight after the leading Ritz value converges. The difference starts at the bottom of the spectrum, where the power is made. The copy is the last thing to happen, not the first.
Two errors, and whose fault they areThe middle eigenvectors come back exact
The Sylvester–Kac matrix's eigenvectors are known exactly, and the middle ones were predicted to be lost before their eigenvalues, since the gap between neighbouring eigenvalues is only two. Started from the all-ones vector, inverse iteration seems to confirm it: half the middle eigenvectors are wholly wrong at order 80 while their eigenvalues keep five digits. But the all-ones vector has, in exact arithmetic, no component at all along every other eigenvector. From a random start the middle eigenvectors come back exact to fourteen digits at every order measured, while their eigenvalues lose up to eleven. What is lost is at the ends of the spectrum, in the smallest entries of eigenvectors whose entries span twenty decades — and never by more than three units of roundoff times that span.
The matrix that is a graphThe set has to be even outward
Switching on four vertices makes cospectral regular graphs, and the critical group separated 181 of 346 quartic pairs whose switching set had no edges inside and none of 118 cubic ones. The cubic silence was put down to an outside vertex adjacent to all four, which a cubic graph cannot have. It is not that: quartic sets without such a vertex are the ones the group hears. A count of the half-adjacent vertices fits all 705 earlier pairs and fails on the first quintic graphs measured. What holds on every switch at three degrees is simpler. The group can hear a switch only when each vertex of the set has an even number of neighbours outside it — when the set's indicator vector is a null vector of the Laplacian modulo two.
Least squares, and the road not to takeThe 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.
The answer that depends on the machineA short window from the start
Conjugate gradients carries a cheap lower bound on its own energy error, summed over a window of later steps, and a clause that stops when it falls below the working precision is safe — but the window is a pure delay. A window that starts at twenty and halves each time the estimate falls by a decade was predicted to keep the long window's safety and lose most of its delay. It loses the delay: under half window 20's overrun. It does not stop every run within 1.12 of its least error, as predicted; its worst is 1.126. And a plain window of five, which never needed to shrink, beats it on both counts at once — 1.097 at worst, 239 steps past the least in all against 335. The thing the shrinking was meant to avoid, stopping before the least, costs at most a few per cent, because near its least the error is flat.
The eigenvalue problem that is not linearAn interior root needs its own scaling
A cubic matrix polynomial with three groups of eigenvalues needed only two reductions: the leading one kept the middle group at every separation. A quartic has two interior groups, and the prediction was that the leading reduction would keep both, so that two reductions would still do. At eight decades between groups it keeps neither — both interior groups are wrong in the second digit — and no unscaled route keeps the second group at all. Two reductions still suffice, but each must be scaled at an interior tropical root: the trailing one at the second root for the lower two groups, the leading one at the third for the upper two. And the second companion pencil, predicted to keep the middle groups as the reversed polynomial does, loses them as the first pencil does.
When the problem arrives againThe step before the reset
On the strongly nonlinear problem, inexact Newton's second forcing rule took two more Newton steps than the first and half as much work again, and the blame went to its safeguard, which let the forcing term jump back to 0.9 when the residual rose. Capping that jump at ten times the last forcing term was predicted to remove the two steps and bring the rule within five per cent of the first. It removes the steps, at three targets of four. It saves 0.7 per cent of the work, and leaves the rule 45 per cent dearer than the first. The reset was the cheap part: four loose steps for 55 inner iterations. The cost was the step before it, solved to a forcing term of 0.024 for 109 iterations, where the first rule spent 5 — and on the ill-conditioned problem, where the residual never rose at all, the cap costs ten per cent.
Randomised, and the guarantee that changes kindA turn is seen one trace late
A carried spread multiplied by the ratio of the last two spreads restored a drifting sequence's coverage, and the prediction for a sequence whose drift turns was a dip of four or five points on the trace after the turn, gone a trace later, and a guard that removes it for nothing. Run on the turn the prediction described — the spread rising and then falling — there is no dip: the extrapolation promises more rise, uses a spread eleven per cent too large, and covers 70.5 per cent against a table of 68.3. Run on the mirror turn, the spread falling and then rising, the dip is there and larger than predicted: a spread a quarter too small and 59.5 per cent coverage. Either way it is gone a trace later and the sequence's average stays within a point. The guard costs nothing and does not help, because no rule that reads past spreads can see a turn before the trace that shows it.
Sparsity, and what elimination costsA clique has no order
Ordering a dissection's pieces with their separator in view cut the critical path by a quarter, and the next proposal was to order the separator's own vertices by how much fill each carries in. On every separator the dissections here produce — the grid's rows, its level-set diagonals, and the level sets of three irregular graphs of 300 vertices — twenty-four shuffles of the separator's order give the same factor to the last entry. The reason is one line of graph theory: once the pieces are eliminated, a separator whose vertices all touch one connected piece is a clique, and a clique's order changes nothing. The order matters only on a separator that is not a clique, and the one built here to be that — two grid rows thick — loses to a separator of one row under every order tried. The separator's size is the decision; its order is not one.
Structure, and the solver that cannot see itThe part a circulant can cancel
A separable kernel with a small isotropic part was preconditioned by the circulant sampled from the whole mixture's symbol. The cheaper choice keeps only the separable part's symbol and leaves the isotropy as error, and the prediction was that it widens the same treads by about the same amount — the same step count to a thousandth of isotropy — and falls behind past a hundredth. The step count is the same to within one on every grid up to ε = 10⁻³, and the cheaper preconditioner is behind on every grid from ε = 0.1. But it does not widen the same treads. It puts its error on the tread at one, where sixty-four of the hundred eigenvalues sit, widening it 7.6 times as fast as the mixture's symbol does, and it leaves the tread the mixture widens most nine times narrower. The counts agree because conjugate gradients pays for the widest tread's logarithm, not for which tread it is.
Elimination, and the swapA definite pivot sits at the mean
On a positive-definite matrix every Cholesky pivot is at or above the smallest eigenvalue, so a shift read off the smallest pivot always has to be pushed down, and it was predicted to need a median of four pushes and to be usable unpushed on none. The second half holds on all ninety matrices measured. The first does not: shrinking by a quarter at a time takes a median of six to ten steps, because the smallest pivot sits within a factor of two of the spectrum's harmonic mean, and the harmonic mean sits four to nine times above the smallest eigenvalue. The push was a device for the indefinite case, which has no floor to aim at. A definite matrix does, and halving towards zero gets below the spectrum in a median of two to four.
Orthogonality, measuredThe plateau is set by the length
A Householder factor applied through its reflectors, never formed, loses orthogonality over its first twenty or so reflectors and then stops. The saturation was predicted to be a property of the vector length: on 384-long vectors the growth should continue longer before it stops. It does not. On 96-, 192- and 384-long vectors the departure reaches nine-tenths of its plateau within twenty reflectors, and on the longest it gets there soonest. What the length sets is the plateau itself — 3.6, 5.0 and 6.7·10⁻¹⁵ — which is the unit roundoff times the square root of the length, times a constant between 3.1 and 3.4. Twice the reflectors on the same length move it by nine per cent.
Reduction, and what a model is forA weight is not a location
On a mesh graded towards a convection–diffusion operator's outflow, the edge of the numerical range in nodal coordinates lives in the cells where diffusion and convection are comparable, and weighting the inner product by cell size everywhere moves it into the left half plane. The prediction was that the weight is only needed where the edge lives: cell sizes over the nodes whose cell Péclet number is between a quarter and two, and one elsewhere, would make the range dissipative at every grading and repair every failed model. It does the opposite. From a grading of ten the band-only weight's edge is positive, and from thirty it is further right than the nodal edge it was meant to repair — 144 against 8.9 at Péclet 100. Its edge eigenvector leaves the transition and sits at the weight's own step, where it rises from 0.16 to 1; and its models fail on thirteen placements to the nodal twenty-three. The cell sizes work because they are the one diagonal weight that makes the centred convection stencil skew, row by row, and any other — stepped, ramped over half the mesh, or the reverse — leaves a symmetric part where it departs.
Regularisation, and the answer that is chosenThe 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.
Neither sparse nor denseSeparated, and narrower
The cos(κr)/r block between two facing segments has a rank that turns linear in the Fresnel number with a slope near 1.4, not the 1.9 of a real kernel's two directions, because the band of directions the source is seen over overlaps its own reflection through zero. Shift the source along its line until the target sees it entirely to one side, and the bands were predicted to separate and the slope to rise to 1.9, the change happening near half a segment's length. The bands do separate: from an offset of one length the union is exactly twice the band. But the band has narrowed by the same factor, because the source is now seen obliquely, and the separated union is no wider than the overlapping one was. The rank's slope is 1.58 at one length, 1.67 at its steepest between a half and three quarters, and 0.92 at two lengths. At every offset it runs 0.1 to 0.2 above the union's slope: the phase-space count tracks it, and the count was never going to double.
The matrix a constraint makesThe row that was nearly there
Move the spare rows of a degenerate vertex off it by 10⁻⁶ to 10⁻¹⁴ and the set question still certifies the last iterate of every run, as predicted. It no longer certifies early. Between 10⁻⁶ and 10⁻¹⁰ it waits nine to seventeen iterates, because the basis it certifies holds a near row at zero and its point sits three to forty-eight times that row's slack outside the feasible set. At 10⁻¹² the same displacement falls under the certificate's tolerance and the set certifies from the first iterate. The basis turns when μ passes a tenth of the slack, while the diagonal still calls every near row active.
When the index is a tupleThe order of the indices is not free
A tensor train stores numbers linear in its number of indices, so it was named a format that does not notice the dimension. It notices the order. An eight-index tensor of four separated pairs takes 8,322 numbers in the order it was written, more than the 6,561 entries of the array itself, and 72 with the pairs side by side, the same tensor to the same tolerance. The median of two hundred random orders is 1,584. Every digit asked for is charged at each crossing: at a tolerance of 10⁻¹² the gap is 13,950 against 72, and it takes a coupling a thousand times weaker to bring the two within twenty times of each other. The order can be found cheaply: one slice through a base point, 252 entries, shows the pairing and gives the best order on all three tensors tried.
Iterating, instead of factorisingThe residual the method reports
Conjugate gradients prints a relative residual of 6.9·10⁻²¹. The unit roundoff is 1.1·10⁻¹⁶, so that is not a small residual and not a large one — it is not a residual. The vector the method is holding at that step has ‖b − Ax‖/‖b‖ = 5.1·10⁻¹⁰, and nothing in the run says so.
Elimination, and the swapA vertex, not an order
A definite matrix's smallest Cholesky pivot sits at the harmonic mean of its spectrum, and the prediction was that a localised bottom would change that for the pivoted factorisation alone: on a path with one weak edge, taking the largest diagonal first would land within a factor of 1.2 of the smallest eigenvalue while the unpivoted pivot stayed at the mean. On the prediction's own family neither rule comes within a factor of three, because a weak edge does not localise the bottom on a vertex — it splits it over the shorter piece, and the best pivot any order can reach is the smallest eigenvalue times that piece's length. Where the bottom really does sit on one vertex, both rules land within two per cent, the unpivoted one wherever in the order that vertex happens to fall. The pivot counts the vertices the bottom lives on; the order chooses nothing.
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.