Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning
该论文提出了一种名为OREAL的强化学习框架,旨在通过基于结果的奖励强化学习来探索数学推理任务的性能极限,并取得了显著的准确率提升。
更新于 2025-02-11。作者:Chengqi Lyu、Songyang Gao、Yuzhe Gu、Wenwei Zhang、Jianfei Gao、Kuikun Liu、Ziyi Wang、Shuaibin Li、Qian Zhao、Haian Huang、Weihan Cao、Jiangning Liu、Hongwei Liu、Junnan Liu、Songyang Zhang、Dahua Lin、Kai Chen。
中文摘要
推理能力,尤其是解决复杂数学问题的能力,是普通智能的关键组成部分。近年来,私有公司如OpenAI的o系列模型在推理任务上取得了显著的进步。然而,完整的技術细节尚未公开,被认为肯定采用的技术只有强化学习(RL)和长链思维。本文提出了一种新的RL框架,称为OREAL,旨在通过基于结果奖励的强化学习(Outcome REwArd-based reinforcement Learning)追求数学推理任务所能达到的性能极限,其中只有二元结果奖励容易获取。我们理论上证明了在二元反馈环境中,从最佳N个(BoN)采样中的最佳轨迹上进行行为克隆足以学习KL正则化的最优策略。这种公式进一步暗示,应该重新塑造负样本的奖励,以确保正负样本之间的梯度一致性。为了缓解RL中长期存在的稀疏奖励带来的困难,这些困难在推理任务的长链思维的不完全正确性下甚至加剧,我们进一步应用了一个token级别的奖励模型来采样推理轨迹中的重要token以进行学习。OREAL首次使一个7B模型能够通过RL在MATH-500上获得94.0的pass@1准确率,与32B模型相当。OREAL-32B在MATH-500上也以95.0的pass@1准确率超越了之前通过蒸馏训练的32B模型。我们的研究还表明,初始策略模型和训练查询对于RL的重要性。代码、模型和数据将发布以造福未来的研究。[链接](https://github.com/InternLM/OREAL)。
英文摘要
Reasoning abilities, especially those for solving complex math problems, are crucial components of general intelligence. Recent advances by proprietary companies, such as o-series models of OpenAI, have made remarkable progress on reasoning tasks. However, the complete technical details remain unrevealed, and the techniques that are believed certainly to be adopted are only reinforcement learning (RL) and the long chain of thoughts. This paper proposes a new RL framework, termed OREAL, to pursue the performance limit that can be achieved through Outcome REwArd-based reinforcement Learning for mathematical reasoning tasks, where only binary outcome rewards are easily accessible. We theoretically prove that behavior cloning on positive trajectories from best-of-N (BoN) sampling is sufficient to learn the KL-regularized optimal policy in binary feedback environments. This formulation further implies that the rewards of negative samples should be reshaped to ensure the gradient consistency between positive and negative samples. To alleviate the long-existing difficulties brought by sparse rewards in RL, which are even exacerbated by the partial correctness of the long chain of thought for reasoning tasks, we further apply a token-level reward model to sample important tokens in reasoning trajectories for learning. With OREAL, for the first time, a 7B model can obtain 94.0 pass@1 accuracy on MATH-500 through RL, being on par with 32B models. OREAL-32B also surpasses previous 32B models trained by distillation with 95.0 pass@1 accuracy on MATH-500. Our investigation also indicates the importance of initial policy models and training queries for RL. Code, models, and data will be released to benefit future researchhttps://github.com/InternLM/OREAL.
解读
一句话总结
该论文提出了一种名为OREAL的强化学习框架,旨在通过基于结果的奖励强化学习来探索数学推理任务的性能极限,并取得了显著的准确率提升。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:数学推理任务中,由于中间推理步骤的评估劳动密集且难以自动化,只有基于最终答案正确性的二值结果奖励是可靠的,这导致了强化学习中的稀疏奖励问题。
- 现有方案不足:现有的基于强化学习的数学推理方法在处理稀疏奖励时效果不佳,且难以超越蒸馏方法。
- 研究目标:提出OREAL框架,通过行为克隆、奖励重塑和基于标记的奖励模型来提高数学推理任务的性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种新的强化学习框架OREAL,通过行为克隆、奖励重塑和基于标记的奖励模型来解决稀疏奖励问题。
- 方法改进:利用BoN采样和KL正则化来学习最优策略,并通过奖励重塑来保持正负样本之间的梯度一致性。
- 优势:OREAL在数学推理任务上取得了显著的性能提升,尤其是在7B和32B模型上。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在MATH-500、AIME2024、AIME2025-I、LiveMath Bench和Olympiad Bench等数据集上进行了实验。
- 性能提升:OREAL-7B在MATH-500上达到了91.0的pass@1准确率,OREAL-32B达到了95.0的pass@1准确率,均优于之前的模型。
- 对比结果:OREAL-32B在MATH-500上的准确率超过了之前32B模型的最佳结果。
问题4:这个研究的实际应用价值是什么?
- 应用场景:OREAL框架可以应用于各种需要推理能力的任务,如数学教育、科学研究和工业应用。
- 实施建议:建议使用高质量的初始策略模型和多样化的训练数据集来提高模型的性能。
- 局限与展望:OREAL框架在处理复杂推理任务时可能仍然存在局限性,未来的研究可以探索更复杂的奖励模型和策略优化方法。
来源
机器可读索引:llms.txt