Manuscript Offprint

arXiv:2611.04887

FourSight: Stable FP4 RL Post-Training via Sequence Filtering and Sparse Channel Compensation

Yining Wei, Tianyuan Wu, Gu Gong, Yuechen Tao, Yinghao Yu, Xiaowen Chu, Wei Wang

ABSTRACT

Reinforcement learning (RL) post-training increasingly targets low-bit deployment, with NVFP4 weight-and-activation quantization (W4A4) becoming the state-of-the-practice format. However, integrating NVFP4 into RL degrades rollout quality and amplifies cross-engine training–inference mismatch (TIM), destabilizing training. We show that these failures are concentrated rather than uniform—severely mismatched tail tokens concentrate in a few outlier sequences, while policy weights remain largely intact and quantization error concentrates in a few high-variance activation channels. Guided by this, we present FOURSIGHT, an algorithm-system co-design with two targeted solutions: TIM-aware sequence filtering that excludes drifted trajectories from policy updates, and sparse precision compensation that keeps only top-variance channels in BF16 while retaining native NVFP4 elsewhere. We further design a fused SPLICEGEMM kernel with specialized prefill and decode datapaths to minimize overhead. FOURSIGHT sustains near-BF16 accuracy and strong FP4 deployment quality across models and engines, while improving step-to-accuracy by 1.76-2.60× and staying within 2.3% of FP4 step time up to 120B-scale models.

1 INTRODUCTION

Reinforcement learning (RL) post-training is now indispensable in the large language model (LLM) lifecycle (DeepSeek-AI et al., 2025). To cut its steep compute cost while optimizing models directly for low-precision serving, quantized RL (Moonshot AI, 2025; Gu et al., 2026; Li et al., 2026a; Zhuge et al., 2026) has gained wide adoption, with flagship models increasingly post-trained (Moonshot AI, 2026) or deployed (NVIDIA, 2026a;b) in aggressive low-bit formats such as NVFP4 weight-and-activation quantization (W4A4). A typical NVFP4 RL pipeline pairs two decoupled engines: a rollout engine (Kwon et al., 2023; Zheng et al., 2023) running native NVFP4 GEMMs on accelerators such as NVIDIA Blackwell (NVIDIA, 2024) for fast generation, and a training engine (Shoeybi et al., 2019; Zhao et al., 2023; Sheng et al., 2024) performing Quantization-Aware Training (QAT) (Jacob et al., 2017) in high precision for gradient stability while using native or fake-quantized low-bit forwards to match quantized rollout.

In practice, however, naive NVFP4 RL is unstable: even with truncated importance sampling (TIS) (Yao et al., 2025b), training collapses midway and recovers only partially (Figure 1). Two compounding failure modes drive this breakdown. First, disparate numerical implementa-

tions across rollout and training engines induce Training–Inference Mismatch (TIM) (Yao et al., 2025b), where identical weights yield divergent distributions. While manageable in high precision, this discrepancy is sharply amplified by coarse low-bit representations, turning nominally on-policy rollouts effectively off-policy and destabilizing updates (Yao et al., 2025a) (Figure 1). Second, within the rollout stage, NVFP4 severely degrades sample quality. Across sequential autoregressive decode passes, quantization error at each step feeds into the next and accumulates, yielding drifted rollouts that starve policy updates of effective learning signals (Mak et al., 2026; Zhuge et al., 2026).

Existing remedies for these failure modes force a costly trade-off between training stability and system efficiency. Algorithmically, TIM corrections clip or mask individual tokens (Yao et al., 2025b; Li et al., 2026a; Ling Team et al., 2025) or mask entire sequences (Gu et al., 2026; Li et al., 2026b), yet both fall short in NVFP4 RL. Token-level schemes still leak distorted sequence-level advantages via unclipped tokens, whereas sequence-level filters like QaRL (Gu et al., 2026) rely on coarse aggregated metrics that miss intra-sequence breakdowns, hurting learning efficiency and leaving degraded rollouts uncompensated (Figure 7). At the operator level, precision compensations such as ARCQuant (Meng et al., 2026), HiFloat4 (Mak et al., 2026), and QUADS (Zhuge et al., 2026) restore rollout quality via re-quantization or mixed-precision compute, but add overhead that largely offsets low-bit throughput gains. At the system level, runtime unification like veXact (Zhong

*Equal contribution ¹HKUST ²HKUST-GZ ³Alibaba Group. Correspondence to: Tianyuan Wu twubt@connect.ust.hk.

Preprint.

et al., 2026) eliminates TIM by forcing both stages onto a shared engine, but sacrifices stage-specific optimizations at a ~ 25.3% RL step slowdown (Jiang & The SkyRL Team).

We show that this trade-off is avoidable because NVFP4 RL failures are concentrated rather than uniform, a skewness obscured by aggregate metrics like entropy and cross-engine KL that spike only after collapse (Figure 1). At the token level, severe mismatch is driven by nonsensical tail tokens sampled with high probability during rollout but assigned near-zero training probability (Figure 2). In logit space, they form a distinct off-diagonal cluster while other tokens stay aligned (Figure 3). Instead of spreading evenly across a batch, tail tokens are rare before collapse (0.2% in a batch), concentrate in a subset of trajectories at the collapse trough (361/1024 in our experiments), and polarize further after the partial rebound, where nearly 89% of trajectories recover while the rest consist almost entirely of tail tokens (Figure 4). Because GRPO-style algorithms give every token of a trajectory the same advantage, clipping the tail tokens still lets the rest of derailed trajectories update the policy, so an effective defense must discard whole trajectories.

Rollout degradation is likewise concentrated: it stems from quantization errors in a small fraction of activation channels rather than corrupted weights. In our experiment, switching only the rollout precision of a collapsed Qwen3-8B FP4 checkpoint to BF16 recovers 20 pp of GSM8K test accuracy (Figure 5a). Across training, weights drift by at most 0.11% while relative policy quantization error grows by nearly 8× (Figure 5c), showing that RL leaves weights largely intact but amplifies quantization sensitivity. Consistent with prior reports of activation outliers in LLMs (Dettmers et al., 2022; Xiao et al., 2023; Meng et al., 2026), this error concentrates in a few high-variance input channels (Figure 5b). Under NVFP4, each such channel also inflates the scale shared by its 16-element block and coarsens the other 15 values (Mak et al., 2026; Zhuge et al., 2026), so compensating only these channels recovers most of the error.

Guided by these observations, we develop FOURSIGHT, an algorithm–system co-design with two complementary components. First, TIM-aware sequence filtering zeroes out the advantage of drifted trajectories to exclude them from policy updates. Since the rollout engine sampled every trajectory token, a training probability below a small threshold directly signals a severe mismatch; we mark such tokens as tail tokens. FOURSIGHT discards a trajectory if it contains many tail tokens in total (widespread numerical drift) or a long run of consecutive tail tokens (autoregressive generation collapse), while tolerating rare, isolated tail tokens in healthy rollouts. Second, to restore rollout quality, FOURSIGHT applies sparse precision compensation before each rollout stage, keeping the highest-variance input channels of each projection (top-64 in our experiments) in BF16

and the rest in native NVFP4. To avoid separate residual paths (Mak et al., 2026; Zhuge et al., 2026), we design SPLICEGEMM, a fused kernel that folds this BF16 correction into the NVFP4 GEMM with specialized datapaths for large-batch prefill and training and small-batch decoding (Section 5). Together, compensation supplies higher-quality rollouts to learn from, while filtering removes the residual drift it leaves behind.

We have implemented FOURSIGHT atop veRL (Sheng et al., 2024), using vLLM for rollout and Megatron-LM or FSDP for training. FOURSIGHT closely tracks BF16 validation accuracy on both Qwen3-8B with DAPO and Qwen3-1.7B with GRPO, and on Qwen3-8B reaches 20% AIME24 accuracy in 1.76–2.60× fewer steps than QaRL, the strongest quantized baseline (Figure 7). When served in FP4 with sparse compensation, FOURSIGHT outperforms BF16-trained models by 12.7–16.4 pp on Qwen3-1.7B and matches or exceeds all quantized baselines on nine of ten benchmark–engine pairs on Qwen3-8B. System evaluations from Qwen3-8B to Nemotron3-Super-120B-A12B on 32 GPUs show that FOURSIGHT stays within 2.3% of uncompensated FP4 step time, running up to 1.40× faster than BF16 and 1.18–1.29× faster than QUADS. Finally, ablations confirm that both components are complementary and that protecting 64 out of 4096 variance-selected channels per projection recovers most of the FP4 accuracy loss on a degraded checkpoint.

References (37)