2025-05-30 · 进阶 · 机器学习 · 自然语言处理

On-Policy RL with Optimal Reward Baseline

本文提出了一种名为OPO的新型强化学习算法,通过精确的在线策略训练和最优奖励基线,实现了在大型语言模型对齐和推理任务中的稳定和有效学习。

更新于 2025-06-03。作者:Yaru Hao、Li Dong、Xun Wu、Shaohan Huang、Zewen Chi、Furu Wei。

中文摘要

强化学习算法对于将大型语言模型与人类偏好对齐以及增强其推理能力至关重要。然而,当前的强化学习算法往往由于策略约束宽松而存在训练不稳定的问题,以及由于辅助模型而导致的计算效率低下。在本研究中,我们提出了基于策略的强化学习最优奖励基线(OPO),这是一种新颖且简化的强化学习算法,旨在解决这些挑战。OPO强调了精确的基于策略训练的重要性,这在经验上稳定了训练过程并增强了探索。此外,OPO引入了最优奖励基线,该基线从理论上最小化了梯度方差。我们在数学推理基准测试中评估了OPO。结果表明,它在无需额外模型或正则化项的情况下,表现出卓越的性能和训练稳定性。此外,OPO实现了更低的策略偏移和更高的输出熵,鼓励更多样化和更少重复的响应。这些结果突显了OPO在大型语言模型对齐和推理任务中稳定且有效的强化学习方面的前景。实现代码可在以下链接获取:https://github.com/microsoft/LMOps/tree/main/opo。

英文摘要

Reinforcement learning algorithms are fundamental to align large language models with human preferences and to enhance their reasoning capabilities. However, current reinforcement learning algorithms often suffer from training instability due to loose on-policy constraints and computational inefficiency due to auxiliary models. In this work, we propose On-Policy RL with Optimal reward baseline (OPO), a novel and simplified reinforcement learning algorithm designed to address these challenges. OPO emphasizes the importance of exact on-policy training, which empirically stabilizes the training process and enhances exploration. Moreover, OPO introduces the optimal reward baseline that theoretically minimizes gradient variance. We evaluate OPO on mathematical reasoning benchmarks. The results demonstrate its superior performance and training stability without additional models or regularization terms. Furthermore, OPO achieves lower policy shifts and higher output entropy, encouraging more diverse and less repetitive responses. These results highlight OPO as a promising direction for stable and effective reinforcement learning in large language model alignment and reasoning tasks. The implementation is provided at https://github.com/microsoft/LMOps/tree/main/opo.

解读

一句话总结

本文提出了一种名为OPO的新型强化学习算法,通过精确的在线策略训练和最优奖励基线,实现了在大型语言模型对齐和推理任务中的稳定和有效学习。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt