atlas

Research map / Large language models / Retrieval and knowledge

Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection

ICLR 2025 · Large language models › Retrieval and knowledge · approach: RAG robustness and evaluation · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Sparse RAG, which pre-fills KV caches of all retrieved documents in parallel and then uses LoRA-tuned Gemini models to rate each context with control tokens, decoding only over the kept contexts.

Problem

RAG input length grows linearly with the number of retrieved documents, so prefill and especially per-token decoding latency become high; existing fixes (FiD, PCW) are either encoder-decoder-specific or only speed up prefill, and filtering methods need extra classifier calls.

Approach

Encode retrieved documents independently in parallel (PCW-style block attention with re-used positions), have the same LLM score each cached context with a control token and "Good" token, and decode only attending to contexts whose score exceeds a threshold, so relevance filtering and generation share one forward pass.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use sparse context selection instead of dense RAGRAG on PopQA · PopQAEM: 65.43 -> 67.17Helped
Use sparse context selection instead of PCW-RAGRAG on PopQA · PopQADecoding Speed (t/s): 6.65 -> 12.28Helped
Use sparse context selection instead of dense RAGRAG on QMSum · QMSumRougeLSum: 18.20 -> 20.10Helped
Use sparse context selection instead of PCW-RAGRAG on QMSum · QMSumDecoding Speed (t/s): 6.64 -> 16.05Helped
Replace LLM-generated context labels with silver labels (ablation)Sparse RAG · PopQAF1: 71.16 -> 71.05Hurt
Use 10 instead of 20 prefill documents (ablation)Sparse RAG · PopQAEM: 67.17 -> 65.86Hurt
Use Gemini XS instead of Gemini XXS (ablation)Sparse RAG · PopQAEM: 67.17 -> 68.26Helped
Use golden per-context labels during inference (ablation)Sparse RAG · QMSumF1: 23.96 -> 26.76Helped
Increase the confidence threshold from 0.05 to 0.3 (ablation)Sparse RAG · PopQADecoding Speed (t/s): 10.61 -> 13.08Helped
Increase the confidence threshold from 0.05 to 0.3 (ablation)Sparse RAG · PopQAEM: 66.95 -> 63.86Hurt
Increase the confidence threshold from 0.05 to 0.25 (ablation)Sparse RAG · QMSumRougeLSum: 19.49 -> 20.1Helped
Increase the confidence threshold from 0.05 to 0.3 (ablation)Sparse RAG · QMSumDecoding Speed (t/s): 11.92 -> 16.38Helped

Surprising findings

Limitations

Experimental setup

Datasets: PopQA QMSum Natural Questions

Benchmarks: PopQA QMSum

Metrics: Exact Match F1 RougeLSum Encoding Speed (tokens/s) Decoding Speed (tokens/s)

Baselines: RAG PCW RAG Corrective RAG

Builds on: Parallel Context Windows Fusion-in-Decoder LoRA Corrective RAG

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy