arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.34915

End-to-End MXFP8 Reinforcement Learning on Blackwell: What Matching Buys, When It Pays Off, and How It Fails

Wengee Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Low-precision arithmetic can make reinforcement learning (RL) for large language models cheaper, but RL requires the sampler and the learner to agree. Several frameworks now run FP8 on both sides. We implement end-to-end MXFP8 RL in verl—Megatron/Transformer Engine training; vLLM and SGLang rollout; dense and MoE models—and measure on B200 GPUs, with Qwen3-8B and Qwen3-30B-A3B, what this design buys, when it is faster, and how it fails. (1) Matching. For an MXFP8 learner, a sampler on the learner's grid is more consistent than a higher-precision BF16 sampler: in one engine at fixed weights, train-rollout KL is 11% lower with half of the sampler's linear layers on the grid and 16% lower with all of them, and the synchronized weights we checked equal the learner's FP8 forward weights byte for byte. On the MoE model, an FP8 pipeline whose sampler uses another grid has twice the shared-grid pipeline's KL from the first step. Without a quantized KV cache, BF16 end to end remains 2.5–10× more consistent. (2) Speed. MXFP8 training adds a fixed cost per micro-batch and saves a per-token cost, so in our dense setting it pays off only above about 4.5k tokens per micro-batch; a micro-batch sweep on identical data confirms the per-micro-batch cost, and a trace shows the GPU waiting for the host for most of the added time. End to end, MXFP8 cuts MoE step time by 10.7% and generation time by 24%, and slows a short-sequence dense workload by 5%. (3) Correctness. We state seven conditions every weight synchronization must preserve and checks that test them against the live engine. Each of the seven failures we met on hardware broke one condition, five silently; the checks caught two at their first opportunity, each missed by the other checks, and CPU fault-injection tests reproduce five. All runs are single-seed and at most 60 steps long; we make no claim about final model quality.

1 Introduction

Reinforcement learning with verifiable rewards has become a standard stage of LLM post-training [28, 35]. An RL step has two GEMM-heavy halves: an inference engine such as vLLM [11] or SGLang [36] samples responses, and a distributed trainer such as Megatron-Core [30] learns from them. Both halves are candidates for FP8 arithmetic, which doubles peak tensor-core throughput over BF16 on Hopper and Blackwell GPUs. For pre-training, FP8 has been shown to match BF16 at scale with per-tensor, block-wise, and microscaling recipes [4, 16, 18, 22].

RL, however, has a requirement that pre-training lacks: the sampler and the learner must represent the same policy. In practice they are two separate implementations, and even in BF16 their log-probabilities differ; this train-inference mismatch makes nominally on-policy training slightly off-policy, biases the policy gradient, and has been linked to training collapse, which is why importance-sampling corrections are now common [13, 23, 33]. Quantizing only one side widens the gap. A BF16 learner with an FP8 or INT8 sampler [14, 24] speeds up rollout, but the sampler then serves a post-training-quantized copy of the policy; an FP8 learner with a BF16 sampler speeds up training, and the sampler then serves a policy the learner never computes with.

The field has therefore moved to low precision on both sides. On Hopper GPUs, unified block-wise FP8 pipelines keep the learner and the sampler on one FP8 recipe [6, 8, 31]. On Blackwell (SM100), whose tensor cores implement the OCP microscaling (MX) formats [26, 27] natively—MXFP8 stores E4M3 elements in blocks of 32 that share one power-of-two (E8M0) scale, applied inside the matrix-multiply instruction—Miles runs MXFP8 end to end with a byte-exact quantizer contract between Transformer Engine and FlashInfer [12], and SkyRL makes the synchronized FP8 weights bitwise identical to the trainer's after measuring a mean relative error of 0.038 between the two sides' FP8 weights when the sampler re-quantized independently [34]. The reverse is also documented: a 688B-parameter mixture-of-experts (MoE) model whose MXFP8 learner was paired with a block-wise FP8 sampler collapsed, and truncated importance sampling did not prevent it [1]. We call the arrangement in which the sampler receives the learner's own quantized weight grid shared-grid weight synchronization. It needs no calibration and no offline checkpoint conversion: the sampler starts from the BF16 checkpoint in low-precision mode and receives freshly quantized weights after every optimizer step.

These reports establish that shared-grid synchronization is feasible and that mismatched grids can be harmful. They leave three practical questions open, which this paper addresses with measurements on B200 GPUs:

• Q1 (consistency). How much does matching buy, and relative to what? In particular, for a low-precision learner, is a matched low-precision sampler more or less consistent than a BF16 sampler, and does the answer depend on how much of the sampler is matched?

• Q2 (speed). When does end-to-end MXFP8 make an RL step faster, and why does it sometimes make it slower? SkyRL observed that per-micro-batch host overhead made its FP8 training phase roughly time-neutral on H100 [34]; we turn that observation into a threshold, test it on a held-out workload and in a controlled sweep, and profile the cost.

• Q3 (correctness). What must a weight synchronization preserve for the sampler to keep computing the learner's policy, and how can violations that do not crash be detected at run time?

References (31)