arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.04887cs.AIcs.LG
收藏

FourSight:基于序列过滤与稀疏通道补偿的稳定FP4强化学习后训练

FourSight: Stable FP4 RL Post-Training via Sequence Filtering and Sparse Channel Compensation

HKUST(香港科技大学);HKUST-GZ(香港科技大学(广州));Alibaba Group(阿里巴巴集团)

Yining Wei, Tianyuan Wu, Gu Gong, Yuechen Tao, Yinghao Yu, Xiaowen Chu, Wei Wang

AI总结:

FourSight通过序列过滤与稀疏通道补偿解决NVFP4用于RL后训练的不稳定问题,维持近BF16精度,提升步长-精度1.76-2.60倍,适配120B规模模型。

摘要:

强化学习(RL)后训练日益聚焦于低位宽部署,NVFP4权重与激活量化(W4A4)成为当前主流格式。然而,将NVFP4集成到RL中会降低rollout质量并放大跨引擎训练-推理不匹配(TIM),导致训练不稳定。我们发现这些故障是集中而非均匀分布的:严重不匹配的尾部token集中在少数异常序列中,而策略权重基本保持完整,量化误差则集中在少数高方差激活通道中。基于此,我们提出FourSight,一种算法-系统协同设计方案,包含两个针对性解决方案:感知TIM的序列过滤,将漂移轨迹排除出策略更新;以及稀疏精度补偿,仅保留高方差通道为BF16,其余部分保留原生NVFP4。我们还设计了融合SpliceGEMM内核,配备专用的prefill与decode数据通路以最小化开销。FourSight在各类模型与引擎上维持接近BF16的精度与出色的FP4部署质量,同时将步长-精度提升1.76-2.60倍,且在120B规模模型上的步长时间与FP4的差距不超过2.3%。

英文摘要:

Reinforcement learning (RL) post-training increasingly targets low-bit deployment, with NVFP4 weight-and activation quantization (W4A4) becoming the state-of-the-practice format. However, integrating NVFP4 into RL degrades rollout quality and amplifies cross-engine training-inference mismatch (TIM), destabilizing training. We show that these failures are concentrated rather than uniform - severely mismatched tail tokens concentrate in a few outlier sequences, while policy weights remain largely intact and quantization error concentrates in a few high-variance activation channels. Guided by this, we present FourSight, an algorithm-system co-design with two targeted solutions: TIM-aware sequence filtering that excludes drifted trajectories from policy updates, and sparse precision compensation that keeps only top-variance channels in BF16 while retaining native NVFP4 elsewhere. We further design a fused SpliceGEMM kernel with specialized prefill and decode datapaths to minimize overhead. FourSight sustains near-BF16 accuracy and strong FP4 deployment quality across models and engines, while improving step-to-accuracy by 1.76-2.60x and staying within 2.3% of FP4 step time up to 120B-scale models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