Self-rewarding correction for mathematical reasoning

Wei Xiong, Hanning Zhang, Chenlu Ye, Lichang Chen, Nan Jiang +1 more
2/26/2025
cs.AIcs.LG

No official code found. Best implementation: RLHFlow/Self-rewarding-reasoning-LLM (231 stars, last commit 2025-03-02).

Abstract

We study self-rewarding reasoning large language models (LLMs), which can simultaneously generate step-by-step reasoning and evaluate the correctness of their outputs during the inference time-without external feedback. This integrated approach allows a single model to independently guide its reasoning process, offering computational advantages for model deployment. We particularly focus on the representative task of self-correction, where models autonomously detect errors in their responses, revise outputs, and decide when to terminate iterative refinement loops. To enable this, we propose a two-staged algorithmic framework for constructing self-rewarding reasoning models using only self-generated data. In the first stage, we employ sequential rejection sampling to synthesize long chain-of-thought trajectories that incorporate both self-rewarding and self-correction mechanisms. Fine-tuning models on these curated data allows them to learn the patterns of self-rewarding and self-correction. In the second stage, we further enhance the models' ability to assess response accuracy and refine outputs through reinforcement learning with rule-based signals. Experiments with Llama-3 and Qwen-2.5 demonstrate that our approach surpasses intrinsic self-correction capabilities and achieves performance comparable to systems that rely on external reward models.

View on arXivView PDF

Code Implementations(1)

Recipes to train the self-rewarding reasoning LLMs.

23114ANTLR, ShellFeb 26, 20251 years ago

Cite this paper

@article{xiong2025selfrewarding,
  title  = {Self-rewarding correction for mathematical reasoning},
  author = {Wei Xiong and Hanning Zhang and Chenlu Ye and Lichang Chen and Nan Jiang and Tong Zhang},
  year   = {2025},
  eprint = {2502.19613},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19613v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19613.svg)](https://codeofpaper.com/paper/2502.19613)

Discussion