SPPD: Self-training with Process Preference Learning Using Dynamic Value Margin

Hao Yi, Qingyang Li, Yulan Hu, Fuzheng Zhang, Di Zhang, Yong Liu

TL;DR

This paper introduces SPPD, a novel self-training method for improving the mathematical reasoning abilities of Large Language Models (LLMs). SPPD tackles the limitations of existing approaches by optimizing reasoning at a step-by-step level using a dynamic value margin, eliminating the need for external model distillation and achieving state-of-the-art results on various benchmarks.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive capabilities, but enhancing their numerical and logical reasoning, especially in complex mathematical tasks, remains a significant challenge. Current methods often fall short:

  • Inference-time techniques like Chain of Thought (CoT) rely heavily on prompt engineering and pre-existing knowledge, offering limited adaptability.
  • Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO), while improving sentence-level reasoning, struggle to guarantee step-wise mathematical correctness and often require human annotations or distillation from larger, more capable models.
  • Reinforcement Learning (RL) methods, while promising, are notoriously resource-intensive, demanding substantial GPU memory and often suffering from training instability.

This paper aims to bridge this gap by proposing a method that can effectively train LLMs for robust mathematical reasoning without relying on external models for distillation, while also being more computationally efficient than traditional RL approaches.

Methods

The core of SPPD lies in its innovative approach to learning from step-level preferences:

  • Process-based Markov Decision Process (MDP): SPPD frames mathematical reasoning as an MDP, where each step in the reasoning process is an action. This allows for a more granular optimization of the model's decision-making at each stage of problem-solving.
  • Dynamic Value Margin: Instead of using a fixed margin, SPPD incorporates a dynamic value margin derived from the Bellman optimality equation. This margin adapts based on the predicted value of future states, allowing for more nuanced preference learning and preventing catastrophic forgetting.
  • Tree-Based Self-Sampling: To generate training data, SPPD employs a tree-based self-sampling mechanism. This method generates multiple reasoning trajectories that share common prefixes, allowing the model to learn from its own outputs without needing to query external, stronger models for distillation. This process is illustrated in Figure 1 of the paper.
  • PRM-Enhanced SFT & DPO: The authors also incorporate a curriculum learning strategy that first uses a Preference Reward Model (PRM) for sentence-level SFT and DPO. This pre-training step helps to initially align the model's reasoning capabilities before moving to the more fine-grained step-level optimization.
  • Reward Equivalence: The method leverages the principle of reward equivalence to derive an equivalent reward expression, which helps in controlling the optimization process.

Datasets

The paper utilizes the following datasets for training and evaluation:

  • Training Data Generation: Prompts are sampled from GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021) datasets.
  • Evaluation Datasets:
    • In-domain: GSM8K, MATH500.
  • Out-of-domain: Gaokao2023 (Liao et al., 2024a), OCW Course (Lewkowycz et al., 2022), and OE-TO-MATH-COMP from OlympiadBench (He et al., 2024).

No new benchmarks were introduced in this paper.

Key Insights and Ideas

  • Step-level optimization is crucial for mathematical reasoning: The paper strongly suggests that optimizing individual reasoning steps, rather than just the final answer or sentence-level outputs, is key to achieving robust mathematical problem-solving capabilities in LLMs.
  • Dynamic value margins are more effective than fixed ones: The dynamic adjustment of value margins in SPPD allows for more adaptive learning, preventing issues like catastrophic forgetting and improving generalization, especially across different models and datasets.
  • Self-training can eliminate the need for distillation: SPPD demonstrates that LLMs can effectively improve their reasoning by learning from their own generated trajectories, bypassing the reliance on larger, proprietary models for data generation. This is a significant step towards more accessible and efficient LLM training.
  • Theoretical equivalence to policy gradient methods: The paper provides theoretical backing, showing that SPPD is equivalent to on-policy policy gradient methods under specific reward constraints, which lends credibility to its effectiveness.

Key Results

  • Substantial improvements: SPPD achieves significant performance gains across various LLM sizes (7B and 8B models) and datasets.
  • Outperforming existing models: On the MATH and GSM8K datasets, SPPD consistently outperforms comparable open-source and even some closed-source models. For instance, with the Qwen2.5-7B-Base model, SPPD achieves 71.0% accuracy on MATH and 89.8% on GSM8K.
  • Robustness across models: The method shows robustness across different base LLM architectures, including Llama3.1-8B-Instruct and Qwen2.5-7B-Instruct.
  • Continued gains with SPPD-Stage2: Iterating the SPPD method (SPPD-Stage2) further boosts performance, showing an additional 1.2% and 0.5% improvement on MATH and GSM8K, respectively, for the Qwen2.5-7B-Base model.
  • Dynamic margin's superiority: The dynamic value margin (y > 0) consistently outperforms fixed-margin step-DPO and no-margin step-DPO across models, highlighting the importance of adaptive margins.

Limitations and Future Work

  • PRM Effectiveness: The paper acknowledges that SPPD's performance is dependent on the effectiveness of the Preference Reward Model (PRM). PRM performance can vary across different models and tasks, and the current work does not address PRM updates.
  • PRM Updates: As policies are iterated, PRMs might become ineffective. Future work could explore how to integrate PRM updates into the self-training loop.
  • Bandit-based RL: Current online RL algorithms like PPO and GRPO are modeled based on bandit approaches. Integrating MDP modeling with on-policy methods for these algorithms is suggested as a future research direction.
  • Computational Cost: While more efficient than some RL methods, SPPD still involves computationally intensive steps like trajectory generation and PRM scoring. Decoupling these steps helps, but further optimization might be beneficial.

Summary updated

BibTeX
@inproceedings{yi2025sppd,
  author = {Hao Yi and Qingyang Li and Yulan Hu and Fuzheng Zhang and Di Zhang and Yong Liu},
  title = {{SPPD: Self-training with Process Preference Learning Using Dynamic Value Margin}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure