A far pair is not a smooth pair
Worth reading first: Which pairs are allowed to be small · A block nobody can call sparse.
Which pairs are allowed to be small introduced the rule a hierarchical representation is built on. A pair of clusters of indices is admissible when its members are far apart relative to their size, and an admissible block is stored as two thin factors. On a 256-square matrix it yields 112 blocks, 66 of them low-rank, none of rank above five. And it does so by reading “four numbers per pair of index clusters and not one entry of the matrix”, which is why it can be run before the matrix exists.
The test that costs what it saves then weighed it against the rule that compresses every off-diagonal block regardless, and the same matrix, numbered twice showed it failing outright when a permutation hides the geometry. Neither questioned the premise, which is stated in the sentence above: that where the points are says how compressible a block is. That is true for a kernel whose only singularity sits on the diagonal, because such a kernel is smooth away from it. The rule has assumed this about the kernel without looking, and it has no way of looking. Four kernels are enough to find out what that costs.
The least any partition of this tree can store
To measure an overpayment there has to be a floor, and for a fixed cluster tree there is a computable one. Every candidate block in the tree is either stored whole, compressed at its own numerical rank, or split into its four children. Taking the cheapest of those from the bottom up gives the least storage any partition of the tree can reach, at one tolerance. This takes an SVD of every block in the tree, a total of 341 SVDs at 256 unknowns with a leaf size of 16, which no program would do in practice and which is just what a measurement needs. So all partitions below compress their admitted blocks by their own SVDs to the same , and differ only in which blocks they admit.
Four kernels on a uniform grid are used. The first is the one the rule was built for, with its singularity on the diagonal. The second is the same function with its singularity moved to the line . The third is a wide Gaussian with no singularity at all. The fourth is an oscillatory kernel, , which a separate essay on this field has already found refuses to compress beyond a certain point.
The left-hand panel is the point of this figure, and the dial makes it plain. Turn through all four kernels and it does not move at all: 112 blocks in the same pattern, because it depends only on the points. The right-hand panel changes with every stop. On the diagonal kernel it resembles the geometric partition with coarser blocks near the corners. On the offset kernel it runs a line of small blocks along , exactly where the singularity is, and it leaves the real diagonal to large low-rank blocks. On the Gaussian it is one block, of rank 8.
What the rule pays on each kernel
On the diagonal kernel the rule is in good shape: 41.2 per cent of the entries against a least of 36.7, an overpayment of 12 per cent. A rule built on a theorem about this kernel is doing what the theorem says. And that near-agreement is the evidence the earlier essays had before them.
On the wide Gaussian it stores 35.8 per cent against a least of 6.3, more than five times too much. That matrix is one low-rank block of rank 8, at 4,096 numbers. The rule never finds out, because it keeps subdividing near the diagonal: two touching clusters always fail the test, whatever the kernel does there, so it ends at the same 16-by-16 dense leaves along the whole diagonal. Those leaves are what the storage is. They were the price of a singularity that this kernel does not have.
On the oscillatory kernel it stores 53.9 against 43.8, an overpayment of a fifth. And on the offset kernel it stores 60.8 against 29.5, about double. That one fails in the other direction as well.
Far from the diagonal, and across the singular line
The rule’s largest admitted rank on the diagonal kernel is five, as the first essay reported. On the offset kernel it is 35, and five of its admitted blocks are stored at more cost than if they had been left whole. These are the blocks that the singular line crosses. They are far from the diagonal, they pass the test, and what they contain is the worst part of the matrix. The rule is not merely overpaying on them. It is storing them worse than a program that had made no attempt to compress at all.
It is worth contrasting this with what the best partition does with the same kernel. Its largest rank is ten. Its blocks along the singular line are small and whole, while its blocks elsewhere, including over the diagonal, are large and low-rank. So the best partition’s largest rank on the diagonal kernel is higher than the rule’s, 12 against 5, and that is not a failure: it has chosen to take larger blocks at higher rank wherever that stores less. The rule’s low ranks, which read like an achievement, are partly the mark of a partition subdivided further than it needed to be. The smaller cluster sets the rank shows the local version of this, in which a rank is a matter of what the block’s shorter side can support.
A real kernel has this offset singularity more often than one might expect. A delay in a time-dependent integral operator gives one, a reflection across a boundary gives one in a coordinate that does not make it look like a boundary, and so does a Green’s function in which a source is mirrored. Those are familiar problems with familiar reasons to use a hierarchical format, and the standard rule reads nothing from them.
The overpayment grows with the matrix
At 128 unknowns the same four kernels show the rule’s overpayment at 1.13, 1.72, 4.6 and 1.18, in the order diagonal, offset, Gaussian, oscillatory. At 256 they are 1.12, 2.06, 5.7 and 1.23. So on the kernel the rule was made for, the ratio holds still, since a theorem about that kernel underlies both partitions. On the other three it rises with the size, by about a fifth per doubling on the two that do not suit it at all.
The reason is the same on both, though the failure looks different. On the Gaussian, the best partition stores eight columns times twice the size, so its storage grows in proportion to the size, while the rule’s dense diagonal grows the same way with a much larger constant, and the rule’s near-diagonal low-rank blocks add a logarithm’s worth more. On the offset kernel, the blocks crossing the singular line are admitted at a rank that itself grows with the size, 20 at 128 unknowns and 35 at 256. Only the second of these would ever become an impossibility: a rank that grows with the block is the condition under which a hierarchical format stops being one, and the rule, in admitting such blocks, has taken a kernel that a better partition holds at rank 10 and given it that condition.
A test that reads a few entries
The obvious alternative is a test that actually looks. Pick a random set of rows and columns of the block, read the entries where they cross, and compute that small matrix’s numerical rank. If it is well below , and storing a block of that rank would be cheaper than storing it whole, admit the block; otherwise split. At eight samples this reads 1,856 entries of 65,536 on the diagonal kernel and only 64 on the Gaussian, which it takes as one block immediately.
At eight samples the result is striking. On the diagonal kernel it lands on 36.7 per cent, exactly the least. On the Gaussian it lands on 6.3, exactly the least. On the oscillatory kernel it stores 49.6 against 43.8, and on the offset kernel, at this seed, 47.2 against 29.5, each better than the rule. A test that reads under 3 per cent of the entries found the best partition on two kernels of four, where a rule that reads none is the worst of those compared.
And yet a probe has a failure that the rule cannot have.
At sixteen samples, on the offset kernel, the median probe stores 129 per cent of the entries, in one block, of rank 165. It looked at 256 entries of the whole matrix, found a cross of low rank, and admitted everything. Its cross happens to contain no points within the narrow peak of the line, so what it sampled was smooth. All six seeds do this. On the diagonal kernel the same happens on most seeds and not on all: at sixteen samples four seeds of six store 200 per cent, a block of full rank held as two factors, while at eight samples every seed lands on 36.7. On the oscillatory kernel at sixteen one seed reaches 200 per cent as well, and on the offset kernel at eight the seeds run from 47 to 129. Reading more can make the outcome worse, since a larger cross has more room for its rank to fall short of , and the bar for admission is that it should. This is the same trouble as a sketch that finds the columns it can see: a random sample of a matrix cannot see a feature concentrated in a small part of it. A singularity is such a feature, and a singularity is what the whole theory is about.
Believing the rank after reading it
The repair costs very little, because the compression has to happen anyway. Once a block is admitted, it is passed to an SVD or a cross approximation to get its factors, and that reveals its true rank. If that rank is not paying, put the block back and split it.
With that check, the probe no longer has a catastrophic outcome anywhere. Admitting only if the true rank stores in under half the block’s entries, the sixteen-sample probe lands on 42.2, 36.0, 6.3 and 48.4 per cent, within a quarter of the least on all four kernels, and with no spread at all between the six seeds on any of them. That beats the geometric rule on all kernels except the diagonal, where it pays one percentage point more, on the kernel the rule was designed for. Its reads rise only slightly, 7,424 on the diagonal kernel, or about 11 per cent of the entries, and the SVDs that make up its check are ones the compression would have done anyway on the blocks it keeps. A rejected block’s SVD is the only wasted effort, and it is not much.
Four samples, on the other hand, is too few. There the rank of a small cross falls short of four only for very smooth blocks, so it rarely admits, and it lands at 61 per cent on the diagonal kernel and at 100 on the oscillatory one. The lower limit on a probe’s size is about what the block’s real rank needs, and the upper limit is whatever a check can catch. That points to a better design still: compress with a rank-revealing method to a modest stopping rank, in which the probe and the check are one and the same operation. Built from products alone reaches a representation from the other direction, reading no entries at all, and it has to fix its partition beforehand by geometry for this very reason.
What remains of the rule’s economy
The geometric rule’s advantage is real, and it is not only about the entries it saves. It runs before the matrix exists, and that makes it the only option when the partition has to be chosen to decide what to compute at all, as with a kernel whose entries are expensive, or a matrix being assembled in pieces by different processors. It reads nothing and so it cannot be fooled by a bad sample, and the same run on the same points produces the same partition, so a storage estimate can be made in advance. It is also self-consistent in that its bound on the rank is a theorem for the kernels it applies to. The size the rank does not notice rests on precisely that.
What it does not have is any knowledge of the kernel, and all the facts that make its economy work are facts about the kernel that some person knows. So the rule’s sentence should read: if the kernel is smooth away from the diagonal, this partition’s ranks are small. A caller holding a kernel of a different kind has to supply a different geometry, for instance a coordinate in which is the separation, and a reader of the results has to know that happened. For the offset kernel such a coordinate would repair everything, since it reproduces the diagonal case. Finding one from entries is the probe’s job, and for a kernel that is someone else’s code it may be the only way available.
The earlier reading of a rank as a number of digits stands on the blocks where it was measured. Here the point has moved one level up. Which block the digits are counted over is also a choice, and at 256 unknowns on a kernel this benign the choice moves the storage by a factor of six.
Where this measurement ends
The kernels are four, in one dimension, on one grid, and at one tolerance. In one dimension a tree is a very simple thing: clusters are intervals, and a kernel’s singular set is a line in the block plane. Two and three dimensions raise the rank at which any of this occurs, and make the geometric rule’s premise harder to violate by accident in some ways and easier in others. Probes in higher dimensions have many more blocks to read, and the 11 per cent read here would be a smaller share.
The probe here samples uniformly. A probe that samples the block’s corners, or its boundary, would see a singular line that crosses a block more reliably, and such designs exist. And the least storage is the least over one tree: a tree built from the kernel’s own structure could beat it, as a clustering by the singular line would. Six seeds can show the range of a probe’s behaviour only coarsely, so a probe with a one-in-twenty failure would easily go unseen here, and the checked route’s agreement across seeds is evidence rather than proof.
Still open: a sharper probe, and a rule told where the singularity is
A probe that includes the corners. A singular line that crosses a block must enter and leave through its boundary. The prediction with a sign is that a cross drawn half from the boundary rows and columns and half at random never admits the whole matrix on the offset kernel at any seed, stores within 1.2 of the least at sixteen samples, without any check, and reads no more entries than the probe above. If it fails, then the check is doing work that a sampling design cannot replace.
The rule, told. If a caller supplies the line, the geometric rule can use the distance to it in place of the distance to the diagonal. The prediction is that with that change the rule on the offset kernel stores within 1.15 of the least, the same margin it has on the diagonal kernel, so that its whole failure on this kernel is ignorance of where the line is. On the Gaussian no such distance exists, and the prediction is that no setting of the constant below two brings it within a factor of three of the least, since its dense diagonal is built into a test that refuses touching pairs.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A class is no longer one matrix — both name admissibility, cluster tree, hierarchical matrix, kernel matrix, numerical rank, off-diagonal rank
- A prediction that arrives a decade late — both name admissibility, cluster tree, hierarchical matrix, numerical rank, off-diagonal rank
- A quarter of the leaf — both name admissibility, cluster tree, hierarchical matrix, numerical rank, off-diagonal rank
- An offset that bends twice — both name admissibility, hierarchical matrix, kernel matrix, numerical rank, off-diagonal rank
- Each halving reads its own width — both name admissibility, hierarchical matrix, kernel matrix, numerical rank, off-diagonal rank
- One build tells the leaf — both name admissibility, cluster tree, hierarchical matrix, numerical rank, off-diagonal rank
Named objects
A flat tag is an object no other essay names yet.
AdmissibilityCluster treeHierarchical matrixKernel matrixNumerical rankOff-diagonal rank