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

Manuscript Offprint

arXiv:2610.07767

TRACE: Rollout-Guided Quantization-Aware Training for FP4 Reinforcement Learning of MoE Language Models

Xin Wang, Hao Yu, Zhengyang Zhuge, Bochao Mao, Zheng Li, Junda Feng, Yuyan Luo, Yi Zhang, Yizhong Cao, Mi Zhang, Dayiheng Liu, Jianwei Zhang

Abstract

Reinforcement learning (RL) for post-training large language models (LLMs) incurs substantial computation and memory overhead during rollout generation, which motivates low-precision rollout for efficient RL training. However, existing FP4 RL methods suffer from a key limitation: they primarily optimize quantization accuracy on the training and rollout paths independently rather than directly reducing the discrepancy between the two quantized execution paths. In this work, we propose TRACE (Train-Rollout Quantization Alignment via Compact GuidanceE), an FP4 quantization framework for RL training of Mixture-of-Experts (MoE) language models that addresses the limitation of existing FP4 RL methods. TRACE incorporates rollout-guided quantization-aware training that uses rollout-side quantization outcomes to guide training-side FP4 rounding decisions, directly reducing train-rollout discrepancy. Moreover, TRACE adopts an efficient quantization-information caching scheme that selectively retains mantissa and scale information from deeper layers to reduce the storage and communication overhead introduced by rollout guidance. We evaluate TRACE on four large-scale MoE language models across reasoning, coding, and long-horizon RL tasks. Our results demonstrate that TRACE enables joint FP4 weight/activation and FP4 KV-cache rollout with RL performance comparable to BF16 rollout, while achieving up to 5.4×5.4\times rollout speedup and strong final FP4 performance compared with post-hoc FP4 quantization of BF16-trained policies.

1 Introduction

Reinforcement learning (RL) has become an important post-training paradigm for improving the reasoning, coding, and other complex capabilities of Large Language Models (LLMs) (Zhao et al., 2023; Zhang et al., 2025). Despite its effectiveness, RL training incurs substantial computation and memory overhead due to the repeated generation of long trajectories during rollout (Wang et al., 2025). Low-precision rollout (Zhuge et al., 2026; Yao et al., 2026; Li et al., 2026; Xi et al., 2026; Huang et al., 2025) provides a promising solution by quantizing the policy model during generation to reduce rollout cost. In particular, aggressive FP4 quantization (W4A4) provides greater opportunities to accelerate rollout generation and reduce its memory footprint. However, the coarse quantization space of FP4 also introduces large numerical discrepancies between the rollout and training execution paths, which can result in policy mismatch and destabilize RL training. Such inconsistency is particularly challenging for Mixture-of-Experts (MoE) language models (Shazeer et al., 2017), where numerical differences may further interact with expert routing and amplify the mismatch between rollout and training policies (Zheng et al., 2025a). To mitigate this issue, several recent FP4 RL methods (Zhuge et al., 2026; Mak et al., 2026) improve the numerical consistency between low-precision rollout and training through quantization-aware training or quantization-error compensation.

Despite these efforts, existing FP4 RL methods suffer from a fundamental issue: Misalignment between quantization accuracy and train-rollout discrepancy. Existing methods primarily improve quantization accuracy with respect to the high-precision representation on the training and rollout paths independently. However, minimizing the quantization error on each execution path does not directly minimize the discrepancy between the two quantized execution paths. As a consequence, even when both paths achieve small quantization errors, their quantized values can still diverge substantially, leading to large policy mismatch, degraded RL performance, or even training collapse.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

‡^{\ddagger}Work is done during internship at Alibaba Token Hub, Alibaba Group.

NVFP4 W/A + NVFP4KV (QAT)

NVFP4 W/A + NVFP4KV (TRACE)

BF16 W/A + BF16 KV

Figure

(a) Train-Rollout Log-Prob Diff

Figure

(b) Test Score on Terminal-Bench

Figure

(c) Low-Precision Adaptation

Figure 1: Training dynamics of Qwen3.8-Flash-Next under FP4 rollout. Conventional FP4 QAT exhibits increasing train-rollout discrepancy and degraded test score on Terminal-Bench 2.1, while TRACE maintains stable alignment and enables the policy to progressively adapt to FP4 rollout.

In this paper, we propose TRACE (Train-Rollout Quantization Alignment via Compact GuidanceE), an FP4 quantization framework for RL training of MoE language models. TRACE differs from existing FP4 RL approaches in two key aspects. ① Rollout-Guided Quantization-Aware Training: TRACE directly reduces local quantized train-rollout discrepancy by using rollout-side quantization outcomes to guide training-side FP4 rounding decisions. ② Efficient Quantization-Information Caching: To reduce the storage and communication overhead introduced by rollout guidance during RL training, TRACE only retains the mantissa and scale information from selected deeper layers.

Figure 1 highlights the training dynamics under aggressive FP4 rollout (NVFP4 W/A + NVFP4 KV) with TRACE. FP4 QAT exhibits an increasingly large train-rollout policy mismatch as training proceeds, resulting in a sharp degradation in test score on Terminal-Bench. In contrast, TRACE effectively controls the train-rollout discrepancy and maintains stable RL training. More interestingly, once the discrepancy is properly controlled, the policy progressively adapts to FP4 rollout: although TRACE initially suffers from quantization-induced performance degradation, the performance gap relative to BF16 rollout gradually diminishes during training and can eventually be closed or even reversed.

We compare TRACE with representative FP4 rollout baselines, including vanilla QAT, QaRL, QUADS and Score Centering, as well as post-hoc FP4 quantization methods, including vanilla NVFP4, 4over6, and H-Scale. To demonstrate the generalizability of TRACE, we evaluate it on four MoE language models—Qwen3.5-35B-A3B, Qwen3.5-122B-A10B, Qwen3.8-Flash-Next, and Qwen3.8-2.4T-A95B—across reasoning, coding, and long-horizon RL tasks. We highlight three of our findings:

• TRACE enables joint FP4 W/A and FP4 KV rollout while preserving BF16-level performance, maintaining training dynamics and final task performance comparable to BF16 rollout.

• TRACE retains the efficiency advantage of FP4 rollout with limited algorithm overhead, achieving up to 5.4×5.4 \times rollout speedup over BF16 rollout.

• TRACE achieves stronger final FP4 task performance than pipelines that first train with BF16 rollout and apply post-hoc FP4 quantization.

References (29)