Reproduce “ZeroSearch: Incentivize the Search Capability of LLMs without Searching” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Hao Sun, Zile Qiao, Jiayan Guo, Xuanbo Fan, Yingyan Hou, Yong Jiang, Pengjun Xie, Yan Zhang and 2 more

ZEROSEARCH introduces a reinforcement learning framework that enables Large Language Models (LLMs) to acquire search capabilities by simulating the search environment with another LLM, thereby eliminating the need for real-world search engines during training. This approach leads to smoother reward improvement during training and significantly reduces training costs, showing a cost of $70.8 for GPU-based simulation versus $586.7 for commercial search APIs for comparable training effort.

Key insights

  • LLMs can effectively act as controllable and cost-efficient simulators for complex external systems like search engines, mitigating issues of unpredictable document quality and prohibitive API costs during training.
  • Structured multi-turn interaction templates combined with a curriculum rollout strategy that gradually introduces noisy information enable more stable and effective learning for LLMs to acquire robust search capabilities.
  • Loss masking of externally generated document tokens is crucial for training stability in RL-based search augmentation, preventing gradients from being computed on uncontrollable inputs from the simulation LLM.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.