arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18279cs.AI
收藏

使用直接优势策略优化提升大型语言模型的多步推理能力

Improving Multi-Step Reasoning Abilities of Large Language Models with Direct Advantage Policy Optimization

Skywork AI, Kunlun Inc.(昆仑万维天工大模型);Fudan University(复旦大学)

Jiacai Liu, Chaojie Wang, Chris Yuhao Liu, Liang Zeng, Rui Yan, Yiwen Sun, Yang Liu, Yahui Zhou

AI总结:

针对强化学习提升大语言模型推理时的稀疏奖励和训练不稳定问题,提出步级离线强化学习算法DAPO,通过critic函数预测每步推理准确性生成密集信号,并独立训练Actor和Critic组件,有效提升了模型在数学和代码基准上的能力。

摘要:

强化学习(RL)在提升大型语言模型(LLMs)推理能力方面的作用正变得日益显著。尽管强化学习在许多场景中取得了成功,但在提升LLMs的推理能力方面仍存在许多挑战。一个挑战是稀疏奖励,这使得强化学习的优化变得困难,并且需要大量的数据样本。另一个挑战源于强化学习固有的不稳定性,特别是在使用Actor-Critic(AC)方法推导最优策略时,这通常会导致不稳定的训练过程。为了解决这些问题,我们引入了直接优势策略优化(DAPO),一种新颖的步级离线强化学习算法。与仅依赖结果奖励来优化策略的标准对齐方法(如DPO)不同,DAPO采用一个critic函数来预测每一步的推理准确性,从而生成密集的信号以改进生成策略。此外,DAPO中的Actor和Critic组件是独立训练的,避免了在像PPO这样的标准AC算法中观察到的共同训练不稳定性。我们在数学和代码查询数据集上训练了DAPO,然后在多个基准上评估其性能。我们的结果表明,DAPO能够有效增强SFT模型和RL模型在数学和代码方面的能力,证明了DAPO的有效性。

英文摘要:

The role of reinforcement learning (RL) in enhancing the reasoning of large language models (LLMs) is becoming increasingly significant. Despite the success of RL in many scenarios, there are still many challenges in improving the reasoning of LLMs. One challenge is the sparse reward, which makes optimization difficult for RL and necessitates a large amount of data samples. Another challenge stems from the inherent instability of RL, particularly when using Actor-Critic (AC) methods to derive optimal policies, which often leads to unstable training processes. To address these issues, we introduce Direct Advantage Policy Optimization (DAPO), an novel step-level offline RL algorithm. Unlike standard alignment that rely solely outcome rewards to optimize policies (such as DPO), DAPO employs a critic function to predict the reasoning accuracy at each step, thereby generating dense signals to refine the generation strategy. Additionally, the Actor and Critic components in DAPO are trained independently, avoiding the co-training instability observed in standard AC algorithms like PPO. We train DAPO on mathematical and code query datasets and then evaluate its performance on multiple benchmarks. Our results show that DAPO can effectively enhance the mathematical and code capabilities on both SFT models and RL models, demonstrating the effectiveness of DAPO.

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

↑