arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.16145cs.LGcs.AIcs.CL
收藏

用于大语言模型多步推理的离线强化学习

Offline Reinforcement Learning for LLM Multi-Step Reasoning

UC San Diego(加州大学圣迭戈分校);Salesforce Research(Salesforce研究院);Northwestern University(西北大学);Tsinghua University(清华大学)

Huaijie Wang, Shibo Hao, Hanze Dong, Shenao Zhang, Yilin Bao, Ziran Yang, Yi Wu

AI总结:

本文提出离线推理优化方法OREO,通过优化软贝尔曼方程联合学习策略与价值函数,以解决DPO在多步推理中依赖成对数据和信用分配困难的问题,并在数学推理与具身控制任务上超越现有方法。

摘要:

利用离线强化学习(RL)提升大语言模型(LLMs)的多步推理能力,对于快速适应复杂任务至关重要。虽然直接偏好优化(DPO)在对齐大语言模型与人类偏好方面展现出潜力,但它不太适用于多步推理任务,原因在于:(1)DPO依赖成对偏好数据,而这类数据在多步推理任务中并不容易获得;(2)它对所有token一视同仁,导致在奖励稀疏的多步推理任务中难以有效进行信用分配。本文提出OREO(Offline Reasoning Optimization,离线推理优化),一种用于增强大语言模型多步推理的离线强化学习方法。基于先前最大熵强化学习工作的洞见,该方法通过优化软贝尔曼方程(soft Bellman Equation)联合学习策略模型和价值函数。我们从原理上证明,该方法减少了对成对数据收集的需求,并实现了更好的信用分配。实验表明,OREO在多步推理基准上超越了现有离线学习方法,包括数学推理任务(GSM8K、MATH)和具身智能体控制(ALFWorld)。当有额外资源可用时,该方法可扩展为多轮迭代框架。此外,学习到的价值函数可被用于免费引导树搜索,从而在测试阶段进一步提升性能。

英文摘要:

Improving the multi-step reasoning ability of large language models (LLMs) with offline reinforcement learning (RL) is essential for quickly adapting them to complex tasks. While Direct Preference Optimization (DPO) has shown promise in aligning LLMs with human preferences, it is less suitable for multi-step reasoning tasks because (1) DPO relies on paired preference data, which is not readily available for multi-step reasoning tasks, and (2) it treats all tokens uniformly, making it ineffective for credit assignment in multi-step reasoning tasks, which often come with sparse reward. In this work, we propose OREO (Offline Reasoning Optimization), an offline RL method for enhancing LLM multi-step reasoning. Building on insights from previous works of maximum entropy reinforcement learning, it jointly learns a policy model and value function by optimizing the soft Bellman Equation. We show in principle that it reduces the need to collect pairwise data and enables better credit assignment. Empirically, OREO surpasses existing offline learning methods on multi-step reasoning benchmarks, including mathematical reasoning tasks (GSM8K, MATH) and embodied agent control (ALFWorld). The approach can be extended to a multi-iteration framework when additional resources are available. Furthermore, the learned value function can be leveraged to guide the tree search for free, which can further boost performance during test time.

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

↑