arXiv:2505.15117cs.CLcs.AI2025-05被引 39

用强化学习训练能推理与搜索结合的智能体,关键设计影响最终效果。

An Empirical Study on Reinforcement Learning for Reasoning-Search Interleaved LLM Agents

  • 通过实验对比不同奖励设计、模型规模和搜索引擎的影响。
  • 格式化奖励能提升最终表现,中间检索奖励作用有限。
  • 模型类型和搜索引擎选择对训练稳定性和推理鲁棒性至关重要。

强化学习(RL)在训练具备复杂推理能力的大语言模型(LLMs)方面展现出巨大潜力,尤其在现实世界问题求解中。近期,RL被用于构建能够融合推理与搜索引擎使用的先进LLM搜索代理。尽管该方向前景广阔,但其最优设计仍不明确。本文系统研究了三个关键因素:(1)奖励函数设计,(2)底层LLM的选择与特性,(3)搜索引擎在RL过程中的作用。实验发现:格式化奖励显著提升最终性能,而中间检索奖励影响较小;模型规模及初始化方式(通用型与推理专用型)对RL结果有显著影响;搜索引擎的选择直接影响训练动态和推理阶段的鲁棒性。这些发现为实际部署基于LLM的搜索代理提供了重要指导。代码已开源:https://github.com/PeterGriffinJin/Search-R1。

原文摘要 · Abstract (English)

Reinforcement learning (RL) has demonstrated strong potential in training large language models (LLMs) capable of complex reasoning for real-world problem solving. More recently, RL has been leveraged to create sophisticated LLM-based search agents that adeptly combine reasoning with search engine use. While the use of RL for training search agents is promising, the optimal design of such agents remains not fully understood. In particular, key factors -- such as (1) reward formulation, (2) the choice and characteristics of the underlying LLM, and (3) the role of the search engine in the RL process -- require further investigation. In this work, we conduct comprehensive empirical studies to systematically investigate these and offer actionable insights. We highlight several key findings: format rewards are effective in improving final performance, whereas intermediate retrieval rewards have limited impact; the scale and initialization of the LLM (general-purpose vs. reasoning-specialized) significantly influence RL outcomes; and the choice of search engine plays a critical role in shaping RL training dynamics and the robustness of the trained agent during inference. These establish important guidelines for successfully building and deploying LLM-based search agents in real-world applications. Code is available at https://github.com/PeterGriffinJin/Search-R1.

强化学习推理搜索大模型应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。