Manuscript Offprint

arXiv:2611.03200

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

Mohammed Dabbah, Izhak Golan, Oren Tropp, Daniel Afrimi, Vladimir Anisimov, Tomer Asida, Nave Assaf, Ran El-Yaniv, Ido Galil, Yonatan Geifman, Omri Puny, Ido Shahaf, Akhiad Bercovich

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

As context grows, LLM inference becomes increasingly expensive because attention repeatedly reads a growing key-value (KV) history. We introduce Chunk-Indexed Sparse Attention (CISA), a method for retrofitting pretrained dense attention models without gradient updates. CISA selects fixed-size chunks of the KV history using compact summaries derived from the model's existing keys, avoiding token-level indexing and a separate full-length index cache. For indexing, CISA uses a single query per KV group and shares the selected chunks across the query in that group. During prefill, we reuse chunk selections across adjacent queries to reduce indexing cost and improve KV reuse and GPU utilization. We call this technique QShare.

We evaluate CISA on the NVIDIA Nemotron 3 Nano and Ultra models, as well as on Inkling-Small. In one-layer BF16 benchmarks at batch size 32 using Ultra's per-device attention dimensions, CISA accelerates core attention by 11.7× for prefill queries near the end of a 1M-token prompt and 13.0× during decode. Including chunk scoring, selection, and all other measured GPU work, the corresponding speedups are 8.6× and 3.0×. On Ultra NVFP4, at kchunks=4,096k_{\text{chunks}} = 4,096, CISA keeps aggregate scores within 1.5 percentage points of dense attention on MRCR, Long-Bench 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–16× fewer KV reads.

When serving million-token prompts with 32 concurrent requests and 4K output tokens per request, CISA achieves 2.29× 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.61× compared with dense attention; 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 requiring sparse training.

1 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., 2022), 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) (DeepSeek-AI, 2025), 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 (Yuan et al., 2025; DeepSeek-AI, 2025; Lai et al., 2026). 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_{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).

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 (Lai et al., 2026); 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 (Vodrahalli et al., 2024; Hsieh et al., 2024; Bai et al., 2024; OpenAI, 2025; Artificial Analysis Team, 2025; Jimenez et al., 2024; Merrill et al., 2026; Patwardhan et al., 2025). For MRCR, LongBench v2, and GraphWalks on Ultra NVFP4, we apply kchunks=2,048k_{chunks} = 2,048 and kchunks=4,096k_{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:

Figure

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.

  • 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.

References (50)

  • LongBench v2: Towards deeper understanding and reasoning on realistic long-context multitasks (opens arXiv in a new tab)
  • Longformer: The Long-Document Transformer
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
  • Better & faster large language models via multi-token prediction (opens arXiv in a new tab)
  • RULER: What's the Real Context Size of Your Long-Context Language Models?
  • SWE-bench: Can language models resolve real-world GitHub issues? In International Conference on Learning Representations, 2024
  • Efficient Memory Management for Large Language Model Serving with PagedAttention
  • MiniMax Sparse Attention (opens arXiv in a new tab)
  • Benchmarking agents on hard, realistic tasks in command line interfaces (opens arXiv in a new tab)
  • GDPval: Evaluating AI model performance on real-world economically valuable tasks (opens arXiv in a new tab)
  • Quest: Query-aware sparsity for efficient long-context LLM inference (opens arXiv in a new tab)
  • Long context evaluations beyond haystacks via latent structure queries (opens arXiv in a new tab)
  • Native sparse attention: Hardware-aligned and natively trainable sparse attention
  • Big bird: Transformers for longer sequences
  • GDPval's treatment of incomplete rollouts is specified in Appendix A.4
  • Each CISA configuration keeps its budget of $k_{\text{chunks}} = 2,048$ or 4,096 fixed throughout the run
  • Labels give the number of distinct prompts
  • Labels give the number of distinct prompts; shaded buckets contain no prompts
  • Its two intermediate GraphWalks cohorts between 512K and 1M are empty
  • Both CISA configurations use 16-token chunks, a 128-page recent window, and $G = 4$
  • Inkling-Small’s dense and six sparse 128K runs use identical questions and reference answers across three budgets at $G = 16$ and $G = 32$
  • SWE-bench Verified, Terminal-Bench 2.0, and GDPval use $k_{\text{chunks}} = 2,048$
  • All NVFP4 rows use BF16 KV state
  • (a) Nano and Ultra BF16 controls at $G=4$; $\Delta$ is CISA minus dense
  • >(b) Inkling-Small NVFP4: budget and sharing controls</td></tr><tr><td>Context</td><td>$K$ (chunks)</td><td>Remote comp.</td><td>Dense</td><td>$G=16$</td><td>$G=32$</td><td>$\Delta_{16-32}$</td></tr><tr><td rowspan=
  • Scores are percentages except GDPval, for which we report failure-adjusted Elo
  • For profile $p$, let $A_{p,b}$ be benchmark $b$'s percentage score and $\bar{L}_{p,b}$ its mean generated tokens per response
  • Dividing by $R_{p}$ assumes cost is proportional to output length, omitting prefill cost, nonlinear batching effects, and workload differences
  • Each resample recomputes the four-benchmark mean, using seed 20260901 for Ultra and 20260912 for Inkling-Small
  • 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
  • Mean is the equally weighted four-benchmark score (%) with its pointwise 95% task-bootstrap interval
  • The $G=1$ quality run uses $k_{\text{chunks}} = 2,048$ and an implementation without a representative cache; its throughput run uses $k_{\text{chunks}} = 4,096$
  • (a) GraphWalks-200 node-set F1 (%) with pointwise 95% intervals from 20,000 task-bootstrap resamples (seed 20260901)
  • Earlier RULER and MRCR200 runs from before an implementation repair are excluded
  • 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)
  • At $G=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
  • (a) Dense-attention-mass loss when one selection with W = 128 is shared across G adjacent queries over the final 2,048 positions
  • After the sparse threshold $S = k_{chunks}C$, CISA reads $2Sd$ selected K/V elements and $(n/C)d_I/G$ amortized representative elements
  • CISA attends densely through S and then reads $2Sd$ selected K/V elements per query, giving $S^{2}d + 2S(N - S)d$
  • This capacity is local to the KV group and follows its tensor-parallel ownership
  • 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
  • >Nano TP1 ($H_{KV} = 2$)</td><td rowspan=
  • Profiler annotations verify the phase, batch size, and per-request history
  • The ideal K/V-only reduction is therefore $16\times$, or $14.22\times$ after accounting for the representative scan at $G = 4$ (Equation 8)
  • Core-attention speedups are $12.83\times$ for Nano and $13.34\times$ for Ultra, but including all GPU activity reduces them to $3.11\times$ and $2.83\times$
  • Dense and sparse runs execute the same shapes, including this irregular tail
  • The prefill sweep varies query sharing at a fixed chunk budget; the decode optimization preserves the scoring rule and selection policy
  • We use one B300 GPU at TP1 with a one-layer dummy-weight model containing global attention, a dense MLP, and short convolution
  • The workload comprises sixteen 1,048,576-token prompts, with a maximum of 8,192 batched tokens and a 64 GiB KV reservation