MC-GRPO: Median-Centered Group Relative Policy Optimization for Small-Rollout Reinforcement Learning
Youngeun Kim
TL;DR
This work tackles instability in group-relative policy optimization for LLMs under small rollout budgets, where baseline noise can flip advantages and misguide updates. It introduces MC-GRPO, which uses a median-centered within-prompt baseline computed from $G{+}1$ rollouts and excludes the median (zero-advantage) completion to maintain an effective update size of $G$, thereby reducing sign flips and improving stability. Across GRPO, DAPO, and DR-GRPO, and over diverse model families and math-reasoning tasks, MC-GRPO yields faster training convergence and higher final accuracy in the low-rollout regime, while remaining competitive at larger budgets and improving out-of-distribution performance. The method is a lightweight, plug-in improvement with practical impact for resource-constrained RL in reasoning tasks, and is complemented by analyses underscoring the link between sign-flip mitigation and learning quality, along with ablations validating the role of median-centering versus extra sampling.
Abstract
Group-relative policy optimization methods train language models by generating multiple rollouts per prompt and normalizing rewards with a shared mean reward baseline. In resource-constrained settings where the rollout budget is small, accuracy often degrades. We find that noise in the shared baseline induces advantage sign flips, where some rollouts receive an incorrect advantage sign, and the update direction is reversed. To address this, we propose Median-Centered Group Relative Policy Optimization (MC-GRPO), a simple and effective solution for small-rollout training. Our main idea is to replace the mean baseline with a median baseline: the median is far less sensitive to outlier rewards than the mean, mitigating the sign flips under small rollout size (G). We generate one additional rollout for median reference (G+1), and compute advantages by using the group median. With an odd-sized group, exactly one completion is the median and receives zero advantage, we exclude this pivot rollout from backpropagation so the number of gradient-contributing samples per prompt remains G, preserving the core update cost of standard G-rollout training. Across various GRPO-family methods and a wide range of models and scales, this median-centered training consistently improves stability and final accuracy in the low-rollout regime, reducing the gap between G=2 and G=8 to within 1%. Code is available at https://github.com/lotusroot-kim/MC-GRPO
