- The paper shows that exact attention-mass ranking nearly matches dense attention, with its oracle reaching 0.9010 versus 0.9040 on 32k RULER, proving selection estimation—not the ranking objective—is the main bottleneck.
- COBS stores compressed second-order key statistics using low-rank covariance, query-subspace projection, and FP4 quantization, raising performance from the NSA MLP baseline’s 0.2999 to 0.8195 while requiring only 1.21× its KV-read traffic.
- The results indicate that cumulant order is a practical design axis for sparse attention, although high covariance ranks can amplify distractors and the findings remain limited by small-scale models, RULER-style evaluation, and hardware-dependent runtime effects.
Motivation and problem statement
Transformer decoding at long context is memory-bandwidth bound: each decode step reads the entire key–value (KV) cache, leaving hardware underutilized. Block sparse attention—selecting a small number of contiguous cache blocks for fine-grained attention—is among the most hardware-friendly remedies, yet it is largely absent from leading open-weight LLMs, which instead use dense GQA, latent KV compression, local-plus-global patterns, or fine-grained token selection. The paper investigates what limits block sparse methods, using DeepSeek's Native Sparse Attention (NSA) (Yuan et al., 16 Feb 2025) as a representative testbed. NSA composes three gated branches (compression, top-k block selection, sliding window); because only the selection branch decides which distant blocks are ever seen at full resolution, it cleanly isolates the mechanism under study.
The selection oracle: mass ranking suffices
The authors formalize block selection as reconstructing dense per-head attention outputs from a top-k block subset. Writing mb for a block's attention mass and c its value centroid, the dense head output is a mixture of centroids weighted by normalized masses Pb=mb/Z. Under three explicit assumptions (value-agnosticism via a common deviation-magnitude bound, disregarding that bound for ranking, and a linear relaxation of τ/(1−τ) valid when dropped mass is small), minimizing the per-KV-head reconstruction error reduces to ranking blocks by an additive score:
scoreb(h)=g=1∑GZ(g,h)mb(g,h).
For multi-head attention (G=1), this reduction is exact without assumptions A2–A3. To validate the criterion itself, they introduce Oracle Sparse Attention (OSA): NSA with selection by exact masses computed by reading all keys (impractical, since key traffic stays dense). On their 11-task 32k RULER configuration, OSA scores 0.9010 versus dense attention's 0.9040, closing 99.5% of the gap from the NSA baseline. This is the paper's central diagnostic result: the obstacle to block sparsity is not the selection criterion but the estimation of the mass from a compact, query-independent summary.
Why first-order selectors fail
The block mass can be written as L times the moment generating function of the block's empirical key distribution, so its logarithm is the cumulant generating function KX(q):
k0
with first cumulants the block mean key k1 and within-block covariance k2. Any cacheable selector must store a query-independent summary; all existing ones—NSA's MLP pooling, DeepSeek-V4 CSA's gated pooling, mean-pooling—score blocks affinely in the query, matching at most the constant and first-order terms. No affine score can reproduce the quadratic curvature term k3, which distinguishes blocks whose key spread is codirectional with the query from those whose spread is orthogonal despite identical means. For GQA, where heads share one block set, the authors give an informal argument (via a relaxation to independent per-head selection) that the whole first-order family is bounded by this curvature-blind ceiling; they are explicit that this is informal rather than a proof. Quest's min/max bounding box is piecewise-linear and carries some curvature, but only as a coarse axis-aligned proxy.
COBS: second-order selection
COBS extends NSA by storing, per block, the mean key plus a compressed covariance, scoring with the truncated estimator k4. Three storage optimizations keep the descriptor cheap:
- Low-rank spectral decomposition: retain the top-k5 scaled eigenvectors of k6 (k7 operating point).
- Query-subspace projection: project covariances into the top-k8 eigenvectors of the query second moment, set adaptively per layer (k9 average, concentrated in later layers).
- FP4 (E2M1) quantization of the stored eigenvectors, which is essentially lossless (mb0 on RULER while shrinking the descriptor mb1).
Two auxiliary choices matter: removing RoPE from the compression and selection branches (NoPE) prevents positional spread from contaminating content summaries—an additive improvement raising the mean-pool baseline from 0.4186 to 0.5554—and eigenvectors are recomputed once per block via a Gram trick costing mb2, avoiding materializing the full mb3 covariance.
Headline results
On the 11-task 32k RULER configuration, COBS (subspace mb4, mb5, FP4) reaches 0.8195, up from the NSA MLP baseline's 0.2999, approaching dense at 0.9040 and closing about 86% of the gap. The full-space rank-6 variant reaches 0.8493 (90.9% of gap closed). These gains come at modest cost: the deliverable configuration uses mb6 the NSA baseline's per-decode-step KV read traffic (4327 vs. 3584 KiB per layer) and mb7 less than dense. Notably, even plain mean-pool selection (0.5554) substantially outperforms NSA's learned MLP summary (0.2999), confirming that expressiveness of pooling does not help when the summary enters the score only to first order.
| Method |
32k RULER |
Gap closed |
KV read/layer (KiB) |
| Dense |
0.9040 |
100% |
65,536 |
| OSA (mass oracle) |
0.9010 |
99.5% |
36,352 |
| NSA MLP (RoPE) |
0.2999 |
0% |
3,584 |
| NSA mean-pool (NoPE) |
0.5554 |
42.3% |
3,584 |
| NSA Quest |
0.5765 |
45.8% |
5,632 |
| COBS subspace FP4 |
0.8195 |
86.0% |
4,327 |
| COBS full-space mb8 |
0.8493 |
90.9% |
9,728 |
The same model preserves short-context behavior (common-sense benchmark average 38.6 vs. dense 38.2, within a 0.6-point spread across variants) and attains the lowest position-wise NLL in the comparison (1.633 vs. dense 1.727), with a flat long-position NLL slope indicating genuine conditioning on distant tokens.
Ablations and negative results
The rank sweep reveals a non-monotonicity: selection peaks at mb9 (0.8539) but regresses at c0 (0.8006) and does not recover even at the maximum feasible rank c1 (0.8135). The collapse concentrates in multi-key needle tasks (MK3 falls from 0.470 to 0.054). The authors attribute this to the unsigned variance term boosting distractor-heavy blocks regardless of signed alignment; a diagonal third-cumulant correction partially repairs high-rank regression (0.8006 → 0.8252) but hurts badly at low rank (0.8238 → 0.7754 at c2), so the method stops at the covariance with c3. Two further negatives motivate design: expanding around a calibrated query origin c4 underperforms expansion at zero (0.8100 vs. 0.8238), and adaptive per-layer subspaces beat global budgets at comparable dimension.
Limitations
The study is a mechanism analysis at ≈1.2B backbone scale (≈1.7B for the NSA MLP baseline, which also receives a proportionally longer pretraining budget—a charitable-baseline confound the authors acknowledge). The controlled NSA replication differs from original NSA in hyperparameters, compression branch, and non-overlapping blocks, so numbers should be read as system-level comparisons, not reproductions. The NoPE scheme introduces a position-encoding confound against the RoPE-dense baseline, and was ablated only on retrieval-style data where content may dominate position. Long-context evaluation relies on SFT on generated RULER-style data, a nonstandard protocol; the authors explicitly frame RULER numbers as relative selection quality rather than absolute accuracy. Finally, KV-read accounting does not imply end-to-end runtime gains, which depend on kernels and hardware.
Conclusion
The paper traces the weakness of block sparse attention to the selection branch, proves (under stated assumptions) that selection reduces to ranking by attention mass, shows via oracle experiments that exact-mass ranking essentially matches dense attention, and identifies cumulant order—the order of the cached, query-independent summary—as both a diagnostic lens and a practical design axis. Storing a compressed second-order statistic closes most of the gap between first-order selection and dense attention at near-baseline traffic. Open questions include whether the gains transfer beyond ≈1B scale and RULER-style SFT, how the unsigned-variance failure mode at high rank should be addressed principledly, and whether the informal GQA ceiling argument can be made rigorous.