Randomised, and the guarantee that changes kind

The leverage that did not move

A one-nonzero sketch fails on a matrix whose leading directions sit on ten particular columns, and coherence — the largest column leverage — is the statistic that names the failure. Turn the directions away from their columns by a hundredth of a radian and the sketch's median error falls from 3.47 to 1.23 times σ₁₁ while the coherence stays at 6.40 to three figures. Giving the heaviest columns buckets of their own repairs the rest, but only when it reserves more buckets than the rank: ten reserved leave 1.16, sixteen reach 0.36, below the Gaussian's 0.41.

Worth reading first: A bound that holds with probability · The dimension does not appear.

A sketch that finds the columns it can see compared four ways of drawing the random matrix Ω that a randomised range finder multiplies A by, and found that one of them fails on one kind of matrix. The cheapest sketch puts a single signed nonzero in each row of Ω, so each column of A is sent, whole, to one of the l buckets that become the columns of AΩ. On a matrix whose important right singular directions are spread over all its columns, that sketch found the range as well as a dense Gaussian one. On a matrix whose ten leading right singular vectors sit on ten particular columns it was eight times worse, because two important columns hashed to the same bucket arrive as one direction, and no other bucket holds either of them.

Those were the two ends of a line. Every matrix a user meets lies somewhere between them, and that essay closed with two unmeasured questions: how coherent must an input be before three nonzeros a row stop being optional, and would a sketch that gave the heaviest columns buckets of their own keep the cheap sketch’s cost while losing its failure.

Both have answers, and neither is the one the vocabulary suggests. The word for the property that breaks the cheap sketch is coherence, and coherence is measured by the largest column leverage. On the matrices here the failure fades by two thirds while that number does not change in its third figure. And the obvious repair — reserve a bucket for each column that matters — repairs a third of the failure when it reserves as many buckets as the rank, and all of it only when it reserves half again as many.

A randomised range finder's error with four kinds of sketch, against the sketch width — coherent matrixThe range finder's spectral error divided by σ₁₁, the best rank-10 error, for a 64 × 64 matrix with geometric 0.8 decay whose right singular vectors are coordinate vectors in random order, against the sketch width l from 12 to 24, on a logarithmic axis: the median over twenty seeds solid and the worst dashed, for a Gaussian sketch, a subsampled randomised Hadamard sketch, a sparse sign sketch with one nonzero a row and one with three. At width 20: Gaussian median 0.407, worst 0.782; Hadamard median 0.365, worst 0.941; one nonzero a row median 3.33, worst 7.11; three nonzeros a row median 0.409, worst 0.986.111315171921232510⁻¹110¹sketch width l, for rank 10‖(I − QQᵀ)A‖ ÷ σ₁₁GaussianHadamardone nonzero a rowthree nonzeros a rowcoherent, geometric 0.8, width 20, twenty seedsGaussian: median 0.41, worst0.78Hadamard: median 0.37, worst0.94one nonzero a row: median 3.3, worst7.1three nonzeros a row: median 0.41, worst0.99solid: median · dashed: worst of twentybelow one: better than the best rank-10 error
Fig. 1 The end of the line this essay starts from: the exactly coherent 64 × 64 matrix, with the range finder’s error over σ11\sigma_{11} against sketch width for four kinds of sketch. Three lie together near 0.4; the sketch with one nonzero a row stays above one at every width.

A dial between the two matrices

The matrices keep everything from the earlier comparison except the right singular vectors. Each is 64 × 64, with singular values falling by a factor of 0.8 a step, so that σ11\sigma_{11} — the first singular value a rank-ten approximation must leave behind — is the floor every method is measured against. The left singular vectors are one fixed random orthogonal matrix. The right singular vectors are built from two bases: a permutation P, whose columns are coordinate vectors, and a random orthogonal matrix R. Column k of V is cos⁡t\cos t times the k-th column of P plus sin⁡t\sin t times the k-th column of R, and the result is orthonormalised in order.

At t=0t = 0 that is the coherent matrix: the k-th right singular vector is one coordinate vector, so column cc of A is exactly σkuk\sigma_k u_k for the single direction k assigned to it. At t=π/2t = \pi/2 it is the incoherent twin, whose singular vectors have no preference for any column. In between, t is roughly the angle by which each leading direction has been turned away from its own column, so t=0.01t = 0.01 is about half a degree.

