Neither sparse nor dense

The rule told where to look

Told the line its kernel is singular on, the admissibility rule stores within six per cent of the least any partition of its tree has, and keeps that margin as the matrix doubles while the untold rule's overpayment grows from 1.7 to 2.6. Its other failure was never the geometry: at η = 1, where two touching clusters first pass, it is the least itself on both kernels singular on the diagonal, and the textbook 0.8 was costing an eighth to a quarter. On a smooth kernel nothing rescues it, because the dense diagonal it always keeps is, by itself, the whole of the least. And a probe that reads each block's ends sees only its corners, which is where the diagonal touches a block and not where a line crosses one.

Worth reading first: Which pairs are allowed to be small · A block nobody can call sparse.

A far pair is not a smooth pair found the admissibility rule’s premise doing all of its work. The rule admits a pair of index clusters when they are far apart relative to their size, and on a kernel whose only singularity lies on the diagonal that is the same as admitting the blocks that are smooth. Move the singularity onto the line x−y=0.37x - y = 0.37 and the rule stores twice the least any partition of the same cluster tree can reach. Give it a wide Gaussian, smooth everywhere, and it stores nearly six times the least. A random probe of a few entries did better on both, and could also miss the line altogether and admit the whole matrix as one block of rank 165.

That essay ended with two predictions, both signed. One was about the rule: told where the singularity is, it should store within 1.15 of the least on the offset kernel, the margin it has on the kernel it was built for, while on the Gaussian, which has no singular set to be told about, no value of the constant η\eta below two should bring it within three times the least. The other was about the probe: a cross drawn half from each cluster’s two ends should see a line that crosses a block, since a line must enter and leave through the block’s boundary, and so should never admit the whole matrix.

The first holds, and holds better than predicted. The second fails, for a reason that has nothing to do with sampling. And measuring the first turned up something neither essay had looked at: that the constant 0.8, which every essay here has used without question, was itself an overpayment on every kernel.

Measuring the distance from the right line

The rule’s whole decision is one ratio per pair of clusters, the sum of their radii over the distance between their centres:

q(t,s)=rt+rs∣ct−cs∣≤η.q(t, s) = \frac{r_t + r_s}{|c_t - c_s|} \le \eta .

On the diagonal kernel the distance between centres is the distance from the singularity, because the singularity is where x=yx = y. On the offset kernel it is where x=y+0.37x = y + 0.37. So the rule told about the line measures the row cluster’s centre against the column cluster’s centre moved by the offset, ∣ct−(cs+0.37)∣|c_t - (c_s + 0.37)|, and is otherwise unchanged. In that coordinate the offset kernel is the diagonal kernel with some of its matrix cut off, and the rule should do there what it does on the diagonal. On the other three kernels the shift is zero and the told rule is the original one.

The setting is the one the earlier essay used: 256 points on the unit interval, a binary cluster tree with leaves of sixteen, every admitted block compressed by its own singular value decomposition to a relative 10−810^{-8}, and the least found by taking, bottom up, the cheapest of storing each candidate block whole, compressing it at its own rank, or splitting it into its four children. Every partition here therefore holds the same accuracy and differs only in what it costs.

The block partition of a 256-square matrix of 1/r on the line x − y = 0.37 by the admissibility rule measured from that line at η = 0.8, beside the least storage any partition of the same tree hasTold the line, at η = 0.8 the rule stores 31.2 per cent of the entries in 73 blocks, of rank at most 6, with 0 blocks costing more than its entries, 1.055 times the least of 29.5 per cent. The dashed line is the singularity.told, η = 0.8: 31.2% of n²the least: 29.5% of n²kept wholerank up to 6up to 20above 20n = 256 · ε = 10⁻⁸ · the line supplied by the callera distance to the right line
Fig. 1 The told rule’s partition of the offset kernel beside the least, with the singular line dashed. The dial sets η.

At the textbook η=0.8\eta = 0.8 the told rule’s partition runs a staircase of small dense blocks down the dashed line, exactly as the least’s does, and leaves the real diagonal to large blocks of low rank. It stores 31.2 per cent of the entries against a least of 29.5, a ratio of 1.055, in 73 blocks of rank at most six, none of them costing more than its entries. Untold, the same rule stored 60.8 per cent with a largest rank of 35 and five blocks worse than dense. The prediction asked for 1.15 and the margin on the diagonal kernel, which is 1.12; the told rule does better on the offset kernel than the original rule does on its own.

