miniTE: Diagnosing and bridging execution gaps in native NVFP4 reinforcement learningminiTE: Diagnosing and Bridging the Execution Gap in Native NVFP4 Reinforcement Learning
InfiX.ai and NVIDIA propose the miniTE framework, which diagnoses and bridges the execution gap between learner and sampler in native NVFP4 RL, achieving evaluation quality close to BF16 and 1.39× training throughput on Qwen3-30B-A3B.
- Native NVFP4 is expected to accelerate LLM reinforcement learning, but the learner and sampler belong to two execution engines; merely matching weights and numerical formats is insufficient to guarantee consistent policy evaluation, and cross-engine numerical execution differences enter the importance ratio and clipping decisions, affecting learning stability.
- Propose the miniTE framework: first do execution gap diagnostics with frozen policies, controlled routing, and controlled scaling, then give an explicit execution specification (scale domain, rounding, layout, cast placement), implement a native training path with per-token NVFP4 W4A4 expert forward plus BF16 backward, and jointly optimize quantization and grouped GEMM as a connected dataflow.
- On Qwen3-30B-A3B, miniTE long-horizon RL training is stable, with a five-task average of 56.35% at step 999, higher than naive NVFP4's 54.57% and lower than BF16's 58.84%; the optimized full learner update reaches 33,540 tokens/s, 1.39× that of BF16 and 1.47× that of TE NVFP4; under the same recipe, expert forward achieves a geometric-mean speedup of 2.46× relative to TE U3045.
- The authors note: the average evaluation quality of the practical path is still lower than BF16, and cross-engine consistency is less than strict execution; weight conversion and synchronization are notable integration overheads; learning evidence covers only one MoE model with one run per configuration, and implementation gains are verified only on Blackwell hardware.
- Evaluated models
- Qwen3-30B-A3B-Base
- Benchmarks
- DAPO-Math-17kAIME 2024AIME 2025MATH-500GSM8KIFEval
- Metrics
- tokens/sspeeduplog-probability discrepancyrewardrelative-L2 discrepancyclipping potential
The miniTE open-source framework diagnoses and bridges numerical execution discrepancies between the learner and rollout engines in native NVFP4 (W4A4) large-model reinforcement learning. The study finds that even when both use NVFP4, subtle execution differences can cause training-inference mismatch and undermine RL stability; under a strictly aligned setting, miniTE reduces the training-inference log-probability gap to about 1e-8. With kernel and grouped GEMM optimizations, learner throughput reaches up to 1.39× that of BF16 on 8×B300 GPUs, and Qwen3-30B-A3B long-horizon RL downstream performance approaches BF16.
Paper analysis
What problem does this paper attempt to solve?
Solve the problem in native NVFP4 RL that the learner and sampler have inconsistent cross-engine numerical execution, leading to unstable learning and making low-bit gains hard to realize.
Core problem: In native NVFP4 RL, matching weights and numerical formats is insufficient to guarantee consistent policy evaluation between learner and sampler, and cross-engine numerical execution differences enter the optimization process.
- Setting and importance: RL post-training spans two engines, an autoregressive sampler and a learner, and the probabilities computed by both enter the importance ratio and clipping decisions (PPO-style objective), so even with a shared parameter version, implementation differences enter the optimization.
- Shortcomings of existing methods: The authors state that work such as quantized sampling, matched precision, and quantization-aware RL addresses learner–sampler mismatch, but NVFP4's choices in scale domain, rounding, accumulation, and operator composition cannot be specified by a format name; matching bit width and expert ID alone is insufficient.
- Core observation: Frozen-policy scoring shows that NVFP4 amplifies the cross-engine log-probability tail; after target-layer routing is made consistent, FC1/FC2 outputs still differ; changing only the sampler's scaling cannot establish consistency (Figure 1). The authors therefore propose the "execution specification" as the unit of diagnosis and implementation.
- Proposed approach: The paper proposes the miniTE framework, combining execution diagnosis, cross-engine numerical alignment, and efficient native W4A4 GEMM computation, to improve numerical execution consistency and reduce implementation overhead without modifying the RL objective.
- System context: This is not an attack/defense paper and has no threat model; the object of study is the numerical and performance behavior of the RL training system itself on Blackwell GPUs.
What related research exists?
Related work falls into three groups: native low-precision training, quantized RL, and execution mismatch and routing; miniTE is positioned as connecting cross-engine diagnosis with the implementation cost of the native expert path.
Native low-precision learning
- Microscaling (Rouhani et al., 2023) specifies narrow elements with shared block scaling; QLoRA (Dettmers et al., 2023) uses 4-bit storage plus BF16 compute; Quartet (Castro et al., 2025) performs native MXFP4 forward and gradient GEMM.
- NVFP4 pretraining (NVIDIA et al., 2025), Composer 2 (Cursor Research, 2026), and Miles (Li et al., 2026) provide native low-bit learning paths; Miles combines per-token NVFP4, high-precision backward, and quantizer consistency.
Quantized RL
- QeRL (Huang et al., 2025) combines quantized rollout with low-rank adaptation; Jet-RL (Xi et al., 2026) unifies FP8 training and rollout.
- QUADS (Zhuge et al., 2026) combines learner-side W4A16 weight QAT with sampler-side activation residual compensation; QaRL (Gu et al., 2026) pairs low-bit forward with sequence-level trust-band optimization.
Execution mismatch and routing
- Off-policy analysis (Yao et al., 2025), sequence-level ratios (Zheng et al., 2025), and execution-alignment reference (Zhong et al., 2026) examine sampler–learner consistency; FP16 study (Qi et al., 2025) addresses rounding precision.
- Selective precision (Fedus et al., 2022) and routing replay (Ma et al., 2025) address expert-selection sensitivity; deterministic kernels (He & Thinking Machines Lab, 2025; SGLang Team, 2025; Zhang et al., 2025) control dependence on execution context.
Baselines and benchmarks: The standard baseline is TE's per-tensor NVFP4 recipe (applied to expert grouped linear layers), and the implementation comparison baseline is the upstream per-token implementation TE U3045; training data is DAPO-Math-17k, and evaluation uses AIME 2024/2025, MATH-500, GSM8K, IFEval.
Positioning: The authors state that miniTE studies the residual cross-engine execution differences and the implementation cost of the native expert path, diagnoses the differences that remain under target-layer routing matching, and evaluates the native implementation through operator equivalence, learning trajectories, and full learner timing.
How does the paper address this problem?
miniTE first diagnoses the execution gap, then implements per-token NVFP4 W4A4 forward + BF16 backward with an explicit execution specification, and jointly optimizes the quantization and grouped GEMM dataflow.
Overall approach: first use controlled experiments to isolate the "execution gap" from weight lag and sampling variation, then write every choice of the numerical path into an explicit execution specification, and finally implement a native NVFP4 learning path and jointly optimize quantization and grouped GEMM as a connected dataflow.
Problem formalization
- The learner and sampler policies are denoted π_θ_L and π_θ_R; non-strict RL runs use truncated importance sampling (TIS) to correct likelihood differences, and the correction term is independent of the clipping of the policy update ratio.
- After fixing the parameter version, the execution difference is defined as δnumt = log πθL(at|st) − log πθR(at|st), i.e., the log-probability difference between the two engines under teacher-forced scoring of the same token sequence; it separates execution differences from weight lag and sampling variation.
- NVFP4 format: E2M1 values plus one E4M3 block scale per 16 values and an outer FP32 scale; row-level scaling only changes how the block scale uses the dynamic range, and does not specify rounding instructions, reduction order, padding, or the placement of router weights and output cast.
Execution gap diagnostics (Section 3)
- Frozen-policy study: use a frozen Qwen3-30B-A3B-Base checkpoint to do teacher-forced scoring on identical token sequences; the tail uses 32 prompts and 69,088 matched tokens, and localization uses 12 prompts and 11 depths; confidence intervals use 2,000 prompt-cluster bootstraps.
- Three types of comparison: quantization error (in-stack NVFP4 vs. BF16), cross-stack execution difference (learner vs. sampler), implementation difference (optimized vs. reference version of the same operator).
- Controlled experiments: fix the target-layer expert assignment but keep naturally accumulated inputs; change only the sampler activation outer scaling from per-tensor to per-token; do replay under common MoE layer inputs.
Execution specification and diagnostic references (Section 4.1)
- The execution specification records the scale domain, rounding, logical layout, and the placement of casts and router coefficients; comparisons fix the weight version, token IDs, and scoring context.
- strict execution reference: align the learner's kernels, formulas, reduction order, and sampler (including normalization and communication paths), keeping the native NVFP4 expert forward and BF16 gradients, as a cross-engine intervention.
- operator reference: compare the initial and optimized implementations under a fixed recipe and common inputs, checking whether API or layout transformations preserve quantized operands and outputs.
Native NVFP4 learning path (Section 4.2)
- per-token scaling: each dispatched activation row has an independent outer scale gxe,t = maxk |Xe,tk| / (6 · 448), eliminating dependence on the maximum of other tokens under a fixed quantization rule; weights take the outer scale per output row; Hadamard transform and stochastic rounding are disabled.
- Native accumulation and epilogue rescaling: the outer factor is independent of the reduction index and can be applied as an FP32 broadcast after native block-scaled accumulation, then cast to BF16 output, without materializing decoded BF16 operands.
- Independent backward precision: by default use the straight-through approximation, computing gradients with BF16 GEMM on the saved original BF16 activations and weights, avoiding backward quantization and its preparation overhead; MXFP8 backward is optional.
- MoE composition and RL integration: router probabilities are applied to SwiGLU activations before FC2; non-expert modules remain high precision; weight conversion and synchronization connect to the NVFP4 sampler with per-token activation scaling; the existing TIS-corrected RL pipeline is reused.
Joint design of quantization and grouped GEMM (Section 4.3)
- Shared producer–consumer representation: miniTE writes packed FP4 codes, block scales, and outer scales directly into the contiguous buffers consumed by GEMM, with device-side offsets describing expert boundaries, removing duplicate splitting and parameter preparation between the two grouped interfaces, and supporting empty groups.
- Statistics travel with activations: FC1 collects maxima during permutation and pads activations and statistics together (the reference implementation is sort → pad → amax scan → quant, miniTE is sort+amax → pad → quant); FC2 takes maxima from the producer of router-weighted activations.
- Layout and native GEMM: the fused scale layout preparation supplies the format consumed by Tensor Cores; FC1/FC2 use different GEMM configurations for different reduction lengths.
- Framework integration: users replace the expert grouped-linear module through a public expert computation interface; the quantization recipe and backward precision can be configured separately.
What experiments did the paper conduct?
Frozen-policy diagnostics confirm that the execution gap exists; on Qwen3-30B-A3B long-horizon RL, miniTE evaluation is better than naive NVFP4 and close to BF16, and full learner update throughput reaches 1.39× that of BF16.
Experimental setup
- Model under test: Qwen3-30B-A3B-Base (48 layers, hidden 2,048, 128 experts, top-8 routing, expert intermediate dimension 768).
- Configurations: BF16 (TE BF16 GroupedLinear), naive NVFP4 (TE per-tensor recipe applied to expert layers), CUTLASS NVFP4, miniTE (per-token NVFP4 expert forward, with Hadamard and stochastic rounding disabled); backward has two variants, BF16 and MXFP8; all non-strict RL runs use TIS, and the strict reference does not use TIS.
- Data and algorithm: DAPO-Math-17k, GRPO; 32 prompt/rollout batch, 16 responses per prompt; learning rate 1e-6 constant.
- Full learner update timing: 8×B300, sequence length 4,096, global batch 128 (524,288 tokens per update), including forward, backward, communication, and optimizer; the core study uses 10 process trials, the optimized study uses 1 process trial (15 measurements trimmed to 13).
- Module timing: FC1/FC2 use balanced expert load, four token counts, 5 process trials per cell; there is also routing control on 8×GB200.
- Evaluation: step 999 checkpoint; AIME 2024/2025 averaged over 6 rounds each, MATH-500, GSM8K, IFEval averaged over 4 rounds each; IFEval uses Prompt-level Strict accuracy; the BF16 checkpoint uses BF16 inference, and the two NVFP4 paths use NVFP4 inference; the paper states that repeated evaluation does not constitute independent training seeds, and no confidence intervals are reported.
Main results
Frozen-policy diagnosis (Table 4, 32 prompts, 69,088 matched tokens):
Swipe horizontally to read the table
Condition |Δlog p| P99 Ratio P01 Ratio P99 Clip potential BF16 0.1271 0.9471 1.0489 0.627% NVFP4 0.2911 0.8933 1.1243 1.203% Per-token candidate 0.3179 0.8745 1.1152 1.282% step 999 evaluation (Table 1, %):
Swipe horizontally to read the table
Configuration AIME24 AIME25 MATH-500 GSM8K IFEval Avg. (Δ) BF16 41.11 31.11 90.05 93.57 38.36 58.84 (0.00) NVFP4 26.67 20.56 86.90 94.71 43.99 54.57 (−4.27) miniTE 36.67 24.44 87.45 94.79 38.40 56.35 (−2.49) Gain vs. NVFP4 +10.00 +3.88 +0.55 +0.08 −5.59 +1.78 Full learner throughput (Table 2, 8×B300, 524,288 tokens per update):
Swipe horizontally to read the table
Implementation Configuration Tokens/s vs. BF16 Trials Optimized BF16 24,134 1.000× 1 Optimized TE NVFP4 22,801 0.945× 1 Optimized miniTE 33,540 1.390× 1 Core BF16 24,192 1.000× 10 Core TE NVFP4 23,294 0.959× 10 Core miniTE 32,517 1.334× 10 - The authors state that NVFP4 amplifies the log-probability tail before any optimizer update (paired increment 0.1641 nats, 95% CI [0.1311, 0.2005]); miniTE maintains reward growth and is higher than naive NVFP4 on all four math benchmarks, but the ranking is reversed on IFEval (38.40% vs. NVFP4's 43.99%), which the authors describe as a task-dependent ranking, with aggregate scores unable to identify the cause.
- The authors note that the two NVFP4 paths have similar average log-probability differences but different reward trajectories, so average training metrics alone cannot identify which numerical differences affect learning.
- The throughput numbers are full learner updates on fixed text, excluding rollout and weight synchronization, and are not end-to-end RL iterations.
Execution reference and design validation (Section 5.4)
- Strict execution: Matching the learner and sampler's kernels, formulas, and reduction order and not using TIS gives a log-probability difference of about 1e-8 (Figure 4), and maintains reward in the interval where unaligned runs degrade; the authors state that this provides an execution-level intervention under which native FP4 computation and stable learning coexist.
- Numerical preservation: The unfused quantization/grouped-GEMM API comparison passes all 28 bitwise checks; the fused vs. unfused layout comparison has zero deviation on synthetic and real-activation tests.
- Backward precision: With fixed expert forward, BF16 backward has lower latency than MXFP8 backward on all 8 module cells, geometric mean about 1.21×; the maximum gradient relative-L2 difference from the FP32 reference is 0.001663 for BF16 and 0.037653 for MXFP8 (Table 8).
Efficiency and load analysis (Sections 5.3, Appendices F/G)
- Same-recipe implementation gain: Relative to TE U3045, miniTE expert forward achieves a geometric-mean speedup of 2.46× (FC1/FC2 × four loads, 8 cells total, range 1.587×–3.065×); module inputs are pre-permuted and exclude dispatch, a different boundary from full update timing.
- Limitation of balanced load: miniTE (BF16 backward) is slower than BF16 in 7 of the 8 module forward+backward cells; the authors use this to state that balanced module timing cannot predict full learner ranking.
- Routing control (Appendix G, Table 15): On 8×GB200, random weights + mock data activate an average of 50.8 experts per layer, and pretrained weights + real DAPO text activate 126.2 (out of 128); GB200 full update timing for miniTE vs. BF16 is 1.284× (Table 16).
- Costs outside the learner: Under standalone serving, NVFP4 reaches 80,676 output tokens/s, 1.64× BF16 (Table 14); in the colocated RL window, learner time drops from 47.04 s to 42.56 s, but weight conversion/synchronization rises from 9.94 s to 55.26 s, totaling 56.98 s for BF16 and 97.82 s for miniTE across the two stages (Table 13); the authors state that this total excludes stages such as rollout and cannot determine whether the full RL iteration is faster or slower.
Other ablations and analyses
- Routing controlled: After fixing target-layer expert assignment, FC1 differences are 0.0381–0.6124 and FC2 differences are 0.0810–0.7624 (Figure 1 right).
- Changing only sampler scaling (Table 5, 4-prompt queue): FC1/FC2 GEMM differences are unchanged (difference 0.00000), and the 95% CI of the P99 difference [−0.2231, 0.1517] includes zero.
- Early per-token candidate: P99 is 0.0268 nats higher than standard NVFP4 (95% CI [0.0017, 0.0495]), and clip potential is 0.080 percentage points higher (Table 4 and Appendix C).
- Context-swap (Table 7): miniTE keeps the target row's FP4 codes and GEMM output bitwise unchanged across 6 swaps; the per-tensor reference with RHT enabled changes in 5 of 6.
- Public-input replay (Table 6): On layer 0, miniTE still has residual differences of FC1 0.0575 and FC2 0.0931 under public inputs.
- Optimized miniTE reserves 10.8% more GPU memory than BF16, lower than the two CUTLASS NVFP4 variants (Appendix F.1).
What are some points that can be further explored?
The authors note that quality still lags BF16, weight conversion and synchronization overhead is large, and evidence is limited to a single model and a single seed; experiments cover one MoE model and Blackwell hardware.
Limitations and future directions noted by the authors
- Numerical fidelity (Section 8): The average evaluation quality of the practical path still falls short of BF16, and cross-engine consistency falls short of strict execution; matched execution cannot eliminate the quantization error from E2M1 values and E4M3 block scaling, and the existing gap cannot separate the effects of quantization error from residual execution differences; future work should study tighter execution alignment and format-aware error compensation.
- End-to-end efficiency (Section 8): Colocated measurements show that weight conversion and synchronization are substantial integration costs, and the measurements cover only some stages rather than the full RL iteration, so component speedups cannot establish end-to-end gains; reducing repeated conversion and packing at the learner–sampler boundary is a priority direction.
- Online fusion (Section 8): Online amax–quantization–GEMM fusion is a complementary direction for reducing operator-side preparation overhead, and its numerical behavior and performance need joint validation, especially when scales change during accumulation.
- Breadth of evidence (Section 8): The learning evidence covers one MoE model with one run per configuration, and implementation gains are evaluated on Blackwell hardware; validation across models, tasks, independent training seeds, and hardware platforms is future work.
Scope of experimental coverage
- The model under test is one MoE model, Qwen3-30B-A3B-Base; RL training uses one run per configuration (Figure 3 and Figure 4 are each one configuration, one run).
- Training data is DAPO-Math-17k; evaluation benchmarks are AIME 2024/2025, MATH-500, GSM8K, IFEval; the paper states that repeated evaluation of a checkpoint does not constitute independent training seeds, the aggregate records have no per-round dispersion, and only point estimates are reported.
- Performance measurements are conducted on 8×B300 (learner update, serving, colocated RL) and 8×GB200 (routing control and standalone timing); module timing uses balanced synthetic load, with inputs pre-permuted and excluding dispatch.
- Full learner timing is an update on fixed text, excluding rollout and weight synchronization; colocated measurements cover only the learner and weight update stages, excluding the full RL iteration.
- The paper does not report multiple independent seed repetitions of RL training; strict execution is a joint intervention (changing multiple operators at once and omitting TIS), and does not isolate the effect of a single determinism switch.
Summarize the main content of the paper
miniTE diagnoses and bridges the cross-engine execution gap in native NVFP4 RL, with evaluation on Qwen3-30B-A3B approaching BF16 and throughput 1.39× BF16.
A systems paper on native low-bit reinforcement learning: the authors study numerical inconsistency between the learner and sampler execution engines in NVFP4 RL, and propose the miniTE framework to diagnose and bridge it.
- Problem: In RL, probabilities computed by the two engines enter the importance ratio and clipping, and matching weights and format names alone is insufficient to guarantee consistent policy evaluation; a frozen-policy experiment shows that NVFP4 amplifies the cross-engine log-probability tail P99 from 0.1271 nats under BF16 to 0.2911 (Table 4), and neither routing consistency nor changing scaling alone eliminates the residual difference.
- Method: miniTE writes the scale domain, rounding, layout, and cast locations as an explicit execution specification, implements per-token NVFP4 W4A4 expert forward plus an independently chosen BF16 backward, and jointly optimizes quantization and grouped GEMM as a connected dataflow (statistics follow activations row-wise, contiguous buffers, fused layout); it does not modify the RL objective and follows the TIS-corrected pipeline.
- Learning quality: On long-horizon RL with Qwen3-30B-A3B, step 999 five-task average is 56.35%, higher than naive NVFP4's 54.57% and lower than BF16's 58.84%; all four math benchmarks are better than naive NVFP4, while on IFEval it is lower than NVFP4 (Table 1).
- Efficiency: The optimized full learner update reaches 33,540 tokens/s, 1.39× BF16 and 1.47× TE NVFP4 (Table 2); under the same recipe, expert forward achieves a geometric-mean speedup of 2.46× relative to TE U3045.
- Additional findings: Strict execution reduces the cross-engine log-probability difference to about 1e-8 and maintains reward; in colocated RL, weight conversion/synchronization rises from 9.94 s to 55.26 s, becoming the integration bottleneck (Table 13).
- Authors' conclusion: The authors state that the execution specification is a more useful unit of diagnosis and implementation than bit width and expert ID, and that miniTE provides a scalable foundation for co-designing numerics and systems for native low-bit RL; they also acknowledge that quality still lags BF16 and that evidence is limited to a single model, a single seed, and Blackwell hardware.