STS: Efficient Sparse Attention with Speculative Token Sparsity

Jiangnan Yu, Ceyu Xu, Yongji Wu, Yuan Xie
5/15/2026
cs.LGcs.CL
transformer-attention

No confident code implementation found for this paper.

Abstract

The quadratic complexity of attention imposes severe memory and computational bottlenecks on Large Language Model (LLM) inference. This challenge is particularly acute for emerging agentic applications that require processing multi-million token sequences.

Show full abstract

We propose STS, a sparse attention mechanism that requires no model retraining. STS leverages the key insight that tokens identified as important by a smaller draft model are highly predictive of important tokens for a larger target model. By integrating into speculative decoding frameworks, STS repurposes the draft model's attention scores to dynamically construct a token-and-head-wise sparsity mask. This mask effectively prunes the expensive attention computation in the target LLM. Our evaluation shows that STS achieves a 2.67x speedup operating at approximately 90% sparsity on representative benchmark NarrativeQA, maintaining negligible accuracy degradation compared to dense attention. STS establishes a new state-of-the-art on the sparsity-accuracy trade-off, outperforming prior techniques by enabling higher sparsity levels for a given accuracy budget.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yu2026sts,
  title  = {STS: Efficient Sparse Attention with Speculative Token Sparsity},
  author = {Jiangnan Yu and Ceyu Xu and Yongji Wu and Yuan Xie},
  year   = {2026},
  eprint = {2605.15508},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15508v3}
}

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

Discussion