The statistic that textbooks attach to this property is the coherence of the leading subspace: the largest squared length of any row of the first k columns of V, which is the largest column leverage, multiplied by n/k so that a perfectly spread subspace scores one. Influence is decided before the data met the same quantity on the rows of a regression design, where the leverages sum to the number of columns and a row holding most of one is a row that decides the fit on its own. For the column space the arithmetic is identical. On the coherent matrix ten columns hold leverage one and the rest hold zero, so the coherence is 64/10=6.464/10 = 6.4, its largest possible value.

At each of fourteen mixtures from t=0t = 0 to t=π/2t = \pi/2, four sketches of width twenty are drawn thirty times, and the range finder’s error ∥(I−QQT)A∥2\|(I - QQ^{\mathsf T})A\|_2 is divided by σ11\sigma_{11}. The four are the one-nonzero sketch, the three-nonzero sketch, a Gaussian sketch, and a hybrid described further down.

The randomised range finder's error over σ₁₁ against how far a coherent matrix is mixed towards an incoherent one, for four sketchesA 64 × 64 matrix with singular values falling by 0.8 a step, whose right singular vectors are the orthonormalised mixture cos t · P + sin t · R of a permutation and a random orthogonal matrix; t = 0, drawn at the left edge, is the coherent matrix. On logarithmic axes, the median over thirty draws of ‖(I − QQᵀ)A‖ over σ₁₁ for a sketch of width twenty. One nonzero a row: 3.47, 3.01, 2.09, 1.67, 1.23, 1.03, 0.80, 0.72, 0.59, 0.54, 0.50, 0.56, 0.48, 0.46 at t = 0, 0.00010, 0.0010, 0.0030, 0.010, 0.020, 0.050, 0.10, 0.20, 0.30, 0.50, 0.80, 1.2, 1.6. Heavy columns reserved: 1.16, 1.12, 1.05, 0.98, 0.89, 0.78, 0.70, 0.59, 0.51, 0.49, 0.47, 0.43, 0.42, 0.44. Three nonzeros a row stay between 0.37 and 0.44, the Gaussian sketch between 0.39 and 0.42.median ratioone nonzero, t = 03.5one nonzero, t = 0.011.210⁻⁴10⁻³10⁻²10⁻¹11mixture t (t = 0 at the left edge)error ÷ σ₁₁one nonzero a rowheavy columns reservedthree nonzeros a rowGaussianthe left edge is exact coherencethe failure fades over four decades of mixing
Fig. 2 The median over thirty draws of the range finder’s error over σ11\sigma_{11} against the mixture t, on logarithmic axes, for four sketches of width twenty. The coherent matrix, t=0t = 0, is drawn at the left edge.

Four decades of mixing, and a steady fall

The Gaussian sketch and the three-nonzero sketch are flat. Across the whole range their medians sit between 0.37 and 0.44, which is the same number the earlier comparison measured at both ends, and it is what a width-20 basis achieves on this spectrum whatever the directions look like. They are the reference line.

The one-nonzero sketch starts at 3.47 on the coherent matrix — a little above the 3.33 measured with twenty draws in the earlier essay, which is the difference between two sets of seeds — and falls steadily as the mixture grows. At t=10−4t = 10^{-4} it is 3.01, at 10−310^{-3} 2.09, at 10−210^{-2} 1.23, at 0.10.1 0.72, and it reaches 0.50 at t=0.5t = 0.5 and 0.46 at the incoherent end. From 10−310^{-3} to 10−110^{-1} each decade of mixing takes about forty per cent off the median.

The shape is the first thing worth saying about it. The failure is not a property that switches off at some level of spreading; it is at its worst only at exact coherence and it gives way to every order of magnitude of mixing in turn. At a hundredth of a radian, which is a rotation nobody inspecting the singular vectors would call anything but coherent, most of the gap between the one-nonzero sketch and the Gaussian has already closed. By a tenth of a radian what is left is under a factor of two.

