ZeroSearch: Incentivize the Search Capability of LLMs without Searching
Read first: Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning · REINFORCE and the Policy-Gradient Theorem (Williams 1992; Sutton et al. 1999)
TL;DR. ZeroSearch trains a Search-R1-style agent without calling a search engine during RL. A fine-tuned LLM plays the search engine: given the query, the training question and its gold answer, it writes five short documents that are either useful or noisy. A curriculum raises the chance of noisy documents as training proceeds. The trained policy is then evaluated with real Google search, where it matches or beats the same recipe trained on Google.
Why it matters now. Training on a live web API costs money per query and returns results that change over time. Training on a local index is free but narrow. ZeroSearch shows a third option, a simulated environment, and gives the cost numbers to compare them. “Without searching” in the title means no real search calls during training; evaluation uses Google through SerpAPI. For an IR reader, the simulator is a generative stand-in for the retriever, and its prompt design decides how much the training signal rewards good queries.
Key idea
Section titled “Key idea”The RL objective is the usual KL-regularised one, but the rollout depends on a frozen simulation LLM instead of a retriever:
Building the simulator (§3.3). The authors prompt an LLM to answer questions with a real search engine, collect the query–document pairs, and use an LLM judge to label each document useful (it contains enough to answer) or noisy. They then fine-tune Qwen-2.5 instruct models (3B, 7B or 14B) to produce five documents of about 30 words in either mode. The prompt names the mode with one word, and also includes the training question and its gold answer “to broaden the knowledge boundary” of the simulator.
Curriculum rollout (§3.4). At training step of , the simulator is asked for noisy documents with probability
For Qwen-2.5-7B, and , so is about 0.10 a quarter of the way through, 0.25 at the midpoint and 0.46 at three quarters. For Qwen-2.5-3B the range is 0 to 0.25 and for Llama-3.2-3B it is 0.25 to 0.5 (Appendix F).
Reward and optimiser (§3.5–3.6). The reward is word-level F1 between the answer and the gold answer. EM was tried first and was hacked: the policy wrote long answers to raise the chance of containing the gold string. There is no format reward. Document tokens are masked from the loss. The default optimiser is REINFORCE with five samples per prompt; GRPO and PPO also work.
A worked trajectory
Section titled “A worked trajectory”Appendix E (Table 9) shows this interaction, paraphrased. Question: What is the place of birth of Clara Novello’s father? Gold: London, England.
| Step | Who writes it | Content |
|---|---|---|
| 1 | policy | <search> place of birth of Clara Novello’s father |
| 2 | search engine, masked | five snippets; one identifies her as Vincent Novello’s eldest daughter, none gives his birthplace |
| 3 | policy | <think>: the father is Vincent Novello; his birthplace is not stated, so search for it. |
| 4 | policy | <search> place of birth of Vincent Novello |
| 5 | search engine, masked | five snippets, several stating he was born in London |
| 6 | policy | <answer> London, England → F1 = 1 |
This is the bridge-entity pattern IR people know from multi-hop QA: the first query fails to find the target fact but surfaces the bridge entity, and the second query targets it. The paper does not say whether these snippets came from the simulator or from Google.
What changed versus the previous methods
Section titled “What changed versus the previous methods”| Search-R1 | DeepResearcher | ZeroSearch | |
|---|---|---|---|
| Training environment | local E5 index, 2018 Wikipedia | live web search and browsing | fine-tuned LLM writing documents |
| Evaluation environment | same local index | live web | Google via SerpAPI |
| Document difficulty | whatever the retriever returns | whatever the web returns | controlled by |
| Reward | EM | F1 | F1 (EM was hacked) |
| API cost during training | none | per query | none (GPU for the simulator) |
Key results
Section titled “Key results”Paper-reported numbers (arXiv v3). EM averaged over NQ, TriviaQA, PopQA, HotpotQA, 2Wiki, MuSiQue and Bamboogle, with Google top-5 results at evaluation for every method. Training data is the NQ and HotpotQA training sets, as in Search-R1. The “Search-R1” rows are the authors’ retraining with Google search during training, the F1 reward and REINFORCE, not the original checkpoints.
| Policy | ZeroSearch base / instruct | Search-R1 base / instruct | RAG |
|---|---|---|---|
| Qwen-2.5-7B | 40.93 / 39.08 | 39.51 / 38.17 | 25.51 |
| Qwen-2.5-3B | 34.47 / 31.70 | 32.81 / 28.13 | 25.09 |
| Llama-3.2-3B | 36.07 / 30.98 | 34.21 / 30.48 | 25.11 |
- Main table (Table 3). ZeroSearch beats the retrained Search-R1 of the same type (base or instruct) on all three backbones. The 7B instruct ZeroSearch (39.08) is below the 7B base Search-R1 (39.51), and per-dataset wins are mixed (e.g. Search-R1-inst is higher on PopQA at 7B).
- Simulator choice (Table 4, Qwen-2.5-3B-Base policy). Untrained model 8.82. Prompt-only simulators 3B / 7B / 14B: 29.44 / 31.39 / 31.50. Fine-tuned simulators: 30.47 / 33.53 / 34.47. Training on Google: 32.81.
- Optimiser (Table 5). REINFORCE 34.47, GRPO 33.17, PPO 32.67.
- Curriculum (Table 6). Curriculum vs fixed p = 0.5: 34.47 vs 32.59 (Qwen-3B), 36.07 vs 34.84 (Llama-3B). As the derive question shows, the control also sees far more noise overall.
- Masking (Table 7, Llama-3.2-3B). 36.07 with document-token masking vs 34.53 without.
- Cost (Table 8, Qwen-2.5-7B, batch 64 × 5 rollouts × 200 steps ≈ 64,000 queries, about 12 hours). Simulator GPU cost 17.7, 35.4 and 70.8 dollars for 3B, 7B and 14B (1, 2 and 4 A100s); Google via SerpAPI 586.7 dollars. The query count equals the number of rollouts, so it assumes about one search per rollout, and the simulator GPUs sit idle during policy updates.
- Training dynamics (§5.3, Llama-3.2-3B-Base). Interaction turns first drop (the policy stops making malformed calls), then rise with reward; the reward plateaus while the curriculum keeps making documents noisier.
Limitations & open questions
Section titled “Limitations & open questions”- Gold answer in the simulator prompt. Training documents can contain the answer regardless of query quality. The paper does not ablate this choice.
- Curriculum ablation is confounded with the total amount of noise (see the derive and ablation questions).
- Small and uneven test sets. Scores are consistent with 500-question samples for six datasets and, for the RL rows, 72 Bamboogle questions (prompted baselines appear to use all 125). One run per setting, no intervals.
- Easy tasks for a simulator. Short-answer Wikipedia-style QA is where an LLM’s parametric knowledge is strongest. Long-tail or recent facts, and BrowseComp-style questions, are untested.
- No comparison with a free local index. The cost argument is against a paid web API; a Search-R1-style local retriever also has zero API cost.
- Infrastructure. The authors note the simulator needs GPU servers that are under-used during policy updates; they suggest sharing one server across training jobs.
Connections
Section titled “Connections”- Recipe it builds on: Search-R1 (template, data, masking); REINFORCE is the default optimiser.
- Opposite choice: DeepResearcher trains on the live web. The comparison hub lines up training environments for every RL search agent.
- Reward hacking: the EM-to-F1 switch is a small instance of the length correlations pattern; the Search-R1 follow-ups page shows F1 failing in a different way.
- Evaluation environments: fixed vs live search and live-web reproducibility discuss why Google-based evaluation is hard to repeat; BrowseComp-Plus is a fixed-corpus alternative.
- Curriculum ideas in RL training: RAGEN discusses how task difficulty and reward variance shape multi-turn agent training.
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
The noise probability follows p_i = p_s + (b^(i/m) − 1)/(b − 1) · (p_e − p_s) with b = 4. For Qwen-2.5-7B (p_s = 0, p_e = 0.75), compute p at 25%, 50% and 75% of training. Then compute the average noise probability over a whole run for Qwen-2.5-3B (p_s = 0, p_e = 0.25) and compare it with the "random" control in Table 6, which fixes p = 0.5.
What a strong answer covers
- At i/m = 0.25: (4^0.25 − 1)/3 ≈ 0.138, times 0.75 ≈ 0.10. At 0.5: (2 − 1)/3 = 0.333, so p = 0.25. At 0.75: (2.83 − 1)/3 ≈ 0.61, so p ≈ 0.46. At the end p = 0.75.
- The schedule is convex: noise stays low for most of training and rises late.
- Average of (4^x − 1)/3 over x in [0, 1] is (3/ln 4 − 1)/3 ≈ 0.388. For Qwen-3B the average noise probability is 0.25 × 0.388 ≈ 0.10; for Llama-3.2-3B (0.25 to 0.5) it is about 0.25 + 0.25 × 0.388 ≈ 0.35.
- The Table 6 control sees noisy documents half the time, about five times more often than the Qwen-3B curriculum run, so the comparison mixes "easy to hard ordering" with "much less noise overall".
- Mechanism
The simulator prompt contains the training question and its gold answer as well as the policy's query. Explain how this changes the credit a query receives during training compared with a real search engine, and why the trained policy can still work at test time with Google.
What a strong answer covers
- With a real engine, a bad query usually returns no answer-bearing document, so the reward for that rollout drops and the query gets negative credit.
- With the gold answer in the prompt, a "useful" simulated result can contain the answer even when the query is vague; the reward then credits a weak query. Only the curriculum's noisy draws, and the simulator's fidelity to the query, punish bad queries.
- This makes the training environment easier and more forgiving than real search, especially early when p is near 0; it is a form of privileged information given to the environment, not to the policy.
- At test time the policy is trained to write queries, read short documents and answer; the evaluation with Google shows this transfers on these QA sets, but the paper does not measure query quality directly (e.g. answer recall of the real top-5 per query).
- Diagnostic: score the same queries with Google and with the simulator in useful mode and compare answer-containing rates; a large gap measures the leak.
- What if…
Table 6 reports curriculum 34.47 vs random 32.59 (Qwen-2.5-3B-Base) and 36.07 vs 34.84 (Llama-3.2-3B-Base). Using your answer about average noise levels, design the ablation that would isolate the effect of ordering, and say what result would show the curriculum itself does not matter.
What a strong answer covers
- Hold the total noise budget fixed: compare the curriculum with (a) a constant p equal to the curriculum's average (about 0.10 for Qwen-3B), (b) the reverse schedule (hard to easy) with the same average, and (c) p = 0 throughout.
- Keep seeds, steps, simulator, data and optimiser fixed; report the seven-dataset average with several seeds because the gaps are about 1 to 2 points.
- If constant p at the matched average equals the curriculum, the gain came from less noise, not from ordering. If p = 0 is best, noise injection itself is not helping on these benchmarks.
- Also report per-dataset results: in Table 6 the Llama random run is higher on PopQA, 2Wiki and MuSiQue, so the average hides mixed effects.
- Critique
The abstract says a 14B simulator "even surpasses" the real search engine. Check what the comparison is (Table 4), how large the gap is in questions answered, and list what you would need before accepting that simulated training beats training on Google.
What a strong answer covers
- Table 4 uses Qwen-2.5-3B-Base as the policy: SFT-14B 34.47 vs Google 32.81 seven-dataset average EM, a 1.66-point gap; SFT-7B is 33.53 and prompt-only 14B is 31.50. The Google row is the paper's own Search-R1 retrained with the F1 reward and REINFORCE.
- Six datasets have scores that are multiples of 0.2 (consistent with 500-question samples), so one question is 0.2 points; Bamboogle RL scores are multiples of about 1.39 points (consistent with 72 questions), so a 2-question change moves Bamboogle by 2.8 points.
- Single run per configuration; no seeds or confidence intervals. The Google-trained run also faces live-web drift between training and evaluation.
- Needed: several seeds, full test sets or bootstrap intervals, the same number of training steps and queries for both arms, and a test on harder web tasks (e.g. BrowseComp-style) where a simulator that knows the answer is least realistic.
- Design
You want to train a search agent for a fixed corpus such as BrowseComp-Plus. You can use (a) a local retriever over the corpus, (b) a ZeroSearch-style simulator, or (c) a paid live search API. Using ZeroSearch's cost table and design, say which you would pick, what the simulator would need to be trustworthy, and what you would log.
What a strong answer covers
- For a fixed corpus, a local retriever (BM25 or dense) already has zero API cost, matches the test environment exactly, and has no answer leak; it is the natural default. ZeroSearch's cost comparison is against a paid web API, not against a local index.
- A simulator helps when the target is the open web (no local copy), when you want controllable difficulty, or when the API is rate-limited; Table 8 estimates about 587 dollars of SerpAPI calls vs about 18 to 71 dollars of GPU time for roughly 64,000 queries.
- If you simulate: do not give the gold answer to the simulator (or ablate it), train it on query-document pairs from the target engine, and check style and answer-rate statistics against real results.
- Log: searches per rollout, the share of rollouts that saw any useful document, reward split by noisy vs useful draws, and periodic evaluation on the real environment.
- Connect
Place ZeroSearch next to Search-R1 and DeepResearcher on the "training environment" axis. For each, name what the agent searches during training and at evaluation, and the main risk that environment brings.
What a strong answer covers
- Search-R1: a local E5 index over 2018 Wikipedia in both training and evaluation. Risk: the policy fits one retriever and corpus; cheap and reproducible.
- ZeroSearch: a fine-tuned LLM that writes documents (and knows the gold answer) during training; Google via SerpAPI at evaluation. Risk: sim-to-real gap and leaked answers; cheap per query.
- DeepResearcher: live web search and page browsing in both training and evaluation. Risk: cost, latency and non-stationary results that are hard to reproduce.
- A fixed web-scale corpus (as in BrowseComp-Plus) is a middle point: realistic documents, reproducible results, no API bill at evaluation.