SIFT: Selective-Index For Fast Compute of RAG Prefill by Exploiting Attention Invariance
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Retrieval-Augmented Generation (RAG) injects LLM queries with relevant documents to improve response quality. This injection increases prompt length and slows time to first token (TTFT). Unlike standard queries, RAG queries have a unique property of context reuse where the same documents recur across user queries. Thus, fully recomputing documents for every RAG query does redundant compute and increases TTFT. Prior works precompute KV tensors of RAG documents offline and coarsely recompute some tokens during online prefill. However, such KV reuse is often slower than full recomputation on modern GPUs due to high-latency disk transfers. Further, such a coarse-grained recomputation degrades accuracy. To address these limitations, this paper proposes SIFT: Selective-Index For Fast Compute of RAG Prefill by Exploiting Attention Invariance. SIFT processes documents offline and extracts fine-grained locations of high attention scores for each document. Next, we identify the following attention invariance insights that enable us to exploit the extracted locations during runtime: (1) Local-Attention Invariance: The location of high attention scores within a document remain invariant to surrounding documents. This helps us predict the location of high scores where the document attends to itself. (2) Cross-Attention Consistency: Keys with high intra-document attention also attract cross-attention from subsequent documents. This helps us predict the location of high scores where the document attends to future documents. Critically, SIFT stores no KV data and only stores locations of high scores in the form of two compact bit vectors. SIFT's storage is up to 24,000x smaller than KV tensors, obviating costly disk transfers. During prefill, SIFT computes the attention only for the marked locations and improves TTFT by 1.71x while holding accuracy within 1% of full recompute.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 23 of its 34 references that are in the map. First posted on arXiv 8 Jun 2026.
Builds on
23 of 34 references.
Closest ancestors · 4
Same direction, newest first
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct
- 2023In-Context Retrieval-Augmented Language Models31 Jan
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
- 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb
Other references · 19
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 119
- 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 60
- 2024EPIC: Efficient Position-Independent Caching for Serving Large Language Modelscited by 45
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2021SPANN: Highly-efficient Billion-scale Approximate Nearest Neighbor Searchcited by 35
7 more
- 2024PipeRAG: Fast Retrieval-Augmented Generation via Algorithm-System Co-designcited by 28
- 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
- 2025TeleRAG: Efficient Retrieval-Augmented Generation Inference with Lookahead Retrievalcited by 9
- 2024Better RAG using Relevant Information Gaincited by 7
- 2025VectorLiteRAG: Latency-Aware and Fine-Grained Resource Partitioning for Efficient RAGcited by 3
- 2025Engineering the RAG Stack: A Comprehensive Review of the Architecture and Trust Frameworks for Retrieval-Augmented Generation Systemscited by 3
- 2025Knowledge-Aware Diverse Reranking for Cross-Source Question Answeringcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Can I Buy Your KV Cache?cited by 0
- 2026Can I Buy Your KV Cache?11 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026ProphetKV: User-Query-Driven Selective Recomputation for Efficient KV Cache Reuse in Retrieval-Augmented Generation
- 2026RAGMark: A Comprehensive Framework for Benchmarking Retrieval-Augmented Generation Systems
- 2026Decoupled Attention Fusion: Accelerating RAG with Efficient KV Cache Reuse
- 2025RAGO: Systematic Performance Optimization for Retrieval-Augmented Generation Serving
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation
- 2025CacheClip: Accelerating RAG with Effective KV Cache Reuse
- 2026RAISE: RAG Design as an Architecture Search Problem
- 2024Block-Attention for Efficient Prefilling