The mechanism the earlier essay traced draw by draw explains why exact coherence is the worst case. When two leading columns share a bucket, the sketch holds only their signed sum, and at t=0t = 0 no other bucket holds either direction at all — the lost direction is simply absent from the range. Once t is not zero, every other column of A carries a small multiple of every leading direction, and each bucket therefore holds a faint copy of the lost direction beside whatever it was dealt. The range finder orthonormalises, and orthonormalisation does not care how faint a direction is, only whether it can be separated from what it arrives mixed with. A faint copy of uju_j in a bucket that is otherwise full of minor directions buys back part of uju_j, and as t grows the copies grow and more of it comes back.

That is an account of the direction of the effect and not of its rate. The measured rate — close to a constant fraction per decade — is not something the account predicts, and nothing here derives it.

The statistic that names the failure does not see it

If coherence were what broke the sketch, the sketch’s error would move with it. The next figure puts the two on the same axes.

The coherence of the leading singular subspace against the mixture, beside the one-nonzero sketch's median errorOn logarithmic axes. The coherence — the largest leverage of any column on the leading ten right singular vectors, times 64/10 — is 6.40, 6.40, 6.40, 6.40, 6.40, 6.40, 6.39, 6.35, 6.20, 5.97, 5.30, 4.04, 2.40, 1.77 at the same mixtures as the median error, which is 3.47, 3.01, 2.09, 1.67, 1.23, 1.03, 0.80, 0.72, 0.59, 0.54, 0.50, 0.56, 0.48, 0.46. Up to t = 0.05 the coherence is 6.39 or more, within a fifth of a per cent of its maximum of 6.4, while the median error falls from 3.47 to 0.80.10⁻⁴10⁻³10⁻²10⁻¹11mixture t (t = 0 at the left edge)coherence, or error ÷ σ₁₁coherence, n/k × leverageone-nonzero medianthe statistic that names the failuredoes not move while the failure fades
Fig. 3 The coherence of the leading ten-dimensional right singular subspace, n/k times the largest column leverage, beside the one-nonzero sketch’s median error, both against the mixture on logarithmic axes.

The coherence is 6.400 at t=0t = 0, and still 6.400 at t=10−2t = 10^{-2}, when the median error has fallen from 3.47 to 1.23. It is 6.39 at t=0.05t = 0.05, where the median is 0.80, and 6.35 at t=0.1t = 0.1. It does not fall appreciably until t is a few tenths — 5.97 at 0.3, 5.30 at 0.5 — and by then the one-nonzero sketch’s median has been within a quarter of the Gaussian’s for some time. It ends at 1.77 on the incoherent matrix rather than at one, because a random ten-dimensional subspace of a 64-dimensional space is not perfectly spread either.

So over the range where the sketch’s behaviour changes most, the statistic that names its failure is constant. Two matrices with coherence 6.40 get median errors of 3.47 and 1.23, and a matrix with coherence 6.35 gets 0.72. That is the first claim this essay refuses: that the largest leverage is what decides whether a one-nonzero sketch fails.

The reason is visible in the definition. A leverage is the squared length of a column’s share of the leading subspace. Turning a direction by half a degree changes that share by about t2t^2, which at t=0.01t = 0.01 is one part in ten thousand. The sketch does not respond to the share; it responds to whether any bucket holds a copy of the direction it lost, and at t=0.01t = 0.01 every bucket holds one of relative size roughly t, not t2t^2. The failure scales with the first power of the mixing and the leverage with the second, so on a logarithmic scale of mixing the leverage is the last of the two to notice anything.

The honest version of the earlier essay’s closing question is therefore not “how coherent”, as coherence is measured, but “how exactly coherent”. A matrix whose important directions sit on columns by accident of construction — a feature matrix in which ten features are exactly the ten directions that matter — is the dangerous one. A matrix whose important directions are merely concentrated on some columns, with every other column carrying a little of them, already gives the cheap sketch most of what it needs.

One draw in ten tells a different story

A median describes the draw a user usually receives. A randomised method is also judged by the draw it occasionally delivers, and a bound that holds with probability made the case that the honest figure for these methods is a band rather than a line. The ninetieth percentile is the top of that band.

The ninetieth-percentile error against the mixture, for the one-nonzero sketch, the hybrid and three nonzeros a rowOn logarithmic axes, thirty draws at each mixture. One nonzero a row: 8.19, 5.50, 3.82, 2.86, 2.07, 1.98, 1.87, 1.71, 1.31, 1.02, 0.80, 0.76, 0.71, 0.67. Heavy columns reserved: 1.40, 1.39, 1.35, 1.31, 1.21, 1.06, 0.90, 0.79, 0.68, 0.63, 0.59, 0.63, 0.62, 0.72. Three nonzeros a row: 0.67, 0.67, 0.67, 0.66, 0.67, 0.67, 0.66, 0.67, 0.65, 0.67, 0.68, 0.56, 0.64, 0.59.10⁻⁴10⁻³10⁻²10⁻¹1110¹mixture t (t = 0 at the left edge)ninetieth-percentile error ÷ σ₁₁one nonzero a rowheavy columns reservedthree nonzeros a rowone draw in tenwhere a sketch earns or loses its cheapness
Fig. 4 The ninetieth-percentile error over σ11\sigma_{11} in thirty draws against the mixture, on logarithmic axes, for the one-nonzero sketch, the hybrid with ten reserved buckets, and the three-nonzero sketch.

Here the fade is slower. The one-nonzero sketch’s ninetieth percentile starts at 8.19, drops to 2.07 at t=0.01t = 0.01, and is still 1.71 at t=0.1t = 0.1 and 1.31 at t=0.2t = 0.2. It is 1.02 at t=0.3t = 0.3 and 0.80 at t=0.5t = 0.5, and it reaches 0.67 only at the incoherent end. The three-nonzero sketch’s ninetieth percentile is between 0.56 and 0.68 everywhere, a little above the Gaussian’s 0.49 to 0.57 and flat in the same way.

So by the tail, the one-nonzero sketch is not safe until each leading direction has been turned by somewhere between seventeen and thirty degrees, and over that stretch the coherence is still between 5.97 and 5.30. A rule of the form “use one nonzero when the coherence is below some threshold” would need a threshold near six to protect the tail, which is almost the maximum, and at that threshold it would still send the exactly coherent matrix and the half-degree matrix, whose tails differ by a factor of four, down the same path.

This is where three nonzeros a row earn their place. They cost three times as much to apply as one, and on the coherent matrix their median is the Gaussian’s; across the mixture their tail stays where it was on the incoherent matrix. The earlier essay found that three was the point at which cheap and reliable meet, measured at the two ends. Measured along the line between them, nothing moves that conclusion. What the line adds is that the case for one nonzero is weaker than a median suggests even on matrices that are nearly incoherent: at t=0.5t = 0.5 its median is 0.50 against the Gaussian’s 0.39, and its ninetieth percentile 0.80 against the three-nonzero sketch’s 0.68.

Buckets for the columns it can see

The second question was whether the failure could be avoided without paying for more nonzeros. The failure is a collision among a few heavy columns, and heavy columns are visible before any sketch is drawn: a column’s squared norm is ∑kσk2Vjk2\sum_k \sigma_k^2 V_{jk}^2, which on a matrix with a decaying spectrum is dominated by the column’s weight in the leading directions. So the hybrid sketch computes all the column norms, gives the h heaviest columns h distinct buckets, and hashes the rest into all l buckets with one signed nonzero each, exactly as before.

On the coherent matrix with h equal to the rank, ten, the ten heaviest columns are precisely the ten leading directions, and no two of them can collide. The earlier essay’s collision scatter predicts what that should buy: its draws with no collision among the leading ten had a median error of 1.39, well below the 3.47 of the one-nonzero sketch and still more than three times the Gaussian’s 0.41.

Five sketches of width twenty on the exactly coherent matrix, including one nonzero a row with ten and with sixteen buckets reserved for the heaviest columnsThe matrix whose ten leading right singular vectors are ten coordinate vectors; thirty draws each. one nonzero a row: median 3.47, worst 8.23; ten buckets reserved: median 1.16, worst 1.49; sixteen buckets reserved: median 0.36, worst 0.41; three nonzeros a row: median 0.41, worst 1.12; Gaussian: median 0.41, worst 0.62. The heaviest columns are found from the column norms in one pass over the matrix.one nonzero a row, median3.47one nonzero a row, worst8.23ten buckets reserved, median1.16ten buckets reserved, worst1.49sixteen buckets reserved, median0.36sixteen buckets reserved, worst0.41three nonzeros a row, median0.41three nonzeros a row, worst1.12Gaussian, median0.41Gaussian, worst0.62error over σ₁₁ on the coherent matrixreserving the rank is not enough; half again is
Fig. 5 Five sketches of width twenty on the exactly coherent matrix, median and worst error over σ11\sigma_{11} in thirty draws: one nonzero a row, the hybrid with ten and with sixteen buckets reserved for the heaviest columns, three nonzeros a row, and a Gaussian sketch.

The prediction holds. With ten buckets reserved the median is 1.16 and the worst of thirty draws 1.49, against 3.47 and 8.23 for the plain sketch: the median falls by two thirds and the worst draw by more than four fifths. The failure’s tail has almost gone, because what made the worst draws worst — several leading directions lost at once, one of them near the top of the spectrum — can no longer happen. And every draw is still above σ11\sigma_{11}.

The earlier essay named the reason, one level down from collisions. Even with the ten leading directions in ten different buckets, the remaining 54 columns are hashed on top of them, about three to a bucket, so each leading direction arrives mixed with two or three minor ones. The basis has twenty columns, and a width-20 basis beats σ11\sigma_{11} by also catching some of directions eleven to twenty. With the leading ten each sharing a bucket with minor columns and the next ten hashed wherever they fall, the basis catches the leading ten and has almost nothing left to separate the next ten with.

That is the second claim this essay refuses: that reserving a bucket for each of the rank’s heavy columns cures the coherent failure. It cures the collisions; it does not bring the sketch to the Gaussian’s accuracy.

How many buckets to reserve

The remedy for the second-level problem is the same as for the first: reserve more. Nothing about the construction ties h to the rank. The next figure sweeps it from none, which is the plain one-nonzero sketch, to twenty, where every bucket belongs to one heavy column and the other 44 columns are hashed on top.

The one-nonzero sketch's median error against how many of its twenty buckets are reserved for the heaviest columns, at four mixturesOn a logarithmic error axis, thirty draws a point; none reserved is the plain one-nonzero sketch. t = 0, coherent: 0 reserved 3.47, 2 reserved 3.38, 4 reserved 3.19, 6 reserved 2.11, 8 reserved 1.72, 10 reserved 1.16, 12 reserved 0.72, 14 reserved 0.55, 16 reserved 0.36, 18 reserved 0.24, 20 reserved 0.15. t = 0.01: 0 reserved 1.23, 2 reserved 1.28, 4 reserved 1.50, 6 reserved 1.41, 8 reserved 1.02, 10 reserved 0.89, 12 reserved 0.62, 14 reserved 0.43, 16 reserved 0.32, 18 reserved 0.23, 20 reserved 0.15. t = 0.1: 0 reserved 0.72, 2 reserved 0.79, 4 reserved 0.90, 6 reserved 0.94, 8 reserved 0.78, 10 reserved 0.59, 12 reserved 0.45, 14 reserved 0.37, 16 reserved 0.29, 18 reserved 0.27, 20 reserved 0.26. t = π/2, incoherent: 0 reserved 0.46, 2 reserved 0.43, 4 reserved 0.46, 6 reserved 0.42, 8 reserved 0.49, 10 reserved 0.44, 12 reserved 0.47, 14 reserved 0.44, 16 reserved 0.39, 18 reserved 0.39, 20 reserved 0.40. The Gaussian sketch's median is 0.41, 0.41, 0.40, 0.42 at the four mixtures, drawn as a dashed line at 0.41.0246810121416182010⁻¹1buckets reserved for the heaviest columns, of twentymedian error ÷ σ₁₁Gaussian mediant = 0, coherentt = 0.01t = 0.1t = π/2, incoherentten is the rankthe curve crosses the Gaussian past it, not at it
Fig. 6 The median error over σ11\sigma_{11} of a width-20 one-nonzero sketch against how many buckets are reserved for the heaviest columns, at four mixtures, with the Gaussian sketch’s median as a dashed line.

On the coherent matrix the curve falls throughout: 3.47 with none reserved, 3.19 with four, 1.72 with eight, 1.16 at the rank, 0.72 at twelve, 0.55 at fourteen, and 0.36 at sixteen — past the Gaussian’s 0.41 — then 0.24 at eighteen and 0.15 at twenty. The worst draw at sixteen reserved is 0.41, below the Gaussian’s median, and every one of the thirty draws is below σ11\sigma_{11}.

