Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selection

Dongwon Jo, Beomseok Kang, Jiwon Song, Jae-Joon Kim
2/3/2026
cs.CLcs.LG

No official code found. Best implementation: dongwonjo/Token-Sparse-Attention (10 stars, MIT, last commit 2026-04-21).

Abstract

The quadratic complexity of attention remains the central bottleneck in long-context inference for large language models. Prior acceleration methods either sparsify the attention map with structured patterns or permanently evict tokens at specific layers, which can retain irrelevant tokens or rely on irreversible early decisions despite the layer-/head-wise dynamics of token importance. In this paper, we propose Token Sparse Attention, a lightweight and dynamic token-level sparsification mechanism that compresses per-head $Q$, $K$, $V$ to a reduced token set during attention and then decompresses the output back to the original sequence, enabling token information to be reconsidered in subsequent layers. Furthermore, Token Sparse Attention exposes a new design point at the intersection of token selection and sparse attention. Our approach is fully compatible with dense attention implementations, including Flash Attention, and can be seamlessly composed with existing sparse attention kernels. Experimental results show that Token Sparse Attention consistently improves accuracy-latency trade-off, achieving up to $\times$3.23 attention speedup at 128K context with less than 1% accuracy degradation. These results demonstrate that dynamic and interleaved token-level sparsification is a complementary and effective strategy for scalable long-context inference.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implementation of "Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selection"

100C++, CudaFeb 3, 20266 months agoMIT

Similar Papers

Cite this paper

@article{jo2026token,
  title  = {Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selection},
  author = {Dongwon Jo and Beomseok Kang and Jiwon Song and Jae-Joon Kim},
  year   = {2026},
  eprint = {2602.03216},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.03216v1}
}

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/2602.03216.svg)](https://codeofpaper.com/paper/2602.03216)

Discussion