Reduction, and what a model is for

A turn the size of the rounding

The product route to a model's Hankel singular values reads all ten to thirteen digits when the state coordinates are a diagonal change of balanced ones, and two digits when the same model is rotated. The prediction for the rotations between was that the product route would hold its digits until the angle reached the spread of the singular values, ten to the minus eight, and then lose them as the square of the angle. It holds until ten to the minus fifteen, which is the size of a turn the stored entries can just register. Within three decades of angle it has lost almost everything it will lose, and then it sits on a plateau, within a few hundred of the fully rotated error, for ten decades of angle. The grading the route relies on is not a neighbourhood with a width. It is a coincidence of coordinates that any visible turn destroys.

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 κ(P)κ(Q)\kappa(P)\kappa(Q) from 101610^{16} to 2⋅10302 \cdot 10^{30}, and both routes to the singular values, the square roots of the Gramians and the product PQPQ, still read every value to five digits or better. A random orthogonal change of state left κ(P)κ(Q)\kappa(P)\kappa(Q) at 101610^{16}, 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 exp⁡(θK)\exp(\theta K) with KK a random skew matrix, so that θ=0\theta = 0 is the aligned model and θ\theta 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 θ\theta is about σn/σ1\sigma_n/\sigma_1, the spread of the singular values, and that the failure then grows as θ2\theta^2 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, 10−410^{-4}, 10−610^{-6} or 10−810^{-8}, with AA built so that P=Q=diag⁡(σ)P = Q = \operatorname{diag}(\sigma) exactly. Five random skew matrices KK are drawn, each scaled so that its Frobenius norm is n/2\sqrt{n/2}, and the matrix exponential V=exp⁡(θK)V = \exp(\theta K) is computed by scaling and squaring a Taylor series, which keeps VV orthogonal to rounding. The rotated model is (VTAV,VTB,CV)(V^{\mathsf T} A V, V^{\mathsf T} B, C V), which has the same Hankel singular values for every θ\theta. Angles run from 10−2010^{-20} 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.

The relative error in the smallest Hankel singular value of a balanced model of order ten, rotated by the exponential of theta times a random skew matrix, against theta, by the product route and the square-root route, singular values from one to ten to the minus eight, median of five rotationsProduct route: 6e-14 at 1e-20, 2e-14 at 1e-18, 3e-15 at 1e-16, 6e-11 at 1e-14, 8e-6 at 1e-12, 1e-3 at 1e-10, 2e-3 at 1e-8, 2e-3 at 1e-6, 1e-3 at 1e-4, 2e-3 at 1e-2, 1e-1 at 1e+0. Square-root route: at most 3e-11 up to a tenth. The product route holds to 1e-15, where the prediction placed the limit at 1e-8.10⁻²⁰10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴110⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²theta, the angle of the rotationrelative error in the smallest valueproduct route, worst of fiveproduct route, mediansquare-root route, medianσ from 1 to 10⁻⁸ · the line is the predicted widthit breaks at the rounding, not the spread
Fig. 1 The relative error in the smallest Hankel singular value against the angle of the rotation, by the product route (median red, worst of five amber) and the square-root route (blue), median of five skew matrices. The vertical line is the predicted limit, the spread of the singular values. The dial sets the spread.

With singular values down to 10−810^{-8}, the product route’s median error is at the rounding level, 3⋅10−153 \cdot 10^{-15} to 6⋅10−146 \cdot 10^{-14}, for every angle up to 10−1610^{-16}. At 10−1510^{-15} it is 2⋅10−122 \cdot 10^{-12}; at 10−1410^{-14}, 6⋅10−116 \cdot 10^{-11}; at 10−1310^{-13}, 2⋅10−92 \cdot 10^{-9}; at 10−1210^{-12}, 8⋅10−68 \cdot 10^{-6}; and by 10−1010^{-10} it is 10−310^{-3}. From there to an angle of a tenth it stays between 4⋅10−44 \cdot 10^{-4} and 3⋅10−33 \cdot 10^{-3}, and at an angle of one it is 0.10.1, the fully rotated error. The square-root route is at the rounding level throughout, under 3⋅10−113 \cdot 10^{-11} even at a tenth.

The predicted limit, θ=10−8\theta = 10^{-8}, 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 product route's median relative error in the smallest Hankel singular value against the angle of the rotation, for balanced models whose singular values run from one to ten to the minus four, six and eightto ten to the minus four: 7e-15 at 1e-20, 1e-14 at 1e-16, 2e-10 at 1e-12, 9e-11 at 1e-8, 3e-11 at 1e-4, 1e-9 at 1e+0; to ten to the minus six: 6e-14 at 1e-20, 3e-15 at 1e-16, 6e-8 at 1e-12, 6e-7 at 1e-8, 5e-7 at 1e-4, 4e-6 at 1e+0; to ten to the minus eight: 6e-14 at 1e-20, 3e-15 at 1e-16, 8e-6 at 1e-12, 2e-3 at 1e-8, 1e-3 at 1e-4, 1e-1 at 1e+0.10⁻²⁰10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴110⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²theta, the angle of the rotationrelative error in the smallest valueσ to 10⁻⁴σ to 10⁻⁶σ to 10⁻⁸median of five rotationsthree spreads, one breaking angle
Fig. 2 The product route’s median relative error in the smallest value against the angle of the rotation, for models whose singular values run from one to 10−410^{-4}, 10−610^{-6} and 10−810^{-8}.

The prediction tied the limit to σn/σ1\sigma_n/\sigma_1, so the three spreads should have broken at 10−410^{-4}, 10−610^{-6} and 10−810^{-8}, four decades apart. They break together. The narrowest spread holds to 10−1410^{-14} and the two wider ones to 10−1510^{-15}; all three have reached their plateau by 10−1210^{-12} or 10−1010^{-10}. What the spread does change is the height of everything after the break: the plateau sits near 10−1010^{-10} for the narrowest spread, 4⋅10−74 \cdot 10^{-7} for the middle one and 1.5⋅10−31.5 \cdot 10^{-3} for the widest, and the fully rotated errors are 10−910^{-9}, 4⋅10−64 \cdot 10^{-6} and 0.10.1.

The angle up to which the product route keeps its accuracy, as predicted from the spread of the Hankel singular values and as measured, for three spreadsto ten to the minus four: predicted 1e-4, measured 1e-14; to ten to the minus six: predicted 1e-6, measured 1e-15; to ten to the minus eight: predicted 1e-8, measured 1e-15.10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴σ to 10⁻⁴predicted limit, the spread1e-4measured: last angle held1e-14σ to 10⁻⁶predicted limit, the spread1e-6measured: last angle held1e-15σ to 10⁻⁸predicted limit, the spread1e-8measured: last angle held1e-15thetameasured: within a hundred of the aligned errorsix to ten decades early
Fig. 3 The angle up to which the product route keeps its accuracy, as predicted from the spread and as measured, the last angle at which the median error is within a hundred times its aligned value, for three spreads.

Predicted and measured, the limits are 10−410^{-4} against 10−1410^{-14}, 10−610^{-6} against 10−1510^{-15}, and 10−810^{-8} against 10−1510^{-15}: seven to ten decades early, and with no trace of the spread in them. An angle of 10−1510^{-15} is the size of a rotation that changes the entries of a matrix of order one by about their own rounding. Below it, VV 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 PQPQ and takes the square roots of its eigenvalues. In aligned coordinates PP and QQ are diagonal, so PQPQ is diagonal and its smallest eigenvalue, σn2=10−16\sigma_n^2 = 10^{-16} on the widest spread, sits in its own corner, computed by operations on numbers of its own size. Rounding errors of relative size uu in each entry of a graded matrix stay attached to their own entries, and the small eigenvalue is perturbed by uu 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 σn\sigma_n carries an error of about uσnu\sigma_n, and the small corner is perturbed in proportion to itself. A rotation by θ\theta is an absolute perturbation: it moves an amount of order θ\theta times the largest entries into every position, the small corner included, whatever its size. Below θ≈u\theta \approx u 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 10−1510^{-15} 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, 2⋅10−122 \cdot 10^{-12} at 10−1510^{-15} 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 10−1010^{-10} and a turn of 10−110^{-1} both leave every entry of PP and QQ carrying a share of the largest values, and the solver’s errors in the smallest eigenvalue of PQPQ 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

