Process-based Self-Rewarding Language Models

Shimao Zhang, Xiao Liu, Xin Zhang, Junxiao Liu, Zheheng Luo, Shujian Huang, Yeyun Gong

Abstract

Recent advancements in Large Language Models (LLMs) have highlighted a critical bottleneck in alignment: the reliance on expensive, human-annotated data. While self-rewarding paradigms—where models evaluate their own outputs—offer a potential solution, they often struggle with complex, multi-step reasoning tasks like mathematics. This paper introduces Process-based Self-Rewarding Language Models (PSRLM), a framework that shifts the focus from final outcome evaluation to the evaluation of intermediate reasoning steps. By employing step-wise pairwise comparisons and iterative self-evolution, PSRLM demonstrates significant performance gains across challenging mathematical benchmarks, surpassing the performance of models trained on static human-annotated datasets and even exceeding the performance of GPT-4o on specific reasoning tasks.

Introduction

Standard alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), are increasingly constrained by the high cost and variable quality of human expertise. While "Self-Rewarding" models have shown promise in general instruction following, they frequently falter in domains requiring rigorous logic, such as mathematics. In these contexts, a single error in a long "Chain of Thought" (CoT) can invalidate the entire conclusion. Traditional self-rewarding methods typically provide a "sparse" reward only at the end of a solution, making it difficult for the model to pinpoint specific logical failures. Furthermore, asking models to assign absolute numerical scores to their own work is often inconsistent. PSRLM addresses these challenges by providing fine-grained, step-level feedback and utilizing a more reliable pairwise comparison mechanism.

Methodology

The PSRLM framework is built upon three core innovations designed to refine the model's internal reasoning and judging capabilities.

1. Step-wise LLM-as-a-Judge

Rather than evaluating a complete solution, the model acts as a judge for individual reasoning steps. To overcome the inconsistency of absolute scoring (e.g., rating a step 1-5), the authors implement pairwise comparison. In this setup, the model compares two candidate steps and determines which is logically superior. This approach was found to be significantly more consistent and better aligned with human logical intuition.

2. Step-wise Preference Optimization

The model utilizes Direct Preference Optimization (DPO) at the step level. During training, the model generates multiple candidates for a specific reasoning step. The internal "judge" identifies the best and worst candidates, creating a preference pair. The model’s policy is then updated to favor the higher-quality step, effectively learning to avoid common logical pitfalls in real-time.

3. Iterative Self-Evolution

The training process is cyclical and iterative. Starting from a base model ($M_0$) initialized with high-quality data, the model undergoes multiple iterations ($M_1$ through $M_4$). In each cycle, the model generates new reasoning paths, evaluates them to create a new preference dataset, and fine-tunes itself. This creates a virtuous cycle where improvements in reasoning enhance the model's ability to judge, which in turn further improves its reasoning.

Experimental Setup

The framework was implemented using Qwen2.5-Math (7B and 72B versions).

  • Initialization: The models were "cold-started" using a subset of NuminaMath (formatted into steps via GPT-o1) and a custom Evaluation Fine-Tuning (EFT) dataset.
  • Training: The internal Process Reward Model (PRM) was initially trained on the PRM800k dataset.
  • Evaluation: Performance was measured across a rigorous battery of benchmarks, including GSM8k, MATH, Gaokao2023En, OlympiadBench, AMC2023, and the highly challenging AIME2024.

Key Insights

Several critical observations emerged during the development of PSRLM:

  • The Superiority of Pairwise Comparison: LLMs are demonstrably better at relative ranking than absolute quantification. This shift was the primary driver in stabilizing the self-rewarding signal.
  • Co-evolution of Judge and Solver: As the model iterations progressed, the model's capability as a judge improved in tandem with its problem-solving accuracy. This suggests that the internal logic required to solve a problem is deeply linked to the logic required to critique it.
  • Efficiency and Logical Density: Interestingly, as the models evolved from $M_1$ to $M_4$, they tended to generate fewer but more substantial reasoning steps. The models learned to pack more logical weight into each step, leading to more concise and accurate solutions.
  • Exploration of New Reasoning Spaces: t-SNE visualizations indicated that the self-generated preference data occupied a different distribution than the initial training data, suggesting the model was successfully exploring and learning from its own unique reasoning trajectories rather than merely mimicking its starting data.

Results

PSRLM consistently outperformed standard Self-Rewarding Language Models (SRLM) and showed stable, non-degrading improvement across iterations:

  • AIME2024: The 72B model's performance increased from 13.3% at $M_1$ to 23.3% at $M_4$.
  • MATH Benchmark: The 7B model reached 73.3%, while the 72B model achieved 76.6%.
  • Comparison to GPT-4o: The 72B PSRLM ($M_4$) achieved an average score of 60.6% across all benchmarks, notably surpassing GPT-4o’s average of 56.3%.

Limitations and Future Work

While PSRLM represents a significant step forward, it remains dependent on the quality of the "cold-start" model; a weak initial model may fail to generate the momentum necessary for the self-rewarding cycle. Additionally, the computational cost of iterative training and step-wise search is higher than standard fine-tuning. Future research will explore the eventual plateau of this self-improvement cycle and the potential for reaching super-human performance in specialized mathematical and scientific domains.

Summary updated

BibTeX
@inproceedings{zhang2025process,
  author = {Shimao Zhang and Xiao Liu and Xin Zhang and Junxiao Liu and Zheheng Luo and Shujian Huang and Yeyun Gong},
  title = {{Process-based Self-Rewarding Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure