arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13907stat.MLcs.AIcs.LG
收藏

AIS: 量化强化学习中的自适应重要性采样

AIS: Adaptive Importance Sampling for Quantized RL

Huawei(华为);The University of Hong Kong(香港大学)

Jiajun Zhou, Wei Shao, Lingchao Zheng, Yuwei Fan, Ngai Wong

AI总结:

本文提出AIS方法,通过动态调整重要性采样强度,解决量化强化学习中 rollout 与训练不匹配导致的策略梯度偏差问题,在保持FP8加速优势的同时,提升训练稳定性。

摘要:

强化学习(RL)在大型语言模型(LLMs)中受到rollout生成成本的限制,这促使使用低精度rollout(如FP8)配以BF16训练器以提高吞吐量和降低内存压力。这引入了rollout-训练不匹配,导致策略梯度偏差,可能在推理基准上导致训练崩溃。我们证明这种不匹配是非平稳的,具有双刃剑效应:训练初期提供随机探索奖励,使梯度暴露在训练器可能低估的轨迹上,但随着策略集中,这种扰动转变为不稳定偏置源。为此,我们提出自适应重要性采样(AIS),一种修正框架,根据每批数据动态调整干预强度。AIS将三个实时诊断指标——权重可靠性、发散严重性和方差放大——整合为一个混合系数,插值于未修正和完全重要性加权梯度之间,抑制不匹配的不稳定成分,同时保留其探索性收益。我们将AIS整合到GRPO中,并在基于扩散的LLaDA-8B-Instruct和自回归的Qwen3-8B和Qwen3.5-9B上评估,跨数学推理和规划基准。AIS在大多数任务上与BF16基线匹配,同时保留FP8的1.5至2.76倍rollout加速。

英文摘要:

Reinforcement learning (RL) for large language models (LLMs) is dominated by the cost of rollout generation, which has motivated the use of low-precision rollouts (e.g., FP8) paired with a BF16 trainer to improve throughput and reduce memory pressure. This introduces a rollout-training mismatch that biases the policy gradient and can cause training to collapse outright on reasoning benchmarks. We show that the mismatch is non-stationary and acts as a double-edged sword: early in training it provides a stochastic exploration bonus, exposing the gradient to trajectories the trainer would otherwise under-sample, but the same perturbation transitions into a destabilizing source of bias as the policy concentrates. To solve this, we propose Adaptive Importance Sampling (AIS), a correction framework that adjusts the strength of its intervention on a per-batch basis. AIS combines three real-time diagnostics, namely weight reliability, divergence severity, and variance amplification, into a single mixing coefficient that interpolates between the uncorrected and fully importance-weighted gradients, suppressing the destabilizing component of the mismatch while preserving its exploratory benefit. We integrate AIS into GRPO and evaluate it on the diffusion-based LLaDA-8B-Instruct and the autoregressive Qwen3-8B and Qwen3.5-9B across mathematical reasoning and planning benchmarks. AIS matches the BF16 baseline on most tasks while retaining the 1.5 to 2.76x rollout speedup of FP8.

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

↑