atlas

Research map / Large language models / Retrieval and knowledge

Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG

ICLR 2025 · Large language models › Retrieval and knowledge · approach: RAG robustness and evaluation · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that adding more retrieved passages to long-context LLM RAG can hurt (inverted-U with strong retrievers) due to hard negatives, and proposes retrieval reordering plus implicit and reasoning-augmented RAG fine-tuning to improve robustness.

Problem

Long-context LLMs enable many more retrieved passages in RAG, but it is unclear whether more retrieved context improves performance, given hard negatives from retrievers.

Approach

Analyzes how the number and difficulty of retrieved hard negatives affect long-context LLMs; proposes a training-free retrieval reordering that places high-score passages at the start and end of the context, and fine-tunes LLMs on RAG data (with and without intermediate reasoning labels) to improve robustness to noisy retrieved context.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the number of retrieved passages using e5Long-context LLMs in RAG · NQanswer performanceMixed
Increase the number of retrieved passages using BM25Long-context LLMs in RAG · NQanswer performanceMixed
Add hard negative passages from stronger retrieversLong-context LLMs · NQanswer accuracyHurt
Increase the number of hard negative passagesLong-context LLMs · NQanswer accuracyHurt
Reorder retrieved passages by retrieval score, placing high-scoring passages near the beginning and endLong-context RAG · NQ and PopQAanswer performanceHelped
Fine-tune on queries with retrieved passages and answer targets (implicit RAG FT)Gemma-2-9B-Base, Mistral-Nemo-12B-Base, and Gemini-1.0-Pro · Unseen RAG datasetsperformanceHelped
Add an intermediate reasoning step that identifies relevant passages during RAG fine-tuningRAG-tuned LLMs · Unseen RAG datasetsperformanceHelped
Train on a mixed distribution of NQ, WoW, FEVER, and MMLU instead of a single source (ablation)RAG-tuned LLM · Unseen RAG tasksgeneralization performanceHelped
Train with passages from a mix of BM25 and e5 instead of one retriever (ablation)Gemma-2-9B-Base · Seen and unseen retrieversperformanceHelped
Train with the maximum context length (40 passages) instead of shorter or dynamic passage counts (ablation)Gemma-2-9B-Base · NQperformance across inference retrieval sizesHelped
Use RAG-specific fine-tuning instead of direct fine-tuning on question-answer pairs without retrieved context (ablation)RAG-tuned LLMs · Unseen RAG datasetsperformanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: Natural Questions Wizard of Wikipedia FEVER MMLU PopQA Wikipedia 2018 dump

Benchmarks: Natural Questions PopQA TriviaQA HotpotQA 2WikiMultiHopQA WebQuestions Bamboogle ASQA T-REx Zero-shot RE

Metrics: accuracy recall@k precision@k

Baselines: Chat model with RAG (Gemma-2-9B-Chat) Mistral-Nemo-12B-Instruct w. RAG Gemini-1.0-Pro w. RAG Direct FT (no retrieval) BM25 Contriever BGE

Builds on: lost-in-the-middle RetRobust RA-DIT RAFT InstructRAG

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy