2025-02-11 · 专家 · 自然语言处理 · 机器学习

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:这篇论文想要解决什么具体问题?

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

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

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

来源

机器可读索引:llms.txt