At twenty the sketch is almost a column selection: on this matrix the twenty heaviest columns are the twenty leading right singular directions, each has its own bucket, and the range finder comes within a factor of 1.4 of σ21\sigma_{21}, the error of the best rank-twenty approximation. No random sketch of width twenty can do as well on a matrix whose important directions are spread, because it has no way of knowing which directions to spend its columns on. On a coherent matrix the column norms tell it.

At t=0.01t = 0.01 the curve has the same shape from a lower start, and crosses the Gaussian line between fourteen and sixteen. At t=0.1t = 0.1 it crosses at fourteen. At the incoherent end it is flat: the column norms carry no information when every column holds a little of every direction, so reserving buckets for the largest of them changes nothing, and the median stays between 0.39 and 0.49 at every h. Reserving does no harm there, measured in the median.

One thing in this figure is not explained. At t=0.01t = 0.01 and t=0.1t = 0.1, reserving two to six buckets leaves a slightly higher median than reserving none — 1.50 against 1.23 at four, and 0.94 against 0.72 at six. At thirty draws a point that difference is within what the draws scatter by, and whether it is real is not settled here.

What the hybrid costs

The earlier essay priced the sketches in multiply-adds on this dense matrix: 81,920 for the Gaussian, 24,576 for a subsampled randomised Hadamard transform, 12,288 for three nonzeros a row and 4,096 for one.

A randomised range finder's median error against the cost of forming the sketch, four kinds, coherent and incoherentFor width-20 sketches of the 64 × 64 matrices, the median range-finder error over σ₁₁ against the multiply-adds needed to form AΩ, on logarithmic axes: a Gaussian sketch 81920, a Hadamard sketch with a fast transform 24576, a sparse sketch with one nonzero a row 4096 and with three 12288. Filled points are the coherent matrix, open points the incoherent one. Gaussian: 0.407 coherent, 0.425 incoherent; Hadamard: 0.365 coherent, 0.431 incoherent; one nonzero a row: 3.33 coherent, 0.448 incoherent; three nonzeros a row: 0.409 coherent, 0.387 incoherent.10⁴10⁵10⁻¹1multiply-adds to form AΩmedian ‖(I − QQᵀ)A‖ ÷ σ₁₁GaussianHadamardone nonzero a rowthree nonzeros a rowwidth 20: multiply-adds to form AΩGaussian8.2·10⁴Hadamard2.5·10⁴one nonzero a row4096three nonzeros a row1.2·10⁴filled: coherent · open: incoherentlower left is cheap and accurate
Fig. 7 Median error at width 20 against the multiply-adds needed to form AΩ, filled points for the coherent matrix and open points for the incoherent one.

The hybrid adds one pass over A to find the column norms, which on a dense 64 × 64 matrix is 4,096 multiply-adds, and a partial sort of 64 numbers. Its sketch is still one nonzero a row, so it applies for 4,096. The total is 8,192, two thirds of the three-nonzero sketch’s cost, and at sixteen reserved buckets it matches or beats the three-nonzero sketch at every mixture measured: 0.36 against 0.41 on the coherent matrix, 0.32 against 0.41 at t=0.01t = 0.01 and 0.29 against 0.43 at t=0.1t = 0.1. At the incoherent end it is 0.39 against 0.37, which is the same number within the scatter of thirty draws.

On a sparse A the balance is the same. Column norms cost one pass over the nonzeros, and so does applying a one-nonzero sketch, so the hybrid costs twice the cheapest sketch and two thirds of the three-nonzero one, as it does here. The adaptive range finder that the rank a certificate charges measured spends ten dense probes on every certificate, each costing 4,096 multiply-adds here; beside that, one pass for the column norms is a small price.

There is a second cost that multiply-adds do not show. The hybrid reads A twice before it can sketch, once for the norms and once for the product. A range finder applied to a matrix that arrives as a stream — rows or columns seen once, in order — cannot make the first pass, which is the setting in which cheap sketches are most wanted.

What a column norm knows

The hybrid works on these matrices because a heavy column is a column the leading directions live on. That is a consequence of how the matrices were built, and it is worth being exact about when it holds.

A column’s squared norm is its leverage in each direction weighted by that direction’s squared singular value. On a spectrum falling by 0.8 a step, the leading ten carry most of the weight, and a column with leverage one on a leading direction has norm at least σ10\sigma_{10}, while a column holding only trailing directions has norm at most σ11\sigma_{11}. So the heaviest columns are the high-leverage ones, and ranking by norm is ranking by leverage in the subspace that matters.

On a flatter spectrum the ranking blurs. Randomisation does not create structure took the extreme: all singular values equal, where no rank-ten approximation achieves anything. Short of that, a column that holds a little of many moderate directions can outweigh a column that holds all of one leading direction, and the reserved buckets go to the wrong columns. The matrices here do not test that case.

The other way a norm misleads is scale. A matrix of variables measured in different units has columns whose norms reflect the units, and the heaviest columns by norm may be the ones in the smallest unit. On such a matrix both the coherence and the column norms describe the units rather than the data, and so do the singular vectors themselves; the remedy there is the scaling, before any sketch.

Where this sits beside the other uses of a sketch

The same sparse embeddings are used as preconditioners, in the sketch that is not the answer, where a sketch that loses a direction produces a preconditioner that leaves that direction unconditioned. The collisions measured here are the same event, and the hybrid is the same repair: a preconditioner built from a sketch that reserves buckets for the heavy rows of a coherent least-squares problem avoids the collision that would leave one of them unconditioned. The residual the solution cannot hold met rows of leverage near one from the other side, as the rows whose residuals a fitted solution cannot represent, and the heavy columns here are the same object transposed.

And an answer that changes with the seed measured how far the randomised answer moves between draws. On the coherent matrix with one nonzero, the error of the worst of thirty draws is 8.23 against a median of 3.47; with sixteen reserved buckets the worst draw and the median differ by fifteen per cent. Reserving buckets is also a way of making the method less random, because it replaces the part of the hashing that mattered most by a deterministic choice.

What this rests on

One family of 64 × 64 matrices with a fixed seed for the singular vectors and the permutation; one spectrum, falling by 0.8 a step; rank ten; sketch width twenty; thirty sketch seeds at every point, the same thirty for every sketch kind. The error is the exact spectral norm of the residual, and costs are multiply-add counts, not timings. The mixture cos⁡t⋅P+sin⁡t⋅R\cos t \cdot P + \sin t \cdot R is one way to interpolate between a coherent and an incoherent basis, chosen because it moves every leading direction by the same angle; a matrix whose directions are turned by different amounts, some exactly coherent and some not, is not measured. On larger matrices with more buckets per important column the collision probabilities fall and all the gaps here shrink, and by how much is not measured either.

The claims that have to fail

The first is that coherence decides the failure. At t=0t = 0 and t=0.01t = 0.01 the coherence is 6.400 both times and the one-nonzero median is 3.47 and 1.23; the refusal is fed the claim that the two medians agree to within half a unit, and fails.

The second is that reserving the rank’s worth of heavy columns is the repair. With ten buckets reserved on the coherent matrix the median is 1.16 against the Gaussian’s 0.41; the refusal is fed the claim that it comes within a quarter of the Gaussian’s median, and fails. Sixteen buckets pass the same test, at 0.36.

Still open: the rate of the fade, and choosing how many to reserve

Why a constant fraction per decade. The one-nonzero median falls by about forty per cent for every factor of ten in the mixture between 10−310^{-3} and 10−110^{-1}. The account above says the lost direction returns through faint copies of relative size t, but not why the error should then fall like a power of t rather than, say, linearly. Measuring the error draw by draw against how many leading directions collided, at several mixtures, would say whether each collision costs less as t grows or whether the collisions stop mattering one at a time.

Choosing h without knowing the rank. Sixteen was the right number here because the rank was ten and the width twenty. A range finder that grows its basis adaptively does not know its rank in advance. Reserving buckets for every column whose norm exceeds a fixed fraction of the largest, and letting that count grow with the basis, would tie h to the matrix rather than to a guess; whether it keeps the adaptive rule’s stopping rank where the Gaussian keeps it is the next measurement.

The streaming case. The hybrid needs a pass over A before it sketches. A one-pass version would have to discover heavy columns while hashing them — a count-min style tally of column norms that promotes a column to its own bucket once it is seen to be heavy — and what that costs in the columns it promotes too late is unmeasured.

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.

Flop countLeverageLow-rank approximationProbabilistic boundsRandom projectionRandomised SVDRange finderSketchingSpectral decay