TL;DR
In reinforcement learning for LLMs, we pretend training is "on-policy," when in reality, reusing generated batches and mixing inference engines inevitably pushes the training model away from the sampling policy. Standard recipes like GRPO try to patch this gap with importance-sampling ratios, which end up blowing up gradient error and causing training to collapse—especially on coding tasks. The authors show that throwing out the importance ratio entirely—and instead using a simpler, controlled surrogate objective called RFPO—not only prevents collapse under heavy drift, but also trains up to 2× faster.
What Problem Does This Paper Address?
Post-training LLMs to reason (like DeepSeek-R1 style training) relies heavily on on-policy fine-tuning (OPFT): the model generates answers (rollouts), gets scored, and updates itself on its own outputs. Ideally, the model generating the answers and the model taking the gradient step are identical.
In modern production stacks, strict on-policy training is a myth due to two unavoidable drifts:
- Policy drift: Generating thousands of rollouts for a single gradient step wastes compute. Engineers reuse a batch of rollouts for $K$ mini-batch updates (e.g., 8 or 32 steps). By step 16, the updating model ($\pi_\theta$) has drifted noticeably from the snapshot ($\pi_{\text{old}}$) that started the batch.
- Rollout drift: Fast inference engines (like vLLM) have subtly different numerics, kernels, and precision than training engines (like FSDP). Even at the exact same checkpoint, the distribution that generated the text ($\pi^*_{\text{old}}$) doesn't quite match the training engine's view ($\pi_{\text{old}}$).
Popular algorithms like GRPO handle drift using an importance ratio ($\pi_\theta / \pi_{\text{old}}$) to reweight tokens. However, as policy and rollout drift grow, multiplying gradients by this ratio amplifies noise and second-moment error, degrading math performance and causing catastrophic collapse in code generation.
Methods
The authors frame this as a classic bias-variance trade-off and propose RFPO (Ratio-Free Policy Optimization), a drop-in replacement for GRPO's update step.
Instead of reweighting off-policy samples with an unstable ratio, RFPO optimizes a reward-weighted maximum-likelihood surrogate: $J_{\text{RF}}(\pi_\theta) = \mathbb{E}_{\pi_{\text{old}}}[A(y) \log \pi_\theta(y)]$. It ditches the importance ratio, the reference model, and the KL penalty altogether.
To keep this ratio-free objective from collapsing, RFPO relies on three specific mechanisms:
- M1: Z-score advantages (standard in GRPO): Normalizes rewards within each prompt's group of rollouts so uncertain prompts (where learning signal is richest) contribute the most.
- M2: Negative samples (mean-zero advantages): Ensures below-average responses get negative weights, actively pushing the model away from bad outputs rather than just imitating good ones.
- M3: Absolute per-token trust region (novel): Instead of clipping a ratio (like PPO/GRPO), RFPO masks out the gradient on any individual token whose raw probability has shifted by more than a flat threshold ($\delta = 0.1$) from $\pi_{\text{old}}$ in the direction of the advantage.
Datasets
No new benchmarks are introduced; the authors use established verifiable-reward datasets on Qwen3-4B (and Phi-4-mini-reasoning in appendices):
- Training: POLARIS-53K for math and DeepCoder-16K (from PrimeIntellect's SYNTHETIC-1) for coding.
- Evaluation: MATH-500 (plus a 100-problem validation subset during training) and AIME 2024/2025 for math; LiveCodeBench-V6 (LCBv6) for coding.
Key Insights and Ideas
- Controlled bias beats exploding error: At zero drift, GRPO and RFPO have identical gradients. Once you take 16–32 inner steps on a batch, GRPO's importance-weighted gradient error skyrockets, whereas RFPO pays a small, bounded surrogate bias—giving RFPO up to 2.5× lower Mean Squared Error (MSE) relative to the true on-policy gradient.
- Why iterative Rejection-Sampling SFT collapses: Training only on correct rollouts (positive-only MLE) is a special case of RFPO missing Mechanism 2. Without negative samples to push probability mass down, repeatedly refitting on your own best samples shrinks the distribution's support round after round until it collapses toward a point mass.
- The ratio is the culprit, not the clip: By crossing objectives and clipping styles, the authors show that under heavy coding drift, any method using the multiplicative importance ratio collapses, regardless of how you clip it. Furthermore, absolute clipping treats rare tokens fairly—giving a token with $0.001$ probability a full $+0.1$ upward budget, whereas ratio clipping ($1 \pm 0.2$) traps it near $0.0012$.
Key Results
Across both drift axes on Qwen3-4B, RFPO holds the strict on-policy ceiling while GRPO breaks down:
- Policy Drift (1 $\to$ 8 $\to$ 32 updates per batch): On MATH-500, GRPO drops from
0.879$\to$0.861$\to$0.824, while RFPO stays rock-solid at0.873–0.875. On LCBv6 coding, GRPO collapses from0.667$\to$0.384$\to$0.235, while RFPO holds steady at0.669–0.672.
- Rollout Drift ("Bypass mode", reusing vLLM log-probs directly at 8 steps/batch): GRPO's multiplicative ratio turns cross-engine numerical mismatch into severe instability, crashing MATH-500 from
0.861$\to$0.718and coding from0.384$\to$0.041. RFPO confines engine mismatch to a binary mask and barely blinks (0.866math /0.669coding). - Speed: Needing no reference forward pass, KL loss, or ratio math, RFPO is 1.4× faster per step than KL-free GRPO (and 1.6× faster than standard GRPO) on math, and roughly 2× faster on coding—reaching
0.85on math validation in ~1.9 hours vs. ~5.7 hours for strict on-policy GRPO.
Limitations and Future Work
- Model scale and domains: Main experiments focus on a single 4B model (Qwen3-4B) across two verifiable binary-reward domains (math and code), with a second backbone tested only on coding. Larger model scales and non-verifiable/open-ended tasks remain untested.
- Experimental constraints: Several coding and bypass-mode configurations are single runs rather than multi-seed averages, DAPO was evaluated without dynamic sampling, and direct comparisons to recent ratio-free/prefix-ratio peers (LGPO, MinPRO) were not run.
- Future directions: Exploring sequence- or prefix-level trust regions on top of the ratio-free objective, and applying RFPO to multi-turn agentic training where policy and rollout drifts compound across long horizons.
Summary updated