Gumbel替换:在不依赖采样器的情况下消除强化学习中的采样器漂移
Gumbel Substitution: Removing Sampler Drift from RL Without Trusting the Sampler
AI总结:
本研究针对不可信采样器导致的强化学习训练漂移问题,提出Gumbel替换方法,无需采样器报告概率,实验显示其在不同规模模型上均能有效抑制漂移,且在异构采样器训练中提升了基准性能。
摘要:
当强化学习的 rollout 来自任意硬件上的不可信采样器时,由于精度和检查点延迟,采样分布 q 与训练器的策略 p 存在差异,基于采样器的 token 进行训练会增加一个等于向 q 进行监督微调的漂移项。已有的修正方法(TIS、MIS、IcePop、score centering、GSPO、CISPO)都需要采样器报告的 q(y),而无权限采样器可能会谎报该值。我们提出 Gumbel 替换:协调器为每个 token 位置固定公共的 Gumbel 噪声,该噪声在所有 GPU 上完全相同,采样器通过 y=argmax(ℓ^q + G) 采样 token;训练器重新计算 v*=argmax(ℓ^p + G),即其自身策略在相同噪声下会采样的 token,并在采样器的上下文中对 v* 进行评分。对于遵循协议的采样器,v* 是给定前缀的 p 的精确样本,因此对于任意 q,漂移在期望中消失,无需采样器报告的概率。我们测量部署的头模型留下的残差,限制准入门增加的残差,并说明自适应采样器仍可执行的操作;相同的比较给出了每个 token 的匹配率,用于准入采样器并向其支付费用。在实验室中,使用两侧相同头模型的 9B 模型,未修正训练的期望漂移至少是替换方法的 170 至 4800 倍;在存在强不匹配的 2B 模型上,未修正训练会崩溃,而替换方法保持稳定,与使用真实 q 的 score centering 的 MIS 相当。在无权限网络中,对来自异构采样器的 15.75B 个 token,使用 9B 模型进行了 158 个优化器步骤的训练,无步骤跳过,1.21% 的 token 被替换,且在所有 8 个保留基准上均有提升。
英文摘要:
When RL rollouts come from untrusted samplers on arbitrary hardware, precision and checkpoint lag, the sampling distribution $q$ differs from the trainer's policy $p$, and training on the sampler's tokens adds a drift term equal to supervised fine-tuning toward $q$. Published corrections (TIS, MIS, IcePop, score centering, GSPO, CISPO) all need $q(y)$, which a permissionless sampler reports and can misreport. We introduce Gumbel substitution. The coordinator fixes public Gumbel noise for every token position, bit-identical across GPUs, and the sampler draws $y=\arg\max(\ell^q+G)$. The trainer recomputes $v^*=\arg\max(\ell^p+G)$, the token its own policy would have drawn with the same noise, and scores $v^*$ in the sampler's context. For a sampler that follows the protocol, $v^*$ is an exact sample from $p$ given the prefix, so the drift vanishes in expectation for any $q$, without sampler-reported probabilities. We measure the residual left by the deployed heads, bound the one added by admission gates, and state what an adaptive sampler can still do. The same comparison gives a per-token match rate that admits and pays samplers. In the lab, on a 9B model with the same head on both sides, the expected drift of uncorrected training is at least 170 to 4,800 times that of substitution. On a 2B model under strong mismatch, uncorrected training collapses while substitution stays stable, comparable to MIS with score centering given the true $q$. On a permissionless network, a 9B model was trained for 158 optimizer steps on 15.75B tokens from heterogeneous samplers, with no skipped step and 1.21% of tokens substituted; it improved on all eight held-out benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。