CPGD: Toward Stable Rule-based Reinforcement Learning for Language Models

Zongkai Liu, Fanqing Meng, Lingxiao Du, Zhixiang Zhou, Chao Yu, Wenqi Shao, Qiaosheng ZhangarXiv 2025 · DOI

Introduction

Reinforcement Learning (RL) has emerged as a critical technique for eliciting complex reasoning capabilities in Large Language Models (LLMs), as demonstrated by recent advancements like DeepSeek-R1. While traditional RL often relies on neural network "critics" to estimate rewards, rule-based RL utilizes deterministic feedback (e.g., correctness of a mathematical solution) to guide model updates. Despite its potential, rule-based RL is plagued by significant instability. This paper introduces CPGD (Clipped Policy Gradient Optimization with Policy Drift), a novel algorithm designed to mitigate training collapse and achieve superior performance in multimodal reasoning tasks.

The Challenge: Training Collapse in Rule-Based RL

Current state-of-the-art methods such as GRPO, REINFORCE++, and RLOO frequently suffer from training collapse, a phenomenon where the model suddenly stops learning or engages in "reward hacking"—generating nonsensical outputs that happen to satisfy rule-based criteria.

The authors identify the importance-sampling ratio used in PPO-style loss functions as the primary driver of this instability. When this ratio becomes excessively large, particularly during instances of negative advantage (model errors), it triggers gradient explosions. This destroys the model's reasoning chains, often leading to "response length collapse" where the model skips reasoning steps (e.g., <think> tags) to provide immediate, often incorrect, answers.

The CPGD Methodology

CPGD addresses these instabilities through three core innovations:

  1. Clipped Policy Gradient Objective: Rather than using the volatile importance-sampling ratio directly, CPGD employs a standard policy gradient loss. To maintain update proximity, it applies a clipping mechanism to the logarithm of the ratio, preventing extreme updates.
  2. Policy Drift Regularization: While standard RL methods constrain the model relative to an initial reference model, CPGD introduces a "Policy Drift" constraint. This uses a forward KL divergence penalty to prevent the model from deviating too sharply from the previous iteration's policy, ensuring a smoother training trajectory.
  3. Stable KL Estimator: The algorithm utilizes a specific KL divergence estimator ($k_3$) to provide more reliable gradient directions and enhance numerical stability.
  4. Weighted Advantages: CPGD can dynamically weight samples, such as using "STD weighting" (normalizing rewards by their standard deviation), to focus the model on the most informative training examples.

Experimental Results

The researchers evaluated CPGD using QwenVL2.5-7B across a suite of demanding multimodal and mathematical benchmarks, including MathVista, MathVision, and OlympiadBench.

Stability and Performance

As shown in Figure 1, CPGD demonstrates remarkable stability compared to existing algorithms. While GRPO, RLOO, and REINFORCE++ all experienced catastrophic collapse—where accuracy plummeted to near zero—CPGD maintained a consistent, upward learning curve.

Training stability and response length metrics of CPGD compared to baseline RL algorithms.

Quantitatively, CPGD achieved an 11.0% overall improvement over the base Qwen model. It significantly outperformed other RL methods across various benchmarks, as detailed in Figure 2. Notable gains include a +21.8% increase on the MMK12 benchmark and substantial improvements on out-of-distribution tasks like MathVista.

Performance comparison of CPGD against leading models and various RL algorithms on multimodal math benchmarks.

Discussion and Insights

  • The Necessity of Clipping: The authors found that even if only ~1% of tokens are clipped, the mechanism is essential to prevent the model from abandoning reasoning chains in favor of trivial, high-reward shortcuts.
  • Forward KL Benefits: Using forward KL divergence for policy drift avoids the need for additional importance sampling and allows for efficient token-level decomposition, contributing to overall training stability.
  • Efficiency: By utilizing a REINFORCE-style approach that avoids a critic network, CPGD remains computationally leaner than standard PPO implementations.

Conclusion and Future Work

CPGD provides a robust framework for stabilizing rule-based RL in language models, effectively preventing the training collapse that hampers existing methods. While currently focused on on-policy training at the 7B parameter scale, future research will explore the application of CPGD to off-policy settings and larger model architectures to further validate its scalability and effectiveness.

Summary updated

BibTeX
@misc{liu2025cpgd,
  author = {Zongkai Liu and Fanqing Meng and Lingxiao Du and Zhixiang Zhou and Chao Yu and Wenqi Shao and Qiaosheng Zhang},
  title = {{CPGD: Toward Stable Rule-based Reinforcement Learning for Language Models}},
  year = {2025},
  eprint = {2505.12504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.12504},
}
Figure