SpecAttn: Co-Designing Sparse Attention with Self-Speculative Decoding

Yikang Yue, Yuqi Xue, Jian Huang
2/6/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Long-context large language model (LLM) inference has become the norm for today's AI applications. However, it is severely bottlenecked by the increasing memory demands of its KV cache. Previous works have shown that self-speculative decoding with sparse attention, where tokens are drafted using a subset of the KV cache and verified in parallel with full KV cache, speeds up inference in a lossless way. However, this approach relies on standalone KV selection algorithms to select the KV entries used for drafting and overlooks that the criticality of each KV entry is inherently computed during verification. In this paper, we propose SpecAttn, a self-speculative decoding method with verification-guided sparse attention. SpecAttn identifies critical KV entries as a byproduct of verification and only loads these entries when drafting subsequent tokens. This not only improves draft token acceptance rate but also incurs low KV selection overhead, thereby improving decoding throughput. SpecAttn achieves 2.81$\times$ higher throughput over vanilla auto-regressive decoding and 1.29$\times$ improvement over state-of-the-art sparsity-based self-speculative decoding methods.

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{yue2026specattn,
  title  = {SpecAttn: Co-Designing Sparse Attention with Self-Speculative Decoding},
  author = {Yikang Yue and Yuqi Xue and Jian Huang},
  year   = {2026},
  eprint = {2602.07223},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.07223v1}
}

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

Discussion