arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.04736cs.AIcs.CLcs.LG
收藏

用于推理与工具使用的合成数据生成与多步强化学习

Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Use

Department of Computer Science Stanford University(计算机科学系 斯坦福大学)

Anna Goldie, Azalia Mirhoseini, Hao Zhou, Irene Cai, Christopher D. Manning

AI总结:

针对大型语言模型在复杂推理与智能体任务中的多步交互需求,提出逐步强化学习(SWiRL)方法,通过迭代生成多步推理与工具使用数据并进行子轨迹分解、过滤与优化,显著提升了多步问答及数学推理任务的准确率,并展现出良好的跨任务泛化能力。

摘要:

强化学习已被证明能提升大型语言模型的性能。然而,像RLHF或RLAIF这样的传统方法将该问题视为单步处理。随着研究重点转向更复杂的推理与智能体任务,语言模型必须在生成解决方案前,进行多步的文本生成、推理和环境交互。我们提出了一种针对多步优化场景的合成数据生成与RL方法。这种方法被称为逐步强化学习(SWiRL),它迭代地生成多步推理与工具使用数据,并从这些数据中学习。它采用简单的逐步分解,将每条多步轨迹分解为对应原始模型每个动作的多条子轨迹。随后,对这些子轨迹应用合成数据过滤和RL优化。我们在多个多步工具使用、问答和数学推理任务上评估了SWiRL。实验表明,SWiRL在GSM8K、HotPotQA、CofCA、MuSiQue和BeerQA上的相对准确率分别比基线方法提升了21.5%、12.3%、14.8%、11.1%和15.3%。令人兴奋的是,该方法展现出跨任务的泛化能力:例如,仅在HotPotQA(文本问答)上训练,就能使GSM8K(数学数据集)的零样本性能相对提升16.9%。

英文摘要:

Reinforcement learning has been shown to improve the performance of large language models. However, traditional approaches like RLHF or RLAIF treat the problem as single-step. As focus shifts toward more complex reasoning and agentic tasks, language models must take multiple steps of text generation, reasoning and environment interaction before generating a solution. We propose a synthetic data generation and RL methodology targeting multi-step optimization scenarios. This approach, called Step-Wise Reinforcement Learning (SWiRL), iteratively generates multi-step reasoning and tool use data, and then learns from that data. It employs a simple step-wise decomposition that breaks each multi-step trajectory into multiple sub-trajectories corresponding to each action by the original model. It then applies synthetic data filtering and RL optimization on these sub-trajectories. We evaluated SWiRL on a number of multi-step tool use, question answering, and mathematical reasoning tasks. Our experiments show that SWiRL outperforms baseline approaches by 21.5%, 12.3%, 14.8%, 11.1%, and 15.3% in relative accuracy on GSM8K, HotPotQA, CofCA, MuSiQue, and BeerQA, respectively. Excitingly, the approach exhibits generalization across tasks: for example, training only on HotPotQA (text question-answering) improves zero-shot performance on GSM8K (a math dataset) by a relative 16.9%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