TRACE:面向MoE语言模型FP4强化学习的轨迹引导量化感知训练

·

研究论文 · 2026/10/07

针对大型语言模型强化学习后训练中 rollout 生成的计算和内存开销问题,现有 FP4 强化学习方法主要在训练和 rollout 路径上独立优化量化精度,而非直接减少两条量化执行路径之间的差异。本文提出 TRACE(通过紧凑引导实现训练-rollout 量化对齐),一种用于混合专家(MoE)语言模型强化学习训练的 FP4 量化框架。TRACE 采用 rollout 引导的量化感知训练,利用 rollout 侧的量化结果指导训练侧的 FP4 舍入决策,直接减少训练-rollout 差异。此外,TRACE 采用高效的量化信息缓存方案,选择性保留深层尾数和缩放信息,以减少 rollout 引导带来的存储和通信开销。在四个大规模 MoE 语言模型上,针对推理、编码和长时程强化学习任务进行评估,结果表明 TRACE 能够实现 FP4 权重/激活和 FP4 KV 缓存的联合 rollout,其强化学习性能与 BF16 rollout 相当,同时实现高达 5.4 倍的 rollout 加速,并且与 BF16 训练策略的事后 FP4 量化相比,最终 FP4 性能更强。

该研究针对 FP4 强化学习训练中训练与 rollout 路径量化不一致的核心问题,提出了直接对齐的解决方案,并在多个大规模 MoE 模型上验证了其高效性和性能优势,对推动低精度 RL 训练具有重要价值。

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 GuidancE), 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.4xrollout speedup and strong final FP4 performance compared with post-hoc FP4 quantization of BF16-trained policies.

阅读原文

参与讨论