The stall was in the block
Worth reading first: A ranking that is an eigenvector · An eigenvector that must not change sign.
No subtraction and no waiting put three routes to a Markov chain’s stationary vector side by side on a chain built to be hard: two dense clusters of twelve states, with each state of the first cluster sending a fraction of its probability to the second and each state of the second sending back. The stationary vector gives the clusters a quarter and three quarters of the mass, and the second eigenvalue of the transition matrix is within about of one. The power iteration, which forms only sums of positive numbers and keeps every small entry honest, needs about steps on it — 6,900 at , 69,000 at — and then stalls at a relative error of about . Gaussian elimination is fast and loses the small entries. The Grassmann–Taksar–Heyman elimination, which rearranges Gaussian elimination so that it never subtracts, is fast and holds every entry to at every coupling down to .
The essay ended on the standard cure for the power iteration’s steps. “Iterative aggregation–disaggregation solves a small chain between clusters and the clusters separately, and is the standard cure for the power iteration’s steps. The prediction is that on the two-cluster chain it reaches in a number of steps independent of — under thirty from to — and that its stall point is independent of as well, because the aggregated chain is solved directly.”
The prediction holds for one version of the method and fails for the version usually written down, and the reason it fails is the reason the earlier essay was about.
Aggregation, disaggregation, smoothing
Each step of the method has three parts. Aggregation collapses the chain to one state per cluster: from the current estimate of the stationary vector, each cluster’s states are weighted by their share of that cluster’s mass, and the probability of moving from cluster to cluster is the weighted average of the states’ probabilities of leaving. Here that is a two-by-two chain whose off-diagonal entries are about and . Disaggregation solves that small chain exactly — the earlier essay’s subtraction-free elimination does it to rounding — and rescales each cluster’s entries so that the cluster holds the mass the small chain gives it, keeping the shape within the cluster. Smoothing then improves the shape within each cluster, using the full chain.
The aggregated chain carries everything the coupling does: how mass divides between the clusters, which is exactly the slow mode the power iteration takes steps to resolve. The smoothing has to carry only what happens within a cluster, where the chain mixes fast. That division of labour is the method’s whole idea, and it is the same one the coarse problem is a different problem describes for multigrid: a small problem that sees the slow components, and a cheap iteration for the rest. Three smoothings are measured. One step of the power iteration. Block Gauss–Seidel, which solves each cluster’s own equations for its entries given the latest values of the other’s — the Koury–McAllister–Stewart method as it is usually written — with each block solved by Gaussian elimination with partial pivoting. And the same block Gauss–Seidel with each block solved the way the earlier essay solved the whole chain: without a subtraction.
Every measurement is against the exact stationary vector of the stored chain, computed in rational arithmetic, as before.
The prediction holds, with a power step
With one power step as its smoother, aggregation–disaggregation reaches every entry to in twelve steps at a coupling of a tenth and fourteen at every coupling from to . The power iteration on the same chains needs 60, 680, 6,900 and 69,000 steps from a tenth to , and below that does not get there within 200,000. The step count is independent of the coupling to within two, as predicted, and well under the predicted thirty.
The error falls by about a factor of seven a step — , , , , over the first five, at every coupling from down. That rate is the clusters’ own: a power step within a dense cluster of twelve states with random positive rows damps everything but the cluster’s stationary shape by its second eigenvalue, about a sixth. The coupling has gone from the rate entirely, because the aggregation step puts the mass between the clusters right every time, and the power step never has to move it. The rate is the second eigenvalue measured the power iteration’s rate as the second eigenvalue of the whole chain; here it is the second eigenvalue of a cluster, which is a different and much smaller number.
And the stall point is rounding
The second clause holds too. Power-smoothed aggregation stalls at a worst relative entry error between and at every coupling — the same level as the direct elimination without subtraction, which is as accurate as anything can be on these chains. The prediction’s reason was that the aggregated chain is solved directly; the fuller reason is that every operation in the step is a sum of nonnegative numbers. The aggregated chain’s entries are weighted averages of sums of probabilities; its solution is the subtraction-free elimination’s; the rescaling multiplies; and a power step adds products of positive numbers. Nothing in the step can cancel, so nothing in it can lose relative accuracy in a small entry. The power iteration had the same property and stalled anyway, at — but that stall is a rate effect, as the earlier essay showed: the slow mode’s contraction per step is within rounding of one, so the iteration stops moving before it arrives. Aggregation has no slow mode left to wait for.
The textbook smoother stalls where the power iteration did
Block Gauss–Seidel is the smoother the method’s literature uses, and it is faster. It solves each cluster’s equations for that cluster’s entries exactly, so the within-cluster shape is right after a single step rather than converging to it at a sixth a step. At a coupling of a tenth it reaches in four steps, at and in three.
Then it stops. Its floor is at a tenth, at , at , at — and from there it never reaches : at , at , at and at . Every one of those is within a factor of two of . The power iteration’s stall was . The method that was supposed to cure the power iteration’s dependence on the coupling has cured its step count and inherited its floor — by a different route.
The subtraction is in one block solve
To find where the floor comes from, take one block solve out of the iteration. The second cluster’s equations are , where is the cluster’s own block of the transition matrix and collects the probability flowing in from the other cluster. Put the exact stationary vector into and the exact solution is that cluster’s stationary entries, so the solve can be judged by itself.
By Gaussian elimination with partial pivoting the cluster’s entries come back with a worst relative error of at a coupling of a tenth, at , at and at — the iteration’s floor, from one solve. The block’s rows sum to , so has row sums : it is singular to within the coupling. Its diagonal is formed as , a subtraction of two numbers near one that leaves the difference with an absolute error of — and in a matrix singular to within , an absolute error of in an entry is a relative error of in the solution. It is the cancellation cancellation takes the answer, not a digit described, placed where the conditioning amplifies it.
The block is not ill-conditioned for any reason the chain cares about. Its row sums are the probabilities of leaving the cluster, and those are known exactly: they are entries of the data. Form each diagonal entry as the sum of its row’s other probabilities, in-cluster and out, and eliminate in the Grassmann–Taksar–Heyman manner, so that each update adds magnitudes, each new row sum adds the old ones, and each pivot is a sum. Then nothing is subtracted anywhere, and the same solve returns the cluster’s entries to – at every coupling. The singularity to within is still there; it simply never meets a rounding error it could amplify, because every rounding is relative to a positive quantity of the size of the result.
An eigenvector that must not change sign put the moral in its strongest form: a property guaranteed by a theorem — there, positivity — is preserved numerically only by an algorithm whose arithmetic cannot violate it. Here the property is relative accuracy in entries of very different sizes, and the algorithm that preserves it is the one that never subtracts, applied at whatever scale the solve happens at — the whole chain, as before, or one cluster inside an iteration.
The same blocks, faster as the coupling weakens
With the subtraction removed, block Gauss–Seidel does something the prediction did not ask for. It reaches in four steps at a coupling of a tenth, three at and , two from to , and one at . A weaker coupling makes it faster.
Turn the dial and the reason is visible in the first step. Aggregation puts the mass between the clusters right; block Gauss–Seidel then makes each cluster’s shape exactly right given the other cluster’s current values; and the only error left is how much the other cluster’s error leaks in through the coupling. The leak is proportional to the coupling. A nearly decomposable chain — the case that defeats the power iteration — is the easiest case there is for this method, because the clusters barely talk to each other, and a method that solves each cluster exactly needs them to talk only to fix the error the aggregation leaves, which is already small.
After one step from the uniform vector, both block smoothings leave an error of about a fifth of the coupling — at , at , at — while the power smoothing leaves to at every coupling. The block smoothing that subtracts tracks the other until it meets from below, and then the two lines part: the one falls with , the other rises.
What each route costs to rounding
Steps are not work, and the three smoothers do different amounts of it. Counted from the loops themselves on two clusters of twelve states: aggregation costs about 600 operations a step, summing every probability into its block; a power step adds about 1,200; a block Gauss–Seidel step adds about 3,500, most of it two dense twelve-by-twelve eliminations. So the power smoother’s fourteen steps cost about 25,000 operations at every coupling, and the subtraction-free block smoother’s four, three, two and one steps cost 16,000, 12,000, 8,000 and 4,000 — less than the power smoother from a coupling of a tenth on, and a sixth of it at . The power iteration at , for comparison, does 69,000 steps of about 1,200 operations each: eighty million, three thousand times the power-smoothed aggregation’s work, for an answer that is less accurate.
The textbook smoother costs exactly what its subtraction-free twin costs per step — the same eliminations with the diagonal formed differently — and is just as fast while it works. It stops working at the coupling where reaches the tolerance asked for: for a tolerance of . Below that, no number of its steps reaches the answer, at any price.
A rate that does not notice the size is the multigrid version of the first half of this result: a two-level method whose coarse problem carries the slow components converges at a rate that does not depend on the parameter that makes the problem hard. The same problem on a coarser grid builds that coarse problem out of the fine one, as aggregation builds the two-state chain out of the twenty-four-state one. The second half — that the coarse correction and the smoother can be exact in algebra and still lose the answer in arithmetic — has no counterpart there, because a discretised elliptic operator does not have entries of twelve different magnitudes. A Markov chain’s stationary vector can.
What the cure was curing
The earlier essay had three routes and found that each was paying for something. Gaussian elimination paid in small entries, the power iteration in steps and then in a floor, and the subtraction-free elimination paid nothing, at a cost of one dense factorisation. Aggregation–disaggregation adds a fourth route that can be made to pay nothing too — fourteen cheap steps with a power smoother, or one to four with an exact block smoother — but only if each of its parts keeps the earlier essay’s discipline. The aggregated chain is safe because it is solved without subtraction. The block solves are safe only if they are solved the same way.
That changes what “the standard cure” means. The method’s usual description puts the difficulty of nearly decomposable chains in the number of steps, and its convergence theory is about steps. Its accuracy problem is not in the theory at all, because it is not a property of the method; it is a property of how a linear solve inside it forms one minus a probability. The same mistake, in the same place, would affect any method that solves cluster equations — and every method for nearly decomposable chains does.
A ranking that is an eigenvector and a chain with no stationary vector studied chains whose difficulty was in their structure. This one’s difficulty was in one subtraction, and the measurement that found it was the one the field’s opening essays insisted on: an exact answer to compare against, rather than a residual that would have looked fine.
What two clusters do not show
Every chain here has two clusters of twelve states, one partition known in advance, and dense rows within clusters. With many clusters the aggregated chain is larger and its own solve must also avoid subtraction, which the subtraction-free elimination already does. With a partition that is wrong — states assigned to the cluster they do not belong to — the aggregation no longer captures the slow mode, and the power-smoothed version’s step count would be expected to depend on the coupling again; that is not measured. The block Gauss–Seidel used here sweeps the two clusters once per step in a fixed order. And the claim that the power smoothing’s rate is a cluster’s second eigenvalue is read off the measured ratios, about a seventh a step, and not checked against that eigenvalue directly.
Still open: the wrong partition, and a chain with many clusters
A partition that is wrong. Aggregation needs the partition to hold the slow mode. Move one state of the first cluster into the second and the aggregated chain no longer represents the mass that state carries across the coupling. The prediction with a sign is that with a single misassigned state, power-smoothed aggregation needs more than steps at couplings of and below — losing the independence entirely — while the subtraction-free block smoother, which solves the misassigned state’s equations exactly within its block, still finishes in under ten steps at every coupling.
Many clusters, many couplings. A chain of eight clusters joined by couplings spread over six decades has an aggregated chain that is itself nearly decomposable. The prediction is that subtraction-free aggregation still reaches rounding in under ten steps, that the aggregated eight-state chain solved by ordinary elimination introduces a floor of about over the smallest coupling, and that solving it without subtraction removes that floor — the earlier essay’s lesson needed at every level of the hierarchy, not only at the bottom.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A different equation on every grid — both name exact ground truth, m-matrix
- One number that has to be right — both name catastrophic cancellation, exact ground truth
- The error the method already knows — both name catastrophic cancellation, exact ground truth
- The residual the appended block cannot remove — both name block methods, exact ground truth
- The residual the solution cannot hold — both name catastrophic cancellation, exact ground truth
- The weight the factor met first — both name catastrophic cancellation, exact ground truth
Named objects
A flat tag is an object no other essay names yet.
Block methodsCatastrophic cancellationExact ground truthM-matrixPerron frobeniusPower iterationRelative accuracyStationary distribution