mlsanityData to 7 Oct 2026

Inference Scaling for Long-Context Retrieval Augmented Generation

arXiv 2410.04343 ↗First posted 6 Oct 2024cs.CLcited by 65

On the map: Retrieval-augmented generation → Generation and context integration

Abstract (arXiv)

The scaling of inference computation has unlocked the potential of long-context large language models (LLMs) across diverse settings. For knowledge-intensive tasks, the increased compute is often allocated to incorporate more external knowledge. However, without effectively utilizing such knowledge, solely expanding context does not always enhance performance. In this work, we investigate inference scaling for retrieval augmented generation (RAG), exploring the combination of multiple strategies beyond simply increasing the quantity of knowledge, including in-context learning and iterative prompting. These strategies provide additional flexibility to scale test-time computation (e.g., by increasing retrieved documents or generation steps), thereby enhancing LLMs' ability to effectively acquire and utilize contextual information. We address two key questions: (1) How does RAG performance benefit from the scaling of inference computation when optimally configured? (2) Can we predict the optimal test-time compute allocation for a given budget by modeling the relationship between RAG performance and inference parameters? Our observations reveal that increasing inference computation leads to nearly linear gains in RAG performance when optimally allocated, a relationship we describe as the inference scaling laws for RAG. Building on this, we further develop the computation allocation model to estimate RAG performance across different inference configurations. The model predicts optimal inference parameters under various computation constraints, which align closely with the experimental results. By applying these optimal configurations, we demonstrate that scaling inference compute on long-context LLMs achieves up to 58.9% gains on benchmark datasets compared to standard RAG.

Key facts. Cited by 65 papers in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 69 of its 75 references that are in the map. First posted on arXiv 6 Oct 2024.

Builds on

69 of 75 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models23 May
  2. 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Models15 Nov
  3. 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Context2 Oct
  4. 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuning2 Oct
  5. 2023Query Rewriting for Retrieval-Augmented Large Language Models23 May
  6. 2023Active Retrieval Augmented Generation11 May
  7. 2023In-Context Retrieval-Augmented Language Models31 Jan
  8. 2023REPLUG: Retrieval-Augmented Black-Box Language Models30 Jan
  9. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Models5 Aug
  10. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
  11. 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb

Other references · 58

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  11. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  12. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
38 more
  1. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  5. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  6. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  8. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  9. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  10. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  11. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
  12. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  13. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  14. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  15. 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
  16. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  17. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  18. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  19. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
  20. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
  21. 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
  22. 2021MetaICL: Learning to Learn In Contextcited by 450
  23. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  24. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  25. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  26. 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 258
  27. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
  28. 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
  29. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 211
  30. 2024Many-Shot In-Context Learningcited by 203
  31. 2024Corrective Retrieval Augmented Generationcited by 187
  32. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  33. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  34. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  35. 2022A Length-Extrapolatable Transformercited by 123
  36. 2023Retrieval meets Long Context Large Language Modelscited by 114
  37. 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 104
  38. 2024ChatQA: Surpassing GPT-4 on Conversational QA and RAGcited by 90

50 most cited of 58 All 58 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 49; 2026: 13.

65 papers.

Sort:

By area:

  1. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
  2. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
  3. 2025WebWalker: Benchmarking LLMs in Web Traversalcited by 171
  4. 2025ReasonIR: Training Retrievers for Reasoning Taskscited by 76
  5. 2025Process vs. Outcome Reward: Which is Better for Agentic RAG Reinforcement Learningcited by 68
  6. 2025From Web Search towards Agentic Deep Research: Incentivizing Search with Reasoning Agentscited by 49
  7. 2025Chain-of-Retrieval Augmented Generationcited by 48
  8. 2026Dr. Zero: Self-Evolving Search Agents without Training Datacited by 39
  9. 2025Hybrid Latent Reasoning via Reinforcement Learningcited by 30
  10. 2025MemSearcher: Training LLMs to Reason, Search and Manage Memory via End-to-End Reinforcement Learningcited by 26
  11. 2025Atom-Searcher: Enhancing Agentic Deep Research via Fine-Grained Atomic Thought Rewardcited by 25
  12. 2024Long Context RAG Performance of Large Language Modelscited by 23
