Summary (Overview)

  • Key finding: RolloutResQ, a quantization recovery recipe that works for dense models in FP4 reinforcement learning (RL), fails to transfer to Mixture-of-Experts (MoE) LLMs, often performing worse than the naive FP4 baseline.
  • Root cause identified: The failure stems from the asymmetric application of residual correction (RC) between training and inference sides. The MoE router's discrete expert selection amplifies this mismatch, causing training and inference policies to route tokens to different experts.
  • Proposed solution: MoEResQ, a symmetric quantization-recovery recipe that applies residual correction on both training and inference sides, restoring training–inference alignment and closing the accuracy gap to full precision (BF16).
  • Results: MoEResQ recovers near-BF16 accuracy on all four benchmarks (AMC23, AIME24, AIME25, MATH500). With experts-only quantization, the gap to BF16 shrinks to as little as 0.49% (AMC23) and 0.54% (MATH500).
  • Core principle established: Training–inference symmetry is the key to accuracy recovery in FP4 RL for MoE models.

Introduction and Theoretical Foundation

Large Language Models (LLMs) have achieved strong performance across mathematical reasoning, code generation, and agentic workflows [1, 2]. Reinforcement Learning with Verifiable Rewards, using policy-gradient algorithms such as GRPO [3], has become a successful paradigm for LLM post-training [4]. However, RL post-training is highly resource-intensive in both memory and computation.

Quantization has emerged as an effective tool to reduce memory footprint and computational cost. Prior work includes:

  • QeRL [7]: weight-only quantization on the rollout policy with LoRA [8]
  • RolloutResQ [9]: residual correction on rollout activations, quantizing both training and rollout sides to 4-bit

A central challenge is the mismatch between training and rollout sides, previously studied only for dense models [10].

Mixture-of-Experts (MoE) LLMs combine dynamic routing with sparse activation, achieving higher performance at reduced computational cost [11, 12]. The router performs a discrete, input-dependent top-k expert selection, making MoE training prone to instabilities such as routing collapse [16, 17, 21] and unusually sensitive to small perturbations of the router's input activations.

This sensitivity is amplified in low-precision RL: when rollout and training run under different numerical conditions, the router can select different experts for the same token, creating a rollout–training mismatch that widens the off-policy gap and can severely degrade or collapse training [22].


Methodology

2.1 Residual Correction and RolloutResQ

Activation outliers are a primary obstacle to low-precision quantization, widening the dynamic range and collapsing smaller values to zero. Residual correction (RC) addresses this. For each linear layer ℓ\ell, the activation residual is:

ΔXℓ=Xℓ−Q(Xℓ)\Delta X_{\ell} = X_{\ell} - Q(X_{\ell})

where QQ is the quantization operator. The corrected output is computed via two FP4 GEMMs:

Y^ℓ=Q(Xℓ)Q(Wℓ)⊤+Q(ΔXℓ)Q(Wℓ)⊤.(1)\hat{Y}_{\ell} = Q(X_{\ell}) Q(W_{\ell})^{\top} + Q(\Delta X_{\ell}) Q(W_{\ell})^{\top}. \tag{1}

RolloutResQ applies this correction on rollout activations only (asymmetric). The paper uses HiF4 [15] as the FP4 quantization format and keeps routers in BF16 (they constitute only 0.38% of active parameters).

2.2 Experimental Setup

  • Model: Qwen3-30B-A3B [19]
  • Training: GRPO on DAPO-Math-17K [30]
  • Infrastructure: VeRL [27], vLLM [28] for rollout, FSDP [29] for training
  • Evaluation: AMC-2023 [23], AIME-2024 [24], AIME-2025 [25], MATH-500 [26]
  • Scopes: Full quantization (experts + attention projections) and experts-only quantization
  • Simulation: All experiments under simulated quantization due to hardware limitations

2.3 MoEResQ

MoEResQ applies RC to the same layers on both training and inference:

  • Rollout: Applies activation correction of Equation 1
  • Training forward pass: Uses the same residual correction as inference
  • Training backward pass: With input XℓX_{\ell}, weight WℓW_{\ell}, and output gradient dYℓdY_{\ell}, the gradients are dXℓ=dYℓWℓdX_{\ell} = dY_{\ell} W_{\ell} and dWℓ=(dYˉℓ)⊤XˉℓdW_{\ell} = (d\bar{Y}_{\ell})^{\top} \bar{X}_{\ell}. Residual correction is applied to both dYℓdY_{\ell} and XℓX_{\ell}, retaining dYℓ,ΔdYˉℓ,Xℓ,ΔXℓdY_{\ell}, \Delta d\bar{Y}_{\ell}, X_{\ell}, \Delta X_{\ell} where ΔXℓ=Xℓ−Q(Xℓ)\Delta X_{\ell} = X_{\ell} - Q(X_{\ell}) and ΔdYℓ=dYℓ−Q(dYℓ)\Delta dY_{\ell} = dY_{\ell} - Q(dY_{\ell}).

