A turn the size of the rounding
Worth reading first: The bound that is known in advance.
The coordinates set the number built ten-state models in balanced form, where both Gramians equal a diagonal of chosen Hankel singular values, and solved them in other coordinates. A diagonal change of state spread over six decades moved from to , and both routes to the singular values, the square roots of the Gramians and the product , still read every value to five digits or better. A random orthogonal change of state left at , and the product route’s smallest value went from thirteen correct digits to two. The condition number had not moved; what had changed was that the Gramians were no longer graded, with their large and small parts in separate rows and columns.
That raised a question with a number in its answer. Between a diagonal change and a fully random rotation there is a one-parameter family: rotate by with a random skew matrix, so that is the aligned model and of order one is the fully rotated one. The prediction with a sign was that the product route’s smallest value holds its digits until is about , the spread of the singular values, and that the failure then grows as until it reaches the fully rotated error, so that the grading the route relies on has a width that can be stated in one number.
The grading does have a width, and it can be stated in one number. The number is the rounding of the entries, not the spread, and the failure past it is not a parabola.
Rotating by an angle
The models are the earlier essay’s: order ten, Hankel singular values geometric from one down to a floor, , or , with built so that exactly. Five random skew matrices are drawn, each scaled so that its Frobenius norm is , and the matrix exponential is computed by scaling and squaring a Taylor series, which keeps orthogonal to rounding. The rotated model is , which has the same Hankel singular values for every . Angles run from to one, a decade apart. Each route solves the two Lyapunov equations in the rotated coordinates and is scored on its relative error in the smallest value, against the known one.
With singular values down to , the product route’s median error is at the rounding level, to , for every angle up to . At it is ; at , ; at , ; at , ; and by it is . From there to an angle of a tenth it stays between and , and at an angle of one it is , the fully rotated error. The square-root route is at the rounding level throughout, under even at a tenth.
The predicted limit, , is in the middle of the plateau. By the time the rotation reaches it, the product route has already lost everything but the last decade or two of what a full rotation would cost.
The breaking angle does not depend on the spread
The prediction tied the limit to , so the three spreads should have broken at , and , four decades apart. They break together. The narrowest spread holds to and the two wider ones to ; all three have reached their plateau by or . What the spread does change is the height of everything after the break: the plateau sits near for the narrowest spread, for the middle one and for the widest, and the fully rotated errors are , and .
Predicted and measured, the limits are against , against , and against : seven to ten decades early, and with no trace of the spread in them. An angle of is the size of a rotation that changes the entries of a matrix of order one by about their own rounding. Below it, is the identity to working precision in every entry that matters, and the stored model is the aligned one. Above it, the stored model is a different set of numbers, and the grading the product route needs is gone.
Why the grading is so fragile
The product route forms and takes the square roots of its eigenvalues. In aligned coordinates and are diagonal, so is diagonal and its smallest eigenvalue, on the widest spread, sits in its own corner, computed by operations on numbers of its own size. Rounding errors of relative size in each entry of a graded matrix stay attached to their own entries, and the small eigenvalue is perturbed by times itself. That is the case the product nobody had to form avoided by never forming the product at all, and the reason the product is safe here when it is safe at all.
What a rotation does to that arrangement is different in kind from what rounding does. The aligned solve’s rounding errors are relative to each entry: an entry of size carries an error of about , and the small corner is perturbed in proportion to itself. A rotation by is an absolute perturbation: it moves an amount of order times the largest entries into every position, the small corner included, whatever its size. Below the rotation’s own entries off the diagonal are below the roundoff of the identity it departs from, and the rotated model differs from the aligned one by no more than the aligned computation’s own rounding already does. Above it, the small corner receives a perturbation scaled to the large entries, and nothing about the spread of the singular values protects it, because the spread measures how small the corner is and not how well it is shielded. That is why the break sits near on all three spreads. It is an account of where the break is, consistent with every curve here; how large the error is just past the break, at on the widest spread, was measured and not derived.
The plateau follows from the same arithmetic. Past the break, the error in the smallest value is set by how the Lyapunov solver’s own rounding enters a matrix that is now mixed, and that does not depend much on how far it was mixed: a turn of and a turn of both leave every entry of and carrying a share of the largest values, and the solver’s errors in the smallest eigenvalue of are of the same order in both. Only at an angle near one, where every coordinate direction is a generic mixture, does the error climb the last decade or two to the fully rotated value. That account is a sketch of the order of magnitude, not a derivation of the plateau’s height, and the plateau’s height was measured rather than predicted.
The plateau is most of the damage
Read as a fraction of the full damage, in decades, the plateau is most of it. On the widest spread the error goes from aligned to on the plateau and fully rotated: ten and a half decades lost to a turn of , one and a half more to a full rotation. On the middle spread, , and : six and a half decades to the plateau, one more to the end. On the narrowest, , and . The damage a rotation does to the product route is nearly all done by the first visible turn.
A mode that rings is counted twice met models whose states arrive in pairs, coordinates in which a rotation within each pair is natural, and those are exactly the coordinates in which this fragility would be met in practice. That turns the prediction’s practical reading around. A code that received a model in coordinates “nearly balanced” — computed by a balancing transformation, say, and so aligned to within rounding errors — is in the regime where the product route is accurate only if the near-balance is exact to the last few bits. Coordinates that are balanced to within in angle, which is far better than any computed balancing achieves for a model with singular values spread over eight decades, have already cost the product route nine digits of its smallest value. A condition number that is not the model’s found wandering by a factor of thirty-five for no structural reason, and the same fragility is at work: the coordinates a code is handed decide what a Gramian’s small part looks like, and nothing about them is guaranteed to be graded.
Five directions, one break
The medians are not hiding a split. Each of the five skew matrices breaks the grading between and and reaches a plateau between and by , and all five end between and at an angle of one. A rotation in any random direction mixes the large values into every entry; there is no direction among these five in which the small corner is spared. A rotation that mixed only among the large values, or only among the small ones, would spare it, and that is exactly the diagonal and block-diagonal changes of coordinates the earlier essay found harmless. The distinction is not between large and small rotations but between rotations that respect the grading and rotations that do not, and a random one of any size does not.
What the square-root route is for
The square-root route does not notice any of this. Its error in the smallest value stays below at every angle up to a tenth on all three spreads, and below up to . It factors each Gramian separately, so it never forms a product whose small eigenvalue depends on cancellation between large entries, and a rotation of the coordinates rotates its factors and leaves their singular values where they were. The bound that is known in advance relies on those values, and the state that is removed is not a mode relies on them being computed in whatever coordinates the model arrives in. The measurement here says how little room the product route leaves for that: a model whose coordinates are not exactly graded should be treated, for the product route’s purposes, as fully rotated.
What a code can do with the result
The earlier essay found that one solve’s own Gramian diagonals give a diagonal change of coordinates back, and that a second solve in them undoes a diagonal spread completely. A rotation is not undone that way: the diagonals of a rotated Gramian say nothing about the rotation, and a second solve in coordinates read off them leaves the error where the rotation put it, as the earlier essay found for a full rotation. Undoing a rotation needs the Gramians’ eigenvectors, which is to say a balancing transformation, and that is the computation whose accuracy the product route would then depend on. So the product route is only as accurate as the coordinates it is handed are exactly graded, and there is no cheap test that a set of coordinates is graded to the last bit.
The practical rule that follows is short. The product route is accurate on a model that is diagonal by construction, or that differs from such a model by a diagonal scaling, and on nothing else; a model computed by any process that rotates the state, however slightly, should be given to the square-root route. Why a Gramian can be truncated at all explains why the small singular values are the ones that matter for reduction, and they are exactly the ones the product route loses first. A reduced model’s error bound is twice the sum of the discarded singular values, and a smallest value read with two digits makes that bound good to two digits at best. Bracketing an error nobody can measure is about how much a bound like that is worth when the quantities in it are themselves uncertain, and a product route on rotated coordinates supplies exactly such a quantity.
Nor does the condition number help a code decide. At every angle here is on the widest spread, from the aligned model to the fully rotated one, while the product route’s error moves through twelve decades. A code that estimated the condition number before choosing a route would see one number for all of them. The earlier essay showed the same number moving by fourteen decades with no change in either route’s accuracy, under diagonal changes. Here it is the other way round: the accuracy moves and the number does not. Together the two measurements say that and the product route’s accuracy are independent of each other in both directions, and that what decides the second is the alignment of the coordinates with the Gramians’ eigenvectors.
What was measured, and only that
The models are symmetric, with in the balanced coordinates and built to make them so, which is the earlier essay’s construction and a special case. The rotation is for five random skew matrices of one normalisation; a rotation of the same angle concentrated in two coordinates would mix less and might break later, and the result that the break does not depend on the spread is a result for generic directions. Angles are a decade apart, so a break between and is a break at one of two grid points. Every model has order ten, so the mixing a rotation does is spread over ten coordinates; in a model of order a hundred a random rotation of the same angle moves the same share of the largest values into many more entries, and whether the break then comes earlier, or only the plateau rises, was not measured. The Lyapunov solver is the one the earlier essays used throughout, and a solver that works on a Schur form of would reach the small corner by a different route. And the explanation of the plateau’s height is an order-of-magnitude sketch, which the measured plateaus are consistent with but which was not derived.
What is firm is the shape: the product route holds to an angle of about on every spread, ten decades or so before the spread the prediction named; it then loses most of what a full rotation would cost within three decades of angle; and it stays there across ten decades more.
Still open: a rotation that respects the grading, and the balancing a code computes
A rotation inside a block. If the break comes from mixing large values into small entries, a rotation confined to the five largest coordinates, or to the five smallest, should not break it at all. The prediction with a sign is that with supported on the top five coordinates leaves the product route’s smallest value within a hundred times its aligned error at every angle up to one, on all three spreads, while a coupling only the fifth and sixth coordinates breaks it at an angle near times the rounding, so that the width of the grading is set by the gap the rotation crosses.
The coordinates a balancing code returns. A computed balancing transformation is accurate to some angle that depends on the model’s conditioning. The prediction is that the coordinates returned by a square-root balancing of these models in binary64 are within in angle of the exact balanced ones on the narrowest spread and no better than on the widest, so that the product route, applied after a computed balancing, is accurate on the narrow model and on its plateau on the wide one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- Where a ringing mode stops being a pair — both name balanced truncation, gramian, hankel singular values, lyapunov equation
- A tie is a gap smaller than its neighbours — both name balanced truncation, hankel singular values, lyapunov equation
- Where to put the poles of a rational function — both name condition number, gramian, lyapunov equation
- A function of a matrix is not a function of its entries — both name condition number, matrix exponential
- Exact at the points that were named — both name balanced truncation, condition number
- Interpolating at the model’s own poles — both name balanced truncation, lyapunov equation
Named objects
A flat tag is an object no other essay names yet.
Balanced truncationCondition numberGramianHankel singular valuesLyapunov equationMatrix exponential