Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lyu, Chengqi, Gao, Songyang, Gu, Yuzhe, Zhang, Wenwei, Gao, Jianfei, Liu, Kuikun, Wang, Ziyi, Li, Shuaibin, Zhao, Qian, Huang, Haian, Cao, Weihan, Liu, Jiangning, Liu, Hongwei, Liu, Junnan, Zhang, Songyang, Lin, Dahua, Chen, Kai
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913685264400384
author Lyu, Chengqi
Gao, Songyang
Gu, Yuzhe
Zhang, Wenwei
Gao, Jianfei
Liu, Kuikun
Wang, Ziyi
Li, Shuaibin
Zhao, Qian
Huang, Haian
Cao, Weihan
Liu, Jiangning
Liu, Hongwei
Liu, Junnan
Zhang, Songyang
Lin, Dahua
Chen, Kai
author_facet Lyu, Chengqi
Gao, Songyang
Gu, Yuzhe
Zhang, Wenwei
Gao, Jianfei
Liu, Kuikun
Wang, Ziyi
Li, Shuaibin
Zhao, Qian
Huang, Haian
Cao, Weihan
Liu, Jiangning
Liu, Hongwei
Liu, Junnan
Zhang, Songyang
Lin, Dahua
Chen, Kai
contents 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 \textbf{O}utcome \textbf{RE}w\textbf{A}rd-based reinforcement \textbf{L}earning 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 research\footnote{https://github.com/InternLM/OREAL}.
format Preprint
id arxiv_https___arxiv_org_abs_2502_06781
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning
Lyu, Chengqi
Gao, Songyang
Gu, Yuzhe
Zhang, Wenwei
Gao, Jianfei
Liu, Kuikun
Wang, Ziyi
Li, Shuaibin
Zhao, Qian
Huang, Haian
Cao, Weihan
Liu, Jiangning
Liu, Hongwei
Liu, Junnan
Zhang, Songyang
Lin, Dahua
Chen, Kai
Computation and Language
Machine Learning
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 \textbf{O}utcome \textbf{RE}w\textbf{A}rd-based reinforcement \textbf{L}earning 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 research\footnote{https://github.com/InternLM/OREAL}.
title Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2502.06781