Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Large language models (LLMs) augmented with retrieval exhibit robust performance and extensive versatility by incorporating external contexts. However, the input length grows linearly in the number of retrieved documents, causing a dramatic increase in latency. In this paper, we propose a novel paradigm named Sparse RAG, which seeks to cut computation costs through sparsity. Specifically, Sparse RAG encodes retrieved documents in parallel, which eliminates latency introduced by long-range attention of retrieved documents. Then, LLMs selectively decode the output by only attending to highly relevant caches auto-regressively, which are chosen via prompting LLMs with special control tokens. It is notable that Sparse RAG combines the assessment of each individual document and the generation of the response into a single process. The designed sparse mechanism in a RAG system can facilitate the reduction of the number of documents loaded during decoding for accelerating the inference of the RAG system. Additionally, filtering out undesirable contexts enhances the model's focus on relevant context, inherently improving its generation quality. Evaluation results of two datasets show that Sparse RAG can strike an optimal balance between generation quality and computational efficiency, demonstrating its generalizability across both short- and long-form generation tasks.
Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 38 of its 45 references that are in the map. First posted on arXiv 25 May 2024.
Builds on
38 of 45 references.
Closest ancestors · 5
Same direction, newest first
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Context2 Oct
- 2023Active Retrieval Augmented Generation11 May
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories20 Dec
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
- 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb
Other references · 33
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
21 more
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2023PaLM 2 Technical Reportcited by 1,162
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 365
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2024Corrective Retrieval Augmented Generationcited by 197
- 2022A Survey on Retrieval-Augmented Text Generationcited by 158
- 2023Generating Benchmarks for Factuality Evaluation of Language Modelscited by 105
- 2020Pre-training via Paraphrasingcited by 92
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2021Mention Memory: incorporating textual knowledge into Transformers through entity mention attentioncited by 43
Built on by
Citing papers per year: 2024: 8; 2025: 13; 2026: 4.
25 papers.
Sort:
By area:
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 63
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
- 2024Block-Attention for Efficient Prefillingcited by 37
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontierscited by 27
- 2024Context Embeddings for Efficient Answer Generation in RAGcited by 26
- 2024MINTQA: A Multi-Hop Question Answering Benchmark for Evaluating LLMs on New and Tail Knowledgecited by 20
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generationcited by 19
- 2025Taming the Titans: A Survey of Efficient LLM Inference Servingcited by 16
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inferencecited by 15
- 2024Accelerating Retrieval-Augmented Generationcited by 14
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 14
- 2025Influence Guided Context Selection for Effective Retrieval-Augmented Generationcited by 7
13 more
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2026PersonalQ: Select, Quantize, and Serve Personalized Diffusion Models for Efficient Inferencecited by 6
- 2025PICASO: Permutation-Invariant Context Composition with State Space Modelscited by 4
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
- 2024FACT: Examining the Effectiveness of Iterative Context Rewriting for Multi-fact Retrievalcited by 2
- 2025RAGDoll: Efficient Offloading-based Online RAG System on a Single GPUcited by 2
- 2025PCA-RAG: Principal Component Analysis for Efficient Retrieval-Augmented Generationcited by 1
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devicescited by 1
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generationcited by 0
- 2025DGRAG: Distributed Graph-based Retrieval-Augmented Generation in Edge-Cloud Systemscited by 0
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placementcited by 0
- 2026HaS: Accelerating RAG through Homology-Aware Speculative Retrievalcited by 0
- 2026Scalable LLM-based Coding of Dialogue in Healthcare Simulation: Balancing Coding Performance, Processing Time, and Environmental Impactcited by 0
- 2026Scalable LLM-based Coding of Dialogue in Healthcare Simulation: Balancing Coding Performance, Processing Time, and Environmental Impact25 Apr 2026
- 2026HaS: Accelerating RAG through Homology-Aware Speculative Retrieval22 Apr 2026
- 2026PersonalQ: Select, Quantize, and Serve Personalized Diffusion Models for Efficient Inference24 Mar 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placement23 Oct 2025
- 2025Influence Guided Context Selection for Effective Retrieval-Augmented Generation21 Sep 2025
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Models9 Jun 2025
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers28 May 2025
- 2025DGRAG: Distributed Graph-based Retrieval-Augmented Generation in Edge-Cloud Systems26 May 2025
- 2025Taming the Titans: A Survey of Efficient LLM Inference Serving28 Apr 2025
- 2025RAGDoll: Efficient Offloading-based Online RAG System on a Single GPU17 Apr 2025
13 more
- 2025PCA-RAG: Principal Component Analysis for Efficient Retrieval-Augmented Generation11 Apr 2025
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation13 Mar 2025
- 2025PICASO: Permutation-Invariant Context Composition with State Space Models24 Feb 2025
- 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolation20 Feb 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2024MINTQA: A Multi-Hop Question Answering Benchmark for Evaluating LLMs on New and Tail Knowledge22 Dec 2024
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference16 Dec 2024
- 2024Accelerating Retrieval-Augmented Generation14 Dec 2024
- 2024FACT: Examining the Effectiveness of Iterative Context Rewriting for Multi-fact Retrieval28 Oct 2024
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text10 Oct 2024
- 2024Block-Attention for Efficient Prefilling14 Sep 2024
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunities17 Jul 2024
- 2024Context Embeddings for Efficient Answer Generation in RAG12 Jul 2024
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 63
- 2024Block-Attention for Efficient Prefillingcited by 37
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontierscited by 27
- 2024Context Embeddings for Efficient Answer Generation in RAGcited by 26
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generationcited by 19
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inferencecited by 15
- 2024Accelerating Retrieval-Augmented Generationcited by 14
- 2025Influence Guided Context Selection for Effective Retrieval-Augmented Generationcited by 7
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attentioncited by 3
- 2025RAGDoll: Efficient Offloading-based Online RAG System on a Single GPUcited by 2
- 2025PCA-RAG: Principal Component Analysis for Efficient Retrieval-Augmented Generationcited by 1
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devicescited by 1
12 most cited of 16 All 16 (JSON)
- 2026HaS: Accelerating RAG through Homology-Aware Speculative Retrieval22 Apr 2026
- 2026Addressing Corpus Knowledge Poisoning Attacks on RAG Using Sparse Attention4 Feb 2026
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025HA-RAG: Hotness-Aware RAG Acceleration via Mixed Precision and Data Placement23 Oct 2025
- 2025Influence Guided Context Selection for Effective Retrieval-Augmented Generation21 Sep 2025
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers28 May 2025
- 2025DGRAG: Distributed Graph-based Retrieval-Augmented Generation in Edge-Cloud Systems26 May 2025
- 2025RAGDoll: Efficient Offloading-based Online RAG System on a Single GPU17 Apr 2025
- 2025PCA-RAG: Principal Component Analysis for Efficient Retrieval-Augmented Generation11 Apr 2025
- 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation13 Mar 2025
- 2025CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation16 Feb 2025
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference16 Dec 2024
12 newest of 16 All 16 (JSON)
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
- 2024MINTQA: A Multi-Hop Question Answering Benchmark for Evaluating LLMs on New and Tail Knowledgecited by 20
- 2025PICASO: Permutation-Invariant Context Composition with State Space Modelscited by 4
- 2024FACT: Examining the Effectiveness of Iterative Context Rewriting for Multi-fact Retrievalcited by 2
- 2026Scalable LLM-based Coding of Dialogue in Healthcare Simulation: Balancing Coding Performance, Processing Time, and Environmental Impactcited by 0
- 2026Scalable LLM-based Coding of Dialogue in Healthcare Simulation: Balancing Coding Performance, Processing Time, and Environmental Impact25 Apr 2026
- 2025PICASO: Permutation-Invariant Context Composition with State Space Models24 Feb 2025
- 2024MINTQA: A Multi-Hop Question Answering Benchmark for Evaluating LLMs on New and Tail Knowledge22 Dec 2024
- 2024FACT: Examining the Effectiveness of Iterative Context Rewriting for Multi-fact Retrieval28 Oct 2024
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunities17 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
- 2024Inference Scaling for Long-Context Retrieval Augmented Generation
- 2025REFRAG: Rethinking RAG based Decoding
- 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decoding
- 2025Dynamic Context Selection for Retrieval-Augmented Generation: Mitigating Distractors and Positional Bias
- 2024A Survey on Retrieval-Augmented Text Generation for Large Language Models
- 2025Enhancing RAG Efficiency with Adaptive Context Compression
- 2026From Prefix Cache to Fusion RAG Cache: Accelerating LLM Inference in Retrieval-Augmented Generation