ZeroSearch: Incentivize the Search Capability of LLMs without Searching
提出ZEROSEARCH,一种无需与真实搜索引擎交互,通过强化学习激励大型语言模型(LLM)搜索能力的框架。
更新于 2025-05-08。作者:Hao Sun、Zile Qiao、Jiayan Guo、Xuanbo Fan、Yingyan Hou、Yong Jiang、Pengjun Xie、Fei Huang、Yan Zhang。
中文摘要
有效的信息搜索对于提升大型语言模型(LLMs)的推理和生成能力至关重要。最近的研究探索了通过在现实环境中的实际搜索引擎交互使用强化学习(RL)来提高LLMs的搜索能力。虽然这些方法显示出有希望的结果,但它们面临两大挑战:(1)无法控制的文档质量:搜索引擎返回的文档质量往往不可预测,这会给训练过程引入噪声和波动。(2)高昂的API成本:RL训练需要频繁的轮次,可能涉及数十万次搜索请求,这导致了大量的API费用,严重限制了可扩展性。为了应对这些挑战,我们引入了ZeroSearch,这是一个强化学习框架,它通过不与真实搜索引擎交互来激励LLMs的搜索能力。我们的方法从轻量级的监督微调开始,将LLM转变为一个检索模块,能够根据查询生成相关和噪声文档。在RL训练期间,我们采用基于课程表的轮次策略,逐步降低生成文档的质量,通过逐步向模型展示越来越具有挑战性的检索场景,逐渐激发模型的推理能力。广泛的实验表明,ZeroSearch通过使用3B LLM作为检索模块,有效地激励了LLMs的搜索能力。令人瞩目地是,一个7B检索模块达到了与真实搜索引擎相当的性能,而一个14B检索模块甚至超过了它。此外,它很好地泛化到了各种参数大小的基调和指令调整模型,并且兼容广泛的RL算法。
英文摘要
Effective information searching is essential for enhancing the reasoning and generation capabilities of large language models (LLMs). Recent research has explored using reinforcement learning (RL) to improve LLMs' search capabilities by interacting with live search engines in real-world environments. While these approaches show promising results, they face two major challenges: (1) Uncontrolled Document Quality: The quality of documents returned by search engines is often unpredictable, introducing noise and instability into the training process. (2) Prohibitively High API Costs: RL training requires frequent rollouts, potentially involving hundreds of thousands of search requests, which incur substantial API expenses and severely constrain scalability. To address these challenges, we introduce ZeroSearch, a reinforcement learning framework that incentivizes the search capabilities of LLMs without interacting with real search engines. Our approach begins with lightweight supervised fine-tuning to transform the LLM into a retrieval module capable of generating both relevant and noisy documents in response to a query. During RL training, we employ a curriculum-based rollout strategy that incrementally degrades the quality of generated documents, progressively eliciting the model's reasoning ability by exposing it to increasingly challenging retrieval scenarios. Extensive experiments demonstrate that ZeroSearch effectively incentivizes the search capabilities of LLMs using a 3B LLM as the retrieval module. Remarkably, a 7B retrieval module achieves comparable performance to the real search engine, while a 14B retrieval module even surpasses it. Furthermore, it generalizes well across both base and instruction-tuned models of various parameter sizes and is compatible with a wide range of RL algorithms.
解读
一句话总结
提出ZEROSEARCH,一种无需与真实搜索引擎交互,通过强化学习激励大型语言模型(LLM)搜索能力的框架。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型(LLM)在推理和生成能力方面表现出色,但其知识是静态的,容易产生幻觉内容或过时信息,影响其在实际应用中的可靠性。
- 现有方案不足:传统方法如检索增强生成(RAG)和强化学习(RL)需要与真实搜索引擎交互,存在文档质量不可控和API成本高昂的问题。
- 研究目标:提出ZEROSEARCH,通过轻量级监督微调和课程式滚动策略,激励LLM的搜索能力,同时避免文档质量不可控和API成本高昂的问题。
问题2:论文的核心创新点是什么?
- 技术创新:利用LLM模拟真实搜索引擎,通过轻量级监督微调将LLM转化为能够生成相关和噪声文档的检索模块。
- 方法改进:引入课程式滚动策略,逐渐降低生成文档的质量,逐步激发模型的推理能力。
- 优势:无需与真实搜索引擎交互,避免了文档质量不可控和API成本高昂的问题,同时具有较好的可扩展性和通用性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个问答数据集上对ZEROSEARCH进行评估,与基线方法进行对比。
- 性能提升:ZEROSEARCH在多个数据集上均优于基线方法,甚至在某些情况下超过了真实搜索引擎。
- 对比结果:与使用真实搜索引擎的Search-R1相比,ZEROSEARCH在性能上具有优势。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于需要LLM进行信息检索和推理的领域,如问答系统、知识图谱构建等。
- 实施建议:使用GPU服务器部署模拟搜索引擎,根据实际需求选择不同参数规模的LLM。
- 局限与展望:目前需要GPU服务器,未来可探索更高效的模拟搜索引擎和更轻量级的模型。