SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference

Yaosheng Fu, Guangxuan Xiao, Xin Dong, Song Han, Oreste Villa
6/3/2026
5 citations
cs.CLcs.LG

Official code: NVlabs/SparDA (79 stars, Python, Apache-2.0, last commit 2026-06-04).

Abstract

Sparse attention reduces compute and memory bandwidth for long-context LLM inference. However, two key challenges remain: (1) KV cache capacity still grows with sequence length, and offloading to CPU memory introduces a PCIe transfer bottleneck; (2) the sparse selection step itself retains $O(T^2)$ complexity and can dominate attention cost at long contexts.

Show full abstract

We propose SparDA, a decoupled sparse attention architecture that introduces a fourth per-layer projection, the Forecast, alongside Query, Key, and Value. The Forecast predicts the KV blocks needed by the next layer, enabling lookahead selection that overlaps CPU-to-GPU prefetch with current-layer execution. Because Forecast is decoupled from the attention query, our GQA implementation uses one Forecast head per GQA group, reducing selection overhead versus the original multi-head selector. SparDA adds $<$0.5% parameters and trains only the Forecast projections by matching the original selector's attention distribution. On two sparse-pretrained 8B models, SparDA matches or slightly improves accuracy and delivers up to 1.25$\times$ prefill speedup and 1.7$\times$ decode speedup over the sparse-attention offload baseline. By enabling larger feasible batch sizes on a single GPU, SparDA further reaches up to 5.3$\times$ higher decode throughput than the non-offload sparse baseline. Our source code is available at https://github.com/NVlabs/SparDA.

View on arXivView PDF

Code Implementations(1)

NVlabs/SparDAOfficial100%
Apache-2.0

Sparse Decoupled Attention for Efficient Long-Context LLM Inference

798Python, C++May 22, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{fu2026sparda,
  title  = {SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference},
  author = {Yaosheng Fu and Guangxuan Xiao and Xin Dong and Song Han and Oreste Villa},
  year   = {2026},
  eprint = {2606.04511},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04511v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.04511.svg)](https://codeofpaper.com/paper/2606.04511)

Discussion