Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inference

Xu Yang, Jiapeng Zhang, Yuxin Chen, Feiqiang Sun, Chengguang Xu +2 more
8/16/2026
cs.IRcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Sparse long-context inference requires efficient token retrieval in both prefill and decode. Existing methods often use different retrieval strategies for the two stages, preventing one retrieval representation from being reused throughout inference.

Show full abstract

We propose Self-Indexing Attention, a training-free framework built on a shared transform-domain sign-magnitude representation. The key signs provide a reusable token-level index for grouped prefill selection and decode retrieval, while the same representation remains compatible with external KV-cache compression without separate indexer metadata. This 1-bit index enables efficient retrieval through bitwise operations widely supported by modern accelerators. At 5% attention density, Self-Indexing Attention remains close to dense attention on LongBench and RULER and achieves up to 6.1x prefill and 10.3x decode attention-operator speedups. Experiments with TurboQuant and DeepSeekV4-Flash further demonstrate compatibility with low-bit KV-cache compression and pretrained sparse-attention indexers.

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{yang2026selfindexing,
  title  = {Self-Indexing Attention for Compression-Compatible Sparse Long-Context LLM Inference},
  author = {Xu Yang and Jiapeng Zhang and Yuxin Chen and Feiqiang Sun and Chengguang Xu and Feng Jin and Zhuo Tang},
  year   = {2026},
  eprint = {2609.13205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.13205v2}
}

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

Discussion