Where to put the poles of a rational function
Worth reading first: Why a Gramian can be truncated at all · The bound that is known in advance.
Why a Gramian can be truncated at all reduces the decay of a Gramian to a question about rational approximation and leaves the question itself unanswered. This essay answers it, and the answer turns out to be the same one three different problems in this collection arrive at from three directions.
The question is: given k poles to place, where do they go?
The objective
The ADI iteration’s error after k steps is max|r| over the spectrum of −A, squared, where
r(λ) = ∏ⱼ (λ − pⱼ)/(λ + pⱼ)
and the pⱼ are the shifts. Every factor is a number that is zero at its own shift and approaches one far from it, so r is small near the shifts and large between them. The whole design question is how to space the zeros so that the largest value between any two of them is as small as possible.
That objective has a name in approximation theory — it is the Zolotarev problem — and it has a classical answer. What is worth measuring rather than citing is how much the answer is worth against the choice a working programmer makes without one.
The two choices
The spectrum here runs from 9.9 to 3855, a ratio of 389. Six shifts:
Geometric. pⱼ = a(b/a)^((2j+1)/2k), spaced evenly on a logarithmic scale. The resulting curve touches zero six times and rises to the same height between every consecutive pair — it equioscillates, which is the signature of an optimum. Maximum: 5.2·10⁻².
Even. pⱼ spread linearly across [a, b]. On a spectrum spanning three decades, every one of the six lands in the top decade: the smallest is at 331, and there are no shifts at all below it while the spectrum continues down to 9.9. The curve is small at the top and essentially one at the bottom. Maximum: 8.5·10⁻¹.
Sixteen times worse, in a quantity the iteration pays squared. Measured on the iteration itself after eight steps: 2.0·10⁻³ against 5.9·10⁻¹, a factor of 290, for the same eight solves and the same recurrence, with one line different.
Why even spacing fails, precisely
It is not that the shifts are in the wrong place on average. It is that the objective is a maximum and the spectrum is logarithmic.
The factor |(λ − p)/(λ + p)| for λ far below every p is close to one, and it stays close to one no matter how many shifts are added above. So the value of r at the bottom of the spectrum is decided entirely by whether any shift is near the bottom, and adding shifts to the top decade of a spectrum spanning three does nothing about it. Adding a seventh, eighth and ninth evenly spaced shift moves the maximum from 0.85 to 0.83.
The eigenvalues down there are not incidental. They are the slow modes, and in a Gramian they are exactly the directions with the largest energy — the ones the accuracy that is thrown away would call the part of the answer worth computing accurately — the ones a low-rank factor most needs to represent. So the failure is not a small loss at an unimportant end of the spectrum; it is a total loss at the important end.
This is the same reading coarsening in one direction only gives to an anisotropic multigrid smoother, and the same one a direction the smoother cannot see gives to the error it leaves behind: a method that treats a spectrum uniformly when the spectrum is not uniform leaves the part it never addressed, and the part it never addressed is the part that matters.
Whether geometric is optimal, measured rather than cited
Geometric spacing is not exactly the Zolotarev optimum, which is expressible through elliptic functions. The gap is worth measuring, and the measurement has to be set up carefully.
A descent started at the geometric shifts that finds no improvement proves nothing — it is indistinguishable from a descent that does not work. So the search starts from the evenly spaced shifts, which are known to be bad, and is allowed to walk.
It walks them from 8.9·10⁻¹ to 1.9·10⁻¹, which is a real improvement and establishes that the descent works. And it lands beside the geometric value of 1.2·10⁻¹ rather than beating it — within a factor of 1.6.
Two conclusions. A code without an elliptic-function library loses about sixty per cent by using geometric shifts, which against a factor of 290 for getting the spacing wrong is nothing. And the objective has a wide flat optimum: many sets of shifts are within a factor of two of the best, which is why the spread is the decision and the exact placement is not.
That is a reassuring shape and it is not universal. It is worth contrasting with four knobs and one floor, where four different rules for a regularisation parameter also land within a few per cent of each other — and where the reason is the opposite one. There the rules agree because none of them knows anything; here they agree because the objective is genuinely flat near its optimum, which is a property of the problem rather than of the rules.
The same question, three times in one phase
The reason this essay exists rather than being a paragraph in the previous one is that the identical question and the identical answer arrive three times across this collection, from three directions that share no machinery.
ADI shifts, above: poles of a rational function that has to be small on the spectrum of −A. The answer is geometric clustering across the interval.
The decay of a Gramian’s spectrum, which is the previous essay: the bound is the value of the best such rational function, so the same optimisation appears as an explanation rather than as an algorithm.
Rational approximation of a square root, which is an error committed before the arithmetic in the polynomial field: a nonlinear eigenvalue problem whose function has a branch cut, approximated by a rational function whose poles have to go on the cut. The answer there is geometric clustering towards the branch point, and the measurement is that an evenly spaced set of poles is orders worse on a target set that stands clear of the singularity.
Three problems, one answer, and the answer is always the same sentence: cluster geometrically towards wherever the function is difficult. For ADI the difficulty is the small end of the spectrum, where the factors approach one. For the square root it is the branch point. In both cases a linear spacing puts everything where the function is easy.
That recurrence is worth carrying as a prior. On meeting a construction that asks for a set of poles or shifts or interpolation points, the first guess should be geometric towards the hard end, and the second should be to find out where the hard end is.
The limit of the clustering, which is a real one
There is a place the rule stops, and the polynomial field’s version of this problem is where it is visible.
Clustering the poles closer to the singularity than the target set reaches buys nothing and costs conditioning. Two poles nearer the branch cut than any point where the function is being fitted give two basis functions the fit cannot tell apart, and the least-squares problem that produces the approximation becomes ill conditioned. The measurement in that field: clustering wins by a factor of two to nine where there is room, and by nothing at all on a target set that touches the singularity.
Here the equivalent limit is the interval itself. Shifts outside [a, b] are wasted, and shifts clustered below a are approximating a part of the spectrum that is not there — the same waste a parameter that counts steps measures for an iteration continued past the point where its own quantity has stopped moving. The geometric rule has the interval built into it, which is why it does not run into the limit — but it is worth knowing that the rule is clustering relative to the region of interest rather than clustering towards a point, and the two coincide only when the region reaches the point.
Where the shifts come from when the ends are not known
The rule needs a and b, and on a large problem neither is available exactly. That is not a problem and it is worth saying why, because “estimate the extreme eigenvalues first” sounds like it might be as expensive as the thing it precedes.
It is not. b — the largest — is what a handful of power-method steps returns, and the estimate can be loose in the safe direction: taking b too large adds shifts above the spectrum, which are wasted but harmless. a — the smallest — is harder, and is what an inverse power method or a few Lanczos steps gives. Taking a too small is the dangerous direction, since it spends shifts on a region that is not there and leaves the actual small end thinly covered.
So the practical rule is asymmetric: overestimate b freely and underestimate a cautiously. A code that has no estimate at all can bracket with ‖A‖ and ‖A⁻¹‖⁻¹ — the first from a norm and the second from one solve — which gives an interval containing the spectrum and possibly wider than it. A wider interval means a slower rate and a correct answer, which is the right way for an estimate to fail.
What the rule cannot survive is a spectrum that is not an interval. If A has complex eigenvalues the region is two-dimensional and the shifts have to be chosen in the plane; the Zolotarev problem over a region is a genuinely harder object, the geometric rule has no direct analogue, and the practical answer is a heuristic rather than a theorem. That case is where this field’s remaining difficulty lives and it is worth marking rather than glossing.
What the equioscillation certifies
The signature of the geometric choice on the figure is that every hump between consecutive zeros reaches the same height, and that is not decoration — it is the certificate.
If one hump were lower than the others, the shifts could be moved to trade a little of it for a reduction of the highest, and the maximum would fall. So an optimum has to equioscillate, and any set of shifts whose curve has one hump noticeably below the rest is not optimal and can be improved by inspection. That is a check anyone can run on a figure without knowing anything about elliptic functions.
It is also why the search from the evenly spaced shifts converges to something that looks geometric. The descent is doing, numerically and slowly, what the equioscillation condition does in closed form: pushing shifts towards regions where the curve is high until every region is equally high. Watching it land within a factor of 1.6 of the geometric answer is the strongest evidence available here that the geometric rule is approximating the right object rather than merely being a respectable convention.
The same certificate appears in the best approximation there is in a different guise — there the optimality of a truncated SVD is certified by what the residual looks like rather than by a search — and the habit generalises: an optimum usually leaves a visible signature in the object it produces, and finding out what that signature is worth more than any amount of trust in the derivation.
What it costs to get this right
Nothing. That is the part worth stating flatly.
The shifts are k numbers computed from two: the ends of the spectrum of −A, which can be estimated by a few steps of a power method and its inverse. The iteration is identical either way, the number of solves is identical, and the difference in the answer is a factor of 290.
That is the same accounting the scaling that buys ten orders does for a change of units in the polynomial field: two lines, computed from norms already in hand, worth more than every subsequent algorithmic choice put together. This site keeps finding that the free decisions dominate the expensive ones, and this is the clearest instance of it in this field.
The rule, and the three places it has been checked
Stated once, plainly, since the whole essay is an argument for one sentence.
Given k poles to place so that a rational function is uniformly small over a region, space them geometrically across the region, clustered towards wherever the function being approximated is difficult. For an ADI iteration the region is the spectrum of −A and the difficulty is at the small end; for a rational approximation of a square root it is a target interval and the difficulty is the branch point; for the bound on a Gramian’s decay it is the same interval as the first and the statement is an explanation rather than an algorithm.
The three have been checked separately and they agree. The evenly spaced alternative is sixteen times worse in the first, a factor of two to nine worse in the second where there is room to cluster, and produces the same bound in the third because the third is the optimum rather than a choice.
What is worth noticing about the agreement is that the three problems share no code. The ADI shifts and the Gramian bound share a rational function; the square-root approximation shares neither the function nor the algorithm nor the field. That the same rule wins in all three is evidence that the rule is about rational approximation rather than about any of the settings it appears in — which is why it is stated here as a rule rather than as a property of an iteration.
The corollary is a working habit. On meeting a construction that takes a set of poles, shifts, or interpolation points as an input, assume geometric clustering until measured otherwise, and spend the effort on finding out where the hard end is rather than on refining the spacing. On the evidence here the first decision is worth two orders and the second is worth sixty per cent.
At other settings
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.
- The product nobody had to form — both name condition number, gramian, lyapunov equation
- The problem the solver was actually given — both name condition number, rational approximation
- Two approximants and one matrix size — both name condition number, rational approximation
Named objects
A flat tag is an object no other essay names yet.
ADI iterationCondition numberEquioscillationGramianLow-rank approximationLyapunov equationRational approximationShift selectionZolotarev number