The product route's error in the smallest Hankel singular value with no rotation, on the plateau of small rotations, and fully rotated, for three spreads, median of five rotationsto ten to the minus four: aligned 7e-15, plateau 1e-10, fully rotated 1e-9; to ten to the minus six: aligned 6e-14, plateau 4e-7, fully rotated 4e-6; to ten to the minus eight: aligned 6e-14, plateau 1e-3, fully rotated 1e-1.10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴1σ to 10⁻⁴aligned, no rotation7e-15plateau, theta from 10⁻¹⁰ to 0.11e-10fully rotated, theta of one1e-9σ to 10⁻⁶aligned, no rotation6e-14plateau, theta from 10⁻¹⁰ to 0.14e-7fully rotated, theta of one4e-6σ to 10⁻⁸aligned, no rotation6e-14plateau, theta from 10⁻¹⁰ to 0.11e-3fully rotated, theta of one1e-1relative error in the smallest valuethe plateau is most of the damagea turn of 10⁻¹⁰ costs nearly what a full one does
Fig. 4 The product route’s error in the smallest value with no rotation, on the plateau of small rotations from 10−1010^{-10} to a tenth, and fully rotated, for three spreads, median of five rotations.

Read as a fraction of the full damage, in decades, the plateau is most of it. On the widest spread the error goes from 6⋅10−146 \cdot 10^{-14} aligned to 1.5⋅10−31.5 \cdot 10^{-3} on the plateau and 0.10.1 fully rotated: ten and a half decades lost to a turn of 10−1010^{-10}, one and a half more to a full rotation. On the middle spread, 6⋅10−146 \cdot 10^{-14}, 4⋅10−74 \cdot 10^{-7} and 4⋅10−64 \cdot 10^{-6}: six and a half decades to the plateau, one more to the end. On the narrowest, 7⋅10−157 \cdot 10^{-15}, 10−1010^{-10} and 10−910^{-9}. 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 10−1210^{-12} 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 κ(P)\kappa(P) 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 product route's relative error in the smallest Hankel singular value against the angle of the rotation, for each of five random skew matrices, singular values from one to ten to the minus eightskew matrix 1: 6e-14, 3e-15, 3e-7, 2e-3, 7e-4, 1e-1; skew matrix 2: 1e-15, 8e-14, 3e-5, 1e-3, 1e-3, 1e-1; skew matrix 3: 9e-14, 3e-15, 4e-8, 2e-3, 1e-3, 4e-2; skew matrix 4: 8e-14, 6e-14, 2e-5, 6e-4, 5e-4, 5e-1; skew matrix 5: 3e-14, 2e-15, 8e-6, 3e-3, 2e-3, 4e-2 at angles from ten to the minus twenty to one, every fourth decade.10⁻²⁰10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴110⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²theta, the angle of the rotationrelative error in the smallest valueskew matrix 1skew matrix 2skew matrix 3skew matrix 4skew matrix 5σ from 1 to 10⁻⁸every direction breaks it at once
Fig. 5 The product route’s relative error in the smallest value against the angle, for each of five random skew matrices, singular values from one to 10−810^{-8}.

The medians are not hiding a split. Each of the five skew matrices breaks the grading between 10−1610^{-16} and 10−1410^{-14} and reaches a plateau between 4⋅10−54 \cdot 10^{-5} and 3⋅10−33 \cdot 10^{-3} by 10−1010^{-10}, and all five end between 0.040.04 and 0.50.5 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 10−1010^{-10} at every angle up to a tenth on all three spreads, and below 10−1210^{-12} up to 10−210^{-2}. 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 κ(P)κ(Q)\kappa(P)\kappa(Q) is 101610^{16} 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 κ(P)κ(Q)\kappa(P)\kappa(Q) 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 P=QP = Q in the balanced coordinates and AA built to make them so, which is the earlier essay’s construction and a special case. The rotation is exp⁡(θK)\exp(\theta K) 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 10−1610^{-16} and 10−1510^{-15} 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 AA 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 10−1510^{-15} 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 exp⁡(θK)\exp(\theta K) with KK 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 KK coupling only the fifth and sixth coordinates breaks it at an angle near σ6/σ5\sigma_6/\sigma_5 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 10−1410^{-14} in angle of the exact balanced ones on the narrowest spread and no better than 10−1010^{-10} 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.

Named objects

A flat tag is an object no other essay names yet.

Balanced truncationCondition numberGramianHankel singular valuesLyapunov equationMatrix exponential