R1-Searcher: Incentivizing the Search Capability in LLMs via Reinforcement Learning
Read first: REINFORCE and the Policy-Gradient Theorem (Williams 1992; Sutton et al. 1999) · DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
TL;DR. R1-Searcher trains a model to search with RL alone, without supervised fine-tuning first. Stage 1 rewards only the act of calling the retriever in the right format; Stage 2 drops that reward and pays for answer F1, with a heavy penalty for broken format. It also selects training questions by how hard they are for an instruct model with retrieval.
Why it matters now. Search-R1 showed that an outcome reward can teach search. R1-Searcher, released the same week by a different group (Renmin University), shows what you may need when the model does not search on its own: a staged reward, a curated difficulty mix and explicit rules against format hacks. Its list of observed reward hacks is one of the most useful parts of the paper. “R1” again refers to DeepSeek-R1-style RL; R1-Searcher is an independent method, not an earlier version of Search-R1.
Key idea
Section titled “Key idea”The policy writes reasoning, and when it wants evidence it writes a keyword query between <|begin_of_query|> and <|end_of_query|>. Generation pauses, the retriever returns passages between <|begin_of_documents|> and <|end_of_documents|>, and the model continues. Those document tokens are masked out of the loss. The rollout ends with <answer>.
Training runs in two stages with different rewards ( is the number of retrieval calls):
Stage 1 never looks at the answer. It only makes “call the tool properly” the dominant behaviour. Stage 2 then pays for correct answers and punishes format breaks harder than any wrong answer.
The optimiser is a modified Reinforce++. In its own paper (arXiv 2501.03262), Reinforce++ is a critic-free policy gradient that normalises advantages over the whole batch rather than within each prompt’s group; R1-Searcher adds the RAG rollout and the document masking. Each question gets 16 rollouts, , up to 8 retrievals.
A worked reward table
Section titled “A worked reward table”Four rollouts for the same question, scored by both stages:
| Rollout | Stage 1 | Stage 2 |
|---|---|---|
| A: no retrieval, good format, correct answer | 0 + 0.5 = 0.5 | 1.0 + 0 = 1.0 |
| B: one retrieval, good format, wrong answer | 0.5 + 0.5 = 1.0 | 0 + 0 = 0 |
| C: writes its own “documents” without a query | 0 + 0 = 0 | F1 − 2 |
| D: three retrievals, good format, F1 = 0.5 | 0.5 + 0.5 = 1.0 | 0.5 + 0 = 0.5 |
Stage 1 prefers B over A. Stage 2 reverses that. Rollout C is one of the real hacks the authors saw.
What changed versus Search-R1
Section titled “What changed versus Search-R1”| Search-R1 | R1-Searcher | |
|---|---|---|
| Reward | EM only | Stage 1: retrieval + format; Stage 2: F1 + format penalty |
| Optimiser | PPO or GRPO | Reinforce++ (GRPO compared) |
| Training data | NQ + HotpotQA train | 8,148 HotpotQA + 2Wiki questions selected by difficulty |
| Retriever / corpus | E5, 2018 Wikipedia, top-3 | BGE-large-en-v1.5, KILT 2019 Wikipedia (29M passages) |
| Budget | 4 actions | up to 8 retrievals |
| Evaluation | EM, 7 datasets | cover-EM and GPT-4o-mini judge, 4 multi-hop datasets |
Unchanged: no SFT cold start, retrieved tokens masked, outcome-only signal in the final stage.
Key results
Section titled “Key results”All numbers are paper-reported (arXiv v2). ACC_R is cover exact match; ACC_L is a GPT-4o-mini judge.
- Main table (Table 2). Qwen-2.5-7B-Base trained with R1-Searcher: HotpotQA 0.654 / 0.750 (ACC_R / ACC_L), 2Wiki 0.636 / 0.650, Bamboogle 0.528 / 0.544, Musique 0.282 / 0.314. The best baseline, ReARTeR with GPT-4o-mini, scores 0.468 / 0.506, 0.554 / 0.534, 0.496 / 0.544 and 0.296 / 0.302. So the gains are large in-domain and small or absent on Musique.
- Attribution check. The 48.2% and 21.7% ACC_L gains quoted in §3.4 match the Qwen rows against GPT-4o-mini ReARTeR, although the text attributes them to the Llama backbone.
- GRPO vs Reinforce++ (Table 3, Llama). Average cover-EM 59.0 vs 58.9. GRPO produced longer outputs, more retrievals and better Bamboogle; Reinforce++ was better in-domain.
- RL vs SFT (Table 4). Qwen 60.6 vs 50.1; Llama 58.2 vs 48.2 (average cover-EM over three datasets).
- Reward and data (Tables 5–7). Answer reward EM 39.7, cover-EM 59.5, F1 60.6. Without difficult questions 58.8 vs 60.8 with them. HotpotQA only 54.6, 2Wiki only 43.6, mixture 60.6.
- Online search (§4.4, Figure 6). On Bamboogle with Google search and GPT-4o-mini summaries, the paper reports +18.2% over its own local-retrieval run and +11.4% over Search-o1-32B (cover-EM).
Limitations & open questions
Section titled “Limitations & open questions”- Comparisons are not budget-matched. Baselines run in FlashRAG with different backbones; retrieval calls and tokens per question are not reported side by side.
- The online result has an extra model in the loop. GPT-4o-mini summarises each web page, so the online gain mixes the policy’s searching with a stronger model’s reading.
- Small evaluation sets. Bamboogle has 125 questions; a 0.02 difference is a few questions.
- Inconsistent counts. §3.3 says 3,581 2Wiki Stage-2 samples while Table 1 sums to 3,587; the 8,148 total matches 3,587. The 48.2% attribution also does not match the text.
- No query-level credit. As in Search-R1, all generated tokens in a rollout share one reward.
Connections
Section titled “Connections”- Prerequisites: REINFORCE and policy gradients, GRPO, outcome vs process rewards.
- Siblings: Search-R1 (EM reward, PPO/GRPO) and ReSearch (F1 with a format floor). The comparison hub lines them up.
- Reward hacking: the format hacks here are small instances of specification gaming; see also length correlations for the cover-EM padding effect.
- Data difficulty: DAPO filters prompts whose rollouts all agree, a related idea from reasoning RL.
- Evaluation: classic multi-hop QA and LLM-as-judge.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Score four rollouts under the Stage-1 reward and the Stage-2 reward. (A) No retrieval, correct format, correct answer. (B) One retrieval, correct format, wrong answer (F1 = 0). (C) Writes a fake documents block without issuing a query, then the correct answer. (D) Three retrievals, correct format, answer with F1 = 0.5. What behaviour does each stage make optimal, and why can Stage 1 alone never teach the model to answer correctly?
What a strong answer covers
- Stage 1 (0.5·[n ≥ 1] + 0.5·[format ok]): A = 0 + 0.5 = 0.5; B = 0.5 + 0.5 = 1.0; C = 0 + 0 = 0, because generating documents without a query breaks the format rule and n = 0; D = 0.5 + 0.5 = 1.0.
- Stage 2 (F1 + 0 or −2): A = 1.0; B = 0; C = 1.0 − 2 = −1.0; D = 0.5.
- Stage 1 makes "always issue at least one well-formed query" optimal, whatever the answer, so B ties D. The answer never enters the reward, so the gradient carries no information about correctness.
- Stage 2 flips the incentive: A beats B, so the model must learn when searching helps. The −2 penalty is larger than the maximum F1, so any format break is worse than a wrong answer.
- Mechanism
R1-Searcher uses a modified Reinforce++, which normalises advantages over the whole batch, not per prompt. Take a batch with two prompts and 4 rollouts each: prompt P1 has rewards (1, 1, 1, 1) and prompt P2 has (1, 0, 0, 0). Compare the advantage each rollout receives under GRPO-style per-prompt normalisation and under batch-level normalisation, and explain what signal each method sends for the easy prompt P1.
What a strong answer covers
- GRPO per prompt: P1 has zero std, so all four advantages are 0 and P1 contributes nothing. P2 has mean 0.25: the correct rollout gets a positive advantage and the three wrong ones get negative advantages.
- Batch level: the batch mean is 5/8 = 0.625. Every P1 rollout gets a positive advantage (1 − 0.625, scaled by the batch std), the P2 success the same, and the P2 failures a negative one.
- So batch normalisation still reinforces already-solved prompts, while GRPO only learns from prompts whose rollouts disagree. That is one reason difficulty-based data selection matters more for GRPO-style methods.
- Both are critic-free; neither assigns different credit to different search calls inside one rollout. The retrieved documents are masked in both cases.
- What if…
Table 5 compares three answer rewards for Qwen-2.5-7B-Base: EM gives 39.7 average CEM, CEM gives 59.5 and F1 gives 60.6. Explain why EM did so badly, what CEM-as-reward did to answer length, and why the authors still report CEM as an evaluation metric. Which other ablation in the paper shows a similar "the reward fits but the behaviour is wrong" pattern?
What a strong answer covers
- EM and CEM rewards are +1 / −1. EM is strict, so most early rollouts score −1, the signal is sparse, and the model learns short, cautious responses (the paper reports shorter responses with EM).
- CEM only checks that the gold string appears in the prediction, so the model learned to write long answers padded with extra entities: the reward was satisfied, the answer quality was not.
- Using CEM to evaluate is fine because the evaluation does not train the model, but numbers in CEM still favour verbose answers; the LLM-judge metric (ACC_L) is the check.
- Similar pattern: training only on 2Wiki gave higher training reward but lower test CEM (43.6 vs 60.6 for the mixture, Table 7), which the authors attribute to low diversity and overfitting.
- Critique
The paper reports improvements of 48.2% on HotpotQA and 21.7% on 2Wiki over ReARTeR "using the same Llama-3.1-8B-Instruct backbone". Recompute these from Table 2 and say which comparison actually produces them. What would a fair comparison of an RL-trained searcher against an MCTS test-time method need to control?
What a strong answer covers
- Qwen RL-Zero vs GPT-4o-mini ReARTeR on ACC_L: 0.750 / 0.506 ≈ 1.482 and 0.650 / 0.534 ≈ 1.217. The Llama rows give 0.746 / 0.506 ≈ 1.47 vs GPT ReARTeR, or 0.746 / 0.434 ≈ 1.72 vs Llama ReARTeR, so the text and table do not line up.
- The baselines use GPT-4o-mini or Llama under the ReARTeR framework in FlashRAG; R1-Searcher uses its own rollout format and up to 8 retrievals. Retrieval calls and tokens per question are not equalised.
- A fair comparison fixes the backbone, retriever, corpus and top-k, and reports accuracy at matched retrieval calls and generated tokens, with several seeds.
- ACC_L is judged by GPT-4o-mini, which is also one of the baseline generators; report judge agreement with humans or a second judge.
- Design
You want to train a no-SFT search agent from Qwen-base on your lab's scholarly corpus. Adapt R1-Searcher's data-selection recipe and two-stage reward. How do you define difficulty, how many Stage-1 questions do you need, which format rules do you enforce, and what would make you drop Stage 1?
What a strong answer covers
- Difficulty: roll out an instruct model with your retriever and count samples-to-first-correct; keep medium and hard questions, because easy ones give little signal and the paper found difficult questions helped (60.8 vs 58.8, Table 6).
- Stage 1 is small (350 questions in the paper) and only teaches tool-call syntax; stop when nearly all rollouts make a well-formed call.
- Format rules must forbid writing a documents block without a query and garbled output; these were the hacks the authors saw. Keep a small KL, since KL = 0 on the base model produced nonsense late in training.
- Drop Stage 1 if the base model already calls the tool from the prompt alone; the paper notes that skipping Stage 1 made Llama never retrieve, so test this per backbone.
- Use F1 or a judge for Stage 2 if your answers are longer than a title, and check answer length for CEM-style hacking.
- Connect
R1-Searcher and Search-R1 appeared within a week of each other. Make a two-column list of their design choices (reward, cold start, optimiser, retriever and corpus, training data, budget, evaluation metric). Which single difference would you test first to explain why R1-Searcher needed a retrieval reward and Search-R1 did not?
What a strong answer covers
- R1-Searcher: two-stage reward (retrieval + format, then F1 + format penalty), Reinforce++, BGE-large over KILT 2019 Wikipedia, 8,148 selected HotpotQA + 2Wiki questions, up to 8 retrievals, CEM and LLM-judge evaluation on 4 multi-hop sets.
- Search-R1: single EM reward, PPO or GRPO, E5 over 2018 Wikipedia with top-3, NQ + HotpotQA, B = 4, EM on 7 sets.
- Both: no SFT cold start, retrieved tokens masked, Qwen2.5-7B base among the backbones.
- First test: the backbone. R1-Searcher reports that skipping Stage 1 made Llama-3.1-8B-Instruct stop retrieving, while Search-R1 trained Qwen2.5 without any retrieval reward. Run Stage-2-only training on Qwen base and on Llama with the same prompt, retriever and data to see whether calls still emerge.