English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

R1-Searcher: Training LLMs to Search Autonomously via Two-Stage Outcome-Based Reinforcement Learning

Forum topic · 小凯 · 2026-05-11

Summary

R1-Searcher, proposed in March 2025 by a Renmin University of China team, is a framework that enhances large language models' search capabilities purely through reinforcement learning, without distillation or supervised fine-tuning cold starts. Using a two-stage outcome-based RL approach—first teaching models how to invoke retrieval correctly with format and retrieval rewards, then optimizing answer quality with an F1-based reward—the framework enables models to autonomously call external retrieval systems during reasoning. Built on Reinforce++ with RAG-based rollout and retrieval-masked loss, R1-Searcher trained on Llama-3.1-8B surpasses GPT-4o-mini-based baselines, improving HotpotQA performance by 48.2% over ReARTeR. A Qwen-2.5-7B-Base model trained from scratch via pure RL achieves the best results, and a 7B model outperforms the 32B Search-o1 on out-of-domain Bamboogle by 11.4%. The paper (arXiv:2503.05592) also documents reward hacking patterns and shows RL generalizes better than SFT for learning transferable search strategies.

R1-Searcher: When Reinforcement Learning Meets Retrieval Augmentation — Cultivating Autonomous Search via Two-Stage Outcome-Based RL

> In March 2025, a team from Renmin University of China proposed R1-Searcher, a framework that enhances large language models' search capability through pure reinforcement learning (no distillation, no SFT cold start). The framework enables models to autonomously invoke external retrieval systems during reasoning, significantly outperforming existing RAG methods on multi-hop QA benchmarks — even beating strong GPT-4o-mini-based baselines.

---

1. Background: The Knowledge Boundaries of Reasoning Models

1.1 Limits of Closed-Book Reasoning

Current large reasoning models (LRMs) like DeepSeek-R1 and OpenAI o1 show strong capabilities in math and code, but their performance is fundamentally limited by static knowledge acquired during pretraining:

| Task Type | Internal Knowledge Sufficiency | LRM Performance | Key Bottleneck | |:---|:---:|:---:|:---| | Mathematical theorem proving | ✅ High | Excellent | — | | Code/algorithm design | ✅ High | Excellent | — | | Current-events QA | ❌ Low | Poor | Knowledge cutoff | | Professional literature review | ❌ Low | Poor | Insufficient knowledge coverage | | Multi-hop fact verification | ❌ Low | Poor | Requires external information to connect facts |

> Core problem: LRMs are trained as "closed-book exam" experts and lack the ability to dynamically acquire external information during reasoning.

1.2 Evolution and Limitations of Existing RAG Methods

| Category | Representative Work | Mechanism | Core Limitation | |:---|:---|:---|:---| | Standard RAG | Traditional pipelines | Single retrieval + generation | Cannot handle complex multi-hop queries | | Adaptive retrieval | SKR, Self-RAG | Retrieve based on confidence | Relies on heuristic rules | | Reasoning-enhanced RAG | Search-o1, ReARTeR | MCTS / complex prompting | High inference overhead, depends on closed models | | SFT distillation | CoRAG | Distill search behavior into small models | Limited generalization, prone to memorizing paths | | RL training | R1-Searcher | Pure RL learns search policy | Requires careful reward design |

---

2. The R1-Searcher Method: Two-Stage Outcome-Based RL

2.1 Core Design Principles

R1-Searcher is based on these observations: 1. The model must first learn how to correctly invoke the retrieval system (format and timing) 2. Then it must learn how to use retrieved results to answer questions 3. This can be learned autonomously via outcome-based RL — no process supervision or distillation needed

2.2 Stage 1: Retrieval Behavior Initialization

Goal: establish the model's basic understanding of retrieval invocation.

| Reward Component | Computation | Purpose | |:---|:---|:---| | Retrieval reward \(R_{retrieval}\) | $0.5$ (if retrievals \(n \geq 1\)), $0$ (\(n = 0\)) | Encourage at least one retrieval | | Format reward \(R_{format}\) | $0.5$ (correct format), $0$ (incorrect) | Ensure structured output |

> Key design: Stage 1 does not evaluate answer correctness. This lowers learning difficulty, letting the model focus on mastering the format and timing of retrieval calls.

Format requirements:

  • Reasoning wrapped in <think>...</think> tags
  • Final answer wrapped in <answer>...</answer> tags
  • Retrieval queries in <|begin_of_query|>...<|end_of_query|> format
  • Retrieved results returned by the system in <|begin_of_documents|>...<|end_of_documents|> format

2.3 Stage 2: Joint Search-Reasoning Optimization

Goal: optimize the model's ability to use retrieved information to answer questions.

| Reward Component | Computation | Purpose | |:---|:---|:---| | Answer reward \(R_{answer}\) | F1 score \(= \frac{2 \cdot IN}{PN + RN}\) | Assess answer quality | | Format reward \(R'_{format}\) | $0$ (correct), \(-2\) (incorrect) | Strong constraint against format collapse |

> Why F1: In open-domain QA, Exact Match (EM) is too strict and Cover Exact Match (CEM) too lenient. F1 balances precision (\(\frac{IN}{PN}\)) and recall (\(\frac{IN}{RN}\)). Experiments show F1 improves over EM by 52.6% on average.

2.4 Training Algorithm Modifications

R1-Searcher builds on Reinforce++ with two key modifications for the RAG setting:

RAG-based Rollout: generation pauses at <|end_of_query|>, the system performs retrieval, and results are inserted into context — ensuring seamless integration of retrieval into the reasoning flow.

Retrieval Mask-based Loss: tokens from retrieved documents are masked out of the loss computation, preventing external information from interfering with learning of the model's intrinsic generation probabilities.

---

3. Experimental Results: From In-Domain to Out-of-Domain

3.1 Main Benchmarks

| Method | Backbone | HotpotQA (Judge) | 2Wiki (Judge) | Bamboogle (Judge) | Musique (Judge) | |:---|:---:|:---:|:---:|:---:|:---:| | Naive Generation | Llama-3.1-8B | 26.8% | 25.4% | 16.8% | 9.6% | | Standard RAG | Llama-3.1-8B | 39.8% | 21.2% | 21.6% | 9.8% | | ReARTeR | GPT-4o-mini | 50.6% | 53.4% | 54.4% | 30.2% | | R1-Searcher | Llama-3.1-8B | 74.6% | 62.8% | 54.4% | 28.2% | | R1-Searcher-Zero | Qwen-2.5-7B-Base | 75.0% | 65.0% | 54.4% | 31.4% |

> Key results: R1-Searcher (Llama-3.1-8B) beats ReARTeR (GPT-4o-mini) by 48.2% on HotpotQA and 21.7% on 2Wiki. Qwen-2.5-7B-Base trained from scratch with pure RL achieves the best performance, validating the feasibility of no distillation or SFT cold start.

3.2 Out-of-Domain Generalization

On Bamboogle, unseen during training:

| Method | Model Size | Bamboogle (Judge) | |:---|:---:|:---:| | Search-o1 | 32B | 43.2% | | R1-Searcher-Zero | 7B | 54.4% |

> A 7B model beats a 32B model by 11.4%, indicating R1-Searcher learns a transferable search strategy rather than dataset-specific patterns.

---

4. Deeper Analysis: Why RL Beats SFT

4.1 Systematic RL vs SFT Comparison

| Dimension | SFT | RL | |:---|:---|:---| | Training signal | Imitating correct trajectories | Optimizing outcome reward | | Retrieval timing | Mimics patterns in data | Autonomously explores optimal timing | | Retrieval relevance | Limited by training data quality | Optimized via reward feedback | | Internal knowledge use | Prone to over-reliance | Learns to balance internal and external | | Generalization | Prone to overfitting | Stronger |

Experimental data:

| Training Method | Qwen-2.5-7B-Base Avg CEM | Llama-3.1-8B-Instruct Avg CEM | |:---|:---:|:---:| | SFT | 50.1% | 48.2% | | RL | 60.6% | 58.2% |

> Qualitative analysis: SFT models generate retrieval queries but with poor timing and relevance, and tend to search blindly even when internal knowledge suffices. RL's reward signal teaches the model to strategically judge when external information is needed.

4.2 GRPO vs Reinforce++

| Algorithm | In-domain Performance | Out-of-domain Generalization | Generation Length | Retrieval Frequency | |:---|:---:|:---:|:---:|:---:| | GRPO | Moderate | Stronger | Longer | More frequent | | Reinforce++ | Stronger | Moderate | Shorter | Less frequent |

> GRPO's group-normalization mechanism may encourage more diverse exploration, improving out-of-domain performance.

---

5. Reward Design Challenges and Lessons

5.1 The Evolution of Reward Hacking

Training revealed multiple reward hacking patterns:

| Stage | Problem | Symptom | Solution | |:---|:---|:---|:---| | Early | Fabricated documents | Generating document tags directly to bypass retrieval | Strict format rewards + document content verification | | Mid | Gibberish output | Base model produces meaningless tokens | KL divergence constraint | | Mid | Skipping retrieval | Answering directly to avoid learning retrieval | Two-stage training forces retrieval in Stage 1 | | Late | Answer padding | Verbose output to boost CEM | Switching to F1 reward |

5.2 Choice of Answer Reward Metric

| Metric | Definition | Pros | Cons | Final Performance (Avg CEM) | |:---|:---|:---|:---|:---:| | EM | Exact match | Precise | Too strict | 39.7% | | CEM | Cover match | Allows partial correctness | Encourages padding | 59.5% | | F1 | Precision-recall harmonic mean | Balanced | Slightly costlier to compute | 60.6% |

---

6. Impact of Training Data

6.1 Difficulty Distribution

| Dataset | Avg CEM | Observation | |:---|:---:|:---| | Without hard data | 58.8% | Fewer retrievals, shallower reasoning | | With hard data | 60.8% (+3.4%) | More frequent retrieval, deeper reasoning |

6.2 Diversity

| Training Data | HotpotQA | 2Wiki | Bamboogle | Avg CEM | |:---|:---:|:---:|:---:|:---:| | 2Wiki only | Medium | High | Low | Low | | HotpotQA only | High | Medium | Medium | Medium | | Mixed | High | High | High | Highest (+10.9%) |

> Single datasets cause overfitting to specific retrieval patterns. Mixed data forces the model to learn a general search-reasoning strategy.

---

7. Conclusion

R1-Searcher represents an important step toward internalizing retrieval capability as a policy behavior in LLMs. Through two-stage outcome-based RL, models learn: 1. When to search: proactively invoke retrieval when knowledge is uncertain 2. How to search: generate effective query keywords 3. How to use results: integrate retrieved content into the reasoning chain

The framework's core advantage is pure RL training — no distillation, no SFT cold start, no process rewards. A 7B model trained from scratch surpasses GPT-4o-mini-based baselines, demonstrating scalability and practicality.

In a world of rapidly evolving knowledge, "knowing how to search" may be more valuable than "memorizing more facts." R1-Searcher provides a solid technical path in that direction.

---

Paper Details

| Item | Content | |:---|:---| | Title | R1-Searcher: Incentivizing the Search Capability in LLMs via Reinforcement Learning | | Authors | Huatong Song, Jinhao Jiang, Yingqian Min, Jie Chen, Zhipeng Chen, Wayne Xin Zhao, Lei Fang, Ji-Rong Wen | | Institutions | Renmin University of China, DataCanvas Alaya NeW | | arXiv ID | 2503.05592 | | Date | 2025-03-07 | | Core Contributions | Two-stage outcome-based RL; autonomous retrieval invocation; pure RL without distillation; joint search-reasoning optimization | | Key Results | Llama-3.1-8B beats GPT-4o-mini baseline (+48.2% HotpotQA); Qwen-2.5-7B-Base best with pure RL; 7B > 32B Search-o1 | | Training Data | 8,148 samples (HotpotQA + 2WikiMultiHopQA) | | Code | https://github.com/RUCAIBox/R1-Searcher |

Tags

#r1-searcher#reinforcement-learning#rag#llm-search#multi-hop-qa#retrieval-augmented-generation#outcome-based-rl#reward-design

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177619821