RAG-Gym
AI for Evidence Utilization · Summarize

Supervising the search process produces reliable and generalizable information-seeking agents

Guangzhi Xiong*, Qiao Jin*, Xiao Wang, Yin Fang, Haolin Liu, Yifan Yang, Fangyuan Chen, Zhixing Song, Dengyu Wang, Minjia Zhang, Zhiyong Lu, Aidong Zhang
* equal contribution
Nature Communications 2026
These slides were generated with the help of AI and may contain errors.
01Motivation

Outcome-only rewards produce unreliable information-seeking agents

  • LLMs now act as autonomous agents that iteratively search external knowledge.
  • High-quality intermediate search steps are hard to generate and harder to supervise.
  • Rewarding only the final answer invites reward hacking and over-reliance on parametric memory.
  • A correct answer can hide a flawed search path — and that path generalizes poorly out of domain.
02Workflow & results

RAG-Gym improves search along three axes

HotpotQA F1 (%)Llama-3.1-8B-Instruct
Three distinct changes improve agent performance HotpotQA F1 improves from ReAct 41.09 to Re-squared Search 44.91, then DPO 55.22, then critic guidance 60.19. Three progressively taller panels fill the space below the rising curve, with their bottom edges aligned. The illustrated architecture loop drafts an answer, finds its first unsupported claim, searches for the missing evidence, and updates history. GPT-4o ranks candidate actions for the same question and history, creating preferences for DPO actor training. At inference, the critic ranks ten candidate queries or answers; the selected query retrieves more evidence, while a selected answer ends the loop. Score bars are schematic relative preferences. 40 50 60 41.1 ReAct 44.9 Re²Search 55.2 + DPO 60.2 + Critic +3.8 F1 +10.3 F1 +5.0 F1 40 50 60 41.1 ReAct 44.9 Re²Search 55.2 + DPO 60.2 + Critic ① +3.8 ② +10.3 ③ +5.0
Same 1,000 evaluation questions. Final stage: Re²Search++ with best-of-10 critic guidance (the default setting). Sources: official project and paper, Figs. 1 & 4d.
03Method

RAG-Gym supervises the search process rather than the final answer alone

  • A wrong intermediate query can still yield the right answer, so outcome reward marks it correct.
  • RAG-Gym optimizes three axes: architecture design, parameter tuning, and action evaluation.
Left: why outcome supervision is insufficient. Right: the three components RAG-Gym optimizes. Fig. 1b–c.
Left: why outcome supervision is insufficient. Right: the three components RAG-Gym optimizes. Fig. 1b–c.
04Result

Reasoning reflection is the capability search agents most often lack

  • Sweeping architectures and tuning methods isolates which agent capabilities actually matter.
  • Re2Search is the only design carrying the full capability stack, and it leads on every axis of the radar.
Benchmark coverage by agent architecture under zero-shot, SFT, DPO and PPO training. Fig. 2d.
Benchmark coverage by agent architecture under zero-shot, SFT, DPO and PPO training. Fig. 2d.
05Result

Process supervision increases the number of search queries agents issue

  • Agents trained with process rewards issue more search queries before committing to an answer.
  • The shift is consistent across HotpotQA, 2WikiMultihopQA, Bamboogle and MedQA.
Average number of search queries per question, by training method. Fig. 3c.
Average number of search queries per question, by training method. Fig. 3c.
06Result

Critic guidance benefits multi-step search agents

  • A process-reward critic can improve search without retraining the actor.
  • Benefits are clearest for multi-step agents; single-step methods can show little benefit or decline.
F1/accuracy with and without critic-guided action selection, across agents and benchmarks. Fig. 4b–c.
F1/accuracy with and without critic-guided action selection, across agents and benchmarks. Fig. 4b–c.
07Result

The critic transfers across model backbones, including proprietary actors

  • A Llama-3.1-8B critic improves a proprietary GPT-4o-mini actor — 2WikiMultihopQA rises from 50.4 to 58.0.
  • Bamboogle gains most, from 56.6 to 66.4 F1 on the tuned backbone.
Critic-guided selection on DPO-tuned Llama-3.1-8B and on GPT-4o-mini, against the untuned baseline. Fig. 4d.
Critic-guided selection on DPO-tuned Llama-3.1-8B and on GPT-4o-mini, against the untuned baseline. Fig. 4d.
08Result

Re2Search++ generalises to out-of-domain benchmarks

  • Re2Search++ performs best on Bamboogle with both Llama-3.1-8B and Qwen-2.5-7B.
  • Bamboogle is an out-of-domain benchmark; Re2Search++ was tuned on HotpotQA.
F1 by agent and backbone; hatched bars are in-domain, solid bars out-of-domain. Fig. 5c.
F1 by agent and backbone; hatched bars are in-domain, solid bars out-of-domain. Fig. 5c.
09Result

Performance can improve with more training data and candidate actions

  • Training-data gains vary across datasets; MedQA shows a U-shaped trend.
  • Sampling more candidate actions helps until gains saturate; larger pools can reduce performance.
Scaling with training samples (left) and with sampled actions per step (right). The dashed line is the zero-sh
Scaling with training samples (left) and with sampled actions per step (right). The dashed line is the zero-shot baseline. Fig. 6e–f.
10Summary

RAG-Gym at a glance

BackgroundAgentic RAG interleaves search and reasoning to answer hard questions.
ProblemOutcome-only rewards cause reward hacking and poor out-of-domain search.
ApproachArchitecture design, process-supervised training, and critic-guided action selection.
ResultsRe2Search++ beats outcome-supervised baselines; critics transfer to proprietary LLMs.
ConclusionA principled blueprint for training reliable, generalizable search agents.