Inference Scaling for Long-Context Retrieval Augmented Generation

Zhenrui Yue, Honglei Zhuang, Aijun Bai, Kai Hui, R. Jagerman +5 more
2/12/2026

No official code found. Best implementation: sanowl/-RAG-Scaling-System-with-DRAG-and-IterDRAG (5 stars, last commit 2024-10-24).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

this will be based on the paper Inference Scaling for Long-Context Retrieval Augmented Generation from google deepMind

52PythonOct 24, 20241 years ago

Similar Papers

Cite this paper

@article{yue2026inference,
  title  = {Inference Scaling for Long-Context Retrieval Augmented Generation},
  author = {Zhenrui Yue and Honglei Zhuang and Aijun Bai and Kai Hui and R. Jagerman and Hansi Zeng and Zhen Qin and Dong Wang and Xuanhui Wang and Michael Bendersky},
  year   = {2026},
  eprint = {2410.04343},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.04343},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04343.svg)](https://codeofpaper.com/paper/2410.04343)

Discussion