CPGD: Toward Stable Rule-based Reinforcement Learning for Language Models
Preprint
Abstract
Recent advances in rule-based reinforcement learning (RL) have significantly improved the reasoning capability of language models (LMs) with rule-based rewards. However, existing RL methods -- such as GRPO, REINFORCE++, and RLOO -- often suffer from training instability, where large policy updates and improper clipping can lead to training collapse. To address this issue, we propose Clipped Policy Gradient Optimization with Policy Drift (CPGD), a novel algorithm designed to stabilize policy learning in LMs. CPGD introduces a policy drift constraint based on KL divergence to dynamically regularize policy updates, and leverages a clip mechanism on the logarithm of the ratio to prevent excessive policy updates. We provide theoretical justification for CPGD and demonstrate through empirical analysis that it mitigates the instability observed in prior approaches. Furthermore, we show that CPGD significantly improves performance while maintaining training stability. Our implementation balances theoretical rigor with practical usability, offering a robust alternative for RL in the post-training of LMs. We release our code at https://github.com/ModalMinds/MM-EUREKA.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- HybridFlow: A Flexible and Efficient RLHF Framework2025
- We-Math: Does Your Large Multimodal Model Achieve Human-like Mathematical Reasoning?2025
- MATHVERSE: Does Your Multi-modal LLM Truly See the Diagrams in Visual Math Problems?2024
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset2024
- OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problems2024
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model2023
- Reflexion: language agents with verbal reinforcement learning2023
- CodeRL: Mastering Code Generation Through Pretrained Models and Deep Reinforcement Learning2022