Paper Reading Notes · arXiv:2609.32704v1 [cs.AI]

CoWindow Attention: turning "full causal coverage" from a per-head duplicate into a collective property of the head ensemble

Every KV head shares one near window and one prefix-sink window; the remaining long-range causal distances are cut into complementary intervals, one per KV head. Individually each head is sparse at distance; collectively they are dense over the whole causal prefix — with no learned router or indexer, one position-defined window rule shared by the training forward/backward passes, inference prefill and autoregressive decoding, and window assignment by global KV-head index so that it aligns with tensor-parallel KV-head sharding.
Authors: Jingze Shi1,2, Zhangyang Peng1, Xianduo Li2, Yanlin Qi2,3, Xiaotian Lin1, Haoxian Chen1,2, Liangdong Wang2, Guang Liu2, Yuyu Luo1 Affiliations: 1HKUST(GZ) · 2Beijing Academy of Artificial Intelligence (BAAI) · 3Université Paris Cité Paper: arXiv:2609.32704 Code: released as flash-sparse-attention (named in the paper; no URL given)
Sparse attentionLong contextGQA Tensor parallelismPosition-defined windowsCoverage ablation 0.6B → 14B scaling law
01 · Overview

Overview

This paper does exactly one thing: it replaces the implicit convention that every attention head must repeatedly see the complete causal history with the convention that a group of KV heads collectively sees the complete causal history. Each head becomes sparse at distance; the duplicated long-range query-key connections are removed. The authors' answer is that as long as this "collective coverage" is complete, retrieval and language-modeling quality barely move.

The construction is light. All KV heads share a near window and a prefix-sink window; the remaining long-range distances are split evenly into $H_k$ complementary intervals, one per KV head. Any key position is therefore always directly visible to some head in the layer, but never has to be visible to all of them. The paper calls this property collective coverage. The overview figure lays out both halves of the story at once:

Figure 1 CoWindow Attention overview: left, the visible-key pattern of three KV heads (shared near window plus one long-range band each); centre, the window partition over the causal triangle; right, latency/memory/RULER summaries
Figure 1: CoWindow Attention Overview. Left: All KV heads share the near window and receive complementary long-range windows whose union covers the full causal attention region, preserving direct access to every preceding key position without duplicating the full history in every head. The shared sink window is omitted for visual clarity. Right: As sequence length grows, CoWA reduces forward and backward latency during training and decoding latency during inference, while matching FullAttn's peak operator memory during training and reducing it during decoding. Separate model-level evaluations show comparable performance on the RULER benchmark. Left: the visible-key set of each KV head. The orange near-diagonal band is shared by every head; the green and blue long-range bands each belong to a single head, and together they tile the whole history. Centre: the causal triangle cut by distance from the current query — the small block at the top right is the shared near window (plus the omitted sink window), and the rest is divided by distance across eight KV heads, so each head is dense inside one diagonal band and empty everywhere else. Right: four summaries in order — forward latency+memory, backward latency+memory, decode latency+memory, and per-task RULER scores. Red (CoWA) pushes both latency and memory down at long lengths while tracking blue (FullAttn) on RULER. Report p.2

💡 Click any image to open the full-resolution original; click again or press Esc to close.

Reading conventions: every number on this page is taken from the paper as written. Anything this page derived by organizing, generalizing or recomputing the paper's own configuration is explicitly marked [organized] or [estimated], so it can be told apart from the paper's own figures. Notation follows the paper: $N_q, N_k$ are query/key sequence lengths, $H_q$ is the number of QO (query/output) heads, $H_k$ the number of KV heads, $H_q/H_k$ the size of a QO-head group, $d_{qk}, d_v$ the per-head dimensions, $w_{\text{sink}}$ and $w_{\text{near}}$ the shared sink and near window widths, and $TP$ the tensor-parallel degree. This page additionally writes $\bar{s}$ for the paper's "mean number of selected keys per query and per QO head".
8K associative recall · 100% collective coverage vs full attention
89.73% FullAttn 89.97% — a 0.24 pp gap at matched per-head window widths (Table 1 / Figure 2)
Same window widths, coverage the only variable (8K)
21.32 → 89.73 duplicated windows at 12.5% coverage → complementary windows at 100%
128K operator latency (8×H100, TP=8)
7.4× forward · 8.6× backward versus FullAttn; decoding 3.0×
Decoding-operator peak memory
8.4 MiB (7.6× lower) FullAttn 64.0 MiB; training forward/backward peaks are identical
14B total training FLOPs reduction
3.1% / 28.5% 4K pre-training / 32K long-context training, at matched perplexity
14B / 32B model evaluation
Comparable, not better knowledge 72.70/76.07, reasoning 64.87/75.53, RULER within 0.3 points of FullAttn
Three things to remember:
① It does not remove the quadratic term. For fixed $H_k$, full-sequence attention stays $O(N^2)$; what is saved is the cross-head duplication of long-range connections. That is exactly why the FLOPs reduction is only 3.1% in pre-training but 28.5% in the long-context stage: the longer the sequence, the smaller the shared window's share.
② The selling point is the absence of selection cost. Visible blocks are computed from position (and the global KV-head index) rather than retrieved: no block pooling or TopK as in MoBA, no lightning indexer as in DSA. The auxiliary state is $O(H_k)$, independent of sequence length. On long sequences this is what pulls ahead of the baselines.
③ It has a hard prerequisite: $H_k$ must be reasonably large. The number of complementary intervals is the number of KV heads, and the paper states that at $H_k=1$ full coverage degenerates to dense causal attention. That puts the design in tension with the MLA/MQA direction of trading KV heads for cache size.
02 · Background

Background: what gets optimized, and what does not

2.1 FlashAttention optimizes IO, not duplication

Long-context requirements — long-document understanding, multi-turn reasoning, repository-level code generation — push sequences from thousands to hundreds of thousands of tokens, and attention dominates the cost. Work such as FlashAttention (Dao et al., 2022) improves IO efficiency through tiling, fusion and online softmax, but it does not change the attention pattern: every head still runs QK and PV over the entire causal prefix. The same distant key is therefore read and multiplied once per head — in the KV dimension $H_k$ times, and in the QO dimension up to $H_q$ times. That is pure structural redundancy, and no amount of kernel engineering removes it.

2.2 Three existing routes to sparsity, and what each costs

The paper groups prior work into three families and names the price of each; this sets up the operator benchmark later on:

The paper then makes a point that is easy to miss: two methods can be given the same selected-token budget and still differ substantially end to end, because the selection itself costs money. Table 3's asymptotic ledger and Figure 3's measured curves both cash this out.

2.3 Why distributing across heads is plausible

The starting observation is head heterogeneity: heads spontaneously develop distinct roles, with both local and long-range behaviours (Barbero et al., 2025, and the line of work cited there). If heads were never homogeneous to begin with, then "every head must attend to the entire history" is not self-evidently necessary — it suffices that every historical position remains visible to at least one head for each query.

The closest upstream work is SPAttention (ref. [66]), which distributes causal-distance regions across MHA heads while preserving aggregate causal connectivity. The paper's framing of the relationship is careful and worth quoting in substance: it generalizes this into a design principle that can be evaluated systematically — an attention layer keeps access to the full causal history collectively, without requiring every head to attend to every position — and instantiates it under GQA, where the complementary windows live on KV heads rather than on all heads. A footnote draws the boundary explicitly: SPAttention's published exclusive bands differ from its released shared-local implementation MEHC, which does not provide the long-context GQA, decoding, or tensor-parallel execution studied here.

Put together, the paper's question is: can distributing access to the causal history across KV heads preserve model quality and long-range retrieval while actually reducing training and inference cost? Note that "actually executable" is part of the question — which is why a good share of the paper is about tensor parallelism, block traversal and decoding rather than about the attention pattern alone.

03 · Method

Method: how the windows are cut, why coverage holds, what it costs

3.1 One distance definition spanning training and inference

First the engineering trap is closed. Training uses a full sequence with a causal mask; prefill may have $N_q \neq N_k$; decoding has $N_q = 1$ against a cache of length $N_k$. The paper defines a bottom-right-aligned causal distance that unifies all three:

$$\delta(i_q, i_k) := i_q + (N_k - N_q) - i_k \tag{1}$$

When $N_q = N_k$ this reduces to the familiar $i_q - i_k$, and a key is causally available to a query exactly when $\delta(i_q, i_k) \ge 0$. Every window below (near, sink, long-range) is then expressed purely in terms of $\delta$, so training, prefill and decoding need no separate rules — a structural advantage over dynamic sparse methods, which typically need special handling at decode steps (a newly generated token is not yet in the index, and so on).

The second interface is GQA ($H_q$ an integer multiple of $H_k$): QO head $h$ uses the K/V tensors and window assignment of KV head $h_k = \lfloor h H_k / H_q \rfloor$. Those $H_q/H_k$ QO heads form a group that shares keys, values and the visible-key set while computing weights from distinct queries. The group concept recurs throughout, because a shared visible set means how often a distant key is duplicated depends on the group size, not on $H_q$.

3.2 Three windows: shared sink, shared near, exclusive long-range

First fix how much history remains outside the shared windows, and where the cut points go:

$$L := \max(N_k - w_{\text{sink}} - w_{\text{near}},\, 0), \qquad b_{h_k} := \left\lfloor \frac{h_k\, L}{H_k} \right\rfloor, \quad h_k = 0,\dots,H_k \tag{2}$$

Writing $\delta = \delta(i_q,i_k)$, the three windows are:

$$\begin{aligned} W^{\text{near}}_{h_k}(i_q) &:= \{\, i_k : 0 \le \delta < w_{\text{near}} \,\} &&\text{(near, shared by all heads)}\\ W^{\text{sink}}_{h_k}(i_q) &:= \{\, i_k : 0 \le i_k < w_{\text{sink}},\ \delta \ge 0 \,\} &&\text{(prefix sink, shared by all heads)}\\ W^{\text{long}}_{h_k}(i_q) &:= \{\, i_k : w_{\text{near}} + b_{h_k} \le \delta < w_{\text{near}} + b_{h_k+1} \,\} &&\text{(long-range, exclusive to one head)} \end{aligned}$$

The visible-key set is their union:

$$A_{h_k}(i_q) := W^{\text{near}}_{h_k}(i_q) \cup W^{\text{sink}}_{h_k}(i_q) \cup W^{\text{long}}_{h_k}(i_q) \tag{3}$$

So each head sees the shared recent context plus the shared start of the sequence plus one long-range interval of its own. The width of $W^{\text{long}}$ is $b_{h_k+1} - b_{h_k}$; equal widths (adjacent cut points $L/H_k$ apart) are the default, chosen for load balance during decoding. In the algorithm interface each head's windows collapse into a four-tuple $w_{h_k} = (w_{\text{sink}},\, w_{\text{near}},\, b_{h_k},\, b_{h_k+1}-b_{h_k})$ — sink width, near width, the gap after the near window, and the long-range width. The same interface admits head-specific widths and gaps, but this work only uses equal widths.

3.3 Collective coverage: the union really does tile the causal prefix

Taking the union over the $H_k$ heads:

$$\bigcup_{h_k=0}^{H_k-1} A_{h_k}(i_q) \;=\; \{\, i_k \in \{0,\dots,N_k-1\} : \delta(i_q, i_k) \ge 0 \,\} \tag{4}$$

The right-hand side is the complete causal prefix — every key position lies inside at least one head's direct view. But the paper immediately adds a caveat that deserves to be quoted verbatim in spirit: full causal coverage guarantees direct access to token positions, but it does not imply the same head-specific interactions or outputs as FullAttn. The reason is that each QO head applies softmax over its own visible-key set — the normalizer changes. CoWA is therefore not an approximation-equivalent of FullAttn; it is a different attention distribution that happens to leave the "accessible information" dimension intact. The coverage ablation in §5 exists to quantify exactly this difference.

3.4 The cost ledger: the near window is what gets duplicated

Consider the final query position $i_q = N_q-1$ in the common regime $w_{\text{sink}}+w_{\text{near}} \le N_k$. Sink, near and long-range are disjoint there, so the total number of visible keys summed across KV heads is:

$$\sum_{h_k=0}^{H_k-1} |A_{h_k}(N_q-1)| \;=\; H_k\,(w_{\text{sink}} + w_{\text{near}}) \;+\; L \tag{5}$$

The reading is direct: the shared windows are repeated by every KV head and contribute $H_k(w_{\text{sink}}+w_{\text{near}})$, whereas each long-range key belongs to exactly one KV-head support set and the whole long-range span contributes only $L$. Dense causal attention's counterpart is $H_k N_k$. Dividing by $H_k$ gives the average number of visible keys per KV head; with equal query groups, multiplying either summed count by $H_q/H_k$ converts it into actual QO-head query-key connections.

The paper also records several boundary cases, all worth keeping:

3.5 Walkthrough: putting the paper's configurations into concrete numbers [estimated]

The budget figures scattered through the main text and appendix are in fact tied together by a single rule. Substituting $H_k=8$ and a shared width $w_{\text{sink}}+w_{\text{near}} = 1024$, the per-QO-head budget needed for full coverage is $1024 + (N_k-1024)/8$. Checking every budget the paper discloses against that expression (the arithmetic below is this page's, the inputs are the paper's — see Table 1, Table 5, Table 7 and Appendices A.1/A.3):

