A square root the residual does not pay
Worth reading first: Three eigenvalues, and two are the golden ratio · A function of a matrix is not a function of its entries · The spectrum that predicts nothing.
One eigenvalue and two steps put the off-diagonal block back into a saddle-point preconditioner. With the saddle-point matrix, its Hessian block, its constraints and the Schur complement, the block upper-triangular preconditioner
makes with and . Every eigenvalue is one, in Jordan blocks of size two, and the minimal polynomial is : GMRES takes exactly two steps. The same essay found that the computed spectrum of is not a point but a ring of radius about , the square-root sensitivity of a defective eigenvalue, and measured it against the prediction to a few per cent.
That essay’s exactness had a condition attached. Applying means solving with and with , and in a code of any size the solve with is itself iterative and stops at a tolerance. It closed on that: “The nilpotent part is exactly nilpotent only with exact solves. The next measurement on the triangular form is the relation between the inner tolerance and the extra steps it costs, and whether a defective eigenvalue’s square-root sensitivity reappears as a square root in that relation.”
It reappears in the eigenvalues, exactly as predicted, and not in the steps.
An inner solve accurate to τ
The inexact solve is modelled as an exact solve with a perturbed block. is replaced by
with a fixed symmetric matrix of unit norm. Then differs from by a relative in ’s own norm, which is what an inner conjugate-gradient solve stopped at an energy-norm tolerance leaves behind. Two simplifications are made on purpose. The perturbation is fixed, so the outer iteration is GMRES on one operator rather than a flexible method on a changing one. And it is scaled to , so it stays positive definite at every conditioning — a perturbation of size would make indefinite once reached one, which is a property of the model rather than of any solve. The Schur complement stays exact; the earlier essay already swept an approximate one, and where the augmentation puts the cost found a way to make the exact one nearly free.
The systems are that essay’s eighteen: three shapes (twelve unknowns with five constraints, nine with six, fourteen with two), Hessians with , and , constraints with and . The inner accuracy runs over thirteen decades, from to .
The eigenvalues split by a square root
The figure at the top of the page is the drawn system: twelve unknowns, five constraints, . It has two populations. The ten eigenvalues that sat in the five Jordan blocks leave one along a line of slope one half: about , so at they are away. The other seven leave along a line of slope one. No eigenvalue is drawn below , and the reason is a finding of its own, two sections down: below that accuracy the standard decomposition does not finish.
The square root is the arithmetic of a Jordan block. The matrix has eigenvalues : a perturbation in the corner a Jordan block leaves empty moves the eigenvalue by its square root, and a condition number for one eigenvalue measured the same exponent becoming an eighth on an eight-by-eight block. Here each of the blocks gets its own , of either sign, from how the perturbed solve couples the two halves of the block.
Drawn in units of , the split is a fixed picture. Each pair sits at for a number of either sign, so it lies on the real axis or the imaginary one, symmetric about one. At there are two real pairs and three imaginary, the nearest at and the furthest at . Across the dial, from to , the positions hold; the seven that move like fall into the centre as shrinks, away at and at .
On all eighteen systems the same: from to the median distance of the paired eigenvalues from one is between 0.42 and 0.62 times , and its slope against is 0.50 on every one of them. The other eigenvalues’ slope is 1.00 on every one.
Which way each pair goes, predicted
The positions are not just of the right size; they can be written down before anything is decomposed. Write the perturbed solve’s error as , a matrix of size . To first order each Jordan pair moves to
an problem built from the constraint block and the inner solve’s error alone. is similar to a symmetric matrix, so every is real, and its sign decides the pair’s direction: a positive splits along the real axis, a negative one along the imaginary. On the drawn system the five are 0.374, 0.235, , and — two real pairs and three imaginary, at 0.61, 0.48, 0.14, 0.52 and 0.70 times , which are the rings on the figure above.
Measured on every system, the computed pairs sit within 2.0% of at and 2.2% at ; the gap grows to 6.7% at and 20% at , which is the next term of the expansion, a relative correction that grows like . The signs vary with the problem and not with : two real and three imaginary pairs on four of the six twelve-by-five systems, three and two on the other two, three and three on every nine-by-six system, one and one on every fourteen-by-two. Because is a fixed matrix’s spectrum, the whole pattern in units of is fixed, which is why dragging moves nothing.
The residual does not split
So the eigenvalues have the square-root sensitivity the question asked about. The question was whether the steps do, and the green line in the first figure already answers it. GMRES’s residual after two steps follows slope one: at — the drawn system’s first residual is 0.25 and its second about — and at . It is linear in across eight decades.
The reason is the polynomial. After two steps GMRES has the freedom of every polynomial of degree two with , and one of them is , the minimal polynomial of the exact preconditioned matrix. Applied to the perturbed one, with of size :
because . Every surviving term carries at least one factor of , so the residual after two steps is of order , not . The polynomial has a double root at one, and a double root cancels a pair of eigenvalues at to second order: at is . The square root is real; GMRES’s polynomial squares it before it reaches the residual.
Divide each quantity by the power it is claimed to follow. The split over is a flat line on every system, bunched between 0.42 and 0.62. The two-step residual over is flat on the nine systems with , to within a factor of 1.4, at levels from 0.013 to 0.74. On the nine with the linear term is far smaller — as little as — and as grows the term overtakes it, so the line rises, by up to a factor of a hundred. Fitted from to , the two-step residual’s slope is between 0.86 and 1.27 on every system, and its ratio to rises between two hundred and a hundred thousand times. The constant is how much of the starting residual can reach, and it depends on the blocks; the power is never one half.
Every pair of steps costs one factor of τ
Two steps leave a residual of order . What happens after that is the same argument again: the next two steps can apply once more, and is of order .
The histories show the pairing. At GMRES’s residuals run 0.25, , , , : drops of 3,400 and 5,300 at the second and fourth steps, of 18 and 9 at the third and fifth. At the second step lands at , the third at , and the fourth at . At , where is no longer small, the pattern blurs: the residuals fall by factors between 8 and 56 at every step, and it takes eight. The odd steps are not wasted — they buy the part of the next factor that a degree-three polynomial can already reach — but the large drops come two at a time.
That makes the cost predictable from . If each further two steps divides the residual by , with the two-step residual over , then reaching a tolerance tol takes
at least two. is read once per system, at , from the second residual.
Over 234 runs the rule is exact on 179 and within one step on 228. The misses by one are at the boundaries, where the partial drop at an odd step decides whether a count lands one side or the other. The six misses by two or three are all at the loosest accuracies, and , where is no longer small and “a factor of per two steps” stops being a clean statement — five of them over-predict and one under-predicts.
Read the other way, the rule is a price list for the inner tolerance. At the drawn system’s of about 0.7, the two-step answer holds to ; four steps hold to about ; six to about . Loosening the inner solve by five decades costs two outer steps, each of which costs one more inexact solve with . That is the trade the accuracy that is thrown away found for inexact Newton — an inner tolerance far below what the outer method can use buys nothing — with the difference that here the outer method’s appetite is a clean power of and can be stated in advance.
The triangular form keeps its lead
The other reason to want this number is the comparison the earlier essays set up. The block-diagonal preconditioner keeps symmetry, which allows MINRES and its constant storage; the triangular one needs GMRES, which stores every vector, and repays it with two steps instead of three. Once the inner solve is inexact both lose their clean counts. The question is which loses more.
The triangular form keeps its lead at every . At the median GMRES takes 2 steps up to , 3 or 4 from to , and 5 and 6 at the last two; MINRES takes 3 up to , 5 or 6 from to , then 8, 9 and 12. On every one of the eighteen systems at every one of the thirteen accuracies, GMRES needs at most as many steps as MINRES. The ratio runs from the exact case’s two to three toward one to two.
The block-diagonal spectrum explains its own pattern. Its three eigenvalues — , and from three eigenvalues, and two are the golden ratio — are not defective, so they move like , not , and MINRES’s degree-three polynomial cancels three clusters of width to first order each. On the nine systems with its residual after three steps is to , flat across the eight decades, and on the drawn system at the sixth step reaches , a second factor of about : the same law with three in place of two, and the same doubling of the count when crosses the tolerance. A defective preconditioned matrix is more sensitive than a diagonalisable one, and the measurement says GMRES does not pay for that sensitivity, because a polynomial that matches a Jordan block’s multiplicity sees its eigenvalues’ split only squared.
A spectrum the decomposition does not finish
The eigenvalues above stop at because below it the Francis iteration — the decomposition every library runs, which the algorithm the libraries actually run walks through — does not converge on these matrices. With a budget of 400 double steps per row it converges on every system from up. At it fails on nine of the eighteen, at on sixteen, at and on seventeen, and at on eight. The exact case does not have the problem: with the earlier essay’s matrices converge in between 0 and 50 double steps. What the stalled runs have in common is ten eigenvalues within a few times of one another and of one, arranged as pairs that are almost Jordan blocks; the exact case, where the same ten are an exact Jordan structure, converges at once. Why the near case is so much harder than the exact one is not traced here.
The failure is quiet if the convergence flag is not read. An unconverged quasi-triangular matrix still has a diagonal, and read as a spectrum it is a plausible one: on the drawn system at it reports five real pairs at 0.58 to 1.10 times — the right size, the wrong directions, three of them real where the pairs are imaginary. A second trap sits beside it. The routine that reads the two-by-two blocks off the quasi-triangular form calls a subdiagonal zero below of the matrix’s norm, and an imaginary pair split by for below about has a block whose subdiagonal sits under that line, so even a converged decomposition read at the default reports it as two real eigenvalues. The form a real matrix can reach is the essay on what those blocks are; here they are read at the iteration’s own deflation tolerance, , and only where it converged.
What this says about a ring
The earlier essay drew a ring of radius around one and called it the computed spectrum. That ring is this essay’s law at : rounding is an inexact solve with an accuracy of one unit of roundoff. And the earlier essay found GMRES finishing in two steps anyway, with second residuals between and . Both observations were the same fact. The eigenvalues it could compute had moved to from one; the residual GMRES reached was to . A spectrum drawn from a decomposition shows the square root; an iteration that builds the right polynomial does not.
That distinction is worth keeping in view whenever a preconditioned spectrum is shown as the argument for an iteration count. The answer that arrives when the space runs out gives the count as the degree of the minimal polynomial on the starting vector’s Krylov space. A perturbation destroys that degree at once — the exact minimal polynomial of has degree — and an iteration count read from the spectrum would jump from two to seventeen. What survives is that a low-degree polynomial is nearly a minimal one, and how nearly is set by the polynomial’s behaviour at the perturbed eigenvalues: here , through a double root, rather than .
What eighteen small systems do not show
The systems are dense and small, so the preconditioned matrix can be formed and decomposed; the largest has twenty unknowns. The inner solve is a fixed perturbation, which a real inner iteration is not: conjugate gradients stopped at a tolerance returns a different error for every right-hand side, the preconditioner then changes from step to step, and the outer method has to be flexible GMRES. The theory of that case — an inner accuracy that may be relaxed as the outer residual falls — is well developed, and nothing here tests it. The Schur complement is exact; with an approximate one the Jordan blocks are already split by the approximation, the eigenvalues are distinct, and this essay’s distinction between and is replaced by the earlier essay’s spread. And every count is to a tolerance of ; a looser outer tolerance moves the rule’s thresholds by the same logarithm.
Still open: a changing inner solve, an approximate Schur complement, and restarting
An inner solve that changes. A real inner iteration returns a different error for each vector it is applied to. Under flexible GMRES the argument above no longer holds as stated, because there is no single . The prediction with a sign is that with each inner solve stopped at a relative residual of , flexible GMRES’s two-step residual still follows rather than , with a constant at most three times the fixed perturbation’s, and that the step rule above predicts its count within one step on at least nine runs in ten.
Both blocks inexact. With the Schur complement approximated to a spread as well, the pairs are split by before arrives. The prediction is that the two-step residual is then the larger of the two effects — the spread’s term, independent of , and the term — so that tightening the inner solve below the spread’s level buys nothing, and the useful inner accuracy is set by the Schur approximation.
Restarting. GMRES stores every vector, and the triangular form’s count of six at is still small. A restart length of two — the minimal polynomial’s degree — would keep the storage of MINRES. The prediction is that GMRES(2) with the triangular preconditioner converges at every up to , at a rate of one factor of per cycle, and fails to converge at all on the systems with the largest at .
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- An augmentation read in the smallest eigenvalue — both name block preconditioner, minres, saddle-point systems, schur complement
- A preconditioner that need not know the constraint — both name block preconditioner, minres, saddle-point systems
- A constraint the count stops seeing — both name saddle-point systems, schur complement
- A minimum the Hessian cannot see — both name saddle-point systems, schur complement
- The perturbation that does the work — both name saddle-point systems, schur complement
- The zero that is not a missing entry — both name saddle-point systems, schur complement
Named objects
A flat tag is an object no other essay names yet.
Block preconditionerDefective matrixGMRESInexact newtonJordan formMinimal polynomialMINRESSaddle-point systemsSchur complement