REFRAG: Rethinking RAG based Decoding
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
also in 2 more
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated remarkable capabilities in leveraging extensive external knowledge to enhance responses in multi-turn and agentic applications, such as retrieval-augmented generation (RAG). However, processing long-context inputs introduces significant system latency and demands substantial memory for the key-value cache, resulting in reduced throughput and a fundamental trade-off between knowledge enrichment and system efficiency. While minimizing latency for long-context inputs is a primary objective for LLMs, we contend that RAG require specialized consideration. In RAG, much of the LLM context consists of concatenated passages from retrieval, with only a small subset directly relevant to the query. These passages often exhibit low semantic similarity due to diversity or deduplication during re-ranking, leading to block-diagonal attention patterns that differ from those in standard LLM generation tasks. Based on this observation, we argue that most computations over the RAG context during decoding are unnecessary and can be eliminated with minimal impact on performance. To this end, we propose REFRAG, an efficient decoding framework that compresses, senses, and expands to improve latency in RAG applications. By exploiting the sparsity structure, we demonstrate a 30.85 the time-to-first-token acceleration (3.75 improvement to previous work) without loss in perplexity. In addition, our optimization framework for large context enables REFRAG to extend the context size of LLMs by 16. We provide rigorous validation of REFRAG across diverse long-context tasks, including RAG, multi-turn conversations, and long document summarization, spanning a wide range of datasets. Experimental results confirm that REFRAG delivers substantial speedup with no loss in accuracy compared to LLaMA models and other state-of-the-art baselines across various context sizes.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 37 of its 45 references that are in the map. First posted on arXiv 1 Sep 2025.
Builds on
37 of 45 references.
References · 37
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
25 more
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 608
- 2020Recipes for building an open-domain chatbotcited by 593
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2017Learning Combinatorial Optimization Algorithms over Graphscited by 561
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2023Adapting Language Models to Compress Contextscited by 356
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 195
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
- 2020Open-Domain Question Answering Goes Conversational via Question Rewritingcited by 148
- 2023How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrievalcited by 118
- 2020Open-Retrieval Conversational Question Answeringcited by 99
- 2021TopiOCQA: Open-domain Conversational Question Answering with Topic Switchingcited by 96
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inferencecited by 53
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 28
- 2025Speculative Prefill: Turbocharging TTFT with Lightweight and Training-Free Token Importance Estimationcited by 14
- 2024Are Bigger Encoders Always Better in Vision Large Models?cited by 9
Built on by
Citing papers per year: 2025: 1; 2026: 8.
9 papers.
- 2026Byte-Exact Deduplication in Retrieval-Augmented Generation: A Three-Regime Empirical Analysis Across Public Benchmarkscited by 4
- 2026End-to-End Context Compression at Scalecited by 4
- 2026Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inferencecited by 2
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOCcited by 2
- 2026Agentic Conversational Search with Contextualized Reasoning via Reinforcement Learningcited by 1
- 2025JT-Safe: Intrinsically Enhancing the Safety and Trustworthiness of LLMscited by 0
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systemscited by 0
- 2026KuaFu: Compressing Long User Behavior into Understanding at Billion Scalecited by 0
- 2026Towards In-Parameter Memory Augmentation for Large Language Modelscited by 0
- 2026Towards In-Parameter Memory Augmentation for Large Language Models6 Oct 2026
- 2026KuaFu: Compressing Long User Behavior into Understanding at Billion Scale25 Sep 2026
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systems22 Jun 2026
- 2026MiniPIC: Flexible Position-Independent Caching in <100LOC11 Jun 2026
- 2026End-to-End Context Compression at Scale8 Jun 2026
- 2026Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference11 May 2026
- 2026Byte-Exact Deduplication in Retrieval-Augmented Generation: A Three-Regime Empirical Analysis Across Public Benchmarks10 May 2026
- 2026Agentic Conversational Search with Contextualized Reasoning via Reinforcement Learning19 Jan 2026
- 2025JT-Safe: Intrinsically Enhancing the Safety and Trustworthiness of LLMs20 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
- 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decoding
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning
- 2025Optimizing Retrieval-Augmented Generation: Analysis of Hyperparameter Impact on Performance and Efficiency
- 2025Relevance Isn't All You Need: Scaling RAG Systems With Inference-Time Compute Via Multi-Criteria Reranking
- 2024RAGLAB: A Modular and Research-Oriented Unified Framework for Retrieval-Augmented Generation
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
- 2024Toward Optimal Search and Retrieval for RAG