Meta-Reinforcement Learning with Self-Reflection for Agentic Search

Teng Xiao, Yige Yuan, Hamish Ivison, Huaisheng Zhu, Faeze Brahman, Nathan Lambert, Pradeep Dasigi, Noah A. Smith, Hannaneh Hajishirzi

TL;DR

MR-Search is a novel meta-reinforcement learning framework that enables search agents to learn from their own mistakes across multiple attempts. By generating explicit self-reflections and using them as context for subsequent tries, the agent improves its in-context exploration at test-time, leading to relative performance gains of up to 19.3% on complex question-answering benchmarks.

What Problem Does This Paper Address?

Building autonomous agents that can effectively use search tools to answer complex questions is a major goal in AI. Current approaches typically use Reinforcement Learning (RL) to train these agents. However, they face two significant hurdles:

  1. Sparse Rewards: Agents usually only receive feedback (correct/incorrect) at the very end of a long sequence of actions, making it hard to know which specific step was helpful or harmful.
  2. Independent Episodes: Standard RL treats each attempt at a question as an isolated event. If an agent fails once, it doesn't "remember" that failure to inform its next attempt, leading to redundant or inefficient search patterns.

The authors argue that for "agentic search"—where multi-turn tool interaction is key—we need a way for agents to consolidate knowledge across multiple attempts and perform more informed exploration.

Methods

The core of the paper is MR-Search, which shifts the paradigm from standard RL to in-context meta-reinforcement learning.

The Meta-Episode Framework

Instead of optimizing a policy for a single attempt, MR-Search optimizes for a meta-episode: a sequence of $N$ "inner-episodes." * Inner-Episode: The agent reasons, calls a search tool, observes results, and provides an answer. * Self-Reflection: After each inner-episode, the agent is prompted to reflect on its previous attempt, identify missing information, and plan a better search strategy. * Cross-Episode Context: The trajectory and reflection from attempt $n$ are fed back into the model as context for attempt $n+1$.

Figure 1: RL-based agents (a) condition solely on the current episode, and episodes are inde- pendent, whereas meta-RL-based agents (b) leverage context accumulated across episodes. MR-Search performs sequential self-reflection over past episodes to guide exploration in subsequent episodes. In MR-Search, we have inner-episodes, each consisting of a maximum of T interactions steps with an answer. A sequence of N episodes forms a meta-episode.

Multi-Turn RL with RLOO

To solve the credit assignment problem without the overhead of a separate "critic" model (like in PPO), the authors use a multi-turn RL algorithm based on Leave-One-Out (RLOO) estimation. They calculate a "relative advantage" by comparing the reward of one meta-episode against the average of others in the same group. This allows for fine-grained, turn-level updates that specifically reward effective self-reflections.

Figure 2: An overview of our proposed MR-Search framework. Given a question, the agent first completes an initial episode by interleaving reasoning and tool calls. It then enters an iterative self-reflection loop, where previous episodes serve as experience to inform subsequent searches and answer revisions, enabling iterative improvement across episodes.

Datasets

The researchers evaluated MR-Search on a diverse set of eight benchmarks:

  • General QA: NQ (Natural Questions), TriviaQA, and PopQA.
  • Multi-Hop QA: HotpotQA, 2WikiMultiHopQA, Musique, and Bamboogle.
  • Complex Agentic Search: ASearcher, a synthetic dataset designed to require long-horizon, multi-turn search interactions.

Key Insights and Ideas

  • Learning to Explore: Unlike standard agents that might get stuck in a "local optimum" (repeating the same wrong search), MR-Search learns a strategy for exploration. It learns how to use its own failures to pivot to better search queries.
  • Test-Time Scaling: A major finding is that MR-Search scales significantly better with "test-time compute." While standard models (like Search-R1) show diminishing returns when allowed more turns, MR-Search's accuracy continues to climb as it gets more opportunities to reflect and refine.
  • Critic-Free Efficiency: By using RLOO for turn-level advantages, the framework achieves dense supervision without the computational cost and potential bias of auxiliary reward models or LM judges.
  • Context Management: The authors found that even just keeping the immediately preceding episode as context works remarkably well, mitigating the "context explosion" problem as the number of turns increases.

Key Results

MR-Search consistently outperformed strong baselines (like ReSearch and Search-R1) across both 3B and 7B parameter model sizes:

  • Average Gains: Achieved relative improvements of 9.2% to 19.3% across the eight QA benchmarks.
  • Multi-Hop Superiority: On the challenging Musique dataset, MR-Search (Qwen2.5-7B) reached 22.1% EM, significantly higher than Search-R1's 18.1%.
  • ASearcher Performance: On the complex ASearcher task, MR-Search showed a steep improvement curve as the number of turns increased, whereas parallel sampling baselines plateaued quickly.
Figure 3: We evaluate MR-Search, Search-R1 with sequential reflection inference (Search-R1- S), and Search-R1 with parallel sampling (Search-R1-P), selecting the most frequent answer among the generated trajectories. Shaded regions show the standard deviation across 3 runs. We observe that MR-Search achieves the best performance. See § 4.3 for details

Limitations and Future Work

  • Context Length: While the "short context" variant works well, the full meta-RL approach still faces linear growth in context length as turns increase, which could become a bottleneck for extremely long reasoning tasks.
  • Training Signal: The method currently relies on ground-truth answer rewards during training. Future work could explore using intrinsic rewards to enable meta-learning in environments where ground truth is unavailable even during training.
  • Generalization to Other Tools: The current study focuses on search engines. Extending this meta-RL framework to other agentic tools (code execution, database queries) remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{xiao2026meta,
  author = {Teng Xiao and Yige Yuan and Hamish Ivison and Huaisheng Zhu and Faeze Brahman and Nathan Lambert and Pradeep Dasigi and Noah A. Smith and Hannaneh Hajishirzi},
  title = {{Meta-Reinforcement Learning with Self-Reflection for Agentic Search}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=6iF9u6VQuo},
}
Figure