TL;DR
Training reasoning LLMs with reinforcement learning (RL) spends up to 70% of its time just generating text, making fast 4-bit floating-point (FP4) generation an enticing shortcut—except that FP4 routinely causes RL training to violently collapse. The authors discover that FP4 acts like a nonlinear amplifier for tiny, normally harmless numerical differences between inference and training software stacks, blowing them up into massive gradient errors. By introducing Cross-Precision Alignment (CPA)—a simple regularizer that teaches the model to be less sensitive to 4-bit rounding—they stabilize FP4 RL training, match 16-bit accuracy, and cut end-to-end training time by up to 19%.
What Problem Does This Paper Address?
When we post-train LLMs to reason using RL (like GRPO), the process alternates between two phases: rollout (generating long chains of thought) and policy update (calculating gradients to improve the model). Because autoregressive decoding is slow, rollouts eat up roughly 70% of total training latency.
Modern GPUs natively support ultra-fast 4-bit floating-point (FP4) math. Naturally, engineers want to run rollouts in W4A4 (4-bit weights and 4-bit activations) while keeping master weights in higher-precision BF16.
Here’s the catch: modern RL uses a "hybrid stack"—an inference engine like vLLM handles rollouts, while a training engine like FSDP handles updates. Because they use different GPU kernels and math accumulations, they produce slightly different token probabilities even for identical weights. At 16-bit (BF16), this tiny mismatch is benign noise. Under W4A4 FP4, however, RL training runs smoothly for a few hundred steps before suddenly destabilizing and collapsing—even when using standard Quantization-Aware Training (QAT) and off-policy importance-sampling corrections.
Methods
Instead of trying the nearly impossible task of forcing vLLM and FSDP to be bit-for-bit identical, the authors make the policy itself resilient to quantization noise.
- Standard Baseline Setup: Rollouts execute in real native FP4 on vLLM for speed. Training runs on FSDP with BF16 master weights, using QAT ("fake quantization" that simulates FP4 rounding in the forward pass) and Truncated Importance Sampling (TIS) to clip off-policy probability ratios.
- What’s New — Cross-Precision Alignment (CPA): During the training step on FSDP, CPA runs two forward passes over the sampled rollout tokens using the exact same current weights $\theta$:
- A BF16 reference pass (fake quantization disabled), acting as a frozen "teacher."
- A fake-quantized FP4 pass, acting as the trainable "student."
CPA applies a low-variance KL-divergence penalty between the token log-probabilities of these two passes, averaged uniformly across all sampled tokens (independent of reward advantages). Added alongside the standard RL objective, this pulls the quantized model’s behavior toward its clean BF16 counterpart right on the tokens driving optimization.
Datasets
No new benchmarks are introduced; the authors evaluate CPA on established math reasoning datasets known to trigger low-precision RL instability:
- GRPO Regime (Qwen3-1.7B-Base): Trained on GSM8K; evaluated zero-shot on GSM8K, MATH-500, and SVAMP.
- DAPO Regime (Qwen3-8B-Base): Trained on DAPO-Math-17k; evaluated on AIME24, AIME25, AMC23, and MATH-500.
Key Insights and Ideas
- FP4 is a nonlinear noise amplifier: Unlike uniform integer grids, E2M1 FP4 only represents a tiny set of non-uniform numbers: $\pm\{0, 0.5, 1, 1.5, 2, 3, 4, 6\}$. Notice the widening gaps! If vLLM computes an activation of
4.95(rounds to4) and FSDP computes5.05due to fused-kernel differences (rounds to6), a tiny0.1system discrepancy explodes into a massive quantization jump. - Outlier tokens poison the batch: Because RL updates rely on token-level probability ratios, just a handful of these amplified outlier tokens create massive importance-weight spikes (increasing clip-trigger rates $400\times$ compared to W4A16) that corrupt gradients over time.
- Training-side alignment fixes cross-stack mismatch: CPA never directly touches vLLM during loss computation—it only aligns BF16 and fake-FP4 inside FSDP. Why does this fix the vLLM-to-FSDP gap? The authors show a 0.9318 Spearman correlation between training-side quantization error and cross-stack mismatch on the same tokens. Both errors stem from activations sitting near sensitive FP4 rounding boundaries; nudging the model out of those danger zones fixes both at once.
Key Results
Evaluated on final BF16 master checkpoints, CPA matches full-precision quality while unlocking real hardware speedups:
- Downstream Accuracy: On GRPO (1.7B), CPA averages 78.1% across benchmarks vs. 78.2% for full BF16 (even beating BF16 on GSM8K at 86.1% vs. 85.4%), while Naive W4A4 drops to 68.0%. On DAPO (8B), CPA averages 47.1% vs. 47.5% for BF16, decisively outperforming Naive W4A4 (39.1%) and prior quantized RL methods QuRL (24.3%) and QaRL (41.8%).
- Speedup: Real FP4 cuts rollout time by 21.4%, 31.3%, and 51.0% on 1.7B, 8B, and 32B models, respectively. Even after accounting for the extra BF16 forward pass during training (which adds 9–16% to training-phase time), CPA delivers 8.3% (1.7B), 19.3% (8B), and 18.1% (32B) end-to-end per-step training speedups over BF16.
Limitations and Future Work
- Extra training pass overhead: Running the second BF16 reference forward pass adds ~5% training overhead relative to naive W4A4, leaving room for kernel or systems optimization.
- Hyperparameter trade-offs: The regularization weight ($\lambda_{\text{CPA}}$) balances stability against exploration; pushing it too high over-constrains the policy and slows RL learning, and optimal values may shift across tasks or sequence lengths.
- Scope: Experiments focus on Qwen3 math reasoning (up to 8K response tokens) using NVFP4 on vLLM+FSDP. Extending validation to other model families, non-math domains, MXFP4 formats, and ultra-long context reasoning remains open.
Summary updated