Tile Fill Versus Girth: Sparse Sensing Matrices That Are Both Certifiable and Fast on Tensor Cores

Compressed sensing recovers a sparse signal from far fewer linear measurements than its length. The measurement matrices with the cleanest provable guarantees are very sparse 0/1 matrices built from error-correcting codes. Their guarantee comes from graph structure: the matrix is read as a bipartite graph, and the certificate depends on that graph having no short cycles. These matrices are also exactly the kind that GPUs handle badly. Their few nonzeros are scattered, so the fast matrix units (Tensor Cores, which only multiply small dense tiles) sit mostly idle. The usual fix is to reorder rows so that nonzeros cluster into dense tiles. This note starts from a simple observation: any dense tile inside a 0/1 matrix is full of 4-cycles, and 4-cycles are what break the girth certificate. Hardware efficiency and recoverability therefore pull directly against each other. How hard they pull is set by a classical extremal-combinatorics quantity, the Zarankiewicz number: the maximum number of ones a tile can hold without containing a 4-cycle.

We propose to measure this tradeoff, build matrices that sit on its boundary, and certify them. Concretely, we will construct block-structured binary sensing matrices. Each nonzero tile is a maximally dense 4-cycle-free pattern, such as the point–line incidence matrix of a finite projective plane. The tiles are arranged by a shifted "lift" so that no short cycles form across tiles. We will certify recovery for these matrices through the known map from real nullspace vectors into the fundamental cone of a parity-check code. We will then time recovery end to end with a block-sparse Tensor Core kernel. The result is a quantified answer to "what does hardware structure cost in measurements?", which the sparse-sensing literature has not posed. It also gives a construction that pays as little of that cost as the combinatorics allows.

Core Claim

Consider a binary sensing matrix $A\in\{0,1\}^{m\times n}$ stored in blocked format with $r\times c$ tiles. Tensor Core utilization is bounded by the average fraction of ones in its nonzero tiles, the tile fill. If the matrix's bipartite graph has girth at least 6, meaning no two columns share two rows, every tile is a 4-cycle-free pattern. Its number of ones is then at most the Zarankiewicz number $z(r,c;2,2)$. That number grows roughly like $c\sqrt{r}$ (the Kővári–Sós–Turán bound), so for square $q\times q$ tiles the fill cannot exceed about $q^{-1/2}$.

The ceiling holds for every row and column permutation. No reordering heuristic can push a girth-6 matrix past it. Projective-plane incidence blocks attain the bound: the order-3 plane gives a $13\times 13$ tile with 52 ones, about 31% fill, and the order-7 plane gives $57\times 57$ with 8 ones per row. Our claim is that designed tiles reach this ceiling while random sparse matrices plus reordering fall well below it. We also claim the designed matrices keep certifiable and empirically near-unstructured recovery thresholds. The cost of hardware structure should then be a small, predictable increase in the number of measurements, not the large gap that a dense-tile or 2:4 design would suffer.

What the Prior Work Gives Us

The certificate machinery comes from the coding–sensing bridge. Connecting Gallager to Shannon and LDPC Codes for Compressed Sensing. prove two things. First, if $v$ is in the real nullspace of a binary $A$, then its elementwise absolute value $|v|$ lies in the fundamental cone $\mathcal{K}(A)$ of $A$ read as a parity-check matrix. Second, high-girth LDPC matrices therefore give deterministic basis-pursuit guarantees, for instance sparsity fraction $\alpha\le 0.05$ for $(3,6)$-regular codes with logarithmic girth. We reuse this bridge directly.

That work never asks how the matrix executes. The same papers stress that the bridge is one-way, which constrains us: a cone-based certificate can be conservative. They also stress that it is loose for dense matrices, which is one reason we stay in the low-density regime.

What is the Largest Sparsity Pattern That Can Be Recovered by 1-Norm Minimization? and Sparse Recovery over Graph Incidence Matrices motivate the girth lens. For incidence matrices they show that cycles span the nullspace and that sparsity below half the girth is exactly certifiable in polynomial time. Their results rely on columns with one $+1$ and one $-1$. Ours are 0/1 columns of weight greater than 2, so we must go through the fundamental cone rather than cycle counting.

On the hardware side, High Performance Unstructured SpMM Computation Using Tensor Cores (SMaT) supplies the kernel pattern: blocked sparse row storage, asynchronous copies, and Jaccard-similarity row reordering to pack nonzeros into $16\times 8$ tiles. SMaT treats structure as something to discover in a given matrix. We design it in, and the Zarankiewicz argument tells us how much any discovery procedure could find in a high-girth matrix. Tile-wise sparsity likewise aligns sparsity with GPU tiles, but for neural weights and without recovery guarantees.

The certificate is short enough to state. For each coordinate $i$, solve the linear program $$\theta_i=\max\Big\{w_i : w\in\mathcal{K}(A),\ \textstyle\sum_{j} w_j=1\Big\},\qquad \theta=\max_i\theta_i .$$ Every real nullspace vector $v$ has $|v|\in\mathcal{K}(A)$, so $|v_i|\le\theta\|v\|_1$. It follows that $\|v_S\|_1\le k\theta\|v\|_1$ for every support $S$ of size $k$. Basis pursuit therefore recovers every $k$-sparse signal whenever $$k<\frac{1}{2\theta}.$$ This takes $n$ polynomial-size linear programs (fewer under the lift's symmetry, since shifted columns share $\theta_i$). It sidesteps the NP-hardness of checking the nullspace property in general, established in The Computational Complexity of the Restricted Isometry Property, the Nullspace Property, and Related Concepts in Compressed Sensing. The price is conservativeness inherited from the one-way bridge.

Research Program

The first part is the frontier itself. For tile shapes matched to Tensor Core fragments ($16\times 8$, $16\times 16$, with padding where plane sizes do not fit), we will compute or bound the maximum 4-cycle-free fill. We will do the same for 6-cycle-free fill, which matters for girth 8, using generalized-quadrangle incidence structures as candidates. The resulting curve is a hardware ceiling as a function of target girth.

The second part is the construction. Following the quasi-cyclic idea from LDPC design, we will use a small base graph, the protograph, and place a shifted copy of a maximal 4-cycle-free tile at each of its edges. The shifts are searched so that the lifted matrix has global girth 6 or 8. The subtle point is cross-tile cycles: two columns in the same block-column can share rows in two different block-rows. The shift search must exclude these, exactly as in quasi-cyclic LDPC shift selection. Column weight equals the tile's row weight times the base graph's column degree, so the construction trades column weight against fill. We will map that trade.

The third part is certification and characterization. For each construction we will compute the certified $k$ from the linear programs above. We will also measure the empirical basis-pursuit phase transition. Comparing the two shows how conservative the one-way bridge is for block-structured matrices, a question LDPC Codes for Compressed Sensing raises but does not quantify.

The fourth part is execution. Basis pursuit solved by a first-order primal–dual method spends nearly all its time on products with $A$ and $A^\top$ over batches of signals. We will implement these products with a SMaT-style blocked kernel that needs no reordering, since the tile structure is known by construction. The transpose shares the same tile structure when the tile is symmetric, as projective-plane incidence matrices can be. We will report wall-clock time to recover a batch of signals at a fixed success rate.

We deliberately do not claim that this transfers to neural-network pruning. Weight matrices are not measurement operators, and nothing in the file shows that girth matters for trained accuracy. The "unstructured sparsity overhead" direction enters here as the systems constraint whose cost we price in measurements.

Baselines

The naive reference is a random column-regular LDPC matrix, for example column weight 3, with matched $m$ and $n$. It is multiplied with cuSPARSE, which is what a practitioner would do by default. It fixes the recovery quality of unstructured sparse matrices and the speed of the untuned path. SMaT reports being up to 125x faster than cuSPARSE on SuiteSparse on an A100, so beating this reference on speed is expected and not decisive.

The strongest speed competitor is the same random LDPC matrix after SMaT's Jaccard reordering and blocked Tensor Core execution (SMaT). SMaT reports being on average 2.6x faster than the next-best library (DASP) on nine real matrices, and faster than cuBLAS at sparsity as low as 78%. Because $A$ is static, SMaT's reordering cost is amortized, so this baseline is at full strength. We will run it on the same GPU, batch sizes and precision, excluding reordering time from its measurements. Winning means higher achieved tile fill and lower time-to-recover at equal or better measurement count.

The strongest recovery competitor is a dense Gaussian matrix multiplied with cuBLAS. It generally needs the fewest measurements, and its dense products are as fast as anything per flop. It is run with the same solver, iteration budget and batch. Winning means lower time-to-recover at a matched success rate, not fewer measurements.

For certificates, the natural comparison is the semidefinite nullspace test of Testing the Nullspace Property using Semidefinite Programming, applied where it scales. For the $(3,6)$ regime we use the Dimakis et al. guarantee. We found no reported empirical phase-transition number on Lacuna for block-structured binary matrices; the only reported figure in this regime is the proven $\alpha\le 0.05$ above.

The key ablation holds tile fill, tile layout and kernel fixed, and replaces each projective-plane tile with a random tile of the same weight, which will contain 4-cycles. A second ablation uses fully dense tiles, the most hardware-friendly option. Together they isolate whether 4-cycle-freeness, rather than blocking alone, buys the recovery quality.

Why not just…?

Why not just use a dense Gaussian matrix and cuBLAS? This is a real threat at small $n$, where dense products are cheap and the measurement savings of Gaussian matrices may dominate. The argument against it is scaling. Each solver iteration costs about $mn$ for dense and about the number of nonzeros for sparse, so beyond some $n$ the sparse design must win even at lower Tensor Core utilization. We will locate this crossover explicitly. If it lies beyond problem sizes anyone uses, the speed half of the claim fails and we will say so.

Why not just reorder a random LDPC matrix with SMaT? Under our argument, reordering cannot exceed the Zarankiewicz ceiling for a girth-6 matrix. And a random sparse matrix almost surely has scattered 4-cycles, so any fill SMaT gains comes precisely from packing them into tiles. The experiment settles this directly. We report the tile fill SMaT achieves on random LDPC matrices next to the ceiling and our constructions. If SMaT already comes close to the ceiling, the construction offers no speed advantage, and the contribution shrinks to certificates.

Why not just use 2:4 structured sparsity, which Tensor Cores accelerate natively? 2:4 fixes density at 50%. Two rows each half-full share about a quarter of their columns, so the bipartite graph is saturated with 4-cycles. That sits in the dense regime where, per the Dimakis et al. papers, cone-based bounds become loose. Hardware-native 2:4 and certifiable sparse sensing sit at incompatible densities, and our dense-tile ablation will show the recovery cost of chasing hardware alone.

Why not ignore girth, since random sparse matrices recover well in practice anyway? This is the most serious alternative. Empirical phase transitions may barely move when 4-cycles are present, so girth might matter only for the certificate. The random-tile ablation tests exactly this. If recovery is insensitive to 4-cycles, the honest conclusion is that dense tiles are free empirically and girth is purely a certification device, and we will present the frontier on those terms.

Decisive Checks

We will use synthetic $k$-sparse Gaussian and adversarial-sign signals, following the incidence-matrix phase-transition experiments of Zhao et al. and Kaba et al., with $n$ from $10^4$ to $10^6$ on an A100. Metrics are four:

  • the number of measurements needed for 95% exact recovery at each $k$;
  • the certified $k$ from the cone linear programs;
  • the achieved tile fill;
  • wall-clock time to recover a batch of 1024 signals.

The proposal succeeds if three things hold together. First, the designed matrices come within a small factor of the Zarankiewicz fill ceiling while reordered random LDPC matrices do not. Second, their measurement count stays within a few percent of unstructured LDPC matrices, and clearly below the dense-tile ablation. Third, their time-to-recover beats both SMaT on random LDPC and cuBLAS on Gaussian matrices above a measured crossover size. If only the second and third hold without the first, blocking helps but the combinatorial design does not. If the certified $k$ sits far below the empirical threshold, that quantifies the one-way bridge's looseness for structured matrices, which is itself a result worth reporting.