Self-Evolved Preference Optimization for Enhancing Mathematical Reasoning in Small Language Models

Joykirat Singh, Tanmoy Chakraborty, Akshay NambiarXiv 2025 · DOI

Abstract

Multi-step mathematical reasoning remains a significant challenge for Small Language Models (SLMs), often due to error propagation and limited self-correction capabilities. We present SPHERE (Self-Evolved Preference Optimization for Reasoning), an automated pipeline designed to generate high-quality preference data for Direct Preference Optimization (DPO). SPHERE utilizes a pruned Monte Carlo Tree Search (MCTS) and a three-stage self-evolution process—Self-Generation, Self-Correction, and Diversity Induction—to synthesize informative reasoning trajectories. Our results demonstrate that SPHERE-trained 7B-parameter models can match or exceed the performance of frontier models like GPT-4o on rigorous math benchmarks, achieving 75.2% on MATH-500.

Introduction

While Large Language Models (LLMs) have achieved remarkable success in various tasks, complex mathematical reasoning is often considered the "final frontier." Small models, in particular, struggle with maintaining logical consistency over multiple steps. A single error early in a reasoning chain can propagate, leading to an incorrect final answer. Furthermore, these models often lack the intrinsic ability to identify and correct their own mistakes.

Direct Preference Optimization (DPO) has emerged as a powerful technique for aligning model behavior with desired outcomes. However, the effectiveness of DPO is heavily dependent on the availability of high-quality "preference pairs"—contrasting examples of correct and incorrect reasoning. Generating such data typically requires expensive human annotation or computationally intensive search methods like Monte Carlo Tree Search (MCTS). SPHERE addresses these challenges by automating the generation of structured, high-signal preference data through a pruned search strategy and a self-evolving pipeline.

Methodology: The SPHERE Pipeline

The SPHERE framework optimizes the data generation process through two primary innovations: Pruned MCTS and a Three-Stage Self-Evolution process.

Pruned Monte Carlo Tree Search (MCTS)

Standard MCTS explores a vast search space, which is computationally prohibitive for large-scale dataset generation. SPHERE introduces a "pruned" version that leverages a Process Reward Model (PRM) to evaluate reasoning steps in real-time. Instead of exhaustive expansion, the search retains only two critical paths at each decision point: the most promising trajectory ($S_{max}$) and the least promising yet still plausible one ($S_{min}$). This focused approach significantly reduces computational overhead while ensuring the generated data captures the most informative logical contrasts.

Three-Stage Self-Evolution

The pipeline evolves the model's reasoning capabilities through three distinct stages:

  1. Self-Generation: The base model generates initial reasoning trajectories for a given set of mathematical problems.
  2. Self-Correction: For problems where the model fails to find a correct path, it is prompted to reflect on its errors and attempt a corrected solution. This stage specifically targets the model's ability to recover from logical fallacies.
  3. Diversity Induction: To prevent the model from becoming "too good" (where it only generates correct paths, leaving no negative examples for DPO), a smaller model ($\pi_{small}$) is employed to generate "smart" mistakes. These plausible errors provide a strong training signal, helping the primary model distinguish between subtle logical nuances.
The three-stage SPHERE pipeline: Self-Generation, Self-Correction, and Diversity Induction.

Experimental Setup

The SPHERE pipeline was trained using 20,000 math word problems sampled from the NuminaMath and MetaMath datasets. Evaluation was conducted across a suite of rigorous benchmarks, including MATH-500, GSM8K, AIME, AMC, and the Olympiad Bench, covering a range from grade-school math to high-level competition problems.

Results and Discussion

The application of SPHERE leads to substantial performance gains across various model families and sizes. Notably, Qwen2.5-7B-Math-SPHERE achieved a score of 75.2% on the MATH-500 benchmark, outperforming GPT-4o's 69.8%.

Performance comparison of SPHERE-enhanced models against baselines across various mathematical benchmarks.

Key insights from the experimental results include:

  • The Power of Structured Errors: Learning from why a specific logical step failed is as crucial as seeing the correct path. The "smart" mistakes generated in Stage 3 provide a much higher signal-to-noise ratio than random errors.
  • Closing the Reasoning Gap: The results suggest that reasoning capability is not solely a function of parameter count. By improving the quality and structure of post-training data, 7B-parameter models can rival much larger proprietary models.
  • Self-Correction Efficacy: The self-correction stage proved particularly beneficial for smaller models. For instance, Qwen2.5-1.5B saw its MATH-500 accuracy increase from 17.0% to 26.0% through the self-evolution process.

Conclusion and Future Work

SPHERE demonstrates that a fully automated, self-evolving pipeline can significantly enhance the mathematical reasoning of SLMs. By focusing on high-quality preference data and structured error correction, it bridges the gap between small open-source models and frontier LLMs.

Future work will focus on reducing the computational intensity of the pruned MCTS and exploring the applicability of the self-evolution framework to other structured domains, such as code generation and formal logic. Additionally, expanding the self-correction mechanism to cover a broader taxonomy of logical fallacies remains a key area for improvement.

Summary updated

BibTeX
@misc{singh2025self,
  author = {Joykirat Singh and Tanmoy Chakraborty and Akshay Nambi},
  title = {{Self-Evolved Preference Optimization for Enhancing Mathematical Reasoning in Small Language Models}},
  year = {2025},
  eprint = {2503.04813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04813},
}
Figure