NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ZeroSearch: Incentivize the Search Capability of LLMs without Searching

Hao Sun, Zile Qiao, Jiayan Guo, Xuanbo Fan, Yingyan Hou, Yong Jiang, Pengjun Xie, Yan Zhang, Fei Huang, Jingren Zhou · DOI

Abstract

Large Language Models (LLMs) often struggle with hallucinations and static knowledge. While Retrieval-Augmented Generation (RAG) and Reinforcement Learning (RL) can mitigate these issues, training search capabilities typically incurs high API costs and suffers from environmental instability. We present ZeroSearch, a framework that trains LLMs to search effectively using a fine-tuned "simulator" LLM instead of real-world search APIs. By implementing a curriculum-based difficulty ramp and specific reward designs, ZeroSearch achieves performance exceeding real-search training at a fraction of the cost.

1. Introduction

While LLMs are powerful, their internal knowledge is static and prone to "hallucinations" regarding recent or niche facts. Retrieval-Augmented Generation (RAG) addresses this by allowing models to look up information. However, teaching a model how to search—deciding when to search, what to query, and how to filter results—is best done via Reinforcement Learning (RL).

Training search capabilities via RL typically faces two major challenges:

  1. Uncontrolled Document Quality: Real-world search engines are unpredictable. Returning noisy or irrelevant results early in training can confuse the model, leading to unstable learning curves.
  2. Prohibitive Costs: RL requires hundreds of thousands of "rollouts." At scale, commercial search API fees (like Google or Bing) become a massive financial and architectural bottleneck.

2. Methodology

The core innovation of ZeroSearch is the Search Simulation LLM. Instead of hitting a live API, the policy model interacts with a secondary LLM specifically tuned to act like a search engine.

ZeroSearch Framework Architecture

2.1 Search Simulation Tuning (SFT)

The authors performed lightweight supervised fine-tuning on a simulator model (e.g., Qwen-2.5-14B) using real search trajectories. The simulator is trained to generate two types of responses: Useful (containing the answer) and Noisy (irrelevant).

2.2 Curriculum Rollout Strategy

To ensure stability, ZeroSearch employs a curriculum-based ramp. At the start of training, the simulator provides mostly "Useful" documents, allowing the policy model to learn basic formatting and reasoning. As training progresses, the frequency of "Noisy" documents increases, forcing the model to develop robust reasoning and multi-turn search strategies.

2.3 Loss Masking and Reward Design

To prevent the policy model from learning the search result distribution, gradients are only computed for tokens generated by the policy model. Furthermore, an F1 score-based reward is used instead of binary exact matches to balance precision and recall, discouraging "reward hacking" behaviors.

3. Experimental Results

ZeroSearch was evaluated across seven benchmarks, including single-hop (NQ, TriviaQA, PopQA) and multi-hop QA (HotpotQA, 2WikiMultiHopQA, Musique, Bamboogle).

Training Reward and Interaction Turns Comparison

3.1 Performance and Stability

A policy model trained with a 14B simulator outperformed models trained with real Google Search APIs (Search-R1). As shown in Figure 3, ZeroSearch demonstrates competitive training rewards compared to real-search baselines. The study on interaction turns indicates that the model learns to adapt its search depth based on the task difficulty.

3.2 Cost Efficiency

For a standard training run of approximately 64k requests, the Google Search API cost would be ~$586. ZeroSearch reduces this to ~$17–$70 in GPU rental fees, representing a 10x to 30x reduction in cost.

4. Discussion and Conclusion

ZeroSearch demonstrates that high-capacity LLMs can serve as effective "world models" for tool-use training. By simulating the environment, researchers can implement controllable difficulty ramps that are impossible with live APIs. While the method requires significant local VRAM to host multiple models, it shifts the bottleneck from external API credits to internal compute throughput.

Future work includes expanding simulation to other tool-use environments, such as code interpreters or database systems, and addressing the knowledge boundary limitations of the simulator LLM.

Summary updated

BibTeX
@misc{sun2025zerosearch,
  author = {Hao Sun and Zile Qiao and Jiayan Guo and Xuanbo Fan and Yingyan Hou and Yong Jiang and Pengjun Xie and Yan Zhang and Fei Huang and Jingren Zhou},
  title = {{ZeroSearch: Incentivize the Search Capability of LLMs without Searching}},
  year = {2025},
  eprint = {2505.04588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.04588},
}
Figure