38 more
  1. 2025DeepDiver: Adaptive Search Intensity Scaling via Open-Web Reinforcement Learningcited by 23
  2. 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 22
  3. 2025O2-Searcher: A Searching-based Agent Model for Open-Domain Open-Ended Question Answeringcited by 22
  4. 2025From Passive to Active Reasoning: Can Large Language Models Ask the Right Questions under Incomplete Information?cited by 21
  5. 2025PISCO: Pretty Simple Compression for Retrieval-Augmented Generationcited by 20
  6. 2025MCTS-RAG: Enhancing Retrieval-Augmented Generation with Monte Carlo Tree Searchcited by 20
  7. 2025Collab-RAG: Boosting Retrieval-Augmented Generation for Complex Question Answering via White-Box and Black-Box LLM Collaborationcited by 19
  8. 2025RAFFLES: Reasoning-based Attribution of Faults for LLM Systemscited by 19
  9. 2025PILAF: Optimal Human Preference Sampling for Reward Modelingcited by 18
  10. 2025RAGO: Systematic Performance Optimization for Retrieval-Augmented Generation Servingcited by 18
  11. 2025AgentTTS: Large Language Model Agent for Test-time Compute-optimal Scaling Strategy in Complex Taskscited by 16
  12. 2025RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decodingcited by 14
  13. 2025Generative AI Act II: Test Time Scaling Drives Cognition Engineeringcited by 14
  14. 2025RaCoT: Plug-and-Play Contrastive Example Generation Mechanism for Enhanced LLM Reasoning Reliabilitycited by 14
  15. 2025Stop-RAG: Value-Based Retrieval Control for Iterative RAGcited by 13
  16. 2026Reasoning in Trees: Improving Retrieval-Augmented Generation for Multi-Hop Question Answeringcited by 13
  17. 2026PERMA: Benchmarking Personalized Memory Agents via Event-Driven Preference and Realistic Task Environmentscited by 13
  18. 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generationcited by 12
  19. 2025Position: The Real Barrier to LLM Agent Usability is Agentic ROIcited by 12
  20. 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
  21. 2025CLaRa: Bridging Retrieval and Generation with Continuous Latent Reasoningcited by 9
  22. 2024Drowning in Documents: Consequences of Scaling Reranker Inferencecited by 8
  23. 2025AirRAG: Autonomous Strategic Planning and Reasoning Steer Retrieval Augmented Generationcited by 8
  24. 2025EviNote-RAG: Enhancing RAG Models via Answer-Supportive Evidence Notescited by 8
  25. 2025ContextPilot: Fast Long-Context Inference via Context Reusecited by 8
  26. 2025TeaRAG: A Token-Efficient Agentic Retrieval-Augmented Generation Frameworkcited by 7
  27. 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuningcited by 6
  28. 2025From Mathematical Reasoning to Code: Generalization of Process Reward Models in Test-Time Scalingcited by 5
  29. 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Searchcited by 5
  30. 2025Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaborationcited by 4
  31. 2024RaSeRec: Retrieval-Augmented Sequential Recommendationcited by 3
  32. 2025Inference Scaled GraphRAG: Improving Multi Hop Question Answering on Knowledge Graphscited by 2
  33. 2025From Evidence to Trajectory: Abductive Reasoning Path Synthesis for Retrieval-Augmented Generation Agents Developmentcited by 2
  34. 2025Improving Consistency in Retrieval-Augmented Systems with Group Similarity Rewardscited by 2
  35. 2025A2Search: Ambiguity-Aware Question Answering with Reinforcement Learningcited by 2
  36. 2025Cost-Aware Retrieval-Augmentation Reasoning Models with Adaptive Retrieval Depthcited by 2
  37. 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Promptscited by 2
  38. 2026Retrieval Augmented Conversational Recommendation with Reinforcement Learningcited by 2

50 most cited of 65 All 65 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024Inference Scaling for Bridging Retrieval and Augmented Generation
  2. 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
  3. 2025Scaling Test-Time Inference with Policy-Optimized, Dynamic Retrieval-Augmented Generation via KV Caching and Decoding
  4. 2025Grounding Long-Context Reasoning with Contextual Normalization for Retrieval-Augmented Generation
  5. 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
  6. 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
  7. 2025Relevance Isn't All You Need: Scaling RAG Systems With Inference-Time Compute Via Multi-Criteria Reranking
  8. 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection