Randomised, and the guarantee that changes kind

A rate that belongs to the matrix

Hutchinson's fitted exponent sits near a half on every spectrum measured. Hutch++'s runs from −7.15 to −0.67 across the same four budgets, decided entirely by how fast the singular values fall — so one of the two methods has a convergence rate and the other has a rate per matrix. The ±1 probe's advantage moves the same way, from 1.56× at n = 10 to 1.09× at n = 120.

Worth reading first: Counting what cannot be looked at · The dimension does not appear · A block nobody can call sparse.

Every improvement anybody has made to a trace estimator is the same move, made in two different places.

Hutchinson’s estimator averages zᵀAz over random probes, and the essay that derived its two variance formulas puts them side by side: one probe of ±1 entries has variance 2(‖A‖_F² − Σa_ii²), and one standard normal probe has variance 2‖A‖_F². The difference between them is an accounting. For a ±1 vector every z_i² is one, so the diagonal term Σ a_ii z_i² is not a random variable at all — it comes back exactly, once, and the sampling is over what is left.

Hutch++ does the same thing to a different part of the matrix. A third of the budget goes into a sketch, whose range is orthonormalised into Q; tr(QᵀAQ) is computed exactly at the cost of another third; and the remaining third probes (I − QQᵀ)A(I − QQᵀ). The exact head accounts for whatever share of ‖A‖_F² the leading directions hold, and the probes see only the tail.

So both improvements have one shape — account exactly for part of the squared Frobenius norm before probing, and probe only the remainder — and in both cases what the improvement is worth is the share of that norm the accounting managed to remove. That share is a number belonging to the matrix. It is not in the method, it is not in the code, and it does not appear in either method’s name.

Which makes the headline rate a strange thing to quote. Hutchinson’s exponent is genuinely a property of the estimator: nothing about the choice of random variable changes it, and the site’s own fit over five budgets returns −0.500. Hutch++'s exponent is not a number until a matrix is named, and across five matrices of one size, from one implementation, over one budget range, it reads −7.15, −4.09, −2.55, −1.03 and −0.67, the last of those on a spectrum with no decay in it at all.

Two trace estimators against their budget, on a 80×80 matrix whose spectrum decays at 0.85Two curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.54 and Hutch++'s is -2.55. The deflation changes the exponent rather than the constant, which is what makes it worth two thirds of the budget.10¹10²10⁻⁴10⁻³10⁻²10⁻¹1products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.54fitted rate, Hutch++-2.5error at 96, Hutchinson0.024error at 96, Hutch++4.4·10⁻⁴both axes count products with Aso the sketch is paid for in the picture
Fig. 1 Relative error against products with A, as medians over 32 seeds on an 80×80 matrix whose singular values fall by a factor of 0.85 each step. Hutchinson’s fitted exponent is −0.538 and Hutch++'s is −2.547; at 96 products the two errors are 0.0241 and 4.41·10⁻⁴. Drag the decay.

The exponent is a reading of the spectrum

The comparison is at equal products with A, which is the only unit that means anything here, because the whole premise is an operator with no entries — a subroutine that returns Av and nothing else. A comparison in flops would assume a matrix, and a comparison at equal sample counts would let Hutch++ take three times the information and report the difference as a win. The same accounting is why a hierarchical representation built from products alone is priced in applications rather than in arithmetic.

With that fixed, the only thing left free is the matrix. Hold the size at 80, hold the seeds at 32, hold the budgets at 12, 24, 48 and 96, and move the decay.

Two trace estimators against their budget, on a 80×80 matrix whose spectrum decays at 0.6Two curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.28 and Hutch++'s is -7.15. The deflation changes the exponent rather than the constant, which is what makes it worth two thirds of the budget.10¹10²10⁻⁹10⁻⁷10⁻⁵10⁻³10⁻¹products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.28fitted rate, Hutch++-7.2error at 96, Hutchinson0.057error at 96, Hutch++1.7·10⁻⁸both axes count products with Aso the sketch is paid for in the picture
Fig. 2 The same 80×80 comparison with the singular values falling by 0.6 a step. Hutchinson’s fitted exponent is −0.280 and Hutch++'s is −7.154, and at 96 products the errors are 0.0571 and 1.71·10⁻⁸.

Nothing about the second run is a different algorithm. It is the same implementation, the same seeds, the same four budgets, and a matrix whose singular values fall a little faster. The exponent moved from −2.547 to −7.154.

Two trace estimators against their budget, on a 80×80 matrix whose spectrum decays at 0.75Two curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.36 and Hutch++'s is -4.09. The deflation changes the exponent rather than the constant, which is what makes it worth two thirds of the budget.10¹10²10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹1products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.36fitted rate, Hutch++-4.1error at 96, Hutchinson0.046error at 96, Hutch++2·10⁻⁵both axes count products with Aso the sketch is paid for in the picture
Fig. 3 Between the two: a decay of 0.75, where Hutch++'s fitted exponent is −4.091 and its error at 96 products is 2.03·10⁻⁵. Hutchinson’s exponent reads −0.359 on the same matrix.

Three matrices, three exponents — −7.154, −4.091, −2.547 — and on the same three matrices Hutchinson reads −0.280, −0.359 and −0.538. The second sequence is not a trend. It is a fit through four medians of 32 heavy-tailed draws, which is worth about a quarter of an exponent, and every value in it is a half to within that. The first sequence moves by a factor of nearly three and is not noise at all.

At 96 products with A those three matrices separate the two methods by factors of 3.3 million, 2,260 and 55. On the fastest-decaying one, matching Hutch++'s answer with plain Hutchinson at a Monte Carlo rate would take about 10¹⁵ products with A — a number with no operational meaning, offered here only as the size of the gap the spectrum opened.

What the deflation leaves can be computed in advance

The claim that the matrix decides it is worth more than a correlation, and the mechanism is available in closed form. Hutch++ at a budget of 96 sets its sketch width to 32 and probes with the 32 products left over. If the sketch found the exact leading 32-dimensional invariant subspace — which a random sketch does not, and this is the idealisation — the probes would face a matrix whose squared Frobenius norm is the tail of the spectrum past the thirty-second value.

That tail is a property of the spectrum alone, and its square root is what multiplies the error. Computing it on the same five matrices, beside the median relative error actually measured:

decay tail share of ‖A‖_F² left after an exact deflation predicted median error measured
0.60 6.33·10⁻¹⁵ 6.44·10⁻⁹ 1.71·10⁻⁸
0.75 1.01·10⁻⁸ 6.02·10⁻⁶ 2.03·10⁻⁵
0.85 3.04·10⁻⁵ 2.40·10⁻⁴ 4.41·10⁻⁴
0.90 1.18·10⁻³ 1.15·10⁻³ 2.19·10⁻³
0.95 3.73·10⁻² 4.01·10⁻³ 5.46·10⁻³

The prediction is made from the singular values and nothing else, and it tracks the measurement across nearly seven orders of magnitude, always within a factor of 3.4. It is a genuinely independent route to the same number, and it is the two-routes habit applied to a convergence rate rather than to a quantity.

It also understates every time, which is the informative half. The gap is 2.65×, 3.37×, 1.84×, 1.91× and 1.36× down the column, largest exactly where the ideal deflation is most nearly perfect. The reason is that the sketch is random: its range is close to the leading subspace and is not it, and the residue of that difference is the whole of what the probes see once the true tail has gone to 10⁻¹⁵. A guarantee stated over the draw rather than for every draw is the shape a bound that holds with probability is about, and this column is where its slack shows up as a factor of three.

It is worth being explicit about which direction would have falsified the accounting. The predicted column is what the probes would face if the sketch had found the exact leading subspace, and a random sketch cannot do better than exact. A measurement sitting below its prediction would therefore mean that the deflated remainder is not what sets the error — that some other quantity is doing the work and the agreement is a coincidence of scale. Five matrices spanning seven orders, and every one of them lands above its own prediction and within a factor of 3.4 of it.

Doing the same arithmetic for plain Hutchinson gives 4.68·10⁻², 3.47·10⁻², 2.52·10⁻², 1.93·10⁻² and 1.14·10⁻² against measurements of 5.71·10⁻², 4.59·10⁻², 2.41·10⁻², 1.69·10⁻² and 8.64·10⁻³ — ratios of 1.22, 1.32, 0.96, 0.88 and 0.76, straddling one rather than sitting above it. Hutchinson’s variance formula is exact and has no draw to be lucky in.

Two trace estimators against their budget, on a 80×80 matrix whose spectrum decays at 0.95Two curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.50 and Hutch++'s is -1.03. The deflation changes the exponent rather than the constant, which is what makes it worth two thirds of the budget.10¹10²10⁻³10⁻²10⁻¹1products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.5fitted rate, Hutch++-1error at 96, Hutchinson0.0086error at 96, Hutch++0.0055both axes count products with Aso the sketch is paid for in the picture
Fig. 4 The borderline case: a decay of 0.95, where the exact deflation still leaves 3.7% of the squared Frobenius norm. Hutch++'s fitted exponent is −1.028 against Hutchinson’s −0.501, and at 96 products the two errors are 0.00546 and 0.00864 — a factor of 1.58 rather than of thousands.

And the size is not the parameter

An exponent that moves by a factor of three invites the suspicion that it is really tracking something else, and the obvious candidate is the dimension. It is not.

Holding the decay at 0.85 and running the size at 40, 80 and 160 moves Hutch++'s fitted exponent to −2.566, −2.547 and −2.606. Four times the matrix, and the third decimal place. Hutchinson on the same three reads −0.441, −0.538 and −0.611, which spans more than Hutch++ does and is entirely the fitting noise already described.

That is the honest form of the claim. The exponent is a function of the spectrum’s shape and not of its length, because the deflation depth at a given budget is a fixed number of directions and what those directions hold is decided by how fast the values fall, not by how many of them there are. At a budget of 96 the deflation removes 32 directions whether the matrix is 40 across or 160, and a geometric spectrum’s tail past its thirty-second value is the same fraction of the whole in each case, because the values beyond it are already negligible against the ones before it. A quantity that genuinely refuses to carry the dimension is the subject of the dimension does not appear, and it is worth keeping the two apart: there the independence is the theorem, and here it is a measurement that could have come out otherwise and did not.

Where the improvement is a cost

The last stop of the sweep is the matrix with no decay at all — half its eigenvalues at +1 and the rest at −1, so the trace is small beside the Frobenius norm and there is genuinely something to estimate.

Two trace estimators against their budget, on a 200×200 matrix whose spectrum does not decayTwo curves of relative error against the number of products with A, both axes logarithmic, as medians over 32 seeds. Hutchinson's fitted exponent is -0.62 and Hutch++'s is -0.49. With no decay there is no dominant subspace to project out, so the two exponents are the same and the third of the budget Hutch++ spends on a sketch is simply lost.10¹10²10⁻²10⁻¹1products with Arelative errorHutchinsonHutch++measured at equal costfitted rate, Hutchinson-0.62fitted rate, Hutch++-0.49error at 96, Hutchinson0.031error at 96, Hutch++0.062both axes count products with Aso the sketch is paid for in the picture
Fig. 5 A 200×200 matrix whose singular values are all equal. Hutchinson’s fitted exponent is −0.615 and Hutch++'s is −0.495 — the same number to within the fit — and at 96 products the errors are 0.0307 and 0.0621, with the deflating method behind at every budget drawn.

The leading 32 directions of a flat 200×200 spectrum hold 32/200 of the squared norm and no more, so the deflation removes 16% of the variance for two thirds of the budget. What is left is a method running 32 probes where the other ran 96, on 84% of the same matrix, and the measured penalty is a factor of 2.02.

The same last stop of the sweep at n = 80 reads −0.667 for Hutch++ against −0.316 for Hutchinson, and the figure above, at n = 200, reads −0.495 against −0.615. The two orderings are opposite, which is exactly what a difference smaller than the fit noise looks like and is the strongest available statement that the deflation has stopped changing the exponent. On the decaying spectra the gap was 2.0, 3.7 and 6.9.

Randomisation does not create structure made this argument for the randomised low-rank approximation and the collection has now reached it from several directions, including the sketch that is spent, where a second application of the same random map returns the zero matrix. What this sweep adds is the range. From 1.71·10⁻⁸ at a decay of 0.6 to 6.21·10⁻² on the flat spectrum above, Hutch++'s error at 96 products moves by a factor of 3.6·10⁶ — six and a half orders — while Hutchinson’s across the same matrices moves by a factor of 6.6 — and the 6.6 is itself a reading of ‖A‖_F / |tr(A)|, which falls from 0.500 to 0.163 as the decay steepens.

So the flat spectrum is not a special case; it is one end of a continuum, and the continuum is six and a half orders long. A statement of the form “Hutch++ converges at one over the budget” is true somewhere on it.

The exponent is not an exponent

There is a sharper objection to quoting any of these numbers, and it applies to the good ones as well as the bad.

A geometric spectrum’s tail past k values falls like decay^(2k), and Hutch++'s deflation depth k is a third of the budget. So the error falls like decay^(budget/3)exponentially in the budget, not as a power of it. Drawing that on logarithmic axes and fitting a straight line gives a slope, and the slope is a description of the window rather than of the method.

Measured on the decay-0.6 matrix, over three budget windows of the same shape:

budgets            fitted exponent
6, 12, 24, 48          −3.856
12, 24, 48, 96         −7.154
24, 48, 96, 192       −13.315

One matrix, one implementation, one set of seeds, and the exponent nearly quadruples by sliding the window one doubling at a time. At 192 products the median error is 2.63·10⁻¹⁵, which against a trace of 200 is an absolute error of 5.3·10⁻¹³ on a matrix whose Frobenius norm is 100 — about two dozen units in the last place of that norm. The deflated remainder has gone below what the arithmetic can represent, and any further fit measures rounding.

That is where this figure’s own axis stops meaning what it appears to mean, and it is the limit to carry away from the whole comparison. Hutchinson’s −1/2 extrapolates and Hutch++'s −7.15 does not. One is the exponent of a genuine power law over any budget range at all; the other is a local slope on a curve that is not a power law, and using it to predict the cost of two more digits gives an answer that is wrong in the direction of optimism. The distinction between a rate that is a constant and a rate that is an exponent is one this collection has drawn before, in a rate that does not notice the size; this is the third case, where the fitted number is neither.

Two questions come apart here that a single quoted exponent runs together. Where the two curves cross is a separate reading, it is a function of the same decay, and it moves by an order across decays that look similar — which is why the recommendation a caller can act on is stated in products with A rather than in exponents. How steeply the better curve falls once it is ahead is what an exponent describes, and the measurement above says that number is local. A method selection needs the first and the literature quotes the second.

The probe is the same claim, on the other axis

The other half of the accounting behaves the same way, and it is cheaper to see because it has a closed form with no sampling in it at all.

The ±1 probe’s advantage over the normal probe is exactly √(1 − Σa_ii²/‖A‖_F²) — the square root of the share of the squared Frobenius norm that is not on the diagonal, which is the part the ±1 probe still has to sample. The formula contains no budget, no dimension and no algorithm. It is a ratio of two quantities read off the matrix.

160 single-probe estimates of one 120×120 trace, from the two standard probe distributionsTwo clouds of points, each one estimate of the trace from one random vector. Both are centred on the true value of 644.26 — the estimator has no bias at all — and the dashed bands are the standard deviation each distribution is known in closed form to have: 198.6 for the ±1 probe and 217.1 for the normal one. Measured over these draws they come out 227.1 and 205.3.0275481108135243534.65826.31117.951409.61701.25drawzᵀAz from one probenormal±1two routes to one spreadthe trace644±1 spread, predicted199±1 spread, measured227normal ÷ ±11.1no bias in either cloudand one of them is narrower for a reason
Fig. 6 160 single-probe estimates of one 120×120 trace from each distribution, with the standard deviation each is known in closed form to have drawn through it. The ±1 spread is 198.6 predicted and 227.1 measured; the normal one is 217.1 predicted and 205.3 measured, on a trace of 644.26. The ratio of the two closed forms is 0.9150.

At that size the tighter probe is worth 1.09× in error and 1.20× in variance, which on a method whose error falls like the square root of the budget means the looser probe needs 20% more probes for the same answer. The choice is still free and it is close to worthless.

The same family at a twentieth of the dimension is a different report.

160 single-probe estimates of one 20×20 trace, from the two standard probe distributionsTwo clouds of points, each one estimate of the trace from one random vector. Both are centred on the true value of 71.955 — the estimator has no bias at all — and the dashed bands are the standard deviation each distribution is known in closed form to have: 26.87 for the ±1 probe and 35.73 for the normal one. Measured over these draws they come out 25.01 and 35.02754811081351450.021586.0429122.064158.086194.107drawzᵀAz from one probenormal±1two routes to one spreadthe trace72±1 spread, predicted27±1 spread, measured25normal ÷ ±11.3no bias in either cloudand one of them is narrower for a reason
Fig. 7 The same construction at 20×20, trace 71.955. The ±1 spread is 26.87 predicted and 25.01 measured; the normal one is 35.73 predicted and 35 measured. The ratio is 0.7520.

Sweeping the size across the generator’s five stops, the ratio reads 0.6399, 0.7520, 0.8213, 0.8864 and 0.9150 at n = 10, 20, 40, 80 and 120 — worth 1.56× at the small end and 1.09× at the large one, or 2.44× and 1.20× as variances. The quantity moving underneath is the diagonal’s share of the squared Frobenius norm, which falls from 0.5905 to 0.1629 across the same five sizes, because this family’s singular values fall like 1/j while its dimension grows.

That is the point the two halves of this essay share. The often-quoted figure for the ±1 probe is that it halves the variance; the value measured here runs from a factor of 2.44 down to 1.20, and the extreme the derivation actually permits is a diagonal matrix, where the share is 1 and the ±1 probe is exact from a single draw. A ratio that runs from 1 to infinity has no representative value, and a matrix’s diagonal share is not something a caller who reaches for a trace estimator can see, since the reason for reaching is that the entries do not exist.

Both endpoints are reachable and neither is contrived. A diagonal share of 1 is any diagonal matrix, on which the ±1 probe returns the trace exactly from a single draw, with a variance the closed form gives as exactly zero. A share of 0 is any matrix with a zero diagonal — an adjacency matrix, for instance — where the two distributions have identical variance and the choice of probe is genuinely a detail. The advantage is bounded below by nothing and above by nothing, and what decides it is the one object the method was chosen for not having.

What follows for anything that quotes a rate

A rate quoted without a matrix is a rate quoted about somebody else’s matrix. That is the whole of it, and the practical consequences are specific.

For a method selection, the sketch is the measurement. Hutch++ computes the singular values of its own sketch on the way to Q and discards them, and those values are the cheapest available reading of the decay that decides whether the deflation was worth its two thirds. Every randomised method here computes the evidence for whether it was the right method and reports none of it, which is the same gap that makes an answer that changes with the seed a property worth reporting rather than a nuisance to be averaged away.

For an eigenvalue count, the matrix is chosen rather than given. Counting what is inside a circle estimates the trace of a spectral projector, whose spectrum is a step: near one inside the contour and near zero outside. A step has a dominant subspace exactly the size of the step, which is the best case in the table above and is known in advance from what the operator is.

For a parameter-choice rule, the estimate is inside an argmin. The trace that choosing without knowing needs is the denominator of generalised cross-validation, and the step that stops mattering found the same quantity bounded by the Krylov dimension rather than by the size. The influence matrix’s spectrum is a step as well, so a deflating estimator is the right one there — and the reason is a fact about regularisation, not a fact about the estimator.

And for anything a sketch is asked to decide, the share is the whole answer. The half of a problem a sketch may touch draws the boundary by asking what a multiplicative guarantee can say about a quantity that is zero. The boundary here is the same one seen from the other side: a multiplicative guarantee on a probed remainder says nothing until the remainder is named, and naming it requires the spectrum that was the reason for not forming the matrix.

What is worth carrying

One estimator here has a convergence rate and the other has a rate per matrix. Hutchinson’s −1/2 is stable across every spectrum measured and across a factor of four in the dimension; Hutch++'s runs from −0.67 to −7.15 on five matrices of one size, and the deciding parameter is the share of the squared Frobenius norm the leading directions hold.

The share can be computed from the spectrum and predicts the measurement, within a factor of 3.4 over nearly seven orders, always low, and the shortfall is the price of a random sketch rather than an error in the accounting.

A fitted exponent on a geometric decay is a description of the budget window. Sliding it one doubling took −7.154 to −13.315 on one matrix, so the number is a report and not a prediction.

And the ±1 probe’s advantage is the same quantity read on the diagonal, running from 2.44× to 1.20× in variance across five sizes of one family. Both improvements account exactly for part of ‖A‖_F² and probe the rest, both are worth the square root of what they removed, and how much that is was decided before either method was chosen.

Named objects

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

DeflationFrobenius normHutchinson's estimatorMatrix-freeProbabilistic boundsRandom projectionSpectral decayTrace estimation