Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning

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

TL;DR

This paper introduces OREAL, a novel reinforcement learning (RL) framework designed to push the boundaries of mathematical reasoning in large language models (LLMs) using only binary outcome rewards. OREAL achieves state-of-the-art results by combining behavior cloning on successful reasoning paths with a token-level reward model, demonstrating that even smaller models can achieve impressive performance.

What Problem Does This Paper Address?

Mathematical reasoning is a key component of general intelligence, and LLMs have shown significant progress in this area, largely attributed to techniques like Chain-of-Thought (CoT) prompting. However, the proprietary nature of leading models makes it difficult to understand their underlying mechanisms. Furthermore, training LLMs for complex reasoning tasks using traditional RL is challenging due to the "sparse reward" problem: feedback is only available at the very end of a long reasoning chain (i.e., whether the final answer is correct or not), making it hard to learn from intermediate steps. This paper aims to overcome these limitations by developing an RL framework that effectively leverages sparse, binary outcome rewards to train mathematical reasoning capabilities.

Methods

OREAL is built upon three core insights:

  1. Behavior Cloning on Positive Trajectories: The authors theoretically prove that behavior cloning (learning by imitating successful examples) on "Best-of-N" (BoN) sampled positive trajectories is sufficient for learning an optimal policy in binary feedback environments. BoN sampling involves generating multiple reasoning paths and selecting the best one.
  2. Reward Shaping for Negative Samples: To maintain gradient consistency and effectively learn from incorrect reasoning paths, OREAL reshapes the rewards for negative samples. This ensures that the learning signal from both correct and incorrect trajectories is balanced and informative.
  3. Token-Level Reward Model: To address the sparsity of outcome rewards, OREAL employs a token-level reward model. This model assigns importance scores to individual tokens within a reasoning chain, effectively creating a denser reward signal that guides the model to learn from critical steps or errors. This credit assignment mechanism is lightweight and avoids the need for complex value networks.

The overall OREAL objective combines these components, aiming for KL-regularized policy optimization.

Datasets

The paper uses several datasets for training and evaluation:

  • MATH-500: A benchmark for mathematical reasoning.
  • AIME2024, AIME2025-I: Datasets from the American Invitational Mathematics Examination.
  • LiveMathBench: A benchmark for mathematical reasoning.
  • OlympiadBench: A benchmark for mathematical reasoning.
  • Numina: A dataset used for training.
  • IFEval: Used for evaluating generalization to instruction-following tasks.

The authors also mention using in-house datasets and open-source datasets like Numina and the MATH training set for initial policy model fine-tuning.

Key Insights and Ideas

  • Binary Rewards are Sufficient: The paper demonstrates that even with only binary outcome rewards (correct/incorrect final answer), it's possible to achieve high performance in complex reasoning tasks, challenging the notion that dense, intermediate rewards are always necessary.
  • The Power of Imitation: Behavior cloning on carefully selected positive examples (BoN sampling) is shown to be a surprisingly effective and theoretically sound strategy for learning optimal policies in this setting.
  • Negative Samples Hold Value: Simply discarding incorrect reasoning paths is suboptimal. OREAL's reward shaping for negative samples highlights the importance of learning from mistakes to refine decision boundaries.
  • Token-Level Granularity is Key: Breaking down the final outcome reward to the token level provides a crucial signal for learning complex, multi-step reasoning processes, effectively mitigating the sparse reward problem.
  • Initial Policy Matters: The performance of OREAL is significantly influenced by the quality of the initial policy model. A stronger starting point leads to better final results, emphasizing the importance of pre-training and fine-tuning strategies.

Key Results

OREAL achieves impressive results across various model scales:

  • 7B Models: OREAL-7B reaches 91.0 pass@1 accuracy on MATH-500 using RL, outperforming larger models like OpenAI's o1-mini and QwQ-32B-Preview. Applying OREAL to an already strong distilled model (DeepSeek-R1-Distill-Qwen-7B) further boosts its performance to 94.0 pass@1 on MATH-500, matching previous top 32B models.
  • 32B Models: OREAL-32B sets a new state-of-the-art with 95.0 pass@1 accuracy on MATH-500, surpassing all previous distilled and RL-based models. It also achieves strong results on other benchmarks.
  • Ablation Studies: The paper shows that each component of OREAL (Reward Shaping, Behavior Cloning, Token Re-weighting) contributes to performance gains, with the full OREAL framework yielding the best results.

Limitations and Future Work

  • Initial Policy Dependence: The authors acknowledge that OREAL's performance is heavily reliant on the initial policy model. They suggest that future work should focus on improving initial policy models through more advanced distillation or data synthesis techniques, as this is orthogonal to their current RL investigation.
  • Data Quality and Diversity: The quality, diversity, and scope of the RL training data are identified as crucial factors for achieving full potential. Future work could explore constructing more comprehensive pre-training and post-training datasets.
  • AIME Benchmark Performance: While OREAL excels on MATH-500 and other benchmarks, its performance on the AIME series is comparatively weaker. The authors attribute this to potential deficiencies in the training data and RL queries specific to the AIME domain and suggest this as an area for future research.
  • Generalization: The paper suggests OREAL's applicability beyond mathematical reasoning to tasks with binary outcome rewards, such as instruction following, programming, and puzzle solving. They demonstrate this potential with promising results on the IFEval dataset.

Summary updated

BibTeX
@inproceedings{lyu2025exploring,
  author = {Chengqi Lyu and Songyang Gao and Yuzhe Gu and Wenwei Zhang and Jianfei Gao and Kuikun Liu and Ziyi Wang and Shuaibin Li and Qian Zhao and Haian Huang and Weihan Cao and Jiangning Liu and Hongwei Liu and Junnan Liu and Songyang Zhang and Dahua Lin and Kai Chen},
  title = {{Exploring the Limit of Outcome Reward for Learning Mathematical Reasoning}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=hLg2rzBJR2},
}
Figure