paper-with-me

Papers

SIFT: Selective-Index For Fast Compute of RAG Prefill by Exploiting Attention Invariance

2026-06-08 · Rya Sanovar, Srikant Bharadwaj, Hritvik Taneja, Moinuddin Qureshi 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.

📄 PDF Abstract BibTeX arXiv:2606.09441

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Image Matching Using SIFT, SURF, BRIEF and ORB: Performance Comparison for Distorted Images

2017-10-07 · Ebrahim Karami, Siva Prasad, Mohamed Shehata

Fast and robust image matching is a very important task with various applications in computer vision and robotics. In this paper, we compare the performance of three different image matching techniques, i.e., SIFT, SURF,…

Efficient Indexing of Billion-Scale Datasets of Deep Descriptors

2016-06-01 · CVPR 2016 6 · Artem Babenko, Victor Lempitsky

Existing billion-scale nearest neighbor search systems have mostly been compared on a single dataset of a billion of SIFT vectors, where systems based on the Inverted Multi-Index (IMI) have been performing very well, ach…

Retrieval

ChronoStitch: Training-Free Composition of Visual KV Memories for Long-Horizon Temporal Reasoning

2026-07-21 · Santiram Tiwari, Nishant Sinha, Kunal Kislay arxiv

Long-video question answering requires a model to preserve visual evidence over time without repeatedly reprocessing the same video. A practical approach is to store the vision-language model's internal key-value (KV) ca…

Video Question Answering

QCFuse: Query-Aware Cache Fusion via Compressed View for Efficient RAG Serving

2026-06-04 · Jianxin Yan, Wangze Ni, Zhenxin Li, Jiabao Jin 외 arxiv

Retrieval-augmented generation (RAG) improves large language model (LLM) answer quality by grounding generation in external evidence, but processing retrieved contexts makes the prefill stage a dominant serving cost. RAG…

Fast Forward: Accelerating LLM Prefill with Predictive FFN Sparsity

2026-01-30 · Aayush Gautam, Mukul Gagrani, Junyoung Park, Mingu Lee 외 arxiv

The prefill stage of large language model (LLM) inference is a key computational bottleneck for long-context workloads. At short-to-moderate context lengths (1K--16K tokens), Feed-Forward Networks (FFNs) dominate this co…