Per-QO-head budget versus the "full coverage" expression, for every configuration the paper discloses (this page's arithmetic on the paper's numbers)
Configuration / sourceSequence length $N_k$Budget in the paper$1024 + (N_k-1024)/8$Exact full coverage?
Associative recall, 1K / 2K / 4K / 8K (A.1)1,024 / 2,048 / 4,096 / 8,1921,024 / 1,152 / 1,408 / 1,9201,024 / 1,152 / 1,408 / 1,920Yes — all four match digit for digit
Scaling-law pre-training (Table 7)4,0961,4081,408Yes
Scaling-law long-context (A.3/A.4)32,7684,9924,992Yes
Operator benchmark at 128K (Table 5)131,07217,28017,280Yes

In other words, every configuration the paper runs sits on the single point "shared window of 1024 + eight equal long-range bands = 100% collective coverage". Two consequences follow immediately: the long-range band width at the long-context stage is $(32768-1024)/8 = 3968$ keys, and in the 128K operator benchmark it is $(131072-1024)/8 = 16256$ keys.

Now the tensor-parallel side. By the global-indexing rule of Equation 6, when $H_k = TP = 8$ each rank holds exactly one KV head, and local head 0 on rank $r$ maps to global index $h_{\text{global}} = r$ — the eight complementary long-range windows land one per rank [estimated]. That alignment is not required, but it shows why global-index assignment is the necessary choice: assigning by local index would give every rank "long-range band 0", collapsing the complementarity between ranks and breaking the design under TP.

The last set of numbers is the per-layer group size ($H_q/H_k$), which determines how many QO heads directly see a given long-range key [organized from Table 7 and Appendix A.4]: 0.6B is 16/8 = 2; 1.7B is 2; 4B is 32/8 = 4; 8B is 4; 14B is 40/8 = 5; 32B is 64/8 = 8. The long-range redundancy equals that group size, whereas the near window's redundancy is $H_q$ — this is precisely where "fewer duplicates" is cashed in.

04 · Execution

Execution: one rule covering forward, backward, decoding and tensor parallelism

The second half of the method section introduces almost no new concepts. It is there to show that a single position-defined window rule can run every path of training and inference without special cases — which is exactly where dynamic sparse methods are most expensive, since they typically need a separate approximation or index maintenance step for decoding, for the backward pass and for distribution.

4.1 Forward: visit only the legal blocks

The forward operator serves both the training forward pass and prefill. Q/O and K/V are stored head-major with shapes $Q,O \in \mathbb{R}^{H_q \times N_q \times d_h}$ and $K,V \in \mathbb{R}^{H_k \times N_k \times d_h}$ (for notational simplicity the paper assumes $Q$ is pre-scaled by $1/\sqrt{d_h}$). The token dimension is split into QO blocks $I_i$ and KV blocks $J_j$, and each QO block only touches the KV-block set $\mathcal{J}_{h_k}(i)$ that contains at least one legal pair under Equation 3:

Algorithm 1 CoWindow Attention Forward: block traversal, deriving KV blocks from the window, online-softmax recurrence, final normalization, storing O and the log-sum-exp state
Algorithm 1: CoWindow Attention Forward. Divide Q, O into QO blocks of size $B_q$ and K, V into KV blocks of size $B_k$; for each QO head compute $h_k$ under grouped-query attention, derive the KV-block set $\mathcal{J}_{h_k}(i)$ from $w_{h_k}$, then visit only those blocks while maintaining online-softmax states $m$, $\ell$ and $O$; finally normalize and store $O$ together with the log-sum-exp state $\ell$. Lines 7–9 are the crux: the visible block set is computed from $w_{h_k}$, not looked up in any index, and blocks outside the set are skipped before any QK is computed. Lines 10–15 are the standard online-softmax recurrence — block-row maxima first, then rescaling of $O$ and $\ell$ — so the full attention matrix is never materialized. Only blocks crossing a causal, window or sequence boundary need element-wise masking, which is the payoff of a regular window. Note that line 17 stores not probabilities but the log-sum-exp form $\ell_{hi} \leftarrow m_{hi} + \log(\ell_{hi})$, which the backward pass uses to reconstruct probabilities exactly. Report p.4

4.2 Backward: traverse the inverse relation, exactly

The backward operator flips the traversal: for each KV block $J_j$ it computes the set of QO blocks $\mathcal{I}_{h_k}(j)$ that have legal pairs with it — the inverse of the forward visibility relation. The visible-key set is the same as in the forward pass, so this is not an approximate gradient.

Algorithm 2 CoWindow Attention Backward: traversing QO blocks per KV block, reconstructing probabilities from the log-sum-exp state, accumulating dK/dV/dQ
Algorithm 2: CoWindow Attention Backward. For each KV block $J_j$, compute the QO-block set $\mathcal{I}_{h_k}(j)$ from $w_{h_k}$ and traverse this inverse relation with the same visible-key set as the forward pass; probabilities reconstructed from the saved logsumexp $\ell$ yield the exact gradient of the CoWA operator, and atomic additions combine contributions to $dQ$ from multiple KV blocks and to $dK,dV$ from QO heads in the same group. Lines 11–12 are what makes this implementation viable: probabilities are reconstructed from the stored $\ell$ ($P = \exp(S - \ell^\top)$), so no attention-probability matrix needs to be saved and the gradient is still exact. Lines 13–14 accumulate $dV$, $dK$ and $dQ$; within one KV-head group the contributions of several QO heads to $dK/dV$, and of several KV blocks to $dQ$, are merged with atomic adds. Because $dQ$ requires atomic accumulation across KV blocks, the "parallel over KV blocks" and "parallel over QO blocks" tilings have to be reconciled — this is where such sparse operators get harder to write than dense FlashAttention. Report p.5

4.3 Decoding: the cut points slide every step

Autoregressive decoding is the $N_q = 1$ case of the forward pass: $\delta(0, i_k) = N_k - 1 - i_k$, and $N_k$ equals the number of cached tokens plus one for the current token, so the near window naturally lands on the most recent KV-cache entries. The critical detail is that the cut points are recomputed from the current key length at every step — $b_{h_k}$ in Equation 2 depends on $N_k$, so equal-width long-range bands slide smoothly as the sequence grows rather than requiring re-indexing as fixed block partitions would. Visible KV blocks can be distributed across split-KV programs and merged through standard partial online-softmax states; how the splits are scheduled sets parallelism and load balance but does not change the window rule itself.

4.4 Tensor parallelism: global indexing is a necessary design choice

This subsection is the paper's clearest "it has to be done this way" argument. Let $TP$ be the tensor-parallel degree (with $TP \le H_k$, and the $H_k$ KV heads sharded evenly and contiguously). For local head $h_{\text{local}}$ on rank $r$:

$$h_{\text{global}} = r\,H_k^{\text{local}} + h_{\text{local}}, \qquad H_k^{\text{local}} = H_k / TP \tag{6}$$

The breakpoints in Equation 2 are always evaluated with the global index $h_{\text{global}}$ and the global $H_k$, in training and inference alike. Each rank therefore receives complementary long-range intervals rather than every rank starting from "band 0". The backward pass works the same way: each rank traverses the inverse relation for its local KV heads only, and the global indices keep the sparse pattern aligned across ranks.

Three boundaries are stated here, and they map directly onto the measurement conventions later:

The transferable lesson here is "fold the distributed constraint into the formula". Defining breakpoints by global index looks like adding a subscript, but it is what makes complementarity an invariant across ranks; otherwise the same logical head would receive different windows under different TP configurations, and the attention pattern used in training would no longer match the one used in deployment. In dynamic sparse methods that mismatch typically shows up as "training runs, deployment loses points".
05 · Experiments I

Experiment I: isolating coverage as a single variable

5.1 Ablation design: same window widths, different numbers of distinct long-range windows

To show that CoWA's benefit comes from complementary allocation rather than from wider windows, the cleanest possible experiment freezes the per-head window width and varies only how many distinct long-range windows are spread across the eight KV heads:

One implementation detail is easy to overlook but matters: the duplicated layouts repeat the windows closest to the near window ($W_1,\dots,W_m$). The control arms therefore receive the most recent long-range segments — the freshest information — while CoWA must also claim the most distant ones. The bias runs against CoWA, and it still wins, which makes the conclusion stronger and is worth mentioning whenever the table is cited.

Table 1 window-matched coverage ablation: FullAttn/SWA plus 1/2/4/8 distinct long-range windows, associative-recall accuracy at 1K-8K
Table 1: Collective Coverage with Matched Per-Head Window Widths. The 1-, 2-, 4-, and 8-window layouts use matched per-head window widths and vary the number of distinct long-range windows assigned across eight KV heads. FullAttn and SWA are dense and local references and are not part of this window-matched comparison. We report associative-recall accuracy (%) at $d_{model} = 512$. Read the rightmost column (8K) downwards: SWA, seeing only the near window, reaches 5.34%; a single duplicated window reaches 21.32%; 2 windows 32.92%; 4 windows 52.32%; 8 complementary windows 89.73%; FullAttn 89.97%. Going from 12.5% to 100% coverage multiplies accuracy by more than four, whereas every layout is at 100 on 1K (a 1024 budget already covers the whole sequence), the curves separate from 2K, and the gap is widest at 8K — so nearly all of the ablation's information lives in that last column. Note also that FullAttn itself only drops to 89.97 at 8K, i.e. the task becomes genuinely hard exactly there. Report p.6

The paper's conclusion is blunt: 8K recall rises monotonically as duplicated windows are replaced by complementary ones (21.32 → 32.92 → 52.32 → 89.73), full coverage nearly matches FullAttn (89.97), and the near-only SWA reference collapses to 5.34%. These numbers support the value of distributing complementary long-range access across KV heads.

5.2 Controlled associative recall: stronger opponents

The second experiment switches to the standard associative recall task (the Zoology setup of Arora et al., 2024): 256 key-value pairs, randomized bindings with no semantic shortcut, 250K training and 1K test examples, 100 epochs, sequence lengths 1,024 → 8,192 and $d_{model}$ from 64 to 512. The opponents span dense, local, structured and dynamic sparsity: FullAttn, SWA, Seer, InfLLMv2, NSA, MoBA and DSA.

Figure 2 associative recall: accuracy of eight attention mechanisms across model dimensions 64-512 at four sequence lengths
Figure 2: Associative Recall. Accuracy with 256 key-value pairs across sequence lengths and model dimensions. At sequence lengths 1K, 2K, 4K, and 8K, all sparse methods use matched per-query token budgets of 1,024, 1,152, 1,408, and 1,920 tokens, respectively. We do not add random padding or additional noise tokens. CoWA closely tracks FullAttn as the context grows, whereas the other sparse patterns lose a substantial fraction of the associations. Four panels left to right are 1K/2K/4K/8K; within each, the x axis is model dimension 64→512 and the y axis is recall accuracy. Three layers of reading: (1) on the 1K panel every method is near-perfect once $d_{model} \ge 128$, because a 1,024 budget covers the entire sequence — the design's "budget equals coverage" logic made visible; (2) separation starts at 2K and widens with length: on 4K only FullAttn and CoWA still climb to 1.0 past $d_{model}=256$; (3) on 8K the red CoWA curve sits essentially on the blue FullAttn curve, while DSA/MoBA stall near 0.5 and NSA and the rest sit around 0.1. The paper notes a counter-intuitive detail: some baselines do improve with model dimension, but increasing dimension does not close the retrieval gap over the tested range — the deficit is structural, not a capacity problem. Report p.7

The budget-matching convention is worth stating explicitly: all four sequence lengths are run at per-query budgets of 1,024 / 1,152 / 1,408 / 1,920 [organized from Appendix A.1]. The check in §3.5 shows these are exactly $1024 + (N_k-1024)/8$ — i.e. every opponent competes at the same budget CoWA needs for full coverage, so CoWA does not win by spending more. CoWA itself uses $w_{\text{sink}}=1$ and $w_{\text{near}}=1023$, a shared width of 1,024 tokens.

One scope boundary must be stated as well: the paper explicitly does not insert random padding or additional noise tokens. The task is therefore retrieval in the pure sense, without the extra job of filtering distractors — a point the commentary returns to.

How to read these two results: Table 1 answers "how much is coverage worth?", Figure 2 answers "how does it compare with stronger opponents?". Table 1 is the more persuasive of the two because it reduces the variables to coverage alone. Figure 2 reports, at 8K and $d_{model}=512$, CoWA 89.73% against FullAttn 89.97%, with DSA, MoBA and NSA at 53.71%, 50.12% and 25.23% and the remainder near 10% [organized from the main text].
06 · Experiments II

Experiment II: operator latency and memory — putting selection overhead on the table

6.1 The asymptotic ledger: CoWA's auxiliary state does not grow with sequence length

Before the measured curves, one table states the difference between the four mechanisms asymptotically ($n$ sequence length, $h$ QO heads, $w$ per-query budget, $B$ MoBA's block size, $h_I$ and $d_I$ the DSA indexer's head count and dimension):

Table 3 asymptotic cost comparison of attention variants: selected attention cost, selection overhead and auxiliary state
Table 3: Comparison of Different Attention Variants. The sequence-dependent attention and sparse-selection costs. The auxiliary state column describes routing or indexing state beyond the QKV tensors and attention outputs. All four mechanisms share the same shape for selected attention ($O(nwh(d_{qk}+d_v))$ for the sparse three, $O(n^2h(d_{qk}+d_v))$ for FullAttn); the differences live entirely in the selection overhead and auxiliary state columns. MoBA must mean-pool block keys and score every query against $n/B$ block representatives, so selection itself costs $O(n^2 h d_{qk}/B)$ with $O(n^2h/B)$ auxiliary state; DSA's lightning indexer scores all query-key pairs and produces TopK, costing $O(n^2h_Id_I)$ with $O(n^2h_I + nw)$ state; CoWA's selection overhead is $O(1)$ per QO block with auxiliary state $O(H_k)$ — neither depends on $n$. That is what "position-defined" buys. The text below the table is equally candid: once routing and indexing are included, methods with the same budget can differ substantially end to end. Report p.16

6.2 Benchmark configuration and budgets: the head counts are not the same

Measurements run on 8 H100 GPUs with $TP=8$, batch size one, latency averaged over 100 iterations after 25 warm-ups unless a configuration runs out of memory, and memory reported as the maximum per-rank peak across the eight ranks. The four operator shapes are [organized from Table 4]:

Table 4 latency and memory benchmark configurations: operator shapes, warm-ups/runs, selector and precision per method
Table 4: Latency and Memory Benchmark Configurations. The operator shapes and sparse-selection mechanisms used for the running-time curves. All measurements use tensor parallelism $TP = 8$ on 8 H100 GPUs. All four use $n_h=64$ and batch 1, but $n_{hkv}$ differs completely: FullAttn and CoWA use 8 KV heads, MoBA uses 64 (one KV head per QO head), and DSA uses a single latent head with $d_{qk}=576$, $d_v=512$. This directly affects comparability of the memory curves: much of MoBA's footprint comes from holding 64 KV heads rather than from its selection mechanism. The paper's handling of this is to disclose it — "retain each method's native head configuration" — rather than reshaping opponents into a favourable form. Note also that CoWA's selector column reads "fused window", MoBA's is block routing at $B=128$, and DSA's is an FP8 indexer. Report p.16

On budgets (Table 5, 128K column): FullAttn 131,072; MoBA 17,408 (aligned to 128-token blocks); DSA 4,320; CoWA 17,280. DSA's budget is roughly a quarter of CoWA's because its per-selected-token (PST) FLOPs are about four times larger — the paper aligns methods on approximate forward selected-attention FLOPs rather than on raw token counts.

Table 5 per-query token budgets at every benchmark sequence length for FullAttn, MoBA, DSA and CoWA
Table 5: Per-Query Token Budgets. The token budgets used at every benchmark sequence length. Rows are FullAttn (everything), MoBA, DSA, CoWA. The PST FLOPs column gives each method's per-token unit price: 32,768 for FullAttn/MoBA/CoWA and 139,264 for DSA (about 4×, hence its roughly quarter-sized budget). CoWA's budget sequence — 1,024 / 1,152 / 1,408 / 1,920 / 2,944 / 4,992 / 9,088 / 17,280 — matches $1024+(N_k-1024)/8$ at every length [estimated], i.e. the operator benchmark always runs CoWA at 100% collective coverage. MoBA's budgets are all multiples of 128 (its block size), and DSA's baseline differs, so comparing token counts directly would be wrong: the PST FLOPs column has to travel with them. Report p.17

6.3 The curves: at long lengths CoWA pulls ahead by not doing selection

Figure 3 operator latency and memory: three panels for forward, backward and decoding, bars for latency and markers for memory
Figure 3: Operator Latency and Memory. End-to-end attention-operator latency (bars, left axes) and maximum per-rank peak allocation (markers, right axes) for the training forward and backward passes and decoding with tensor parallelism $TP = 8$ on 8 H100 GPUs. CoWA has the lowest latency and decoding-operator peak allocation among the tested methods at long sequence lengths. Panels left to right are training forward, training backward and inference decoding; bars are latency (left axis, log) and dots are per-rank peak memory (right axis, log, MiB). Three things to look for: (1) at short lengths (1K–8K) CoWA coincides with or beats FullAttn, since the budget is already near-total and the window bookkeeping is negligible; (2) as length grows, MoBA (orange) and DSA (green) shoot up past 16K — MoBA's backward bar is simply missing at 128K (OOM) and its forward memory marker is already in the $10^4$ MiB range; (3) CoWA (red) is at the bottom in all three panels, most strikingly in decoding, where visiting only visible blocks keeps its memory marker near $10^0$ while FullAttn's blue markers climb to about 64 MiB. Report p.7

Concretely at 128K [organized from Table 6]: CoWA forward 21.758 ms, backward 51.509 ms, decode 0.015 ms against FullAttn's 159.987 / 441.230 / 0.045 ms — operator-level speedups of 7.4× / 8.6× / 3.0×. On memory, CoWA's forward and backward peaks (580 / 1,804 MiB) are digit-for-digit identical to FullAttn's, while its decode peak of 8.441 MiB is 7.6× below FullAttn's 64.004 MiB. MoBA's backward pass exceeds the per-rank memory limit at 128K; DSA's 128K forward takes 93.671 ms despite a selected budget a quarter of CoWA's, which the paper attributes to indexer cost.

Table 6 full latency and memory results for the four methods at eight sequence lengths, for forward/backward/decoding
Table 6: Latency and Memory Benchmark Results. End-to-end latency (ms) and peak memory (MiB) for the training forward and backward passes and inference-time decoding at every sequence length. Latency is the synchronized tensor-parallel group latency, and memory is the maximum per-rank peak allocation. The full dataset. Several ratios can be checked by hand: at 128K, FullAttn→CoWA forward $159.987/21.758 \approx 7.35$ (the paper reports 7.4×), backward $441.230/51.509 \approx 8.57$ (8.6×), decode $0.045/0.015 = 3.0$; decode memory $64.004/8.441 \approx 7.58$ (7.6×). Two further details matter: (1) FullAttn's and CoWA's training forward/backward memory are identical digit for digit (580 / 1,804 MiB), so CoWA's memory advantage appears only on the decoding path — consistent with an implementation that visits only visible KV blocks; (2) MoBA's memory column is already at the 9,029 / 11,639 MiB scale past 32K and its 128K backward is OOM, with a 589.650 MiB decode footprint at 128K — roughly 70× CoWA's [estimated]. Report p.17
Measurement caveat (important): these are operator-level end-to-end timings, not full model training-step times. The paper spells out what each path includes: MoBA covers block-representative construction, router logits, TopK, index construction, data rearrangement and output merging; DSA covers BF16 indexer inputs, FP8 quantization, indexer logits, TopK/indices and sparse MLA; CoWA covers its fused window-range and masking logic. Model-level QKV/output projections, MLP layers, communication and optimizer updates are out of scope. The 7.4×/8.6×/3.0× should therefore be read as attention-operator speedups, not machine-level ones; the model-level payoff is the training FLOPs of §7.
07 · Experiments III

Experiment III: scaling from 0.6B to 14B, and 14B/32B model evaluation

7.1 Configuration: five sizes, two training stages

Training runs on 128 H100 GPUs with Megatron-LM; the data is SmolLM-Corpus, the tokenizer is Qwen3's, the optimizer is AdamW with a WSD schedule, and the random seed is fixed at 42. Each size is trained in two stages: pre-training (PT, sequence length 4,096) and long-context training (LCT, 32,768), where LCT initializes from the final PT checkpoint at a constant learning rate. Across the five sizes — 0.6B / 1.7B / 4B / 8B / 14B — layers go from 28 to 40, $d_{model}$ from 1024 to 5120 and QO heads from 16 to 40, while the KV-head count stays fixed at 8 throughout. That is worth noting now; the commentary returns to it.

Table 7 scaling-law model and hyper-parameter configurations: parameters, tokens, learning rates, layers, dimensions, heads and token budgets for FullAttn/MoBA/DSA/CoWA at five sizes
Table 7: Self-Attention Variants Scaling Laws Configurations. The model and hyperparameter configurations used in our self-attention variants scaling laws experiments. Four rows per size (FullAttn / MoBA / DSA / CoWA). Beyond the shared columns, the differences concentrate in head configuration and budgets: FullAttn and CoWA use 8 KV heads, MoBA uses one KV head per QO head (16/16, 32/32, 40/40), DSA uses one latent head with $d_{qk}=576$ / $d_v=512$. Budget columns (PT Bgt / LCT Bgt): CoWA 1,408 / 4,992, MoBA 1,536 / 5,120, DSA 352 / 1,248 (a quarter, since its PST FLOPs are ~4×). The matching criterion is "approximately match forward selected-attention FLOPs", not head counts or raw token counts — stated plainly, along with the acknowledgement that this does not require identical end-to-end training FLOPs. Token volumes run from 12B/1.5B at 0.6B to 296B/36B at 14B. Report p.19

7.2 The FLOPs ledger: why pre-training saves 3.1% and long context saves 28.5%

The x axis is cumulative training FLOPs as reported by Megatron-LM, covering the complete model computation. To expose the attention-specific contribution, the paper additionally measures the legal attention connections actually executed under each configuration instead of assigning the final-query budget to every query. With $\bar{s}$ the mean number of selected keys per query and per QO head, the sequence-dependent core-attention cost per token and layer is

$$C_{\text{core}} = 8\,\bar{s}\,h\,d_{qk} + 6\,\bar{s}\,h\,d_{v}$$

where the QK side carries a factor of 8 because the backward pass recomputes scores and the PV side 6 (one multiply-accumulate counts as 2 FLOPs). FullAttn has $\bar{s} = (n+1)/2$ over the causal triangle; CoWA's measured values are $\bar{s} = 1{,}040.17$ (4K pre-training) and $\bar{s} = 2{,}930.08$ (32K long-context training). MoBA and DSA use their causally clipped selected supports, with routing and indexing costs counted in their totals.

Figure 4 scaling laws: perplexity against training FLOPs for pre-training and long-context training, with FullAttn/MoBA/DSA/CoWA
Figure 4: Scaling Laws. Perplexity as a function of training FLOPs for models from 0.6B to 14B parameters during 4K pre-training (left) and 32K long-context training (right). Each marker reports final perplexity; its outer ring denotes one standard deviation over the perplexity measurements collected during training. CoWA closely follows FullAttn in perplexity while requiring fewer FLOPs. The x axis is cumulative training FLOPs (log) and the y axis perplexity; each marker is one model size and the outer ring is one standard deviation over perplexity measurements during training. Left (4K pre-training): the four curves nearly coincide, with CoWA marginally to the left. Right (32K long-context training): the curves stratify clearly, and red (CoWA) sits furthest left at equal perplexity — at the rightmost 14B point the perplexity difference from FullAttn is under 0.01 while its x coordinate is visibly smaller. Two cautions: the rings overlap heavily, so these curves are statistically hard to separate and "comparable" is the honest reading rather than "better"; and the vertical separation appears mainly in the long-context stage, which matches the shape of attention cost as sequence length grows. Report p.8

Hence the paper's central efficiency claim: at 14B, CoWA's pre-training perplexity matches FullAttn's and the two differ by less than 0.01 after long-context training, while total training FLOPs fall by 3.1% (4K stage) and 28.5% (32K stage). The source of the asymmetry is clear: dense attention's cost grows with sequence length, whereas in the 32K stage CoWA achieves full coverage on a per-QO-head budget of 4,992 with no router or indexer FLOPs at all. In pre-training the sequence is only 4K, the shared window of 1024 occupies a quarter of it, and only 3,072 tokens' worth of long-range cost is on the table — so the saving is naturally limited.

7.3 Model evaluation: four 14B variants, and 32B through continued training

Evaluation comes in two groups: at 14B, all four attention variants from the scaling-law study; at 32B, only FullAttn and CoWA, both produced by a separate long-context continued-training run (64B tokens, sequence 32,768, batch 4M, constant learning rate $1\times10^{-5}$, 64 layers, $d_{model}$ 5,120, 64 QO heads, 8 KV heads). Every task is run with five seeds (0, 42, 233, 666, 1234) and reported as mean ± standard deviation, using the EleutherAI LM Evaluation Harness on 8 H100 GPUs.

Table 2 model-level evaluation summary: knowledge, reasoning, RULER 32K and RULER 128K averages at 14B and 32B
Table 2: Model-Level Evaluation Summary. Average knowledge, reasoning, and RULER scores at 14B and 32B. RULER is evaluated at the native 32K context length and under YaRN extrapolation to 128K. Detailed per-task results and uncertainty estimates are reported in Appendix B. The headline table. At 14B: CoWA knowledge 72.70 / reasoning 64.87 / RULER-32K 89.13 / RULER-128K 66.60 versus FullAttn's 72.32 / 64.46 / 89.42 / 65.84; MoBA 70.58 / 59.71 / 87.17 / 61.52 and DSA 70.23 / 63.28 / 87.67 / 64.05. At 32B: CoWA 76.07 / 75.53 / 92.58 / 81.78 against FullAttn 75.62 / 75.67 / 92.70 / 82.03. Bold and underlining mark the best and second-best result in each column and scale, but adjacent numbers are typically within 0.5 points while the per-task standard deviations in the detailed tables run 0.3–1.5 and reach ±3.5 on GPQA-Diamond — so "CoWA is higher on 14B knowledge and reasoning" should not be read as a stable advantage. The paper's own wording is comparable. Report p.8

The three detailed tables (8/9/10) carry more information than the summary, in particular which tasks gained and which lost:

Table 8 knowledge benchmark detail: per-task scores and standard deviations for MMLU, MMLU-Pro, BBH, HellaSwag, OBQA, WinoGrande
Table 8: Knowledge Benchmark Results. Knowledge evaluation of the scaling-law models at 14B and the continued-trained models at 32B. CoWA produces averages comparable to FullAttn at both scales and remains close across individual tasks. Task by task, the pattern repeats at both scales: CoWA is higher on MMLU and BBH (14B: 79.04±0.28 vs 78.21±0.31; 83.64±0.51 vs 82.59±0.48) and slightly lower on MMLU-Pro and HellaSwag (64.89 vs 64.96; 80.3 vs 80.64). That looks like a systematic tilt rather than noise: knowledge-heavy multiple choice with reasoning (MMLU/BBH) benefits, while distractor-style multiple choice (MMLU-Pro) and commonsense continuation (HellaSwag) lose a little. MoBA and DSA trail markedly on the same table, especially MMLU-Pro (58.73 / 59.92 against 64.96). Report p.19
Table 9 reasoning benchmark detail: per-task scores for PIQA, GSM8K, Hendrycks-Math, ARC-C, AGIEval, GPQA-Diamond
Table 9: Reasoning Benchmark Results. Reasoning evaluation of the scaling-law models at 14B and the continued-trained models at 32B. CoWA achieves average scores comparable to FullAttn at both scales. Two numbers stand out. On Hendrycks-Math, CoWA's 62.31±0.62 sits right on FullAttn's 62.46±0.65, while MoBA scores only 39.0±1.38 and DSA 55.99±0.82 — sparse attention hurts mathematical reasoning far more than the averages suggest, and CoWA is essentially lossless there. GPQA-Diamond carries a standard deviation of ±3.17 to ±3.56, and that is where CoWA's 42.33 against FullAttn's 39.87 comes from — a ~2.5-point lead inside a 3-point error bar, which is exactly why the paper notes that the 14B reasoning "gain" is largely driven by this single task. Excluding GPQA-Diamond, every per-task difference is within 0.26 points at both scales. Report p.20
Table 10 RULER retrieval detail: per-task scores at native 32K and YaRN 128K for the NIAH variants and RULER-VT/CWE/FWE/QA
Table 10: Retrieval Benchmark Results. RULER evaluation at the native 32K context length and under YaRN extrapolation to 128K. CoWA achieves average scores close to FullAttn at both context lengths. NIAH-S averages NIAH-S-1, NIAH-S-2, and NIAH-S-3; NIAH-MK averages NIAH-MK-1, NIAH-MK-2, and NIAH-MK-3; and RULER-QA averages RULER-QA-SQuAD and RULER-QA-HotpotQA. Four blocks: 14B/32B × native 32K / YaRN 128K. Specifically: at 14B native 32K, CoWA 89.13 against FullAttn 89.42, a 0.29 gap — with RULER-QA actually higher (57.74±1.14 vs 56.28±1.2) and NIAH-MK lower (96.96±0.71 vs 98.0±0.65). Under YaRN extrapolation to 128K the gaps widen: at 14B NIAH-MQ is 84.6±0.79 against 88.25±0.69, but CoWA scores 13.22±1.12 on RULER-CWE versus 5.76±0.46 — a task where every method is weak and CoWA is the only one still in double digits. Note that NIAH-MK at YaRN 128K sits in the 55–57 range, i.e. extrapolation itself costs a great deal, so that column should not be compared directly with the native 32K column. Report p.20
Section 7 in three sentences: ① across 0.6B→14B, CoWA buys perplexity indistinguishable from FullAttn for less training compute; ② the resulting models are "comparable" rather than "better" on knowledge, reasoning and long-context retrieval, with per-task wins and losses; ③ almost all of the FLOPs saving comes from the long-context stage (28.5% vs 3.1%), which matches the motivation exactly — what CoWA removes is the long-range connection cost that dense attention recomputes at long sequences.
08 · Commentary

Commentary: three strengths, five boundaries, and a list of things to test next

8.1 Three design decisions worth learning from

First, coverage was turned into a single ablatable variable. Most sparse-attention papers ablate by "removing component A and measuring the drop", which is not a clean variable. CoWA freezes the per-head window width and varies only how many distinct long-range windows are spread across the eight KV heads, so four coverage levels — 12.5% / 25% / 50% / 100% — map directly onto accuracy (Table 1). Better still, the duplicated layouts repeat the segments closest to the current query, giving the control arms the freshest information. That bias runs against CoWA, and it still wins.

Second, "selection overhead" was turned from a slogan into a ledger. The paper keeps insisting that two methods with the same selected-token count can differ substantially end to end. Table 3 lays out MoBA's $O(n^2hd_{qk}/B)$ and DSA's $O(n^2h_Id_I)$ asymptotically, adds an "auxiliary state" column, and Figure 3 then cashes it out in measurements. This chain gives the long-sequence reversal a mechanism rather than leaving it as a nicer-looking curve.

Third, the distributed constraint was folded into the formula. Breakpoints are evaluated with the global KV-head index (Equation 6) rather than the local one. The cost is a subscript; the benefit is that complementarity becomes an invariant across ranks — and when $TP = H_k = 8$ it yields the tidy division of one long-range band per rank [estimated; see §3.5]. Switching to local indices would give every rank "band 0" and break the design under TP — an easy trap for an implementer to fall into.

8.2 Where the ideas come from

CoWA's components and the upstream work the paper credits (organized from the paper's own inline citations; not a table from the paper)
Component / design pointUpstream credited by the paperWhat this work changes or integrates
Blocked execution with online softmaxFlashAttention (Dao et al., 2022)Keeps block traversal and the online-softmax recurrence, but visits only the legal KV blocks computed from the position rule; the backward pass reuses the stored logsumexp to reconstruct probabilities exactly
Near-diagonal sliding windowLongformer (Beltagy et al., 2020); SWANo longer each head's only visible range but one segment shared by all KV heads; actual sparsification happens at long range
Prefix sink tokensAttention-sink / first-token work (Barbero et al., 2025)Folded into the window definition as a shared sink window, duplicated by all $H_k$ heads together with the near window
Assigning causal-distance bands to headsSPAttention (ref. [66])Moved from MHA heads to GQA KV heads, plus long-context, decoding and tensor-parallel execution, plus a coverage ablation (the paper's footnote notes the released MEHC implementation is shared-local and lacks these)
QO heads sharing K/VGQA (Ainslie et al., 2023)Window assignment binds to the KV head; the group size $H_q/H_k$ sets how often a long-range key is duplicated
Associative-recall evaluation setupZoology (Arora et al., 2024)Keeps the 256 key-value pairs and the power-law query sampling ($a=0.01$); explicitly adds no random padding or noise tokens
Long-context extrapolation and evaluationYaRN (ref. [41]), RULER (ref. [26]), LM Evaluation Harness (ref. [17])Two evaluation regimes (native 32K and YaRN 128K) with five fixed seeds and identical decoding settings
Tensor-parallel trainingMegatron-LM (ref. [47])Windows defined by global KV-head index keep complementarity stable across ranks; 128-GPU training

Citations follow the paper's own inline labels; this page did not verify each bibliography entry.

8.3 Boundaries worth keeping in mind

① $H_k$ is a hard constraint, and it points against the current architectural current. The number of complementary intervals is the number of KV heads. The paper fixes $H_k = 8$ throughout, while a number of efficient architectures are moving toward fewer KV heads or a single latent KV — the paper's own DSA baseline uses one latent head. At $H_k=1$ collective coverage degenerates to dense causal attention, as the paper itself states. So how much is left at $H_k = 2$ or $4$? Cutting distant history into four bands instead of eight means doubling the long-range window per head to keep full coverage, which also raises the shared windows' duplicated share. No $H_k$ sensitivity curve is given, and that parameter is what decides whether the design generalizes.

② Coverage is not equivalence, and how the gap behaves at longer sequences is untested. The paper supplies the caveat itself: full causal coverage guarantees direct access, but not the same head-specific interactions or outputs as FullAttn. Mechanically it is clear why — each QO head normalizes over its own visible set, so the softmax normalizer changes and CoWA is a different distribution. At 8K the measured gap is 0.24 points (89.73 vs 89.97). But quality is only evaluated to 32K native (plus YaRN 128K), and associative recall stops at 8K, whereas the efficiency advantage is largest at 128K. In other words, whether the distributional difference from incomplete-per-head coverage grows with length is not covered by the evaluation range, and the uncovered range is exactly where the design is fastest.

③ Long-range redundancy is exactly 1. By Equation 5 each long-range key falls inside one KV head's support set, so how many QO heads directly see a distant token equals the group size $H_q/H_k$ (2 at 0.6B, 5 at 14B, 8 at 32B), while a near-window token is visible to all $H_q$ heads. That is the mechanism that saves duplicates, but it also makes distant information a single-point read: no multi-head redundancy, no voting, no "several heads corroborating the same distant evidence". The retrieval task explicitly adds no random padding or noise, so whether a single-point read suffices under distractors is untested. This is the experiment set I would most like to see added.

④ Training-time load imbalance is not addressed. Equal-width allocation is stated to serve decoding load balance; equal-area (or equal-work) allocation is "outside the scope of this work". The paper also acknowledges that even with equal widths, heads' actual work can differ (earlier queries have their support sets clipped by causality). In full-sequence training this means attention work can differ across ranks within one TP group, while ranks are synchronized — that kind of imbalance eats directly into the efficiency gain. What is reported is operator-level synchronized wall-clock, with no per-head load or inter-rank wait distribution.

⑤ The efficiency numbers need their scope read carefully. The 7.4×/8.6×/3.0× and the memory comparisons are all attention-operator-level: QKV/output projections, MLP, communication and optimizer updates are excluded, as the paper lists explicitly. The four methods also use different KV-head configurations (CoWA 8, MoBA 64, DSA a single latent head), so the memory curves are not an equal-head-count comparison — the paper discloses rather than dodges this, but a reader should still treat them as "each method in its native configuration", not as a pure mechanism comparison. The 8.4 MiB decoding figure is an operator peak, not resident KV cache at serving time; §2.3 of the paper goes out of its way to distinguish the two, and window-aware offload/prefetch is listed as future work.

8.4 Not disclosed, worth testing next

One-line placement: CoWA reads less like "making attention sparse" and more like re-ordering the cost structure of sparse attention. Using coverage as an ablatable dimension, it trades duplicated long-range connections for complementary division of labour, paying with single-point reads and a dependence on $H_k$. Within the range it measured, the trade is favourable — and the implementation rule is simple enough to land on training, decoding and tensor parallelism at once.
Glossary

Glossary

Keep this handy while reading; abbreviations in the prose also carry hover definitions.

Reading glossary (abbreviations with dotted underlines in the prose carry the same definitions on hover)
TermFull nameOne-line explanation
CoWACoWindow AttentionThis paper's method: shared near window + shared prefix-sink window + one complementary long-range band per KV head
FullAttnFull AttentionStandard dense causal attention: every head sees the complete causal prefix
SWASliding-Window AttentionFixed-length sliding window only, no long-range access; the local reference baseline here
GQAGrouped-Query AttentionSeveral QO heads share one group of KV heads; $H_q/H_k$ is the group size
QO / KV headQuery-Output / Key-Value headQO heads produce queries and outputs; KV heads supply K/V. Under GQA there are more of the former
$\delta(i_q,i_k)$Bottom-right-aligned causal distanceThe paper's distance $i_q+(N_k-N_q)-i_k$, unifying training, prefill and decoding
$w_{\text{sink}}$ / $w_{\text{near}}$Prefix-sink width / near-window widthWidths of the two shared windows; 1 / 1023 in the associative-recall configuration, 1024 in total
$L$ / $b_{h_k}$Long-range span / breakpointsThe span left after the shared windows, and the cut points that divide it evenly across $H_k$ KV heads
Collective coverageCollective coverageThe union of all heads' visible sets equals the full causal prefix (Equation 4); the paper's core property
TPTensor ParallelismRequires $TP \le H_k$ here; windows are assigned by global KV-head index
$\bar{s}$Mean selected keys per query per QO headMeasured mean support size used for FLOP accounting; CoWA 1,040.17 (4K) / 2,930.08 (32K)
PST FLOPsPer-Selected-Token FLOPsForward QK+PV FLOPs contributed by one selected key token, $2h(d_{qk}+d_v)$; used to align budgets across methods
MoBAMixture-of-Block AttentionBlock-level dynamic sparse baseline: block pooling + routing + TopK + rearrangement + merging
DSADeepSeek Sparse AttentionToken-level dynamic sparse baseline: lightning indexer scoring + TopK + sparse MLA
NSANative Sparse AttentionNatively trainable sparse baseline that appears only in the 8K associative recall
Seer / InfLLMv2—Two dynamic sparse baselines in the recall study; both near 10% accuracy at 8K
online softmaxOnline (streaming) softmaxRecurrent normalization when attention is computed block by block; stores the $m,\ell,O$ triplet
logsumexp $\ell$Log-sum-exp stateThe paper stores $\ell = m + \log(\ell)$ and reconstructs probabilities from it in the backward pass, so no attention matrix is saved
split-KVSplit-KV decodingDistributes a decode step's visible KV blocks across programs and merges via partial online-softmax states
RULERRULER long-context benchmarkLong-context retrieval suite: NIAH variants, variable tracking, and QA aggregates
NIAH-S/MK/MQ/MVNeedle-in-a-Haystack variantsSingle-needle, multi-key, multi-query and multi-value retrieval subtasks
YaRNYet another RoPE extensioNRoPE position extrapolation; used here for the 128K evaluation
HBMHigh Bandwidth MemoryGPU device memory; during decoding each rank still keeps its local KV heads' full history resident there
WSDWarmup-Stable-DecayLearning-rate schedule used by the scaling-law runs
SmolLM-Corpus—Pre-training corpus used by the scaling-law experiments (Ben Allal et al., 2024)