What the commuting family was hiding
Worth reading first: An equation whose unknown is a matrix · The exact answer to a nearby problem · An index that is a pair.
The residual knew the error ended a two-part argument about the Sylvester equation . A backward error the answer does not feel had built a family on which a structured backward error climbs far above its residual, while the error of the answer does not move. The next essay looked for a structured condition number to go with it and found one that moves the wrong way, with the plain relative residual times predicting the forward error within a factor of 10 on all 120 solves.
All of that was on one construction. There is symmetric, , and shares ’s eigenvectors, so that exactly. The essay asked the obvious question of its own result and signed the answer: with replaced by a random matrix of the same singular values, the backward error over the residual at and a scale of should fall below a thousand on both routes, the share of the perturbation on should fall below a half, the structured product should overstate the forward error by less than a hundred, and the residual’s estimate should stay within ten, “so that the gap measured here is a property of the commuting family’s geometry, not of structured estimates in general.” It added a second prediction about a residual available at no cost in the Schur bases.
Most of the first prediction holds and part of it fails informatively. The second fails by a wide margin, and that failure is a small finding about what the residual is.
A family with the same numbers and no alignment
Everything is kept but . The matrix has eigenvalues 1 to 8 and is , for of , , and . Now with and random orthogonal, with graded as before over from one to , and is formed from . Three seeds per setting. The two routes are Bartels and Stewart’s, through the real Schur forms, and elimination on the Kronecker system.
This makes large in a way it was not before. In the commuting family cancels to , so is small and shaped exactly like . Here the two terms and do not cancel, because does not commute with , and is of about the size of whatever is. So the sharp contrast in sizes that drove the earlier finding has gone. What remains the same is everything that a norm or a singular value can report about , and .
The red line is the earlier family at , climbing from 4 to . The other two are the same equation with unaligned. On Bartels and Stewart’s route the ratio is 4 at every condition number, and through the Kronecker system it runs from 4 to about 10. Over all the settings, four scales, five conditionings and three seeds, on both routes, its largest value is 10.8. The prediction was below a thousand, and that is correct by two orders of magnitude. Turn the dial and only the red line moves: it depends on , since its is , and the other two take no notice at all.
So the earlier essays’ central gap did belong to the commuting family. It is what happens when is exactly aligned with and much smaller than and individually. A backward error measures how far , and must each move, relative to their own norms. If is tiny then its relative budget is tiny, and moving it is expensive. On a generic it is not tiny, and nothing about that arithmetic singles it out.
That result corrects a possible reading of the essay that started this. A person reading it could reasonably have concluded that a Sylvester residual is a poor guide to backward error in general, and that a structured measure has to be computed. On a generic right-hand side the two are within a factor of four to eleven, a constant anybody can absorb. The structured measure is a different number on a narrow class of structured right-hand sides, and it is worth computing there, but it is not generally.
Two estimates that now agree
The second clause of the prediction holds too. On the commuting family the structured condition number times the backward error overstated the forward error by up to on Bartels and Stewart’s route, and the residual’s estimate was within ten. On the non-commuting family at the same scale, the structured product’s overstatement falls to about 6. Across all settings and both routes its largest is 45, against the prediction’s hundred. The residual’s estimate runs from 1.6 to 8.8, within the prediction’s ten.
So the two estimates have come together, as the prediction said. The product of a structured condition number and a structured backward error is a sound estimate of the forward error on a generic problem, which is what such a thing is meant to be, and the earlier essay’s “overstates by ” was a property of the geometry on which it was measured. The residual’s estimate is still the simpler and slightly tighter one, and it is much cheaper: a structured condition number at this order takes solves against an system, whereas the residual needs two products and needs one estimate.
The forward error itself is nearly the same on both families, and that is worth seeing, since the two have such different backward errors. It is set by : about at of , at , at and at . That is what the essay on sep against the gap would say: a separation of between the two spectra means the Kronecker matrix’s smallest singular value is about , and the error is the rounding over that. So the answer’s accuracy has been a matter of the separation all along. It does not know whether commutes.
The share on C does not fall
One clause of the prediction fails. It said the share of the minimum perturbation that lands on should fall below a half at , once the commuting alignment was gone. It does not fall: it is 0.40 at on both routes, and it rises as grows ill conditioned, to 0.88 on Bartels and Stewart’s route and 0.99 through the Kronecker system.
The reason was already in the earlier essay’s own analysis. A perturbation of reaches the residual only by way of , and one of only by way of , so both pass through . Where has small singular values, on the small-by-small block of its singular directions, neither can contribute. Only reaches that block. That argument is entirely about ’s singular values, and they have not changed. It needs no commuting. So what the commuting family added was not the concentration on . It added the large size of the perturbation that concentration requires, by making small. On the generic family is large and a perturbation on it is cheap, so the share is high and the size stays modest. The prediction’s error was to treat those two as one effect.
A residual that costs nothing is not the residual
Bartels and Stewart’s route solves a triangular equation in the Schur bases, , and the residual of that equation is sitting there at no additional cost. Rotated back to the original bases its norm is unchanged, because the bases are orthogonal. The prediction was that this free number would be within a factor of two of the true residual, so that the residual’s estimate of the error comes for the price of the solve.
It is not close. On the non-commuting family the free residual is between 0.024 and 0.099 of the true one, with a median near a twentieth. On the commuting family it is lower, between and 0.05. That is a large miss in a direction that matters: a code reading the free number would conclude the solve is ten to a thousand times better than it is, and the estimate of the error it then forms would be too small by the same factor.
The reason is plain once the free residual’s blind spot is written out. Back substitution is an extremely accurate operation, and its residual measures only what that substitution left. The true residual also contains the rounding in the two Schur factorisations, in the two rotations of into the Schur bases, and in the two rotations of out of them. Those happen outside the triangular equation, and that equation has no way to see them. They are also larger, because each is an orthogonal step on a matrix of norm , with a rounding error of the corresponding size.
That account predicts something better than the free residual, and the prediction turns out to hold. If the residual is dominated by orthogonal steps’ rounding, then its size should be about , with no reference to the particular solve. On all sixty non-commuting equations, the true residual is between 1.8 and 7.1 times this number, regardless of and . So a code does not need the free residual, and it does not need to form either, to know what the residual will be. It needs the norms. The estimate of the error then reads: times the size of the terms, divided by . That is the classical forward bound, and in this measurement it has held to within a factor of about four.
So on this family a solve’s residual can be predicted to within a factor of about four before the solve is run, and what remains of the forward error’s estimate is a single further number, the separation. That is cheap: an estimate of can be had from the Schur factors, which the condition estimators would do at a few triangular solves each, at a small part of what a structured condition number costs. Nothing here depends on the singular values of being spread or on any particular , within the settings measured, which is to say that the forward bound in its simplest form has held across eight decades of conditioning and six of separation.
This sits in contrast with what the backward-error literature emphasises. A residual is a measured quantity with a real role when a solver might be unstable. Bartels and Stewart’s route is stable, and a stable route’s residual has no information beyond its own stability, at least on this family. It is at its proper level, a small multiple of times the data, on every equation here, and computing it confirms that nothing went wrong but cannot tell one equation from another. Three errors and one number separates those uses in general, and here the case is unusually clean. The elimination the matrix does not need has shown that the Kronecker route costs little more on this structure, and its residual, computed by elimination, is about the same size.
The commuting family’s place
None of this means the commuting family was a bad example, and the most common Sylvester equation in practice gives a direct way to check that. A controllability Gramian solves , with a stable and data of rank one. It is the equation inside every balanced truncation, and its solution’s singular values fall quickly for the reason why a Gramian can be truncated at all gives. Here is symmetric with eigenvalues spread over between none and six decades, and is random, so that the exact solution is known in ’s eigenbasis.
The gap comes back, and it does not respond to the variable the earlier family pointed at. With no spread at all, has rank one to rounding, its condition number is above , and the backward error over the residual is 2.3. So a huge on its own has no effect. At a spread of the ratio is about a hundred, while has fallen to . At the ratio is about 5,000, and up to 28,700 on one seed, while is about . The structured product overstates the forward error by about 9,000 at the median and by on the worst. The residual’s estimate stays between 0.7 and 34 across the whole of that range.
So the earlier finding belongs to a large and useful class after all, one defined by the operator’s spread and not by or by any literal commuting. A small low-rank right-hand side, solved against an operator far larger than the result it produces on the small directions, is what makes the budget on tight. The Gramian equation has that. Where the earlier essays’ conclusion said to trust the residual’s estimate and not the structured product, that is sound advice on the equation people actually solve, and the commuting family was a clean model of it. And this is not what the prediction said to expect, which was a threshold in the spread of .
It matters that this was found by looking for the structural difference rather than a numerical one. Reading or from the earlier family would have suggested that a large gap needs a large , and a Gramian at no spread has a condition number of and no gap at all. So the earlier family’s two parameters were standing in for the variable that counts, which is the size of against the small singular directions of the result. That is a property of the pair taken together, and it cannot be read from either alone.
What is not covered
Order 8 and three seeds per setting are small, because a structured condition number takes solves, and that cost grows steeply. The family’s and are symmetric and is almost exactly , so that a separation of is the only thing setting the Kronecker matrix’s smallest singular value. A nonsymmetric pair, in which sep falls far below the eigenvalue gap, could break the correspondence between forward error and that the figure shows. All solutions here are built, and their computed, in the same double precision, so the forward errors at the small end include rounding made in forming the problem.
Still open: an equation with a Gramian in it, and a nonsymmetric pair
A low-rank right-hand side on a non-commuting family. The Gramian’s right-hand side has two features, low rank and a small norm against the operator. The prediction with a sign is that a rank-one scaled to the size of and solved on the non-commuting family has a ratio under 20 at any spread, and that scaling it down by raises the ratio above a thousand, so that it is the size and not the rank that opens the gap.
A nonsymmetric pair with a small sep. The law for the residual’s size has used only the norms. The prediction is that on a pair whose sep is far below its eigenvalue gap, the true residual is still within ten of , and that the forward error is then the residual over sep and not over the gap, to within ten, with the free residual lower still, by a factor that grows with the pair’s non-normality, since the Schur forms’ rotations are unchanged and back substitution meets a harder triangular system.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- An accuracy that is a backward error — both name backward error, condition number, forward error, residual, structured perturbation
- A small residual is not a small error — both name backward error, condition number, forward error, residual
- Bracketing an error nobody can measure — both name backward error, condition number, forward error, residual
- The fifth author — both name backward error, condition number, forward error, residual
- The gap refinement can close — both name backward error, condition number, forward error, residual
- The number that cannot rank them — both name backward error, condition number, forward error, structured perturbation
Named objects
A flat tag is an object no other essay names yet.
Backward errorCondition numberForward errorMatrix equationResidualSchur formStructured perturbation