Skip to content

ZeroSearch: Incentivize the Search Capability of LLMs without Searching

optionalcorefrontierpaperrubric 10/122025 · ~45 min

Hao Sun, Zile Qiao, Jiayan Guo, …, Jingren Zhou

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)

Status

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.

The RL objective is the usual KL-regularised one, but the rollout depends on a frozen simulation LLM πψ\pi_\psi instead of a retriever:

max⁡πθ Ex∼D, y∼πθ(⋅∣x;πψ)[r(x,y)]−β DKL[πθ(y∣x;πψ) ∥ πref(y∣x;πψ)].\max_{\pi_\theta}\ \mathbb{E}_{x\sim\mathcal{D},\,y\sim\pi_\theta(\cdot\mid x;\pi_\psi)}\big[r(x,y)\big]-\beta\,\mathrm{D}_{\mathrm{KL}}\big[\pi_\theta(y\mid x;\pi_\psi)\,\|\,\pi_{\text{ref}}(y\mid x;\pi_\psi)\big].

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 ii of mm, the simulator is asked for noisy documents with probability

pi=ps+b i/m−1b−1 (pe−ps),b=4.p_i = p_s + \frac{b^{\,i/m}-1}{b-1}\,(p_e-p_s),\qquad b=4 .

For Qwen-2.5-7B, ps=0p_s=0 and pe=0.75p_e=0.75, so pp 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.

ZeroSearch: an LLM simulates the search engine during RL training, with a curriculum that raises the share of noisy documents Top left: the policy model writes think and search segments. Its query goes to the simulation LLM, a fine-tuned Qwen-2.5-14B-Instruct whose prompt contains the query, the training question, the gold answer and the keyword useful or noisy. The simulator returns five documents of about 30 words, which are inserted into the rollout and masked out of the loss. Top right: a plot of the probability of asking for noisy documents against the fraction of training completed. With the default base of 4 it rises slowly and then quickly, from 0 to 0.75 for Qwen-2.5-7B, reaching 0.25 halfway through training. Bottom: during training there are no search API calls; the reward is answer F1 with no format reward, and the default optimiser is REINFORCE with five samples per prompt. At evaluation every method uses real Google search through SerpAPI with the top five results. Policy (trained) think ... search: query q information: 5 docs (masked from loss) think ... answer reward: F1 vs gold q docs Simulation LLM (frozen) SFT Qwen-2.5-14B-Instruct prompt holds: query q, training question, gold answer, and the word useful or noisy noisy with probability p_i Curriculum p_i 0.25 0.75 step i / m Training: no search API calls data: NQ + HotpotQA training sets REINFORCE (default), 5 samples per prompt no format reward; F1 because EM was hacked with over-long answers Evaluation: real web search every method uses Google via SerpAPI top-5 results, EM on 7 QA datasets the simulator and the gold answer are not available at test time
Original sketch. During training the policy's queries go to a fine-tuned simulation LLM that also sees the question and gold answer; a convex schedule raises the probability of noisy documents. Evaluation uses Google via SerpAPI. Values from §3 and Appendix F; the curve is drawn for Qwen-2.5-7B.

Appendix E (Table 9) shows this interaction, paraphrased. Question: What is the place of birth of Clara Novello’s father? Gold: London, England.

StepWho writes itContent
1policy<search> place of birth of Clara Novello’s father
2search engine, maskedfive snippets; one identifies her as Vincent Novello’s eldest daughter, none gives his birthplace
3policy<think>: the father is Vincent Novello; his birthplace is not stated, so search for it.
4policy<search> place of birth of Vincent Novello
5search engine, maskedfive snippets, several stating he was born in London
6policy<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.

Search-R1DeepResearcherZeroSearch
Training environmentlocal E5 index, 2018 Wikipedialive web search and browsingfine-tuned LLM writing documents
Evaluation environmentsame local indexlive webGoogle via SerpAPI
Document difficultywhatever the retriever returnswhatever the web returnscontrolled by pip_i
RewardEMF1F1 (EM was hacked)
API cost during trainingnoneper querynone (GPU for the simulator)

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.

PolicyZeroSearch base / instructSearch-R1 base / instructRAG
Qwen-2.5-7B40.93 / 39.0839.51 / 38.1725.51
Qwen-2.5-3B34.47 / 31.7032.81 / 28.1325.09
Llama-3.2-3B36.07 / 30.9834.21 / 30.4825.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.
  • 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.

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.

  1. 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".
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Done with this page?

Status