AI summary · arXiv: 2409.01666v1 · cs.CL

In Defense of RAG in the Era of Long-Context Language Models

Tan Yu, Anbang Xu, Rama Akkiraju
Original paper Submitted to arXiv on 03 Sep. 2024 License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

  • Two key approaches in language model research: Retrieval-augmented generation (RAG) and long-context language models (LLMs)
  • RAG leverages external knowledge for context-based answer generation, enhancing factual accuracy and reducing hallucinations
  • Advancements in long-context LLMs enable efficient processing of extremely large text sequences
  • Long-context LLMs have shown to outperform RAG in handling lengthy contexts but may lead to a decline in answer quality due to potential drawbacks
  • Order-preserve retrieval-augmented generation (OP-RAG) aims to enhance RAG performance for long-context question-answer applications by preserving the order of retrieved chunks from the original document
  • OP-RAG achieves higher answer quality with fewer tokens compared to long-context LLMs that process the entire context as input
  • OP-RAG presents a promising alternative for improving answer generation in complex linguistic contexts by striking a balance between context length and answer quality through order preservation

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Language Model Research

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
, , , , In the realm of language model research, two key approaches have emerged to address the limitations of early-generation models: retrieval-augmented generation (RAG) and long-context language models (LLMs). RAG, as pioneered by Guu et al. (2020), Lewis et al. (2020), and Mialon et al. (2023), leverages external knowledge for context-based answer generation, enhancing factual accuracy and reducing hallucinations. On the other hand, advancements in long-context LLMs such as GPT-4O, Gemini-1.5-Pro, Claudi-3.5, Grok-2, and Llama3.1 have enabled these models to process extremely large text sequences efficiently. Recent studies have shown that long-context LLMs outperform RAG in handling lengthy contexts; however, there is a growing concern about potential drawbacks of using excessively long context in LLMs. The focus on relevant information may diminish, leading to a decline in answer quality. In response to this issue, a new approach called order-preserve retrieval-augmented generation (OP-RAG) has been proposed in this work. The OP-RAG mechanism aims to enhance the performance of RAG for long-context question-answer applications by preserving the order of retrieved chunks from the original document. Through experiments on public benchmark datasets, it has been demonstrated that OP-RAG can achieve higher answer quality with fewer tokens compared to long-context LLMs that process the entire context as input. This study argues for the efficacy of OP-RAG in surpassing long-context LLMs without relying solely on their capabilities. By striking a balance between context length and answer quality through order preservation, OP-RAG presents a promising alternative for improving answer generation in complex linguistic contexts.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts 68 papers already cite it: be emailed each new one. Citation alerts guide
Who works on it?

Among the 31 papers around this one, the name that comes back most: Bowen Jin (2 papers)

3 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter The latest letter of its field, "Artificial intelligence this week" of 30 November 2026: Artificial intelligence this week: What the tests leave out · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Another approach to the problem
    LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMs
    Ziyan Jiang, Xue-Guang Ma, Wen-Hu Chen · 2024 · arXiv.org · preprint, not peer reviewed · cited 163 times · Not summarized yet

    LongRAG combines long-context LLMs with retrieval and uses longer retrieval units to reduce lost context, addressing long-context RAG performance.

    Abstract

    In traditional RAG framework, the basic retrieval units are normally short. The common retrievers like DPR normally work with 100-word Wikipedia paragraphs. Such a design forces the retriever to search over a large corpus to find the `needle' unit. In contrast, the readers only need to generate answers from the short retrieved units. The imbalanced `heavy' retriever and `light' reader design can lead to sub-optimal performance. The loss of contextual information in the short, chunked units may increase the likelihood of introducing hard negatives during the retrieval stage. Additionally, the reader might not fully leverage the capabilities of recent advancements in LLMs. In order to alleviat…

  2. Very close Same question
    Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
    Bowen Jin, Jinsung Yoon, Jiawei Han et al. · 2024 · Computation and Language · cited 188 times · AI summary available

    Long-Context LLMs Meet RAG reports that answer quality first improves and then declines as retrieved passages increase, examining the same context-size tradeoff.

    Abstract

    Retrieval-augmented generation (RAG) empowers large language models (LLMs) to utilize external knowledge sources. The increasing capacity of LLMs to process longer input sequences opens up avenues for providing more retrieved information, to potentially enhance the quality of generated outputs. It is plausible to assume that a larger retrieval set would contain more relevant information (higher recall), that might result in improved performance. However, our empirical findings demonstrate that for many long-context LLMs, the quality of generated output initially improves first, but then subsequently declines as the number of retrieved passages increases. This paper investigates this phenomen…

  3. Very close Another approach to the problem
    LongRAG: A Dual-Perspective Retrieval-Augmented Generation Paradigm for Long-Context Question Answering
    Qingfei Zhao, Ruobing Wang, Yukuo Cen et al. · 2024 · Computation and Language · cited 84 times · AI summary available

    LongRAG proposes a dual-perspective RAG system for long-context question answering, where chunking and noisy retrieval hinder evidence use.

    Abstract

    Long-Context Question Answering (LCQA), a challenging task, aims to reason over long-context documents to yield accurate answers to questions. Existing long-context Large Language Models (LLMs) for LCQA often struggle with the "lost in the middle" issue. Retrieval-Augmented Generation (RAG) mitigates this issue by providing external factual evidence. However, its chunking strategy disrupts the global long-context information, and its low-quality retrieval in long contexts hinders LLMs from identifying effective factual details due to substantial noise. To this end, we propose LongRAG, a general, dual-perspective, and robust LLM-based RAG system paradigm for LCQA to enhance RAG's understandin…

  4. Very close Same question
    Long Context vs. RAG for LLMs: An Evaluation and Revisits
    Xinze Li, Yixin Cao, Yubo Ma et al. · 2024 · Computation and Language · preprint, not peer reviewed · cited 33 times · AI summary available

    Long Context vs. RAG evaluates which strategy performs better for question answering and reports that long-context models generally outperform RAG.

    Abstract

    Extending context windows (i.e., Long Context, LC) and using retrievers to selectively access relevant information (i.e., Retrieval-Augmented Generation, RAG) are the two main strategies to enable LLMs to incorporate extremely long external contexts. This paper revisits recent studies on this topic, highlighting their key insights and discrepancies. We then provide a more comprehensive evaluation by filtering out questions answerable without external context, identifying the most effective retrieval methods, and expanding the datasets. We show that LC generally outperforms RAG in question-answering benchmarks, especially for Wikipedia-based questions. Summarization-based retrieval performs c…

  5. Very close Broader context
    Taking RAG Systems to the Next Level: Reasoning That Doesn't Blow Up Your Context
    Moshe Lahmy, Roi Yozevitch · 2026 · Swiss Conference on Data Science · Not summarized yet

    Taking RAG Systems to the Next Level studies how adding passages can hurt multi-hop reasoning when distractors fill the context.

    Abstract

    Retrieval-Augmented Generation (RAG) is a widely adopted approach for enabling Large Language Models (LLMs) to answer questions using external documents. The standard pipeline typically retrieves a set of passages (top- $k$), includes them in the prompt, and generates a response. While effective for single-source queries, this approach often fails in multi-hop scenarios where answers must be synthesized by connecting facts across multiple sources. The common response to such failures is to increase the retrieval depth by appending more passages. However, in practice, this often degrades performance. As the context window fills with partially relevant text and distractors, the model suffers f…

  6. Very close Same question Cited by this paper Used in depth by this paper A method it uses
    Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach
    Zhuowan Li, Cheng Li, Mingyang Zhang et al. · 2024 · Computation and Language · cited 199 times · AI summary available

    Retrieval Augmented Generation or Long-Context LLMs compares RAG with long-context models and proposes routing between them; it is cited by this paper.

    Abstract

    Retrieval Augmented Generation (RAG) has been a powerful tool for Large Language Models (LLMs) to efficiently process overly lengthy contexts. However, recent LLMs like Gemini-1.5 and GPT-4 show exceptional capabilities to understand long contexts directly. We conduct a comprehensive comparison between RAG and long-context (LC) LLMs, aiming to leverage the strengths of both. We benchmark RAG and LC across various public datasets using three latest LLMs. Results reveal that when resourced sufficiently, LC consistently outperforms RAG in terms of average performance. However, RAG's significantly lower cost remains a distinct advantage. Based on this observation, we propose Self-Route, a simple…

  7. Very close Broader context
    On the Consistency of Multilingual Context Utilization in Retrieval-Augmented Generation
    Jirui Qi, Raquel Fernández, Arianna Bisazza · 2025 · Proceedings of the 5th Workshop on Multilingual Representation Learning (MRL 2025) · cited 11 times · Not summarized yet

    On the Consistency of Multilingual Context Utilization examines how language differences in retrieved passages affect multilingual question answering.

    Abstract

    Retrieval-augmented generation (RAG) with large language models (LLMs) has demonstrated strong performance in multilingual question-answering (QA) tasks by leveraging relevant passages retrieved from corpora. In multilingual RAG (mRAG), the retrieved passages can be written in languages other than that of the query entered by the user, making it challenging for LLMs to effectively utilize the provided information. Recent research suggests that retrieving passages from multilingual corpora can improve RAG performance, particularly for low-resource languages. However, the extent to which LLMs can leverage different kinds of multilingual contexts to generate accurate answers, *independently fro…

  8. Very close Broader context
    From Naive to Advanced: Enhancing Question Answering with Retrieval-Augmented Generation
    Ayushi Chakrabarty, Rushya Sree Reddy Butukuri, Juncheng Lu et al. · 2025 · 2025 IEEE International Conference on Future Machine Learning and Data Science (FMLDS) · Not summarized yet

    From Naive to Advanced compares baseline and enhanced RAG pipelines to address retrieval precision and contextual coherence.

    Abstract

    Natural Language Processing (NLP) has been transformed by the advent of Large Language Models (LLMs), yet they continue to face challenges such as factual inaccuracies and "hallucinations." Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm to mitigate these issues by grounding LLMs in external knowledge. However, standard or "Naive" RAG implementations often suffer from limitations in retrieval precision and contextual coherence. This paper presents a systematic analysis of RAG systems by designing, implementing, and empirically comparing two primary frameworks: a baseline Naive RAG and an enhanced Advanced RAG. Our Advanced RAG incorporates sophisticated pre-retrieval …

Prior work it builds on

  1. Related Shared data, tool or method Used in depth by this paper A method it uses
    ∞Bench: Extending Long Context Evaluation Beyond 100K Tokens
    Xinrong Zhang, Yingfa Chen, Sheng-Ding Hu et al. · 2024 · Volume 1 · cited 454 times · Not summarized yet

    ∞Bench introduces a benchmark for evaluating long-context capabilities across synthetic and realistic tasks; this paper cites it.

    Abstract

    Processing and reasoning over long contexts is crucial for many practical applications of Large Language Models (LLMs), such as document comprehension and agent construction. Despite recent strides in making LLMs process contexts with more than 100K tokens, there is currently a lack of a standardized benchmark to evaluate this long-context capability. Existing public benchmarks typically focus on contexts around 10K tokens, limiting the assessment and comparison of LLMs in processing longer contexts. In this paper, we propose $\infty$Bench, the first LLM benchmark featuring an average data length surpassing 100K tokens. $\infty$Bench comprises synthetic and realistic tasks spanning diverse d…

  2. Related Shared data, tool or method
    Extending Context Window of Large Language Models via Positional Interpolation
    Shouyuan Chen, Sherman Wong, Liangjian Chen et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 919 times · AI summary available

    Extending Context Window presents positional interpolation for lengthening LLM context windows, a long-context technique cited by this paper.

    Abstract

    We present Position Interpolation (PI) that extends the context window sizes of RoPE-based pretrained LLMs such as LLaMA models to up to 32768 with minimal fine-tuning (within 1000 steps), while demonstrating strong empirical results on various tasks that require long context, including passkey retrieval, language modeling, and long document summarization from LLaMA 7B to 65B. Meanwhile, the extended model by Position Interpolation preserve quality relatively well on tasks within its original context window. To achieve this goal, Position Interpolation linearly down-scales the input position indices to match the original context window size, rather than extrapolating beyond the trained conte…

  3. Related Shared data, tool or method
    LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
    Yushi Bai, Xin Lv, Jia-Jie Zhang et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 1,878 times · Not summarized yet

    LongBench provides a bilingual multitask benchmark for long-context understanding, which this paper cites.

    Abstract

    Although large language models (LLMs) demonstrate impressive performance for many language tasks, most of them can only handle texts a few thousand tokens long, limiting their applications on longer sequence inputs, such as books, reports, and codebases. Recent works have proposed methods to improve LLMs' long context capabilities by extending context windows and more sophisticated memory mechanisms. However, comprehensive benchmarks tailored for evaluating long context understanding are lacking. In this paper, we introduce LongBench, the first bilingual, multi-task benchmark for long context understanding, enabling a more rigorous evaluation of long context understanding. LongBench comprise…

  4. Related Groundwork for this paper
    Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
    Patrick Lewis, Ethan Perez, Aleksandra Piktus et al. · 2020 · Neural Information Processing Systems · cited 20,466 times · AI summary available

    Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks develops retrieval over external memory for generation, an earlier RAG approach cited by this paper.

    Abstract

    Large pre-trained language models have been shown to store factual knowledge in their parameters, and achieve state-of-the-art results when fine-tuned on downstream NLP tasks. However, their ability to access and precisely manipulate knowledge is still limited, and hence on knowledge-intensive tasks, their performance lags behind task-specific architectures. Additionally, providing provenance for their decisions and updating their world knowledge remain open research problems. Pre-trained models with a differentiable access mechanism to explicit non-parametric memory can overcome this issue, but have so far been only investigated for extractive downstream tasks. We explore a general-purpose …

  5. Related Groundwork for this paper
    REALM: Retrieval-Augmented Language Model Pre-Training
    Kelvin Guu, Kenton Lee, Zora Tung et al. · 2020 · International Conference on Machine Learning · cited 3,596 times · Not summarized yet

    REALM introduces a latent document retriever in language-model pretraining, an earlier retrieval-based model cited by this paper.

    Abstract

    Language model pre-training has been shown to capture a surprising amount of world knowledge, crucial for NLP tasks such as question answering. However, this knowledge is stored implicitly in the parameters of a neural network, requiring ever-larger networks to cover more facts. To capture knowledge in a more modular and interpretable way, we augment language model pre-training with a latent knowledge retriever, which allows the model to retrieve and attend over documents from a large corpus such as Wikipedia, used during pre-training, fine-tuning and inference. For the first time, we show how to pre-train such a knowledge retriever in an unsupervised manner, using masked language modeling a…

Papers that cite it

  1. Very close Same question
    Sufficient Context: A New Lens on Retrieval Augmented Generation Systems
    Hailey Joren, Jian-Yi Zhang, C. Ferng et al. · 2024 · International Conference on Learning Representations · cited 129 times · Not summarized yet

    Sufficient Context analyzes whether RAG errors arise from inadequate retrieved information or models' failure to use it, and cites this paper.

    Abstract

    Augmenting LLMs with context leads to improved performance across many applications. Despite much research on Retrieval Augmented Generation (RAG) systems, an open question is whether errors arise because LLMs fail to utilize the context from retrieval or the context itself is insufficient to answer the query. To shed light on this, we develop a new notion of sufficient context, along with a method to classify instances that have enough information to answer the query. We then use sufficient context to analyze several models and datasets. By stratifying errors based on context sufficiency, we find that larger models with higher baseline performance (Gemini 1.5 Pro, GPT 4o, Claude 3.5) excel …

  2. Very close Same question Uses this paper in depth
    U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-in-a-Haystack
    Yun-Fan Gao, Yun Xiong, Wenlong Wu et al. · 2025 · ACM Trans. Inf. Syst. · cited 30 times · Not summarized yet

    U-NIAH evaluates RAG against long-context LLMs in controlled long-context settings, including performance tradeoffs; it cites this paper.

    Abstract

    Recent advancements in Large Language Models (LLMs) have significantly extended context windows, igniting discussions about the necessity of Retrieval-Augmented Generation (RAG). U-NIAH, a unified Needle-in-a-Haystack (NIAH) framework, systematically evaluates LLMs and RAG methods in controlled long-context settings. It extends beyond traditional NIAH by incorporating more practical and complex scenarios like multi-needle, long-needle, and needle-in-needle configurations and leveraging the synthetic dataset to mitigate LLM biases. The experiments aim to address three research questions in long-context scenarios: (1) performance tradeoffs between LLMs and RAG, (2) error patterns in RAG, and (…

  3. Very close Same question
    Stronger Baselines for Retrieval-Augmented Generation with Long-Context Language Models
    Alex Laitenberger, C. Manning, Nelson F. Liu · 2025 · Conference on Empirical Methods in Natural Language Processing · cited 16 times · Not summarized yet

    Stronger Baselines compares RAG methods under scaled token budgets and finds that order-preserving DOS RAG can match or outperform complex pipelines; it cites this paper.

    Abstract

    With the rise of long-context language models (LMs) capable of processing tens of thousands of tokens in a single context window, do multi-stage retrieval-augmented generation (RAG) pipelines still offer measurable benefits over simpler, single-stage approaches? To assess this question, we conduct a controlled evaluation for QA tasks under systematically scaled token budgets, comparing two recent multi-stage pipelines, ReadAgent and RAPTOR, against three baselines, including DOS RAG (Document's Original Structure RAG), a simple retrieve-then-read method that preserves original passage order. Despite its straightforward design, DOS RAG consistently matches or outperforms more intricate method…

  4. Very close Another approach to the problem Uses this paper in depth
    FB-RAG: Improving RAG with Forward and Backward Lookup
    Kushal Chawla, Alfy Samuel, Anoop Kumar et al. · 2025 · IJCNLP-AACL · Not summarized yet

    FB-RAG uses sampled generations to select relevant evidence for complex queries, addressing the tradeoff between missing facts and confusing context; it cites this paper.

    Abstract

    Traditional Retrieval-Augmented Generation (RAG) struggles with complex queries that lack strong signals to retrieve the most relevant context, forcing a trade-off between choosing a small context that misses key information and a large context that confuses the LLM. To address this, we propose Forward-Backward RAG (FB-RAG), a new training-free framework based on a simple yet powerful forward-looking strategy. FB-RAG employs a light-weight LLM to peek into potential future generations, using evidence from multiple sampled outputs to precisely identify the most relevant context for a final, more powerful generator. This improves performance without complex finetuning or Reinforcement Learning…

  5. Very close Another approach to the problem
    Q-RAG: Long Context Multi-step Retrieval via Value-based Embedder Training
    Artyom Y. Sorokin, N. Buzun, Alexander Anokhin et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 6 times · Not summarized yet

    Q-RAG trains an embedder for multi-step retrieval to answer complex questions, a distinct retrieval strategy cited by this paper.

    Abstract

    Retrieval-Augmented Generation (RAG) methods enhance LLM performance by efficiently filtering relevant context for LLMs, reducing hallucinations and inference cost. However, most existing RAG methods focus on single-step retrieval, which is often insufficient for answering complex questions that require multi-step search. Recently, multi-step retrieval approaches have emerged, typically involving the fine-tuning of small LLMs to perform multi-step retrieval. This type of fine-tuning is highly resource-intensive and does not enable the use of larger LLMs. In this work, we propose Q-RAG, a novel approach that fine-tunes the Embedder model for multi-step retrieval using reinforcement learning (…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 2 November 2026.

The illustrated guide to the papers around a paper

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.