TL;DR
LLM-based search agents frequently get distracted by irrelevant information contained within retrieved documents, a phenomenon known as "context interference." This paper demonstrates that this interference primarily stems from the most recently retrieved documents and introduces a distilled context refiner to filter out the noise. By integrating this refiner into a reinforcement learning pipeline (CRRL), the authors significantly boost both the accuracy and operational efficiency of multi-turn search agents.
What Problem Does This Paper Address?
When Large Language Models (LLMs) act as multi-turn search agents, they iteratively generate search queries, retrieve external documents, and reason through the results to solve complex tasks. However, this process creates lengthy and complex context histories. Standard information retrievers prioritize coverage, meaning they often return documents packed with extraneous or noisy information alongside the useful facts.
This extra baggage causes context interference, confusing the LLM and leading to a significant gap between the agent's recall rate (how often it retrieves the correct answer) and its actual accuracy (how often it correctly answers the question).
While previous work has explored context mitigation in single-turn Retrieval-Augmented Generation (RAG) or dialogue systems, this paper specifically tackles how context interference cascades across multiple turns in autonomous search agents, degrading both reliability and inference speed.
Methods
The authors address the problem through a three-step approach:
- Locating the Interference: Through systematic masking experiments (selectively hiding parts of the history context), they discovered that context interference doesn't primarily come from past queries or older reasoning steps. Instead, it is overwhelmingly caused by the latest retrieved documents.
- Distill-Based Context Refiner: To clean up these documents, they built a specialized context refiner ($F$). Because smaller LLMs struggle with precise information extraction out-of-the-box, the authors used GPT-4 to distill a context refinement dataset ($D_c$). This dataset pairs search queries and raw documents with highly condensed, query-relevant facts. A smaller foundation model (e.g., Qwen2.5-7b-Instruct) was then fine-tuned on this dataset to act as a lightweight, standalone refiner.
- Context-Refined Reinforcement Learning (CRRL): Rather than just using the refiner at inference time, they integrated it directly into the agent's reinforcement learning training loop (built on Group Relative Policy Optimization, or GRPO). During training rollouts, the agent interacts only with the refined, high-density contexts. This prevents the agent from learning suboptimal behaviors from noisy trajectories, leading to a much cleaner and more effective final policy.
Datasets
The approach was evaluated across a diverse suite of closed-book QA benchmarks:
- Single-hop QA: Natural Questions (NQ), TriviaQA, and PopQA.
- Multi-hop QA: HotpotQA, 2WikiMultiHopQA (2Wiki), MuSiQue, and Bamboogle.
For training, the authors sampled a 40k subset from the training sets of NQ and HotpotQA to form the RL training environment, ensuring no overlap with the context refiner's distillation data.
Key Insights and Ideas
- The "Latest Document" Culprit: It's easy to assume that an agent gets confused by the sheer accumulation of multi-turn history. However, the paper proves that historical queries and thoughts cause minimal interference; the immediate influx of unrefined text from the latest retrieval turn is the primary source of confusion.
- Targeted Extraction > General Compression: Standard text summarization approaches (like using an LLM to compress the entire history) often lose critical details or introduce hallucinations. The authors show that extracting only information directly answering the current sub-query is far more effective.
- Synergy with RL: Cleaning up the context during RL rollouts acts as a powerful regularizer. It ensures the policy gradient updates are based on high-quality, concise reasoning paths, which ultimately teaches the agent to make better, more decisive search calls.
Key Results
The proposed CRRL framework achieved substantial improvements in both reliability (Exact Match scores) and efficiency (context length and inference time) compared to standard baselines like IRCoT and Search-GRPO.
- Higher Accuracy: For Qwen2.5-7b-Instruct, CRRL achieved an average Exact Match (EM) score of 36.6% across all datasets, outperforming Search-GRPO (34.6%) and the baseline IRCoT (27.5%).
- Shorter Contexts & Faster Inference: CRRL dramatically compressed the average context length during inference. For the 7b model, the average context length plummeted from 2.3k tokens (IRCoT) to just 0.7k tokens. This reduction lowered the Average Inference Time (AIT) per question from 22.4 seconds down to 16.9 seconds.
Limitations and Future Work
- Scope of Tasks: The study primarily focuses on question-answering tasks. The dynamics of context interference might differ in other agent scenarios, such as multi-tool use, code generation, or long-term planning.
- Auxiliary Module Overhead: Currently, the context refiner operates as an external, auxiliary module. The authors note that a promising future direction is to develop training algorithms that internalize this refinement capability directly into the core agent, moving toward a native "receive observation $\rightarrow$ refine context $\rightarrow$ act" architecture.
Summary updated