betaFeedback

WorksComputer Science

CISA: Retrofitting Dense Attention Models with Chunk-Indexed Sparse Attention

Abstract

Long-context LLM inference is costly because attention repeatedly reads a growing key-value (KV) history. We introduce Chunk-Indexed Sparse Attention (CISA), which retrofits pretrained dense attention models without gradient updates. CISA selects fixed-size KV chunks using compact summaries of existing keys, avoiding token-level indexing and a separate full-length index cache. It uses one indexing query per KV group and shares selected chunks across queries in that group. During prefill, QShare reuses selections across adjacent queries to reduce indexing cost and improve KV reuse and GPU utilization. We evaluate CISA on NVIDIA Nemotron 3 Nano and Ultra, and Inkling-Small. In one-layer BF16 benchmarks at batch size 32 using Ultra's per-device attention dimensions, core attention is 11.7x faster for prefill queries near the end of a 1M-token prompt and 13.0x faster during decode. Including chunk scoring, selection, and all other measured GPU work, speedups are 8.6x and 3.0x. On Ultra NVFP4 with a 4,096-chunk budget, aggregate scores stay within 1.5 percentage points of dense attention on MRCR, LongBench v2, and GraphWalks. RULER sweeps on Nano and Ultra BF16 up to one million tokens show scores within 2.05 percentage points of dense attention with 8-16x fewer KV reads. Serving million-token prompts with 32 concurrent requests and 4K output tokens per request, CISA achieves 2.29x the end-to-end throughput of dense attention using Nemotron 3 Ultra NVFP4 on four NVIDIA B300 GPUs. Selecting fewer chunks increases throughput to 2.61x; in separate GraphWalks evaluations, the smaller budget widens the aggregate score gap from 1.49 to 3.59 percentage points. These results expose a practical quality-speed tradeoff without sparse training.

Introduction

Long-context models can process code repositories, extended conversations, and million-token documents without an external retrieval step. This capability is expensive to serve. During dense prefill, each query attends to an increasingly long prefix, while autoregressive decode repeatedly reads the accumulated key–value (KV) cache. IO-aware kernels reduce data movement within exact attention Dao et al., [4], but they do not remove the growth in attended history. At long context lengths, KV-cache data movement is a major bottleneck for latency and throughput.

Sparse attention reduces this cost by selecting a small query-dependent subset of history and applying ordinary attention only to that subset. The challenge is to turn fewer attended tokens into faster GPU execution despite the cost of indexing and scattered KV-cache reads. Token-level sparse attention, such as DeepSeek Sparse Attention (DSA) [5], indexes and selects individual positions from the history. Although attention accesses fewer tokens, the indexer still scans the full history, which can limit the overall speedup. Serving also requires writing fine-grained scores and indices, issuing irregular K/V reads, and often performing an additional gather or materialization step before attention begins. The nominal reduction in dot products can therefore overstate the realizable speedup.

A second challenge is that several strong sparse architectures are trained natively or introduced through substantial continued training [5, 10] (Yuan et al. 2025). That path is valuable when training a new model, but it does not directly address the large installed base of available dense attention models.

We introduce Chunk-Indexed Sparse Attention (CISA), a sparse-attention design that enables efficient long-context inference through chunk-level indexing and direct KV-cache access (Figure 1). CISA makes three coordinated choices. First, it indexes and selects fixed-size chunks rather than individual tokens, recalling a fixed budget of kchunksk_{\mathrm{chunks}} historical chunks at each deployment operating point. Second, we initialize the index-query projections from the model’s existing query heads using a DSA-inspired attention-distribution matching criterion, without any gradient-based training. Third, we share one selected chunk set across GG adjacent prefill query positions. This performs indexing once per group and improves attention efficiency by reusing the selected K/V data across more query rows. We call this mechanism QShareQShare. It is compatible with multi-token prediction (MTP).

CISA retrofit and online sparse execution

Figure 1. CISA retrofit and online sparse execution. Within each KV group, QShareQShare reuses one page plan across adjacent queries; attention uses the original Q/K/V.

The design is motivated by deployment topology as much as approximation quality. MiniMax Sparse Attention (MSA) selects blocks by scanning a separately projected token-level index-key stream shared across KV groups [10]; under tensor parallelism, that stream must be replicated or communicated. CISA instead derives one representative per 16-token chunk from each KV group’s main keys and stores it with the corresponding KV shard. Index storage and scanning scale with chunks; selected page IDs feed exact attention over original Q/K/V without a gather buffer.

We evaluate NVIDIA Nemotron 3 Nano 30B-A3B and Ultra 550B-A55B, together with Inkling-Small. NVFP4 weights on Ultra and Inkling-Small are used for the deployment evaluations; BF16 Nano and Ultra runs provide model-scaling and context-scaling controls. We evaluate four complementary long-context benchmarks—MRCR, LongBench v2, GraphWalks, and RULER—as well as AA-LCR reasoning, SWE-bench Verified, Terminal-Bench, and GDPval [7, 2, 12, 1, 8, 11] (Vodraḥalli et al. 2024; Patwardhan et al. 2025). For MRCR, LongBench v2, and GraphWalks on Ultra NVFP4, we apply kchunks=2,048k_{\mathrm{chunks}} = 2{,}048 and kchunks=4,096k_{\mathrm{chunks}} = 4{,}096 uniformly and report both aggregate and prompt-length-stratified quality. We also derive an attention IO-traffic model and measure controlled, equal-work serving throughput at fixed operating points. We report theoretical component ceilings separately from measured application throughput.

This paper makes three contributions:

  • We introduce CISA, a method for retrofitting pretrained dense attention layers with fixed-budget chunk selection, without gradient-based training.

  • We develop a tensor-parallel-optimized sparse-attention layout with one indexer per KV group, chunk summaries from the main keys, and QShare for efficient prefill.

  • We characterize quality and generation length across two model families, chunk budgets, precisions, and context lengths up to one million tokens, linking an IO-traffic model to measured serving throughput.

Method: Chunk-Indexed Sparse Attention

Chunk-indexed attention for a single query head

For one query head at position tt, let qt\mathbf{q}_t be the query and {ku,vu}u=1t\{\mathbf{k}_u,\mathbf{v}_u\}_{u=1}^{t} its causal keys and values, with head dimension dd. Let K1:tK_{1:t} and V1:tV_{1:t} stack these keys and values as rows. Dense attention applies a softmax to query–key scores and computes a weighted sum of values:

otdense=softmax⁡(qtK1:tTd)V1:t.(1)o_t^{\mathrm{dense}} = \operatorname{softmax}\left(\frac{\mathbf{q}_t K_{1:t}^{\mathsf{T}}}{\sqrt{d}}\right)V_{1:t}. \tag*{(1)}

CISA selects chunks of history, then computes attention using their original keys and values.

We partition the token sequence into chunks CjC_j of CC consecutive tokens, indexed from j=1j=1. For chunk selection, each full chunk CjC_j is represented by the mean rj\mathbf{r}_j of its CC key vectors. For a query at position tt, attention always includes the tokens within the chunk containing tt, which are at positions Tt={(⌈t/C⌉−1)C+1,…,t}\mathcal{T}_t = \{(\lceil t/C\rceil- 1)C + 1,\ldots,t\}, and the tokens Wt\mathcal{W}_t in up to WW immediately preceding chunks. The eligible set Et\mathcal{E}_t contains the indices of the full historical chunks outside the recent window. A separate query projection produces qtI\mathbf{q}_t^I to score their representatives and select a fixed budget of kchunksk_{\mathrm{chunks}} chunks:

rj=1C∑u∈Cjku,st,j=⟨qtI,rj⟩,j∈Et={1,…,max⁡(0,⌊tC⌋−W−1)},(2)\mathbf{r}_j = \frac{1}{C}\sum_{u\in C_j}\mathbf{k}_u,\qquad s_{t,j} = \langle\mathbf{q}_t^I,\mathbf{r}_j\rangle,\qquad j\in\mathcal{E}_t = \left\{1,\ldots,\max\left(0,\left\lfloor\frac{t}{C}\right\rfloor-W-1\right)\right\}, \tag*{(2)}
St=TopK⁡j∈Et(st,j,kchunks).(3)\mathcal{S}_t = \operatorname{TopK}_{j\in\mathcal{E}_t}(s_{t,j},k_{\mathrm{chunks}}). \tag*{(3)}

An upper bound of zero denotes an empty eligible set. The index query serves only selection; its projection is initialized in Section 2.4. We use all eligible chunks if fewer than kchunksk_{\mathrm{chunks}} are available. The set of attended token positions is Ut=(⋃j∈StCj)∪Wt∪Tt\mathcal{U}_t = \left(\bigcup_{j\in\mathcal{S}_t} C_j\right)\cup\mathcal{W}_t\cup\mathcal{T}_t. Attention uses the original Q/K/V and normalizes over this set:

otCISA=softmax⁡(qtKUtTd)VUt,(4)o_t^{\mathrm{CISA}} = \operatorname{softmax}\left(\frac{\mathbf{q}_t K_{\mathcal{U}_t}^{\mathsf{T}}}{\sqrt{d}}\right)V_{\mathcal{U}_t}, \tag*{(4)}

where KUt,VUtK_{\mathcal{U}_t}, V_{\mathcal{U}_t} denote the key and value rows at positions Ut\mathcal{U}_t. When all eligible chunks fit within the budget, this reduces to dense attention.

One indexer per KV group

In grouped-query attention, let Ha\mathcal{H}_a denote the set of query heads sharing the keys and values of KV group aa, and let H=∣Ha∣H = |\mathcal{H}_a|. CISA uses one index query qt,aI\mathbf{q}_{t,a}^I for the group: Equations 2–3 form representatives rj,a\mathbf{r}_{j,a} from the KV group’s keys and select one chunk set St,a\mathcal{S}_{t,a}, which is shared by all HH query heads. Each head still computes Equation 4 with its own query qt,h\mathbf{q}_{t,h} and the group’s original keys and values ku,a,vu,a\mathbf{k}_{u,a},\mathbf{v}_{u,a}. Thus, the heads read the same tokens but assign their own attention weights.

Representatives follow the main keys’ tensor-parallel ownership and have dimension dI=dd_I=d. For a sequence of NN tokens, the representative cache stores approximately N/CN/C vectors per local KV group, each of dimension dId_I, avoiding a separate token-level index-key cache.

QShare: sharing chunk selection across query positions

During prefill, QShare uses one chunk selection for multiple adjacent query positions within each KV group. For a prefix of LprefixL_{\mathrm{prefix}} tokens, QShare-GG partitions the query positions into disjoint groups Gm={(m−1)G+1,…,min⁡(mG,Lprefix)}\mathcal{G}_m = \{(m-1)G+1,\ldots,\min(mG,L_{\mathrm{prefix}})\}, where m=1,…,⌈Lprefix/G⌉m=1,\ldots,\lceil L_{\mathrm{prefix}}/G\rceil. Each group contains GG consecutive query positions, except the final group, which may be shorter. Standard autoregressive decoding contributes one new query position per sequence, so G=1G=1.

Within each group Gm\mathcal{G}_m and KV group aa, we form a shared index query by averaging the projected index queries:

qˉm,aI=1∣Gm∣∑t∈Gmqt,aI.(5)\bar{q}^{I}_{m,a} = \frac{1}{|\mathcal{G}_m|} \sum_{t \in\mathcal{G}_m} q^{I}_{t,a}. \tag*{(5)}

We use qˉm,aI\bar{q}^{I}_{m,a} in Equations (2)–(3) to score the chunk representatives and select one historical chunk set for Gm\mathcal{G}_m. Only chunk indices in ⋂t∈GmEt\bigcap_{t\in\mathcal{G}_m}\mathcal{E}_t are considered, so every selected chunk is eligible for every position in the group. Each head at each position then computes attention using its original query and the original K/V from the selected chunks, recent window, and current-chunk tail, with a position-specific causal mask.

Sharing the chunk selection amortizes representative scoring and top-kk selection across positions and lets more query rows reuse the selected K/V. The resulting gains in KV reuse and GPU tile utilization are examined in § 3.3.

Initializing the indexer from dense attention

We initialize each group’s index-query projection from a pretrained dense attention layer without gradient-based training.

For each converted attention layer and KV group aa, the candidate set Ca\mathcal{C}_a contains H+1H+1 query projections: the projections of the HH heads in Ha\mathcal{H}_a and their rowwise average.

For each sequence xx and query position tt in the calibration set Dcal\mathcal{D}_{\mathrm{cal}}, we define the indexer’s target by averaging the dense attention distributions of the HH query heads in KV group aa:

px,t,a⋆=1H∑h∈Hasoftmax⁡(qx,t,hKx,1:t,a⊤d).(6)p^{\star}_{x,t,a} = \frac{1}{H}\sum_{h\in\mathcal{H}_a}\operatorname{softmax}\left(\frac{q_{x,t,h}K^{\top}_{x,1:t,a}}{\sqrt{d}}\right). \tag*{(6)}

We include the averaged query projection as a candidate for approximating this target. Because softmax is nonlinear, however, the attention distribution produced by the averaged query is not generally equal to the average of the heads’ attention distributions. Each candidate projection c∈Cac\in\mathcal{C}_a produces a query whose attention distribution over the same causal keys is px,t,a(c)p^{(c)}_{x,t,a}. Following DSA’s KL-matching objective [5], we select the candidate whose distribution most closely matches the target on the calibration set:

ca⋆=arg⁡min⁡c∈CaE(x,t)∼Dcal[DKL(px,t,a⋆ ∥ px,t,a(c))].(7)c^{\star}_a = \arg\min_{c\in\mathcal{C}_a}\mathbb{E}_{(x,t)\sim\mathcal{D}_{\mathrm{cal}}}\left[D_{\mathrm{KL}}\left(p^{\star}_{x,t,a}\,\|\,p^{(c)}_{x,t,a}\right)\right]. \tag*{(7)}

The selected projection weights are copied into the group’s indexer.1 The base-model weights remain unchanged.

System Realization and Efficiency

Paged execution in vLLM

CISA reads selected chunks directly from the existing KV cache. In vLLM, this cache is organized into fixed-size memory blocks called pages. These pages need not be adjacent in memory; a block table maps their positions in the sequence to their physical storage locations [9]. We set C=16C=16 to match the page size, so each selected chunk corresponds to one cache page. CISA supplies the selected physical page IDs to the existing attention kernel, which reads the original K/V in place without gathering or copying them into a separate buffer.

The serving implementation also caches the chunk representatives. As full chunks become available, it updates this cache and reuses the stored summaries during selection. For equal index and attention head dimensions, one representative per C=16C = 16 tokens requires 1/(2C)=1/321/(2C) = 1/32 as many elements as the corresponding main K+V state. The full KV history remains stored so later queries can select different chunks. CISA reduces cache reads rather than cache capacity.

The runtime skips representative scoring and top-kk selection when all eligible chunks fit within the budget kchunksk_{\mathrm{chunks}}. Prefill query blocks crossing this threshold are split into a full-attention prefix and a sparse-attention suffix.

Attention-traffic model

Let dd be the attention head dimension and dId_I the representative dimension. We analyze traffic per KV group, whose K/V loads are reused across its assigned query heads. For a query with history length NN, dense attention reads approximately 2Nd2Nd elements from the K/V cache. Once sparse selection is active, CISA reads 2kchunksCd2k_{\mathrm{chunks}}Cd selected K/V elements and scans (N/C)dI(N/C)d_I representative elements. With QShare-GQShare\text{-}G, the representative scan is amortized across GG adjacent queries. Ignoring the recent window, current-chunk tail, projections, metadata, and representative construction, we express CISA’s estimated memory-read volume for a query near the end of prefill as a fraction of that required by dense attention:

ρend(N,kchunks)≈kchunksCN⏟K/V reads+dI2CGd⏟representative reads.(8)\rho_{\mathrm{end}}(N,k_{\mathrm{chunks}}) \approx\underbrace{\frac{k_{\mathrm{chunks}}C}{N}}_{\text{K/V reads}} + \underbrace{\frac{d_I}{2CGd}}_{\text{representative reads}}. \tag*{(8)}

This per-query expression does not describe a complete causal prefill: early queries still attend to all available history until kchunksCk_{\mathrm{chunks}}C tokens are available. Let α=kchunksC/N\alpha= k_{\mathrm{chunks}}C/N denote the selected historical token budget as a fraction of the full prefix length. Integrating traffic over the full causal triangle gives

ρprefill≈2α−α2⏟K/V reads+(1−α2)dI2CGd⏟representative reads.(9)\rho_{\mathrm{prefill}} \approx\underbrace{2\alpha- \alpha^2}_{\text{K/V reads}} + \underbrace{(1-\alpha^2)\frac{d_I}{2CGd}}_{\text{representative reads}}. \tag*{(9)}

The inverse of either ratio is a bandwidth-only speedup estimate based on modeled memory reads, not a bound on measured kernel or end-to-end speedup.

For C=16C = 16, dI=dd_I = d, and G=4G = 4, selecting kchunks=N8Ck_{\mathrm{chunks}} = \frac{N}{8C}, corresponding to 8x nominal compression of the selected remote-history span, gives a 7.53× estimate near the end of prefill and a 4.13× full-prefill estimate. Selecting kchunks=N16Ck_{\mathrm{chunks}} = \frac{N}{16C} (16x compression) yields 14.22× and 7.76×, respectively. Conventional single-token decode has G=1G = 1, reducing the corresponding per-query ceilings to 6.40× and 10.67×. The fixed recent window and at-most-one-chunk causal tail lower these ceilings by a small additive term whose relative contribution decreases with context length.

From component savings to throughput

The traffic reductions above do not by themselves guarantee proportional time savings: selected pages must feed well-utilized attention kernels, and scanning the representatives must be efficient.

Ultra has 32 query heads per KV head, so G=4G = 4 provides 4×32=1284 \times32 = 128 query rows per selected KV set, filling the M=128M = 128 FlashAttention tile used in our implementation. Inkling-Small has four query heads per KV head: G=4G = 4 supplies 16 rows and underfills the tile, whereas G=32G = 32 fills its 32×4=12832 \times4 = 128 rows. Larger sharing groups also reduce the number of separate selections, which may reduce quality.

Figure 2 illustrates these effects using one-layer BF16 Inkling-Small benchmarks at 1M context, batch size 16, and kchunks=4,096k_{\mathrm{chunks}} = 4{,}096. Relative to dense attention, terminal-prefill GPU-busy speedups reach 1.21×1.21\times (G=4G = 4), 3.30×3.30\times (G=16G = 16), and 5.11×5.11\times (G=32G = 32). Single-token decode, with effective positional sharing G=1G = 1, achieves 3.05×3.05\times.

For Ultra’s per-rank TP2 attention geometry at the same context and budget, one-layer BF16 benchmarks at batch size 32 yield core-attention speedups of 11.70×11.70\times for terminal prefill and 12.99×12.99\times for decode. Including scoring, selection, and other measured GPU work in this one-layer benchmark, the corresponding speedups are 8.61×8.61\times and 2.98×2.98\times.

Appendix D provides component timings and experimental details. These measurements isolate attention-path efficiency; Section 4.4 evaluates how the gains translate into full-model serving throughput.

Evaluation

We evaluate CISA in four stages: budget-matched RULER scaling, heterogeneous long-context workloads, capability preservation, and controlled quality–throughput measurements. Unless marked otherwise, sparse runs use 16-token chunks, a 128-page recent window, and QShare-4; each result states its fixed chunk budget kchunksk_{\mathrm{chunks}}; tables and figures use kk or KK as shorthand for kchunksk_{\mathrm{chunks}}. Model configurations, sampling, cohort construction, and detailed statistics appear in Appendix A.

Budget-matched RULER scaling

We evaluate RULER scaling on Nano and Ultra with BF16 weights and on Inkling-Small with NVFP4 weights (Figure 3). Nano and Ultra use G=4G=4, while Inkling-Small uses G=16G=16 for this RULER sweep. All three models follow the same budget schedule: kchunks=1,024k_{\mathrm{chunks}}=1{,}024, 2,0482{,}048, 4,0964{,}096, and 4,0964{,}096 at 128K, 256K, 512K, and 1M, respectively, with each budget fixed throughout its run. At the nominal context endpoints, these budgets select 8×8\times fewer remote historical tokens through 512K and 16×16\times fewer at 1M, before adding the recent window and current-page tail.

On Nano and Ultra, CISA remains within 2.05 points of dense attention across all eight model–length comparisons, with smaller gaps at 1M than at 512K. With G=16G=16, Inkling-Small trails dense attention by 2.94 points at 128K and 2.95 points at 256K, then scores 1.93 points above dense at 512K and 4.71 points above at 1M. Because the budget changes with context length, this sweep measures the combined operating point rather than the independent effect of either variable. Additional RULER results across recall budgets and query-sharing groups are in Appendix Table 5.

Table 5: RULER accuracy across context lengths, recall budgets, and query-sharing groups. (a) Nano and Ultra BF16 controls at G=4G = 4; Δ\Delta is CISA minus dense. (b) Inkling-Small NVFP4 results at G=16G = 16 and G=32G = 32; Δ16−32\Delta_{16-32} is the score at G=16G = 16 minus that at G=32G = 32. KK counts selected remote 16-token chunks; remote compression excludes the recent window and current tail. Scores are percentages and differences are percentage points, calculated before rounding. Daggers identify the G=16G = 16 settings plotted in Figure 3; dashes denote unavailable results. The Nano 1M Quest-bound controls use the same serving build, budget, window, and page size at G=1G = 1 and 4; the CISA reference uses a different build.

ModelContextkk (chunks)Remote comp.DenseCISAΔ\Delta
(a) Nano and Ultra BF16: matched budgets, G=4G = 4
Nano128K1,0248×94.6192.93-1.68
Nano256K2,0488×92.7590.70-2.05
Nano512K4,0968×91.3789.52-1.85
Nano1M4,09616×86.6085.87-0.74
Quest bound + CISA index, Nano 1MG=1G = 1: 84.95; G=4G = 4: 84.41
Ultra128K1,0248×97.6997.31-0.38
Ultra256K2,0488×96.1595.31-0.85
Ultra512K4,0968×95.9294.31-1.62
Ultra1M4,09616×94.7693.70-1.07
(b) Inkling-Small NVFP4: budget and sharing controls
ContextKK (chunks)Remote comp.DenseG=16G = 16G=32G = 32Δ16−32\Delta_{16-32}
128K1,0248×89.55†86.83+2.71
2,0484×92.4891.7190.16+1.55
4,0962×92.9992.22+0.77
256K2,0488×89.1386.18†86.53-0.35
4,0964×—87.71—
512K2,04816×80.85—81.27—
4,0968×82.78†81.33+1.45
1M2,04832×73.8176.9474.53+2.41
4,09616×78.52†76.03+2.49

Table 5.

Heterogeneous workloads with very long contexts

RULER provides a controlled scaling sweep, but heterogeneous workloads place different demands on attention. We therefore evaluate Ultra and Inkling-Small on MRCR, LongBench v2, and GraphWalks using NVFP4 weights at kchunks∈{2,048,4,096}k_{\mathrm{chunks}} \in\{2{,}048, 4{,}096\}. We use G=4G = 4 for Ultra and G=32G = 32 for Inkling-Small, following the hardware considerations in § 3.3. Within each model, dense and sparse comparisons use the same tasks and repeats, with prompt-length cohorts fixed by the dense reference. Table 1 summarizes aggregate accuracy and changes in mean generation length.

Across both models, MRCR and LongBench v2 remain close to dense attention at both budgets. GraphWalks is more sensitive to the budget on Ultra: increasing kchunksk_{\mathrm{chunks}} from 2,048 to 4,096 reduces the accuracy deficit from 3.59 to 1.49 points. Inkling-Small’s GraphWalks scores remain closer to dense, with deficits of 0.52 and 0.28 points at the smaller and larger budgets, respectively.

The breakdown by prompt length shows where Ultra benefits from the larger budget (Appendix Figure 5 and Table 4). In the 256–512K GraphWalks cohort, increasing kchunksk_{\mathrm{chunks}} from 2,048 to 4,096 narrows the gap from 7.24 to 1.79 points. At one million tokens and above, however, dense GraphWalks accuracy falls to 7.08%, and both sparse settings remain below it. MRCR tracks dense attention across the length range. LongBench v2 remains within five points through 512K, while its longer cohorts have wide uncertainty because they contain only 12, 7, and 33 prompts. Appendix Figure 6 reports the corresponding breakdown for Inkling-Small.

BenchmarkInput lengthPromptsRolloutsDensek=2,048k = 2{,}048Δ\Deltak=4,096k = 4{,}096Δ\Delta
MRCR<32< 32K8633,45284.3284.30-0.0284.64+0.32
MRCR32–128K6012,40445.2844.13-1.1544.64-0.64
MRCR128–256K2821,12819.6517.93-1.7218.39-1.26
MRCR256–512K3161,26414.8713.17-1.7013.17-1.70
MRCR512–768K13654411.0910.70-0.3910.60-0.50
MRCR768K–1M1536129.5910.13+0.5410.33+0.74
MRCR≥1\ge1M491968.598.80+0.219.18+0.59
LongBench v2<32< 32K11345262.1762.39+0.2263.50+1.33
LongBench v232–128K18875261.0461.70+0.6663.43+2.39
LongBench v2128–256K10040063.7565.50+1.7564.00+0.25
LongBench v2256–512K5020063.5065.50+2.0068.50+5.00
LongBench v2512–768K124852.0843.75-8.3347.92-4.17
LongBench v2768K–1M72864.2967.86+3.5767.86+3.57
LongBench v2≥1\ge1M3313253.0342.42-10.6143.94-9.09
GraphWalks<32< 32K4501,80092.2391.70-0.5391.76-0.47
GraphWalks32–128K20080049.6045.39-4.2150.31+0.71
GraphWalks128–256K10040037.4830.31-7.1833.87-3.61
GraphWalks256–512K20080024.2216.99-7.2422.43-1.79
GraphWalks512–768K00–––––
GraphWalks768K–1M00–––––
GraphWalks≥1\ge1M2008007.082.70-4.382.46-4.62

Table 4. Ultra NVFP4 scores by dense-reference prompt length (%), with BF16 KV state. Both CISA configurations use 16-token chunks, a 128-page recent window, and G=4G = 4. Δ\Delta is CISA minus dense in percentage points.

On Inkling-Small’s GraphWalks evaluation, CISA generates 128.3% more tokens on average than dense attention at kchunks=2,048k_{\mathrm{chunks}} = 2{,}048 and 78.2% more at kchunks=4,096k_{\mathrm{chunks}} = 4{,}096. Inspection reveals longer reasoning, accompanied by some repetitive generations that exhaust the output budget.

Reasoning, agentic, and professional capability

Beyond long-context retrieval, we evaluate whether CISA preserves the model’s reasoning, agentic, and professional-task capabilities. Table 2 reports the Nano control and the primary Ultra NVFP4 capability results, including generation-length changes; the Ultra BF16 controls and full matrix remain in Appendix Table 6.

ModelBenchmarkkkDenseCISAΔ\DeltaVerbosity Δ\Delta
Nano BF16AA-LCR1,02434.9434.25-0.69-9.1%
Ultra NVFP4AA-LCR1,02465.0065.88+0.88+1.8%
Ultra NVFP4SWE-bench Verified2,04869.2069.93+0.73-0.2%
Ultra NVFP4Terminal-Bench 2.02,04848.0349.44+1.40-0.7%
Ultra NVFP4Terminal-Bench Hard1,02435.9435.42-0.52+2.8%
Ultra NVFP4GDPval2,0481395.591408.71+13.12-2.8%

Table 2. Capability preservation for Nano BF16 and Ultra NVFP4 at their target budgets. Scores use each benchmark’s native percentage metric except GDPval, reported in Elo; score Δ\Delta is in percentage points or Elo, respectively, and verbosity Δ\Delta is the relative change in mean generated tokens.

Across the percentage-scored Ultra NVFP4 evaluations in Table 2, CISA changes the point estimates by −0.52-0.52 to +1.40+1.40 points; the Terminal-Bench rows use context summarization and therefore do not establish unchanged compaction behavior. On GDPval the failure-adjusted Elo point estimates are 1395.59 for dense attention and 1408.71 for CISA, a difference of +13.12+13.12. Appendix § 8.§ 4 details the adjustment and the matched-rollout comparison.

Quality, Throughput, and Output Length

We evaluate how recall budget and query sharing jointly affect quality, measured throughput, and mean output length on Ultra and Inkling-Small. We define quality as the equal-weight mean score across RULER 1M, MRCR200, GraphWalks-200, and AA-LCR. The base profile selects 4,096 historical chunks for the first three benchmarks and 1,024 for AA-LCR. The reduced profile halves these budgets. We vary GG across profiles. Both models use the same tasks and reference answers, and within each model quality and output length are measured on the same generations.

We measure controlled fixed-output total token throughput on MRCR200, the 200 longest prompts in our MRCR corpus, with contexts around one million tokens. Every configuration serves the same prompts, and each request generates exactly 4,096 tokens, fixing the input and output workload across configurations. We report speedup SS relative to the same model’s dense baseline.

In the quality evaluations, some CISA configurations generate more output tokens per response on average than dense attention. In deployment, longer responses could offset part of the benefit of faster token generation. For each benchmark, we divide CISA’s mean output token count, including reasoning tokens, by that of the dense baseline. We average the four ratios with equal weight to obtain RR, then define the verbosity-adjusted speedup proxy Sadj=S/RS_{\mathrm{adj}} = S/R. This simple adjustment assumes that workload cost scales linearly with output length. It does not model fixed prefix cost, nonlinear batching effects, or differences between the quality and throughput workloads.

Figure 4 shows the resulting trade-offs. For Ultra, increasing sharing from G=4G = 4 to G=8G = 8 at the base budgets gives a higher mean score point estimate and a higher adjusted speedup proxy than halving the budgets at G=4G = 4. For Inkling-Small at G=32G = 32, the base profile’s measured 1.54× speedup corresponds to an adjusted proxy of 1.12×, while its mean score remains above the dense reference. The reduced profile achieves a larger measured speedup of 1.64×, but its higher mean output token count lower the adjusted proxy to 0.93×. Together, these results illustrate why recall budget, query sharing, and output length should be considered jointly. Appendix Figure 7 reports the unadjusted speedups, and Appendix § 9.§ 1 gives the evaluation subsets and measurement details.

Figure 4. Quality–cost operating points for (a) Nemotron Ultra and (b) Inkling-Small, both NVFP4. Quality is the equal-weight mean score across RULER 1M, MRCR200, GraphWalks-200, and AA-LCR. The horizontal axis divides controlled, fixed-output total token throughout speedup by the mean benchmark-relative output-length ratio. It is an estimate that accounts for differences in output length, not a direct measurement of natural completion throughput. Reduced profiles halve the base recall budgets. Lines connect point estimates as GG increases within each profile. Exact coordinates and measurement details appear in Appendix Table 7 and Appendix B.1.

Related Work

FlashAttention tiles exact attention to reduce IO ([4]), while PagedAttention and vLLM manage non-contiguous KV pages and continuous batching ([9]). CISA retains paged KV management but supplies a query-dependent sparse block table.

Quest scores KV pages using coordinatewise key bounds and produces a separate plan per query head ((Tang et al., 2024)). This design is natural for MAH, where each query head has its own KV states. Under GQA, however, separate plans for each query head can reduce reuse among query heads that share the same KV head; CISA instead creates one plan per KV group, and QShare reuses that plan across query positions. On Nano, at a 1M-token context, the hybrid Quest-bound + CISA index control scores 84.95 at G=1G = 1 and 84.41 at G=4G = 4 compared with 85.87 for the budget-aligned CISA reference (Appendix Table 5).

Longformer and BigBird train with fixed sparse structure ([3] (Zaheer et al. 2020)); NSA, DSA, and MSA learn selectors with GPU-aware sparse execution ([5, 10] (Yuan et al. 2025)). CISA does not claim block selection, per-group indexing, or training-free sparsification in isolation; it combines fixed-budget recall, a dense-initialized indexer, TP-local main-key summaries, and cross-position reuse in one paged-attention path.

Limitations

Initialization requires no gradient updates but uses calibration activations and candidate selection; it is not data-free. CISA reduces attention reads but retains the main K/V state for future selection; it is not KV-cache eviction or capacity compression. Quality also remains workload- and budget-dependent: at Ultra NVFP4, kchunks=4,096k_{\mathrm{chunks}} = 4{,}096 leaves the ≥1\ge1M GraphWalks cohort 4.62 points below dense attention. We test two model families, one serving stack, and a limited budget grid.

The controlled serving workload combines prefill and decode, while the analytical ceilings omit selection, metadata. Finally, conventional autoregressive decode exposes one query at a time, so QShare currently benefits prefill only. Extending selection reuse to MTP ([6]) or speculative decoding remains future work.

Conclusion

Retrofitting dense attention is both an approximation problem and a systems problem. CISA addresses them together through chunk-level recall, KV-group-local indexing, and shared prefill selection, without requiring gradient updates. Results on Nemotron and Inkling-Small show that this design can keep many benchmark scores close to dense attention while improving fixed-output throughput. The trade-off remains workload-dependent: longer generations can reduce the serving benefit even though benchmark scores remain close. These results support considering recall budget and query sharing jointly during deployment tuning. Future work includes learned indexers, adaptive budgets, and decode-side selection reuse.

Additional Evaluation Details

This appendix specifies the evaluation settings and cohorts, then reports the length-stratified results and capability controls underlying § 4.

Sampling and execution settings

Model configurations. Nano and Ultra are hybrid Mamba–Transformer MoE models. Inkling-Small combines global and sliding-window attention with MoE and short-convolution components. Their configurations are summarized below; query and KV head counts refer to global attention, with head dimension 128 throughout.

ModelTotal blocks/layersGlobal-attention layersHidden dimensionQuery headsKV heads
Nano5262,688322
Ultra108128,192642
Inkling-Small4274,096328

Table 12.

Inkling-Small’s remaining 35 layers use sliding-window attention; CISA replaces only its seven global-attention layers. Across all three models, CISA preserves the base-model weights and adds initialized index–query projections.

Sampling. For Ultra and Inkling-Small, MCRK, LongBench v2, and GraphWalks evaluations use top-p=1p = 1, four repeats per task, and a 65,536-token output cap. RULER uses temperature 10−510^{-5} and top-p=0.99p = 0.99, with 100 examples per subtask across 13 subtasks.

The capability evaluations use temperature 1 and the following task counts, repeats, and top-pp settings.

BenchmarkTasksRepeats per taskTop-pp
AA-LCR100160.95
SWE-bench Verified50030.95
Terminal-Bench 2.08980.95 (BF16); 1 (NVFP4)
Terminal-Bench Hard4880.95
GDPval22020.95

Table 13.

The separate AA-LCR operating-point experiments retain 100 tasks and 16 repeats, using top-pp = 1 for Ultra and top-pp = 0.95 for Inkling-Small. GDPval’s treatment of incomplete rollouts is specified in Appendix § 8.§ 4.

Execution settings. The Ultra NVFP4 GraphWalks runs in Table 1 use BF16 KV and Mamba caches, with FP16 Mamba SSM state and the FlashInfer Mamba backend.

Table 1: Ultra and Inkling-Small NVFP4 long-context accuracy and generation length at two fixed budgets. Ultra uses G=4G = 4; Inkling-Small uses G=32G = 32. Scores are percentages, and score Δ\Delta is CISA minus the corresponding dense baseline in percentage points. Verbosity Δ\Delta is the relative change in mean generated tokens. The two budgets select 32,768 and 65,536 remote historical tokens, respectively, in addition to the fixed recent window and current-page tail. Sampling and cache settings appear in Appendix § 8.§ 1.

BenchmarkDenseCISA k=2,048k = 2{,}048Δ\DeltaVerb. Δ\DeltaCISA k=4,096k = 4{,}096Δ\DeltaVerb. Δ\Delta
Ultra NVFP4 (G=4G = 4)
MRCR47.3446.64-0.70+2.9%46.96-0.38+3.1%
LongBench v261.3861.38+0.00+8.0%62.48+1.09+4.7%
GraphWalks53.4249.84-3.59+14.1%51.93-1.49+10.6%
Inkling-Small NVFP4 (G=32G = 32)
MRCR41.4643.33+1.87-3.8%42.41+0.94-3.6%
LongBench v263.2764.31+1.04+24.3%63.37+0.10+3.9%
GraphWalks57.3356.81-0.52+128.3%57.05-0.28+78.2%

Table 1.

Fixed budgets by input length

We report results by input length to examine how quality preservation varies with context length at a fixed chunk budget. Cohorts use each model’s dense-reference prompt-token counts and remain fixed across dense and CISA runs. Ultra uses the same cohorts for BF16 and NVFP4; Inkling-Small uses its own token counts, so cohort membership can differ between models.

Figure 5 and Figure 6 show NVFP4 results for Ultra and Inkling-Small, respectively. Each CISA configuration keeps its budget of kchunks=2,048k_{\mathrm{chunks}} = 2{,}048 or 4,0964{,}096 fixed throughout the run. Table 3 and Table 4 provide Ultra’s BF16 and NVFP4 scores and cohort sizes.

Figure 5. Ultra NVFP4 scores by dense-reference prompt length, comparing dense attention with CISA at kchunks∈{2,048,4,096}k_{\mathrm{chunks}} \in\{2{,}048, 4{,}096\} and G=4G = 4. Labels give the number of distinct prompts. Error bars show 95% task-bootstrap confidence intervals, retaining all four repeats of each sampled task. Table 4 reports exact scores and cohort sizes.

Figure 6. Inkling-Small NVFP4 scores by dense-reference prompt length, comparing dense attention with CISA at kchunks∈{2,048,4,096}k_{\mathrm{chunks}} \in\{2{,}048, 4{,}096\} and G=32G = 32. Labels give the number of distinct prompts; shaded buckets contain no prompts. Error bars show pointwise 95% confidence intervals from 20,000 task-bootstrap resamples, retaining all four repeats of each sampled task.

BenchmarkInput lengthPromptsRolloutsDensek=2,048k = 2{,}048Δ\Deltak=4,096k = 4{,}096Δ\Delta
MRCR<32K< 32\mathrm{K}8633,45284.6784.85+0.1884.73+0.06
MRCR32–128K6012,40446.5846.47-0.1146.07-0.51
MRCR128–256K2821,12818.3617.78-0.5818.34-0.02
MRCR256–512K3161,26410.367.64-2.729.50-0.86
MRCR512–768K1365445.664.96-0.705.20-0.46
MRCR768K–1M1536124.764.07-0.694.69-0.07
MRCR≥1M\ge1\mathrm{M}491965.024.43-0.594.74-0.27
LongBench v2<32K< 32\mathrm{K}11345261.9562.17+0.2262.17+0.22
LongBench v232–128K18875262.9062.23-0.6663.43+0.53
LongBench v2128–256K10040065.5068.50+3.0066.50+1.00
LongBench v2256–512K5020063.5064.50+1.0068.00+4.50
LongBench v2512–768K124841.6754.17+12.5050.00+8.33
LongBench v2768K–1M72853.5757.14+3.5764.29+10.71
LongBench v2≥1M\ge1\mathrm{M}3313253.7950.76-3.0361.36+7.58
GraphWalks<32K< 32\mathrm{K}4501,80093.8293.37-0.4592.99-0.83
GraphWalks32–128K20080053.3950.92-2.4754.09+0.69
GraphWalks128–256K10040038.8234.74-4.0735.11-3.70
GraphWalks256–512K20080023.9818.87-5.1120.84-3.15
GraphWalks512–768K00–––––
GraphWalks768K–1M00–––––
GraphWalks≥1M\ge1\mathrm{M}2008007.364.23-3.125.35-2.01

Table 3. Ultra BF16 scores by dense-reference prompt length (%). Both CISA configurations use 16-token chunks, a 128-page recent window, and G=4G = 4. Δ\Delta is CISA minus dense in percentage points. Empty MRCR final answers are scored as zero: one for dense attention and two for kchunks=4,096k_{\mathrm{chunks}} = 4{,}096.

For Ultra, the three longest LongBench v2 cohorts contain only 12, 7, and 33 prompts and should be interpreted cautiously. Its two intermediate GraphWalks cohorts between 512K and 1M are empty.

RULER controls

Table 5 reports the scores underlying Figure 3 and additional budget and sharing controls. Inkling-Small’s dense and six sparse 128K runs use identical questions and reference answers across three budgets at G=16G = 16 and G=32G = 32.

Figure 3. Budget-matched RULER results for Nano and Ultra (BF16, G=4G = 4) and Inkling-Small (NVFP4, G=16G = 16). Each sparse run keeps the labeled budget fixed. Panels share the same accuracy scale; signed labels show CISA minus dense accuracy in percentage points. Exact scores, budgets, and remote-compression factors appear in Appendix Table 5.

Full capability results

Nano and Ultra use kchunks=1,024k_{\mathrm{chunks}} = 1{,}024 for AA-LCR and Terminal-Bench Hard, whose dense-reference 99th-percentile input lengths are approximately 123K and 75K. SWE-bench Verified, Terminal-Bench 2.0, and GDPval use kchunks=2,048k_{\mathrm{chunks}} = 2{,}048. Inkling-Small’s separate AA-LCR budget and sharing sweep is included in Appendix § 9.§ 1.

Terminal-Bench and cache precision. The Terminal-Bench runs use context summarization; their scores do not establish unchanged compaction frequency or fidelity. All NVFP4 rows use BF16 KV state. Ultra’s BF16 dense Terminal-Bench references use FP8 KV caches, so these comparisons change both sparsity and KV precision.

GDPval scoring. Each rollout is compared with Kimi-K2.5-Thinking (vadams r2) using four Gemini 3.1 Pro Preview judgments with alternating response positions. A rollout missing any of the four valid judgments at the reporting cutoff is assigned four losses. Failure-adjusted Elo therefore includes all 440 rollouts and 1,760 comparison slots. Complete judgments are available for 427/440 dense and 448/440 CISA rollouts in BF16, and 420/440 dense and 430/440 CISA rollouts in NVFP4. Restricting the calculation to the 420 NVFP4 rollouts with complete judgments for both methods gives Elo 1419.57 for dense and 1421.94 for CISA (+2.38, calculated before rounding). NVFP4 verbosity counts generated across all model calls in one retained trajectory per rollout for all 440 rollouts, excluding judge calls and superseded generation attempts.

Table 6: Nano and Ultra capability results at fixed chunk budgets. Scores are percentages except GDPval, for which we report failure-adjusted Elo. Verbosity Δ\Delta is 100(LˉCISA/Lˉdense−1)100(\bar{L}_{\mathrm{CISA}}/\bar{L}_{\mathrm{dense}} - 1), where Lˉ\bar{L} is mean generated tokens per rollout on the matched cohort. For multi-turn agents, rollout length sums generated tokens across all model calls. 2 Unavailable results reflect incomplete evaluations or unrecoverable token counts for the matched cohort. 3 GDPval includes all 220 tasks and two rollouts per task under the failure-adjustment rule below.

ScalePrecisionBenchmarkMetrickkDenseCISAΔ\DeltaVerbosity Δ\Delta
NanoBF16AA-LCRpass@1 (%)1,02434.9434.25-0.69-9.1%
UltraBF16AA-LCRpass@1 (%)1,02465.1365.38+0.25+5.3%
UltraNVFP4AA-LCRpass@1 (%)1,02465.0065.88+0.88+1.8%
UltraBF16SWE-bench Verifiedresolved (%)2,04870.0069.07-0.93-4.2%
UltraNVFP4SWE-bench Verifiedresolved (%)2,04869.2069.93+0.73-0.2%
UltraBF16Terminal-Bench 2.0pass@1 (%)2,04849.8649.30-0.56-19.1%
UltraNVFP4Terminal-Bench 2.0pass@1 (%)2,04848.0349.44+1.40-0.7%
UltraBF16Terminal-Bench Hardpass@1 (%)1,02437.2436.98-0.26-6.9%
UltraNVFP4Terminal-Bench Hardpass@1 (%)1,02435.9435.42-0.52+2.8%
UltraBF16GDPval3Adj. Elo2,0481422.621414.72-7.90—2
UltraNVFP4GDPval3Adj. Elo2,0481395.591408.71+13.12-2.8%

Table 6.

Operating-Point Ablations

We detail the quality–throughput profiles in § 4.4, then report no-sharing baselines and controls for the recent window and query sharing.

Quality and generation-cost sensitivity

Figure 4 combines benchmark quality, controlled serving throughput, and generation length. For profile pp, let Ap,bA_{p,b} be benchmark bb’s percentage score and Lˉp,b\bar{L}_{p,b} its mean generated tokens per response. For B={RULER 1M,MRCR200,GraphWalks-200,AA-LCR}\mathcal{B} = \{\text{RULER 1M}, \text{MRCR200}, \text{GraphWalks-200}, \text{AA-LCR}\}, define

Ap=14∑b∈BAp,b,Rp=14∑b∈BLˉp,bLˉdense,b,Sadj,p=SpRp,(10)A_p = \frac{1}{4}\sum_{b \in\mathcal{B}} A_{p,b}, \qquad R_p = \frac{1}{4}\sum_{b \in\mathcal{B}} \frac{\bar{L}_{p,b}}{\bar{L}_{\mathrm{dense},b}}, \qquad S_{\mathrm{adj},p} = \frac{S_p}{R_p}, \tag*{(10)}

where SpS_p is total-token throughput relative to the same model’s dense reference. Every profile includes all four benchmarks, weighted equally. Output-length ratios are computed from each benchmark’s mean, including reasoning tokens and outputs that reach the generation cap. The base profile uses chunk budgets {4096,4096,4096,1024}\{4096, 4096, 4096, 1024\} in the order above; the reduced profile halves each budget. Each profile uses one sharing factor GG throughout, with a 128-page recent window and the current-page tail in addition to the selected chunks.

Evaluation subsets. Both models use identical tasks and reference answers. RULER uses its 1M-context evaluation, with 100 examples in each of 13 subtasks. MRCR200 contains the longest 200 of the 2,400 MRCR prompts, selected before model-specific tokenization using source lengths of 763,613–1,118,929 tokens. GraphWalks-200 contains the 200 prompts from Ultra’s 256K–512K bucket, chosen to examine budget sensitivity; their framed lengths are approximately 360K tokens for Ultra and 255K for Inkling-Small. MRCR200 and GraphWalks-200 each use four repeats per task; AA-LCR uses 100 tasks with 16 repeats. For each benchmark, quality and output length use the same tasks and repeats.

Throughput measurements. Each model serves the same ordered MRCR200 requests across its configurations, generating exactly 4,096 tokens per request with EOS ignored. Ultra uses four B300 GPUs in TP2DP2 with concurrency 32 and temperature zero; each point averages three independent allocations with fresh servers. The dense and base-G=4G = 4 runs share one campaign, while reduced-G=4G = 4 and base-G=8G = 8 use separate campaigns under the same workload and allocation protocol. The G=8G = 8 campaign uses a newer serving build. Inkling-Small uses eight B300 GPUs in TP8DP1, with concurrency and maximum sequence count 16, a maximum of 32,768 batched tokens, and one run per setting. Throughput is the client-reported total-token rate from vllm bench serve, checked against token totals and elapsed time. Speedups are normalized within each model; the different topologies do not support a controlled efficiency comparison between models.

Interpretation and uncertainty. Dividing by RpR_p assumes cost is proportional to output length, omitting prefill cost, nonlinear batching effects, and workload differences. The adjusted value is therefore a sensitivity proxy rather than measured natural-completion speedup. Quality and throughput are measured separately, sometimes with different serving builds. Ultra’s dense RULER reference also uses an earlier build and topology, with task and reference identities matched to the sparse runs. Inkling-Small’s quality and throughput runs use different builds.

Quality intervals use 20,000 task-bootstrap resamples, stratified within RULER’s 13 subtasks and retaining all repeats of each sampled task for the other benchmarks. Each resample recomputes the four-benchmark mean, using seed 20260901 for Ultra and 20260912 for Inkling-Small. Intervals are pointwise, and Inkling-Small’s single throughput run per setting provides no estimate of variation across runs. Small differences between plotted points do not establish statistically resolved dominance. Table 7 reports both speedup coordinates and the quality intervals; Table 8 gives Ultra’s component scores.

ProfileGGMean [95% CI]Measured SpS_pΔL\Delta L (%)Adjusted Sadj,pS_{\mathrm{adj},p}
Ultra NVFP4
Dense–48.04 [45.75, 50.30]1.000×+0.01.000×
Base447.68 [45.39, 49.93]2.285×+17.91.939×
Reduced445.40 [43.14, 47.64]2.615×+34.11.950×
Base846.77 [44.48, 49.02]2.594×+13.92.277×
Inkling-Small NVFP4
Dense–42.73 [40.34, 45.10]1.000×+0.01.000×
Reduced444.95 [42.65, 47.23]1.141×+75.10.652×
Reduced1644.61 [42.28, 46.96]1.522×+76.60.862×
Reduced3244.30 [41.93, 46.66]1.636×+76.60.926×
Base444.65 [42.34, 46.93]0.898×+39.70.643×
Base1644.38 [42.04, 46.73]1.403×+38.61.013×
Base3243.68 [41.32, 46.02]1.544×+37.31.124×

Table 7. Operating points for Figure 4 and Figure 7. Mean is the equally weighted four-benchmark score (%) with its pointwise 95% task-bootstrap interval. SpS_p is measured fixed-output throughput relative to dense; ΔL=100(Rp−1)\Delta L = 100(R_p - 1) is the mean benchmark-relative output-length change. Sadj,p=Sp/RpS_{\mathrm{adj},p} = S_p/R_p is the generation-cost sensitivity proxy. Base budgets are {4096, 4096, 4096, 1024} chunks for RULER 1M, MRCR200, GraphWalks-200, and AA-LCR, respectively; reduced budgets halve these values.

Figure 7. Unadjusted quality–throughput results for Ultra and Inkling-Small NVFP4. Quality scores and profiles match Figure 4; the horizontal axis shows measured total-token throughput relative to each model’s dense baseline, using MRCR200 with 4,096 output tokens per request. Lines connect increasing GG within each budget profile. Table 7 reports the exact coordinates.

ProfileRULERMRCR200GraphWalks-200AA-LCRMean
Dense94.539.2124.2264.1948.04
G=4G = 4, base93.769.9922.4364.5647.68
G=4G = 4, reduced91.8810.4816.9962.2545.40
G=8G = 8, base92.699.8120.6963.8846.77

Table 8. Ultra NVFP4 benchmark scores underlying the operating-point means in Table 7. Scores use each benchmark’s native percentage metric; the mean weights all four equally.

No query sharing (G=1G = 1)

To document performance without positional query sharing, Table 9 reports Ultra NVFP4 quality and throughput separately. The G=1G = 1 quality run uses kchunks=2,048k_{\mathrm{chunks}} = 2{,}048 and an implementation without a representative cache; its throughput run uses kchunks=4,096k_{\mathrm{chunks}} = 4{,}096. These measurements describe different operating points and are not combined into one quality–throughput coordinate.

(a) Quality
Settingkk (chunks)Score95% CI
Dense–24.22[20.02, 28.64]
G=1G = 12,04818.38[14.67, 22.30]
G=4G = 42,04816.99[13.44, 20.73]
G=4G = 44,09622.43[18.32, 26.73]
G=8G = 84,09620.69[16.61, 24.90]
(b) Throughput
Settingkk (chunks)Tokens/sRange
Dense–14,67714,518–14,823
G=1G = 14,09618,063–
G=4G = 42,04838,37538,083–38,767
G=4G = 44,09633,54333,091–34,196
G=8G = 84,09638,07537,656–38,434

Table 9. Ultra NVFP4 results with and without query sharing. (a) GraphWalks-200 node-set F1 (%) with pointwise 95% intervals from 20,000 task-bootstrap resamples (seed 20260901). (b) MRCR200 total-token throughput on four B300 GPUs in TP2DP2 with concurrency 32 and 4,096 generated tokens per request. The G=1G = 1 throughput result is provisional and uses one allocation; other rows average three, with the observed range shown.

Additional G=1G = 1 diagnostics give an AA-LCR score of 65.4 over 15 of the planned 16 repeats and an MRCR200 score of 9.18 after recovering all saved responses; two MRCR200 servers failed their post-run health checks. Earlier RULER and MRCR200 runs from before an implementation repair are excluded. Without a validated RULER result and replicated throughput measurements, G=1G = 1 is excluded from the four-benchmark operating-point comparison.

Recent-window and query-sharing controls

Matched recent-window control. On MRCR200 with four repeats per task, removing the 128-page recent window at G=4G = 4, kchunks=4,096k_{\mathrm{chunks}} = 4{,}096 changes the score from 9.99 to 9.64. The paired difference is −0.34 percentage points before rounding, with a 95% task-bootstrap interval of [−1.44, 0.71] (20,000 resamples, seed 20260901). This experiment does not resolve an effect of the recent window on MRCR200 quality.

Held-out routing diagnostics. Figure 8 probes the two routing mechanisms directly on held-out activations from all 12 Ultra attention layers and both KV groups. At G=4G = 4, QShare retains, on average, 92.7% of the pages selected independently at each position while losing 0.35 percentage points of total dense-attention probability mass. The overlap between independent selections, measured as their intersection divided by the smaller set, is 88.3% at a one-token lag and 87.4% at lag 32. For the recent window, adding W=128W = 128 pages to kchunks=1,024k_{\mathrm{chunks}} = 1{,}024 increases captured dense-attention mass by 1.08 percentage points, whereas replacing 128 selected historical pages at the same total page count adds 0.07 points. In this diagnostic, most of the gain from adding the recent window is attributable to reading more pages.

Figure 8. Offline routing diagnostics on 64 held-out 131K-token Ultra documents (kchunks=1,024k_{\mathrm{chunks}} = 1{,}024, 16-token pages). (a) Dense-attention-mass loss when one selection with W=128W = 128 is shared across GG adjacent queries over the final 2,048 positions. (b) Mass gain relative to W=0W = 0 when recent pages are added to kchunksk_{\mathrm{chunks}} selected pages or replace the same number at a fixed total, sampling within the final 8,192-position region. Whiskers are pointwise 95% document-bootstrap intervals (2,000 draws, seed 42); window differences are paired with W=0W = 0. These are mechanism diagnostics, not benchmark-quality or throughput measurements.

Traffic Derivation

We derive the traffic ratios in § 3, omitting the recent window, current-page tail, and execution overheads.

For one KV group and one query with history nn, dense attention reads 2nd2nd K/V elements. After the sparse threshold S=kchunksCS = k_{\mathrm{chunks}}C, CISA reads 2Sd2Sd selected K/V elements and (n/C)dI/G(n/C)d_I/G amortized representative elements. Dividing by the dense read at n=Nn = N gives Equation (8).

For a complete causal prefill, dense K/V traffic is proportional to ∫0N2nd dn=N2d\int_{0}^{N} 2nd\,dn = N^{2}d. CISA attends densely through SS and then reads 2Sd2Sd selected K/V elements per query, giving S2d+2S(N−S)dS^{2}d + 2S(N-S)d. The representative scan is active only over the indexed-history region and integrates to (N2−S2)dI/(2CG)(N^{2} - S^{2})d_I/(2CG). Normalizing by dense traffic and substituting α=S/N\alpha= S/N gives Equation (9). An additive recent window and current-page tail introduce additional traffic that is omitted from these expressions. The inverse ratios are therefore bandwidth-only estimates, not strict bounds on measured speedup.

The representative cache has the following capacity relative to the main K+V state:

(N/C)dI2Nd=dI2Cd.(11)\frac{(N/C)d_I}{2Nd} = \frac{d_I}{2Cd}. \tag*{(11)}

For C=16C = 16 and dI=dd_I = d, this is 1/32. This capacity is local to the KV group and follows its tensor-parallel ownership.

Attention-Only Speedup Measurements

These one-layer experiments measure the attention-path costs discussed in § 3.3 for Nano, Ultra, and Inkling-Small.

Nano and Ultra head geometries

We compare dense and sparse one-layer Nemotron-H models with dummy weights on one B300 GPU at TP1. All runs use CUDA graphs, BF16 model state and K/V, head dimension 128, 32 query heads, and a maximum of 8,192 batched tokens. Two KV heads reproduce Nano’s TP1 attention geometry; one KV head with 32 query heads reproduces Ultra’s local geometry at TP2, excluding inter-GPU communication. CISA uses 16-token chunks, kchunks=4,096k_{\mathrm{chunks}} = 4{,}096, a 128-page recent window, and G=4G = 4 for prefill; single-token decode has effective G=1G = 1.

For batch sizes B∈{16,24,32}B \in\{16, 24, 32\}, we retain ten terminal-prefill or steady-decode forwards near N=1,048,576N = 1{,}048{,}576. Profiler annotations verify the phase, batch size, and per-request history. Table 10 reports speedups over dense GQA for each batch size and their geometric mean.

Local model shapePhaseMetricB=16B = 16B=24B = 24B=32B = 32Geom. mean
Nano TP1 (HKV=2H_{\mathrm{KV}} = 2)Terminal prefillGPU busy4.49×4.57×4.56×4.54×
Nano TP1 (HKV=2H_{\mathrm{KV}} = 2)Terminal prefillCore attention5.95×6.40×6.07×6.13×
Nano TP1 (HKV=2H_{\mathrm{KV}} = 2)Steady decodeGPU busy2.72×3.24×3.39×3.11×
Nano TP1 (HKV=2H_{\mathrm{KV}} = 2)Steady decodeCore attention12.37×13.18×12.94×12.83×
Ultra TP2/rank (HKV=1H_{\mathrm{KV}} = 1)Terminal prefillGPU busy8.61×8.09×8.61×8.43×
Ultra TP2/rank (HKV=1H_{\mathrm{KV}} = 1)Terminal prefillCore attention11.63×11.57×11.70×11.63×
Ultra TP2/rank (HKV=1H_{\mathrm{KV}} = 1)Steady decodeGPU busy2.56×2.96×2.98×2.83×
Ultra TP2/rank (HKV=1H_{\mathrm{KV}} = 1)Steady decodeCore attention13.26×13.79×12.99×13.34×

Table 10. CISA speedup over matched dense GQA at one million tokens (higher is better). The geometric mean is across the three executed batch sizes. GPU busy is the union of kernel, memcpy, and memset intervals, with overlaps counted once. Core attention includes only the FlashAttention forward and combine kernels; GPU busy also includes projections, scoring, selection, metadata, and copies.

At this context length, the selected K/V span is kchunksC=65,536=N/16k_{\mathrm{chunks}}C = 65{,}536 = N/16. The ideal K/V-only reduction is therefore 16×, or 14.22× after accounting for the representative scan at G=4G = 4 (Equation (8)). Ultra’s geometric-mean terminal-prefill speedup is 11.63× for core attention and 8.43× for all GPU activity. The remaining costs include the recent window, current-page tail, routing, metadata, projections, and copies. Nano’s lower prefill speedup reflects an implementation that processes its two local KV groups serially on one CUDA stream, while dense attention uses a single kernel.

During decode, the representative scan cannot be shared across positions, giving an ideal combined traffic reduction of 10.67× at G=1G = 1. Core-attention speedups are 12.83× for Nano and 13.34× for Ultra, but including all GPU activity reduces them to 3.11× and 2.83×. These gaps illustrate the cost of work outside the core attention kernel.

At B=24B = 24, the 8,192-token batching cap gives 341 prefill tokens per request and a final one-token tail. Dense and sparse runs execute the same shapes, including this irregular tail.

Inkling-Small component breakdown

Table 11 gives the timings behind Figure 2, including the decode implementation before coalescing representative loads. The prefill sweep varies query sharing at a fixed chunk budget; the decode optimization preserves the scoring rule and selection policy.

Figure 2. Query sharing and attention-path efficiency on Inkling-Small at approximately one million context tokens, batch size 16, and kchunks=4,096k_{\mathrm{chunks}}=4{,}096. (a) Terminal prefill with G∈{4,16,32}G \in\{4,16,32\}. Query sharing increases reuse of loaded KV blocks across query positions and can improve attention-tile utilization, depending on the number of query heads per KV head. (b) Single-token decode with effective positional sharing G=1G=1. Bars show mean GPU busy time over ten retained forwards; labels give total milliseconds and speedup relative to dense attention. Measurements use a one-layer BF16 model. Component definitions, full timings, and setup appear in Appendix Table 11.

Model and hardware. We use one B300 GPU at TP1 with a one-layer dummy-weight model containing global attention, a dense MLP, and short convolution. Four query heads and one KV head reproduce Inkling-Small’s local attention geometry at TP8. Hidden and MLP intermediate dimensions are 4,096, convolution width is 4, and attention and representative dimensions are 128. The model omits MoE, sliding-window layers, and TP8 communication. Model state, activations, representatives, and K/V are BF16; execution uses FlashAttention 4, CUDA graphs, and the baseline top-kk implementation.

Workload and measurements. The workload comprises sixteen 1,048,576-token prompts, with a maximum of 8,192 batched tokens and a 64 GiB KV reservation. Sparse runs use 16-token chunks, kchunks=4,096k_{\mathrm{chunks}} = 4{,}096, a 128-page recent window, and the current-page tail. Prefill varies G∈{4,16,32}G \in\{4, 16, 32\}; decode uses the G=32G = 32 configuration with one query per sequence, giving effective positional sharing G=1G = 1. Each mean uses ten forwards from one capture, rather than independent trials. Terminal-prefill forwards contain 512 queries per sequence at histories 1,043,968–1,048,576 in steps of 512; decode histories span 1,048,694–1,048,703. The baseline and coalesced-load decode implementations are measured on the same B300; the dense decode reference is captured on another B300.

PhaseVariantAttentionScoringTop-kkSetupOtherGPU busy
Terminal prefillDense14.1760.0000.0000.0180.91215.106
Terminal prefillCISA G49.1541.1741.0040.1520.97212.456
Terminal prefillCISA G162.6260.5890.3250.0690.9684.577
Terminal prefillCISA G321.1980.5870.1470.0600.9622.954
Steady decodeDense1.2180.0000.0000.0190.0921.329
Steady decodeCISA0.1040.5360.1180.0470.1120.918
Steady decodeCISA + coalesced loads0.1040.0570.1180.0450.1110.436

Table 11. Inkling-Small attention-path timings for Figure 2. Values are mean milliseconds over ten forwards from one capture. GPU busy counts overlapping kernel and memory-operation intervals once and excludes idle gaps. Component sums may differ from totals because of rounding.

Components. Attention contains core attention kernels; Scoring contains representative scoring; Top-kk contains selection. Setup includes scorer-plan construction, query sharing, representative maintenance, page construction, and block-table gather. Other contains the remaining kernels and copies, with overlaps counted once.

References

  1. [1]Artificial Analysis Team. Artificial analysis long context reasoning benchmark. Hugging Face dataset, 2025. URL https://huggingface.co/datasets/ArtificialAnalysis/AA-LCR.
  2. [2]Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench v2: Towards deeper understanding and reasoning on realistic long-context multitasks. arXiv preprint arXiv:2412.15204, 2024. URL https://arxiv.org/abs/2412.15204.
  3. [3]Iz Beltagy, Matthew E. Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.arxiv.org/abs/2004.05150
  4. [4]Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. In Advances in Neural Information Processing Systems, 2022. URL https://arxiv.org/abs/2205.14135.
  5. [5]DeepSeek-AI. DeepSeek-V3.2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556, 2025. URL https://arxiv.org/abs/2512.02556.
  6. [6]Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz, and Gabriel Synnaeve. Better & faster large language models via multi-token prediction. arXiv preprint arXiv:2404.19737, 2024. URL https://arxiv.org/abs/2404.19737.
  7. [7]Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What’s the real context size of your long-context language models? arXiv preprint arXiv:2404.06654, 2024. URL https://arxiv.org/abs/2404.06654.
  8. [8]Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R. Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues? In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=VTF8yNQM66.arxiv.org/abs/2310.06770
  9. [9]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, 2023. URL https://arxiv.org/abs/2309.06180.
  10. [10]Xunhao Lai, Weiqi Xu, Yufeng Yang, Qiaorui Chen, Yang Xu, Lunbin Zeng, Xiaolong Li, Haohai Sun, Haichao Zhu, Vito Zhang, Jinkai Hu, Jiayao Li, Rui Gao, Zekun Li, Songquan Zhu, Jingkai Zhou, and Pengyu Zhao. MiniMax Sparse Attention. arXiv preprint arXiv:2606.13392, 2026. URL https://arxiv.org/abs/2606.13392.
  11. [11]Mike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, et al. Terminal-bench: Benchmarking agents on hard, realistic tasks in command line interfaces. arXiv preprint arXiv:2601.11868, 2026. URL https://arxiv.org/abs/2601.11868.
  12. [12]OpenAI. GraphWalks: A multi-hop reasoning long-context benchmark. Hugging Face dataset, 2025. URL https://huggingface.co/datasets/openai/graphwalks.

Paper details

vlnc:W_wj688puf
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 12

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents