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

VinePPO:在大语言模型强化学习训练中改进信用分配

VinePPO: Refining Credit Assignment in RL Training of LLMs

Mila(米拉研究所);Microsoft Research(微软研究院);McGill University(麦吉尔大学)

Amirhossein Kazemnejad, Milad Aghajohari, Eva Portelance, Alessandro Sordoni, Siva Reddy, Aaron Courville, Nicolas Le Roux

AI总结:

本文提出 VinePPO 方法,通过蒙特卡洛无偏估计改进大语言模型强化学习中的信用分配,在 MATH 和 GSM8K 上以更少时间超越 PPO 并提升泛化性能。

摘要:

大语言模型(LLMs)越来越多地被应用于复杂推理任务,这些任务需要在获得任何奖励之前执行若干复杂步骤。恰当地将信用分配给这些步骤对于提升模型性能至关重要。近端策略优化(PPO)是一种常用于大语言模型微调的强化学习(RL)算法,它采用价值网络来处理信用分配问题。然而,近期的一些方法在不使用价值网络的情况下也取得了很强的结果,这引发了关于价值网络在实际中有效性的疑问。在本工作中,我们系统地评估了价值网络的有效性,并揭示了它们在推理密集型大语言模型任务中的显著缺陷,表明它们常常对期望回报产生较差的估计,并且在比较备选步骤时几乎不优于随机基线。这引出了我们的关键问题:改进的信用分配能否增强大语言模型的强化学习训练?为了解决这一问题,我们提出了 VinePPO,这是一种直接的方法,利用语言环境的灵活性来计算基于蒙特卡洛的无偏估计。我们的方法在 MATH 和 GSM8K 数据集上以更少的实际运行时间(最高达 3.0 倍)一致地优于 PPO 和其他基线方法。至关重要的是,它在给定的训练准确率下取得了更高的测试准确率,从每个样本中捕获到更多的泛化信号。这些结果强调了在大语言模型强化学习训练中准确信用分配的重要性。

英文摘要:

Large language models (LLMs) are increasingly applied to complex reasoning tasks that require executing several complex steps before receiving any reward. Properly assigning credit to these steps is essential for enhancing model performance. Proximal Policy Optimization (PPO), a common reinforcement learning (RL) algorithm used for LLM finetuning, employs value networks to tackle credit assignment. However, recent approaches achieve strong results without it, raising questions about the efficacy of value networks in practice. In this work, we systematically evaluate the efficacy of value networks and reveal their significant shortcomings in reasoning-heavy LLM tasks, showing that they often produce poor estimate of expected return and barely outperform a random baseline when comparing alternative steps. This motivates our key question: Can improved credit assignment enhance RL training for LLMs? To address this, we propose VinePPO, a straightforward approach that leverages the flexibility of language environments to compute unbiased Monte Carlo-based estimates. Our method consistently outperforms PPO and other baselines across MATH and GSM8K datasets in less wall-clock time (up to 3.0x). Crucially, it achieves higher test accuracy for a given training accuracy, capturing more generalization signal per sample. These results emphasize the importance of accurate credit assignment in RL training of LLM.

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

↑