miniTE:诊断并弥合原生NVFP4强化学习中的执行差距

·

研究论文 · 2026/10/27

原生NVFP4有望加速大语言模型(LLM)的强化学习(RL),但在分离的训练和采样引擎之间实现稳定学习仍具挑战。我们表明,仅匹配模型权重和数值格式不足以确保一致的策略评估,凸显了跨引擎数值执行的重要性。我们推出miniTE,一个轻量级框架,结合执行诊断、跨引擎数值对齐以及高效的native W4A4(4位权重和激活)GEMM计算,用于LLM RL。它提高了数值执行一致性,而不修改RL目标,同时减少了实现开销,以发挥原生低比特计算的优势。在Qwen3-30B-A3B上的长视野RL实验展示了稳定的训练和接近BF16的基准性能,在评估质量上优于朴素的Transformer Engine (TE) NVFP4。在单个NVIDIA B300 GPU节点上,优化后的学习器达到33,540 tokens/s,对于完整的学习器更新,分别比BF16和TE NVFP4的吞吐量高1.39倍和1.47倍。我们发布了框架、内核、诊断和训练配置,以使原生低比特RL更容易。

该研究解决了原生低比特强化学习中的关键挑战——跨引擎数值执行一致性,提出的miniTE框架在保持RL目标不变的同时显著提升吞吐量,且性能接近BF16,为高效LLM RL提供了实用方案,并开源了相关组件,具有较高的实用和参考价值。

Native NVFP4 promises to accelerate reinforcement learning (RL) for large language models (LLMs), but achieving stable learning across separate training and sampling engines remains challenging. We show that matching model weights and numerical formats is insufficient to ensure consistent policy evaluation, highlighting the importance of cross-engine numerical execution. We introduce miniTE, a lightweight framework that combines execution diagnostics, cross-engine numerical alignment, and efficient native W4A4 (4-bit weights and activations) GEMM computation for LLM RL. It improves numerical execution consistency without modifying the RL objective, while reducing implementation overhead to realize the benefits of native low-bit computation. Long-horizon RL experiments on Qwen3-30B-A3B demonstrate stable training and benchmark performance close to BF16, outperforming naive Transformer Engine (TE) NVFP4 in evaluation quality. On single NVIDIA B300 GPU node, the optimized learner reaches 33,540 tokens/s, yielding 1.39x and 1.47x the throughput of BF16 and TE NVFP4, respectively, for complete learner updates. We released the framework, kernels, diagnostics, and training configurations to make native low-bit RL easier.

阅读原文

参与讨论