Turning the dial up shows where that stops. Past η=1\eta = 1 the staircase coarsens and blocks that the dashed line runs through turn from dense to compressed. At 1.4 the top-left quarter of the matrix, which the line enters a third of the way down, is admitted whole at rank 39, and the stored share climbs to 45.5 per cent. That boundary at one is not a matter of tuning and the next section is about why.

Where the textbook constant was overpaying

The storage of a 256-square matrix at one tolerance by the admissibility rule measured from the diagonal and from the kernel's own singular set, at two values of η, as a multiple of the least any partition of the same tree has, on four kernels1/r on the diagonal: from the diagonal, η = 0.8 1.122, from the singular set, η = 0.8 1.122, from the singular set, η = 1 1.000; 1/r on a line off it: from the diagonal, η = 0.8 2.058, from the singular set, η = 0.8 1.055, from the singular set, η = 1 1.020; a wide Gaussian: from the diagonal, η = 0.8 5.734, from the singular set, η = 0.8 5.734, from the singular set, η = 1 3.000; cos(40r)/r: from the diagonal, η = 0.8 1.232, from the singular set, η = 0.8 1.232, from the singular set, η = 1 1.000. The singular set is the diagonal on every kernel but the offset one, and the Gaussian has none.1234561/r on the diagonal, least 36.7%from the diagonal, η = 0.81.122from the singular set, η = 0.81.122from the singular set, η = 11.0001/r on a line off it, least 29.5%from the diagonal, η = 0.82.058from the singular set, η = 0.81.055from the singular set, η = 11.020a wide Gaussian, least 6.3%from the diagonal, η = 0.85.734from the singular set, η = 0.85.734from the singular set, η = 13.000cos(40r)/r, least 43.8%from the diagonal, η = 0.81.232from the singular set, η = 0.81.232from the singular set, η = 11.000stored over the leastn = 256 · ε = 10⁻⁸one at one is the least itself
Fig. 2 What the rule stores, as a multiple of the least, measured from the diagonal and from each kernel’s singular set, at η = 0.8 and η = 1, on four kernels.

The second and third rows of each group differ only in η\eta, and on three of the four kernels the third row sits on one. On the diagonal kernel the rule at η=1\eta = 1 stores 24,064 numbers, which is the least to the last number; at 0.8 it stores 27,008. On the oscillatory kernel cos⁡(40r)/r\cos(40r)/r it stores 28,672 at η=1\eta = 1, again the least exactly, against 35,328 at 0.8. On the offset kernel, told, it is 1.020 at η=1\eta = 1. The rule did not need to read the matrix to find the best partition of its own tree on these kernels. It needed one more notch of tolerance.

The reason is a fact about one dimension. Two touching clusters of sixteen points each have centres sixteen spacings apart and radii of seven and a half spacings, so their ratio is 15/1615/16; at 32 points it is 31/3231/32, and so on up the tree. Every touching pair has qq just below one, and every pair separated by at least one cluster of its own size has qq at most a half. So η=0.8\eta = 0.8 refuses every touching pair and admits every separated one, and η=1\eta = 1 admits them all. At one, the rule has stopped being the strong admissibility condition and become the weak one: compress every off-diagonal block of every level, keep only the diagonal leaves dense. That is the hierarchically off-diagonal low-rank format.

The test that costs what it saves weighed exactly these two partitions, strong against weak, and found the weak one’s ranks climbing from nine to thirteen while the strong one’s held at five, and the strong one storing more at every size. The least now settles the question that essay left to the reader. On a one-dimensional kernel singular on the diagonal, the weak partition is not a cheap approximation to the right one. It is the right one, because a touching pair in one dimension meets the singularity at a single corner, and the rank that a corner costs is lower than the price of splitting the block into four children around it. Strong admissibility’s case is in two and three dimensions, where touching clusters share a face and the rank of their block grows with the face; in one dimension the face is a point.

The overpayment against η

The storage of a 256-square matrix by the admissibility rule measured from each kernel's singular set, as a multiple of the least, against the constant η, on four kernels1/r on the diagonal: 1.80 at 0.2, 1.39 at 0.4, 1.12 at 0.6, 1.12 at 0.8, 1.00 at 1, 1.00 at 1.2, 1.00 at 1.4, 1.00 at 1.6, 1.00 at 1.8, 1.00 at 1.99; 1/r on a line off it: 1.86 at 0.2, 1.37 at 0.4, 1.14 at 0.6, 1.05 at 0.8, 1.02 at 1, 1.00 at 1.2, 1.54 at 1.4, 1.54 at 1.6, 1.54 at 1.8, 1.75 at 1.99; a wide Gaussian: 10.47 at 0.2, 7.70 at 0.4, 5.73 at 0.6, 5.73 at 0.8, 3.00 at 1, 3.00 at 1.2, 3.00 at 1.4, 3.00 at 1.6, 3.00 at 1.8, 3.00 at 1.99; cos(40r)/r: 1.72 at 0.2, 1.45 at 0.4, 1.23 at 0.6, 1.23 at 0.8, 1.00 at 1, 1.00 at 1.2, 1.00 at 1.4, 1.00 at 1.6, 1.00 at 1.8, 1.00 at 1.99.0.20.40.60.811.21.41.61.8201234567891011η, the separation the rule asks forstored over the least1/r on the diagonal1/r on a line off ita wide Gaussiancos(40r)/rn = 256 · ε = 10⁻⁸ · the line at η = 1one is where touching clusters pass
Fig. 3 The told rule’s storage as a multiple of the least, against η, on four kernels. The dashed line marks η = 1.

Read across, the curves fall in steps, because qq takes few distinct values on a binary tree over a uniform grid: below 0.5 the rule refuses separated pairs that the least admits, between 0.5 and the touching ratio it is the strong partition, and from 15/1615/16 on it is the weak one. The three kernels with a singular line all come to one, or within two per cent of it, at η=1\eta = 1 and the two singular on the diagonal stay there for every larger η\eta, since no pair has a larger qq to admit; the diagonal clusters themselves have zero separation and are never admitted at any η\eta.

The offset kernel, told, climbs again past 1.2 to 1.54 and then 1.75. In the shifted coordinate, qq above one means the row cluster and the shifted column cluster overlap, which means the line runs through the block. A rule measured from the right line still has to refuse the blocks the line crosses, and a ratio of one is exactly the boundary between touching the singularity and containing it. There is nothing to tune: below one the told rule is at most a few per cent from the least, and above it the rule admits the singularity it was told about.

The diagonal it always keeps

The Gaussian is the one kernel on which the prediction was made in the negative, and it holds, at its own boundary. Its curve falls from 10.5 at η=0.2\eta = 0.2 to 5.73 at the textbook 0.8, and then, at η=1\eta = 1, drops to 3.000 and stays there to 1.99. The prediction said “no setting of the constant η\eta below two brings it within a factor of three”. It comes exactly to three and no closer.

The three is not a coincidence, and it is the cleanest number in the whole measurement. The least for the Gaussian is one block, the whole matrix, at rank 8, which costs 8×512=4,0968 \times 512 = 4{,}096 numbers. The weak partition keeps sixteen dense diagonal leaves of 16×1616 \times 16, which also cost 4,096 numbers. So the rule’s dense diagonal, which it keeps at every η\eta because a cluster’s distance from itself is zero, is by itself the whole of the least. The other 8,192 numbers are the off-diagonal blocks of every level, compressed at ranks of three on the smallest and five on the largest. Each is cheap; there are thirty of them. The rule cannot reach the least on this kernel without abandoning the one decision it treats as beyond question, that the diagonal is where the singularity lives. Telling it about a singular set is no help, because there is none to tell it about: the repair the offset kernel needed was information, and what the Gaussian needs is the absence of an assumption.

What the told rule keeps as the matrix grows

The storage of the admissibility rule's partition as a multiple of the least any partition of the same tree has, against the matrix's size, for the offset kernel measured from the diagonal and from its line, the Gaussian, and the diagonal kernel at the textbook η1/r off it, from the diagonal: 1.718 at 128, 2.058 at 256, 2.556 at 512; 1/r off it, told, η = 0.8: 1.016 at 128, 1.055 at 256, 1.082 at 512; 1/r off it, told, η = 1: 1.000 at 128, 1.020 at 256, 1.015 at 512; Gaussian, η = 1: 2.625 at 128, 3.000 at 256, 3.375 at 512; 1/r on it, η = 0.8: 1.129 at 128, 1.122 at 256, 1.106 at 512.7890.81.21.622.42.83.23.6log₂ of the unknowns: 128, 256, 512stored over the least1/r off it, from the diagonal1/r off it, told, η = 0.81/r off it, told, η = 1Gaussian, η = 11/r on it, η = 0.8ε = 10⁻⁸ · leaves of sixteentold, the margin stays put
Fig. 4 The overpayment against the matrix’s size, at 128, 256 and 512 unknowns, for the offset kernel measured from the diagonal and from its line, the Gaussian at η = 1, and the diagonal kernel at η = 0.8.

The prediction was made at one size, and the reason for measuring three is that the untold rule’s failure grows. On the offset kernel measured from the diagonal, the overpayment is 1.72 at 128 unknowns, 2.06 at 256 and 2.56 at 512: the blocks the line crosses are admitted at a rank that itself grows with the block, so each doubling adds a level of them. Told the line, the same rule is at 1.016, 1.055 and 1.082 at η=0.8\eta = 0.8, and at 1.000, 1.020 and 1.015 at η=1\eta = 1. The told rule’s margin is flat in the way the diagonal kernel’s is, 1.13, 1.12 and 1.11 at the textbook constant, and that is the sense in which the offset kernel’s whole failure was ignorance of the line.

The Gaussian’s floor, on the other hand, rises: 2.63, 3.00 and 3.38. The least is still one block of rank 8, growing like 16n16n, and the dense diagonal grows like 16n16n too, so their ratio would stay at one if that were all. What grows is the rest, one more level of compressed off-diagonal blocks per doubling, each level adding about three-eighths of the least. So the overpayment a smooth kernel pays for a geometric rule is not a constant that a better η\eta might shave; it is logarithmic in the size, and it cannot be told away.

Reading the ends of a block

The second prediction was about probes, and the measurement was set up as the earlier essay described it: a cross whose rows and columns are drawn half from the two ends of each cluster and half at random, admitted without any check when its rank falls short of its size and storing that rank would pay.

The storage a probe reaches over six seeds, with its cross drawn at random and with half of it drawn from each cluster's two ends, at eight and sixteen samples, as a multiple of the least, on four kernels1/r on the diagonal: random 8 from 1.00 to 1.00, ends 8 from 1.00 to 1.00 with 0 seeds admitting the whole matrix; random 16 from 1.00 to 5.45, ends 16 from 1.00 to 1.21 with 0 seeds admitting the whole matrix. 1/r on a line off it: random 8 from 1.60 to 4.36, ends 8 from 1.76 to 4.36 with 3 seeds admitting the whole matrix; random 16 from 4.36 to 4.36, ends 16 from 4.36 to 4.36 with 6 seeds admitting the whole matrix. a wide Gaussian: random 8 from 1.00 to 1.00, ends 8 from 1.00 to 1.00 with 6 seeds admitting the whole matrix; random 16 from 1.00 to 1.00, ends 16 from 1.00 to 1.00 with 6 seeds admitting the whole matrix. cos(40r)/r: random 8 from 1.12 to 1.18, ends 8 from 1.21 to 1.31 with 0 seeds admitting the whole matrix; random 16 from 1.00 to 4.57, ends 16 from 1.00 to 1.00 with 0 seeds admitting the whole matrix.1234561/r on the diagonalrandom cross, 8through the ends, 8: 0 of 6 wholerandom cross, 16through the ends, 16: 0 of 6 whole1/r on a line off itrandom cross, 8through the ends, 8: 3 of 6 wholerandom cross, 16through the ends, 16: 6 of 6 wholea wide Gaussianrandom cross, 8through the ends, 8: 6 of 6 wholerandom cross, 16through the ends, 16: 6 of 6 wholecos(40r)/rrandom cross, 8through the ends, 8: 0 of 6 wholerandom cross, 16through the ends, 16: 0 of 6 wholestored over the least · dot the median of six seeds, bar the rangeno check: the cross's rank is believeda cross through the ends reads corners
Fig. 5 A probe’s storage over six seeds, random and through the ends, at eight and sixteen samples, as a multiple of the least, with how many seeds admitted the whole matrix as one block.

On the offset kernel it does worse than a random cross, not better. At sixteen samples every one of the six seeds admits the whole matrix as one block, storing 1.29 times its entries, 4.4 times the least, after reading 256 entries. At eight, three seeds of six do. The prediction said none would.

The flaw is in the word cross. A cross reads the entries where its chosen rows meet its chosen columns, so a cross whose rows are the clusters’ ends and whose columns are the clusters’ ends reads the block’s four corners and nothing else of its boundary. The singular line enters the whole matrix at row 95 of column 0 and leaves it at column 160 of row 255. Those points are on the boundary, but in the middle of an edge, and the end rows meet the end columns at entries of the matrix that are more than ninety spacings from the line. The probe looked hard at the four places the line does not go.

The same figure shows where corners do help. On the diagonal kernel the cross through the ends stores the least on every seed at eight samples, and within a fifth of it at sixteen, where the purely random cross had four seeds of six storing twice the entries. A block next to the diagonal touches the singularity at exactly one point, its corner nearest the diagonal, and a cross through the ends reads that corner. So the design the earlier essay proposed for the singularity the rule cannot see turns out to see precisely the singularity the rule already knew about. On the Gaussian both probes take the whole matrix as one block, which there is correct, and on the oscillatory kernel the ends cost a little at eight and match the least at sixteen.

Reading whole edges, and what the check was doing

A probe that does read the boundary has to read lines, not crossings: for each block, kk whole rows and kk whole columns, half at the clusters’ ends, and admission when both strips have rank below kk. That reads k(m+q)k(m + q) entries of an m×qm \times q block, where the cross read k2k^2, and it costs about what a cross approximation would spend compressing the block in the first place.

The storage over six seeds of a probe that reads whole rows and columns, half at each cluster's ends, beside a random cross whose admitted blocks are checked by their own rank, at three sizes, as a multiple of the least, with the entries each reads, on four kernels1/r on the diagonal: 8 strips median 1.09 reading 34816, 8 checked median 1.15 reading 1856; 16 strips median 1.00 reading 57344, 16 checked median 1.15 reading 7424. 1/r on a line off it: 8 strips median 1.08 reading 34816, 8 checked median 1.22 reading 2368; 16 strips median 4.36 reading 8192, 16 checked median 1.22 reading 9472. a wide Gaussian: 8 strips median 1.00 reading 4096, 8 checked median 1.00 reading 64; 16 strips median 1.00 reading 8192, 16 checked median 1.00 reading 256. cos(40r)/r: 8 strips median 1.42 reading 57344, 8 checked median 1.36 reading 3392; 16 strips median 1.00 reading 57344, 16 checked median 1.11 reading 7424 Of 65536 entries.12481/r on the diagonal8 strips, 34.8k read8 at random, checked, 1.9k read16 strips, 57.3k read16 at random, checked, 7.4k read1/r on a line off it8 strips, 34.8k read8 at random, checked, 2.4k read16 strips, 8.2k read16 at random, checked, 9.5k reada wide Gaussian8 strips, 4.1k read8 at random, checked, 0.1k read16 strips, 8.2k read16 at random, checked, 0.3k readcos(40r)/r8 strips, 57.3k read8 at random, checked, 3.4k read16 strips, 57.3k read16 at random, checked, 7.4k readstored over the least, on a logarithmic scalestrips: the median of six seeds and the rangethe check does what reading cannot
Fig. 6 A probe that reads whole rows and columns, half at the clusters’ ends, beside a random cross whose blocks are checked by their own rank, at eight and sixteen samples, with what each reads, as a multiple of the least.

At eight strips it sees the line. The offset kernel lands between 1.03 and 1.12 of the least over the six seeds, better than the checked random probe’s 1.22, and no seed admits the whole matrix. It reads 34,816 entries to do it, 53 per cent of the matrix, where the checked random probe reads 2,368. On the diagonal kernel it is 1.03 to 1.12 at eight and exactly the least at sixteen, reading 57,344 entries, 87 per cent.

At sixteen strips it fails on the offset kernel as completely as the cross through the ends: every seed admits the whole matrix, at 1.29 times its entries. The reason is visible in the strips themselves. Of the root block’s sixteen rows, the four at the top, rows 0 to 3, lie above the point where the line enters and are smooth; together they have numerical rank 3. The test admits a block when its sample’s rank falls short of the sample’s size, and with four nearly dependent rows in it, a sixteen-row strip whose other eight rows come from across the matrix has rank 14. It falls short by two, and the test reads that shortfall as a smooth block. The line is in the strip, in the bottom rows, at full rank, and the test has no way to know that the deficiency came from somewhere else.

That is the same defect the earlier essay found in the random cross, where a larger cross had more room to fall short of its size, now in a design that reads thirty times more. And it settles the alternative the prediction offered for its own failure: the check is doing work no sampling design replaces. A sample’s rank compared with the sample’s size measures whether some part of the sample is redundant. The question is whether all of the block is, and only the block’s own rank, which the compression reads anyway, answers it.

What the rule’s sentence becomes

The geometric rule’s economy was presented in which pairs are allowed to be small as reading no entry of the matrix, and the same matrix, numbered twice showed that the numbering has to carry the geometry for that to work. This measurement adds two clauses. The geometry has to be measured from the kernel’s singular set and not from the diagonal: told that, the rule loses nothing to the least on a kernel whose singularity is a known line, at every size measured. And the constant has to match the dimension: in one dimension the touching pairs are worth admitting, and the rule at η=1\eta = 1 is the least on both kernels singular on the diagonal.

What the rule cannot do is notice that a kernel has no singularity at all. Its dense diagonal is the one piece of the partition decided before η\eta is consulted, and on a smooth kernel that piece costs as much as the whole best representation. That is the case for building a representation from the matrix’s own products, as built from products alone does, or from probes whose admissions are checked; and it is also why the kernel with nothing to compress and the smaller cluster sets the rank could study ranks block by block without the partition ever being the thing in question. When the partition is right, the ranks are the story. When it is wrong, it is wrong before a single rank is computed.

Nor is the told rule a solution to the offset kernel in general. It was told an exact line, and real kernels carry their singular sets less tidily: a delay that varies, a reflection whose image moves with the source, a Green’s function with two images. The same tolerance read as a number of digits assumes the partition is fixed before the digits are counted, and this measurement says the partition is only as good as the caller’s account of where the kernel stops being smooth.

What one dimension and four kernels cannot say

Everything here is on a uniform grid in one dimension, where clusters are intervals, a touching pair meets at a point, and qq takes a handful of values. The finding that η=1\eta = 1 is the least is a finding about that geometry, and the argument above says it should fail in two dimensions, where a touching pair shares an edge whose length grows with the cluster. Nothing here measures that. The told rule was given the line exactly; a line known only to a tolerance would sit between the told and untold results, and how far between is unmeasured. Six seeds show a probe’s range coarsely, and a failure on one seed in twenty would not be seen.

Still open: two dimensions, and a line known roughly

The touching pair in two dimensions. On a square grid with a 1/r kernel and a quadtree, a touching pair shares an edge. The prediction with a sign is that there the weak partition stores more than the strong one, by a factor that grows with the size, and that the least sits near η\eta between 0.5 and 0.8 rather than at one, so that the textbook constant is a two-dimensional value carried unexamined into one dimension. If the weak partition is still the least in two dimensions at these sizes, then the case for strong admissibility is about three dimensions or about solvers, and not about storage.

A line known to within a band. If the caller knows the offset only to within ±δ\pm\delta, the told rule can widen each cluster’s radius by δ\delta. The prediction is that with δ\delta up to the leaf width the told rule stays within 1.15 of the least, and that past four leaf widths it is no better than the untold rule, because by then the widened clusters overlap the line from every block near it and the rule refuses most of the matrix.

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.

AdmissibilityCluster treeHierarchical matrixKernel matrixNumerical rankWeak admissibility