The experts-only scope quantizes only expert linear layers (up to 94.66% of parameters in Qwen3-30B-A3B), keeping attention layers in BF16 to limit perturbation to the router's input.


Empirical Validation / Results

Table 1: Main Evaluation Results

DatasetBF16HiF4RolloutResQMoEResQRolloutResQ (experts only)MoEResQ (experts only)
AMC2385.1065.23 (-19.87)62.34 (-22.76)84.45 (-0.65)78.75 (-6.35)84.61 (-0.49)
AIME2448.2323.96 (-24.27)25.00 (-23.23)44.48 (-3.75)37.39 (-10.84)46.98 (-1.25)
AIME2534.3820.83 (-13.55)19.06 (-15.32)29.69 (-4.69)29.06 (-5.32)32.92 (-1.46)
MATH50086.7179.21 (-7.50)74.00 (-12.71)85.42 (-1.29)82.46 (-4.25)86.17 (-0.54)

Table 1: Evaluation results for Qwen3-30B-A3B trained on DAPO-Math-17K with GRPO. Routing layers (0.041% of parameters) kept in BF16.

Key observations:

  • RolloutResQ performs worse than naive HiF4 on 3 of 4 benchmarks (reversal of the dense-model result)
  • MoEResQ narrows the gap to BF16 from ~20% to <5% in all cases
  • Experts-only MoEResQ lands within ~0.5% of BF16 on AMC23 and MATH500

Table 2: Training–Inference Alignment Metrics

MetricBF16HiF4RC InferenceRC TrainingRC BothRC (Exp. Only) InferenceRC (Exp. Only) TrainingRC (Exp. Only) Both
PCC0.99510.94100.94440.95800.99400.97020.97960.9952
top_k_match_frac
Layer 00.98690.98010.81000.81950.97090.98670.98750.9867
Layer 120.87990.61720.62790.65900.86820.73730.78790.8730
Layer 230.85620.58830.59900.64020.84180.72090.76740.8506
Layer 350.84590.62560.65140.68360.83590.73540.79470.8455
Layer 470.86800.69260.70920.72970.88460.77480.80590.8687
topk_overlap_mean0.98500.95800.95500.96000.98400.97100.97700.9840

Table 2: Training-inference alignment metrics: Pearson correlation coefficient (PCC) between training and inference probabilities, fraction of tokens with exactly matching top-k expert sets (top_k_match_frac), and mean pairwise overlap (topk_overlap_mean).

Key observations:

  • One-sided RC (Inference or Training only) leaves alignment near HiF4 level
  • Symmetric RC (Both) restores all metrics to near-BF16 levels
  • The pattern holds for both full-scope and experts-only quantization

Figure 1 visualizes training vs. inference probability alignment: RC Both clusters tightly along the diagonal (perfect alignment), closely mirroring BF16, while HiF4 and asymmetric recipes show significant scatter.


Theoretical and Practical Implications

Theoretical Implications

  1. Routing amplifies quantization error: The discrete argmax over gate logits means small perturbations can flip expert selection entirely—a failure mode absent in dense models. This explains why dense-model recipes don't transfer trivially.

  2. Symmetry as a design principle: The paper establishes that symmetric application of recovery techniques on training and inference sides is the critical factor for MoE models, not merely the presence of correction. Asymmetric recipes (even those that improve dense models) can actively harm MoE performance.

  3. Quantifying alignment: The PCC, top_k_match_frac, and topk_overlap_mean metrics provide actionable tools for diagnosing training–inference mismatch before full evaluation.

Practical Implications

  1. Efficiency: The experts-only scope captures most of FP4's efficiency benefits (experts are up to 94.66% of parameters) while achieving near-BF16 accuracy—a practical recipe for deployment.

  2. Implementation guidance: MoEResQ provides a concrete, implementable recipe for backward-pass residual correction, extending RC beyond the forward pass.

  3. Hardware constraints: Keeping routers in BF16 (0.041% of parameters) is a low-cost safeguard that preserves routing quality.


Conclusion

This paper studied end-to-end FP4 RL post-training for MoE LLMs and found that RolloutResQ does not transfer from dense to MoE models. The root cause is the router: since expert selection is a discrete argmax over gate logits, the mismatch from an asymmetric recovery recipe is amplified into divergent routing that degrades training–inference alignment.

MoEResQ applies residual correction symmetrically on both training and inference sides, restoring alignment and recovering near-BF16 accuracy. The paper establishes training–inference symmetry as the key principle for accuracy recovery in FP4 RL for MoE models.

Future directions:

  • Pushing the efficiency of the recipe further while sustaining near-BF16 accuracy
  • Exploring additional quantization formats and granularities beyond HiF4
  • Investigating whether symmetric principles extend to other recovery techniques beyond residual correction

The work highlights that as low-precision RL extends to more complex architectures, the interaction between quantization and architecture-specific mechanisms (like routing) must be carefully considered—and that symmetry between training and inference conditions is paramount.

Related papers