The answer that depends on the machine

The four belongs to the norm

A randomised low-rank approximation's error stops varying between draws about four times as fast, per power pass, as its leading subspace does, and stationarity explains only two of the four. The prediction was that the rest came from room for the truncation inside an oversampled range, so that with no oversampling the factor would be two and at forty columns it would stay near four. Both numbers hold: 1.94 and 1.90 with none, 3.52 and 3.34 at forty. The mechanism does not. Measured in the Frobenius norm, the same error on the same draws settles at twice the subspace's rate at every oversampling from none to forty. The second factor of two belongs to the spectral norm, which counts only the largest of what is left, and which an oversampled range has already pinned.

Worth reading first: The variation that comes with a seed · A bound that holds with probability.

The seed stops mattering first set a randomised low-rank approximation’s two sources of variation against each other and watched them cross. Between draws, the error moved by 31 per cent at no power passes; between partitionings of one draw it moved by 10−1510^{-15}. Each power pass cut the first by a fixed factor and left the second alone, so the lines met, at two passes on a fast decay and sixteen on a slow one. On the way it measured two rates. The spread of the leading subspace between draws fell by the square of the gap, (σ14/σ8)2(\sigma_{14}/\sigma_8)^2, each pass, as the theory of subspace iteration says it should. The spread of the error fell about four times as many decades a pass, at every decay where it could be fitted.

That essay could account for two of the four. The rank-kk error is stationary at the best subspace, so a subspace wrong by an angle θ\theta gives an error wrong by about θ2\theta^2, and an error that is the square of something falling at a given rate falls at twice that rate. The other two it put down, tentatively, to the truncation: the method finds a range of k+pk + p columns and keeps the best kk inside it, and choosing kk directions inside a space that has nearly contained them might add another second-order factor. Then it noticed that at two columns of oversampling the factor was 2.5 rather than four, and signed a prediction: with no oversampling the factor would fall to 2.0, within a tenth, on every decay; and at forty columns it would stay near four, “since by then the truncation has all the room it can use”.

The numbers come out as predicted. The reason does not, and the measurement that shows it costs nothing: a second norm, read on the same draws.

Holding the gap still while the oversampling moves

The rate at which the subspace settles is the gap’s, (σk+p+1/σk)2(\sigma_{k+p+1}/\sigma_k)^2 a pass, and that depends on the oversampling. On one matrix, forty columns of oversampling would make every spread collapse to rounding in a pass or two, leaving nothing to fit. So here the matrix changes with pp. Its singular values are geometric, σi=ri\sigma_i = r^{i}, and the decay rr is chosen for each pp so that the gap falls by a fixed number of decades a pass: r=10−g/(2(p+1))r = 10^{-g/(2(p+1))}, with gg either 0.15 or 0.3. With no oversampling and g=0.3g = 0.3 that is a decay of 0.708, close to the earlier essay’s fastest. At forty columns it is 0.9916, a matrix whose sixty singular values run only from one down to 0.6. Everything else is as before: 120 by 60, rank k=8k = 8, six draws of a Gaussian test matrix, power passes with reorthogonalisation between them, and every draw’s whole trajectory of passes recorded in one run. A Gaussian test matrix is the random projection of the dimension that does not appear, used here not to preserve distances but to find a range, and its draws are the only randomness in the computation.

With 5 columns of oversampling on a matrix whose gap falls 0.3 decades a power pass, the spread over six draws of the leading subspace, of the rank-8 error in the spectral norm and of the same error in the Frobenius norm, against the passes0 passes: subspace 3.0e+0, spectral error 6.6e-2, Frobenius error 1.8e-2; 1 passes: subspace 1.6e+0, spectral error 7.2e-2, Frobenius error 1.5e-2; 2 passes: subspace 8.6e-1, spectral error 1.9e-2, Frobenius error 6.0e-3; 3 passes: subspace 4.2e-1, spectral error 2.4e-3, Frobenius error 1.8e-3; 4 passes: subspace 2.0e-1, spectral error 2.4e-4, Frobenius error 4.6e-4; 8 passes: subspace 9.6e-3, spectral error 9.0e-9, Frobenius error 9.9e-7; 16 passes: subspace 6.3e-5, spectral error 2.1e-15, Frobenius error 3.0e-11; 24 passes: subspace 5.4e-7, spectral error 1.4e-15, Frobenius error 3.3e-15; 32 passes: subspace 4.2e-9, spectral error 3.0e-15, Frobenius error 1.2e-16; 40 passes: subspace 2.4e-11, spectral error 2.1e-15, Frobenius error 1.2e-16. Fitted rates: subspace 0.27, spectral 1.04, Frobenius 0.60 decades a pass.081624324010⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1power passesspread over six drawssubspaceerror, Frobeniuserror, spectraldecay 0.9441 · k = 8 · 120 × 60two norms, two rates
Fig. 1 The spread over six draws of the leading subspace, of the rank-8 error in the spectral norm and of the same error in the Frobenius norm, against the passes. The dial sets the oversampling; the gap falls 0.3 decades a pass at every stop.

The grey line, the subspace, has the same slope at every stop of the dial, which is the construction doing its job: 0.300, 0.295, 0.274 and 0.304 decades a pass at none, two, five and forty columns. Its fitted rate stays within a seventh of 0.3 at every oversampling and both gaps. What changes across the dial is the other two lines, and they change differently.

The prediction’s two numbers

The error's rate of settling over the subspace's, in the spectral and in the Frobenius norm, against the oversampling, at two rates of the gapgap 0.15: spectral 1.90 at 0, 2.22 at 1, 2.28 at 2, 3.54 at 5, 3.83 at 10, 3.10 at 20, 3.34 at 40; Frobenius 1.92 at 0, 1.79 at 1, 1.74 at 2, 2.15 at 5, 1.92 at 10, 1.90 at 20, 1.94 at 40. gap 0.3: spectral 1.94 at 0, 2.41 at 1, 2.42 at 2, 3.78 at 5, 4.09 at 10, 3.17 at 20, 3.52 at 40; Frobenius 1.95 at 0, 1.89 at 1, 1.88 at 2, 2.18 at 5, 1.93 at 10, 1.93 at 20, 1.98 at 40.012345012345oversampling p, on a log₂(p + 1) scale: 0, 1, 2, 5, 10, 20, 40error's rate over the subspace'sspectral, gap 0.15Frobenius, gap 0.15spectral, gap 0.3Frobenius, gap 0.3least squares over the passes clear of roundingthe four is the norm's
Fig. 2 The error’s rate over the subspace’s, in the spectral and in the Frobenius norm, against the oversampling, at two rates of the gap.

In the spectral norm, the one the earlier essay measured, the factor is 1.94 with no oversampling when the gap falls 0.3 decades a pass, and 1.90 when it falls 0.15. The prediction asked for 2.0 within a tenth, and it holds, the second at the edge. At one and two columns the factor is 2.2 to 2.4. It jumps between two and five columns, to 3.5 and 3.8, reaches 3.8 and 4.1 at ten, and then comes back a little, to 3.1 or 3.2 at twenty and 3.3 or 3.5 at forty. The prediction said it would stay near four at forty “rather than going on rising”. It does not go on rising. Whether 3.4 is “near four” is a matter of reading; it is closer to four than to two, and it is below the value at ten on both gaps.

So far this is the earlier essay’s story confirmed: a factor of two from stationarity, and a second factor that appears with oversampling. The Frobenius line is what breaks it. Measured in the Frobenius norm, the same rank-8 approximations, from the same draws and the same passes, have an error whose spread falls at twice the subspace’s rate at every oversampling: 1.95, 1.89, 1.88, 2.18, 1.93, 1.93 and 1.98 at the seven settings, and between 1.74 and 2.15 at the slower gap. The room for the truncation is exactly the same in both norms, since it is the same truncation. If it were the source of the second factor of two, both norms would show it. One does and one does not.

Three rates on one axis

Decades a power pass by which the spread over draws falls, for the subspace, the Frobenius error and the spectral error, against the oversampling, on matrices chosen so that the gap falls 0.3 decades a passp = 0, decay 0.7079: subspace 0.300, Frobenius 0.585, spectral 0.583; p = 1, decay 0.8414: subspace 0.295, Frobenius 0.558, spectral 0.711; p = 2, decay 0.8913: subspace 0.295, Frobenius 0.556, spectral 0.715; p = 5, decay 0.9441: subspace 0.274, Frobenius 0.598, spectral 1.035; p = 10, decay 0.9691: subspace 0.261, Frobenius 0.503, spectral 1.068; p = 20, decay 0.9837: subspace 0.304, Frobenius 0.586, spectral 0.963; p = 40, decay 0.9916: subspace 0.304, Frobenius 0.604, spectral 1.070.01234500.20.40.60.811.21.4oversampling p, on a log₂(p + 1) scale: 0, 1, 2, 5, 10, 20, 40decades a passspectral errorFrobenius errorsubspacethe decay chosen for each ponly the spectral norm moves
Fig. 3 Decades a power pass by which the spread over draws falls, for the subspace, the Frobenius error and the spectral error, against the oversampling, with the gap held at 0.3 decades a pass.

Set out as rates rather than ratios, the picture is simpler still. The subspace falls about 0.3 decades a pass at every oversampling, because that is how the matrices were built. The Frobenius error falls about 0.6, twice that, at every oversampling. The spectral error falls 0.58 with no oversampling, the same as the Frobenius error to two digits, and then climbs: 0.71 at one and two columns, 1.04 at five, 1.07 at ten, about one from there to forty. Only one of the three lines responds to the oversampling, and it is the one that measures the error by its largest singular value alone.

The Frobenius norm of the error is the square root of a sum of squares over every direction the approximation has missed. When the leading subspace is wrong by an angle θ\theta, a component of size about σkθ\sigma_k \theta leaks out of the approximation, and its square joins the sum; the excess over the best is second order in θ\theta, so its rate is twice the subspace’s, whatever else is going on. That is the stationarity argument, and the Frobenius norm obeys it exactly.

The spectral norm of the error is the largest singular value of A−AkA - A_k, and at the best approximation that is σk+1\sigma_{k+1}, belonging to singular direction k+1k + 1. A leaked component of size σkθ\sigma_k\theta raises it only to the extent that it lines up with that direction. With no oversampling the range has exactly kk columns, it does not hold direction k+1k + 1, and the slowest part of the leak is along precisely that direction, so the leak adds to the largest remaining singular value at first order in its own square: rate two. With oversampling, the range holds direction k+1k + 1 too, the method’s A−AkA - A_k keeps it almost exactly, and what leaks from the leading subspace lies nearly at right angles to it. A perturbation at right angles to the top singular direction moves the top singular value only at second order in its size, and its size is already second order in θ\theta. That gives rate four, and it explains why the factor rises with the oversampling only until direction k+1k + 1 is well inside the range, which on these matrices takes a few columns, and then stops.

That account is consistent with every number on the three figures. It is not proved by them. What the measurement does establish is the part the earlier essay got wrong: the second factor of two is not about the truncation. It is about which norm is asking.

Where the oversampling helps first

The spread over six draws before any power pass, of the subspace and of the rank-8 error in both norms, against the oversampling, on matrices whose gap falls 0.3 decades a passp = 0: subspace 1.9e+0, spectral 1.0e+0, Frobenius 6.8e-1; p = 1: subspace 2.2e+0, spectral 4.3e-1, Frobenius 2.1e-1; p = 2: subspace 2.6e+0, spectral 6.9e-1, Frobenius 2.0e-1; p = 5: subspace 3.0e+0, spectral 6.6e-2, Frobenius 1.8e-2; p = 10: subspace 3.2e+0, spectral 6.2e-2, Frobenius 1.2e-2; p = 20: subspace 3.1e+0, spectral 5.6e-2, Frobenius 5.5e-3; p = 40: subspace 2.7e+0, spectral 3.0e-2, Frobenius 2.5e-3.01234510⁻⁴10⁻³10⁻²10⁻¹110¹oversampling p, on a log₂(p + 1) scale: 0, 1, 2, 5, 10, 20, 40spread at no passessubspacespectral errorFrobenius errorthe subspace starts near its largestoversampling lowers the start
Fig. 4 The spread over six draws before any power pass, of the subspace and of the rank-8 error in both norms, against the oversampling, with the gap held at 0.3 decades a pass.

Before any pass, the draws’ leading subspaces differ by 2 to 3 in the Frobenius norm of their projectors’ difference at every oversampling: with a gap this narrow, eight random directions are nowhere near the leading eight, oversampled or not. The errors are another matter. With no oversampling the spectral error varies by its own size between draws; with forty columns its spread is a few hundredths, and the Frobenius error’s is a few thousandths. An oversampled range already holds most of what a rank-8 error can see even when it holds very little of the leading subspace, which is the earlier finding of what a single draw cannot report, at no oversampling a draw’s error 11.6 to 50 times the best and at sixteen columns close to it, seen here from the side of its variation rather than its size.

So oversampling does two separate things to the error’s spread. It lowers where the spread starts, by one and a half decades in the spectral norm and two and a half in the Frobenius norm. And in the spectral norm alone it doubles the rate at which the spread falls. The subspace gets neither: its start is the same and its rate is the gap’s.

When each error is settled

The first checkpoint at which the error's spread over six draws is below 10⁻¹², in the spectral and the Frobenius norm, against the oversampling, at two rates of the gapgap 0.15: spectral 48 at 0, 32 at 1, 32 at 2, 24 at 5, 24 at 10, 24 at 20, 24 at 40; Frobenius 48 at 0, 40 at 1, 40 at 2, 40 at 5, 40 at 10, 40 at 20, 40 at 40. gap 0.3: spectral 24 at 0, 16 at 1, 16 at 2, 12 at 5, 12 at 10, 12 at 20, 12 at 40; Frobenius 24 at 0, 24 at 1, 24 at 2, 20 at 5, 24 at 10, 20 at 20, 20 at 40 passes.01234501020304050oversampling p, on a log₂(p + 1) scale: 0, 1, 2, 5, 10, 20, 40passes to a spread below 10⁻¹²spectral, gap 0.15Frobenius, gap 0.15spectral, gap 0.3Frobenius, gap 0.3checkpoints 0–6, 8, 10, 12, 16, 20, 24, 32, 40, 48the norm decides when it is settled
Fig. 5 The first checkpoint at which the error’s spread over six draws is below 10⁻¹², in the spectral and the Frobenius norm, against the oversampling, at two rates of the gap.

Read as a practical question, how many passes until two draws agree on the error to twelve digits, the two norms part company as soon as there is any oversampling. With none, they settle together, at 24 passes when the gap falls 0.3 decades a pass. With five or more columns the spectral error is settled at 12 passes and the Frobenius error takes 20 to 24. On the slower gap the passes roughly double for both, and the gap between the norms doubles with them.

This matters for the comparison the earlier essay was built on. The crossing it measured, the pass at which the seed’s spread falls to the machine’s, was a crossing for the spectral error. A program that reports the Frobenius error, which is what most error bounds for randomised methods are stated in and what a bound that holds with probability drew as a band, will see its seed’s spread fall half as fast and reach the machine’s level later, by the factor of two in the rates. And a program that reports the subspace, the singular vectors themselves, waits longer again, as the earlier essay already found: the error was settled to rounding at sixteen passes on its slowest decay while the subspaces still differed by 3⋅10−53 \cdot 10^{-5}.

Agreement is not accuracy

One feature of the construction needs saying plainly, because it would be easy to read the oversampled measurements as a recommendation. To hold the gap at 0.3 decades a pass with forty columns of oversampling, the matrix’s singular values have to fall by a factor of 0.9916 each, so the ninth is 0.935 of the first. A rank-8 approximation of such a matrix leaves an error of 0.935 in the spectral norm and most of the matrix in the Frobenius norm. It is a poor approximation, reproduced very precisely. Every spread measured here is a spread between draws, the variation a recorded seed would remove, and says nothing about whether the thing being reproduced is worth having. Randomisation does not create structure made the same point about a flat spectrum: the randomised method’s error there is the optimal one, and the optimal one is useless.

The matrices at no oversampling are the opposite case: a decay of 0.708 makes the ninth singular value 0.06 of the first, and a rank-8 approximation is a good one. Both ends behave the same way in the Frobenius norm and differently in the spectral norm, so the second factor of two is not a property of good approximations or bad ones. It is a property of whether the range has room for the direction just past the rank, which oversampling provides on any spectrum.

That suggests how to read the earlier essay’s crossings, which were all measured at five columns of oversampling. At five columns the spectral error’s factor is 3.5 to 3.8 here, and the earlier essay found 3.6 to 4.2 across its decays, so the two measurements agree where they overlap. A program that ran the same computation with no oversampling would see its spectral error settle at half that rate, its crossing against the machine at roughly twice the passes, and would conclude, correctly for its own setting, that the seed matters for longer than the earlier essay said. The disagreement would be about the oversampling, and the oversampling would be acting through the norm.

Which question a reproducibility policy is answering

The variation that comes with a seed began this line of measurement with a question about policy: whether recording the seed of a randomised computation is enough to reproduce it. The earlier essays answered that the seed matters less with each power pass and the machine not at all, so that past a crossing the seed settles nothing the machine does not. This one adds a qualifier that belongs in the policy’s wording. The crossing is a property of the quantity being compared, and three natural quantities, the spectral error, the Frobenius error and the subspace, settle at rates in the proportion four to two to one once a range is oversampled.

That is why an answer that changes with the seed could find a solve varying by a factor of 1.84 across four seeds while an error norm on the same computation looked steady: a policy that checks an error in the spectral norm is checking the fastest of the three, and it will declare two runs equivalent while the vectors a downstream computation consumes still differ in their fifth digit. The sketch that is not the answer makes the same point from the other direction, keeping the randomness out of the answer altogether by using the sketch only to precondition. A norm is part of the specification of a test, and the measurements here put a number on how much the choice of norm is deciding.

There is also a smaller lesson about the earlier essay’s reasoning. Its guess, that the truncation inside a wider range adds a second-order factor, was reasonable, and it predicted the right numbers at both ends. It was wrong anyway, and the error would not have been found by measuring more oversamplings in the same norm, since the spectral factor does exactly what the guess said it would. It took a second norm, which costs nothing, computed on the same draws. A prediction that comes true is evidence for the numbers it states and only weakly for the reason given with them.

What sixty columns cannot settle

The matrices are small, 120 by 60, with geometric singular values; the oversampled ones have nearly flat spectra by construction, and on a spectrum with a cliff after value kk the second factor of two might appear with less oversampling or not at all. The fitted rates come from least squares over the checkpoints clear of rounding, about eight points at the fast gap and twelve at the slow, and they move by a few per cent with the choice of points; the factor’s second digit should not be read as a property of anything. The account of the spectral factor through direction k+1k + 1 has not been tested directly. That would need the angle between the method’s leaked component and that direction, which was not computed. Six draws estimate a spread coarsely, though the rates are read from its slope over many passes, which is less sensitive.

Still open: the leak’s direction, and a spectrum with a cliff

The angle the leak makes. The account above says the spectral factor is four when the component leaking from the leading subspace is at right angles to singular direction k+1k + 1, and two when it is not. The prediction with a sign is that the cosine of that angle, measured pass by pass, falls at the gap’s rate itself with no oversampling held near one, and with five or more columns falls to below 10−310^{-3} within three passes, while at one and two columns it stays between those for as many passes as the factor stays near 2.4.

A cliff after the kth value. On a spectrum whose singular value number k+1k + 1 is a hundred times smaller than value kk, direction k+1k + 1 is captured as quickly as the leading ones. The prediction is that there the spectral factor is near four already at one column of oversampling, while the Frobenius factor stays at two, so that the oversampling needed to reach the second factor is set by the gap after σk\sigma_k and not by the number of columns.

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.

Matrix normOversamplingPower iterationRandomised SVDRun-to-run variationSeeded generator