arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.34044cs.LGcs.AI
收藏

RLVR中采样器不匹配下的熵漂移符号定律

A Sign Law for Entropy Drift under Sampler Mismatch in RLVR

Zhiyuan Wang, Jacob Steeves, Chang Liu

AI总结:

该研究针对RLVR中采样器不匹配导致的熵漂移,提出符号定律,通过2B、9B模型实验验证了校正方法可提升准确率并稳定熵。

摘要:

可验证奖励强化学习(RLVR)中的熵会因本应中性的选择(如是否将过长响应屏蔽或计为失败)而上下波动。我们将此归因于采样器不匹配:rollout采用学习者未使用的top-k/top-p截断或温度采样生成,此时常数优势偏移会一阶且期望地改变softmax策略的熵,符号由采样器决定:对于似然比随token概率增大的采样器(包括top-k、top-p、min-p及低于1的温度),正偏移会使策略更尖锐;对于更平缓的采样器则使策略更平缓。在基于组的带token级损失的RLVR中,该漂移的基线控制部分由token加权净优势决定,屏蔽过长响应或将其计为失败可将该部分推向相反符号;剩余部分(优势与采样器尖锐度差距的协方差)会在长时序中反馈。在2B模型上,截断采样下熵斜率与净优势偏移呈线性关系,精确采样下熵斜率近似平缓,token级重要性比贡献了98%的漂移。在100步运行中,净零基线仅延迟精确采样下未出现的熵爆炸,固定正偏移进一步延迟,而由尖锐度差距加权的基线可保持熵稳定且不改变学习者。在9B推理模型的10步运行中,未校正规则会损失保留准确率,而将净优势归零或对学习者重新归一化分别比其提升8.2和8.8个百分点,且在精确采样下无保留效果。

英文摘要:

In reinforcement learning with verifiable rewards (RLVR), whether entropy rises or falls can depend on choices that matter little under exact sampling, such as whether over-length responses are masked or counted as failures. We trace this to sampler mismatch: rollouts are drawn with top-k/top-p truncation or at a temperature the learner does not apply. We prove that a constant advantage shift then changes the entropy of a softmax policy, at first order and in expectation, with a sign fixed by the sampler. Positive shifts sharpen the policy under any sampler whose likelihood ratio to the policy increases with token probability, including top-k, top-p, min-p, and temperatures below one, and flatten it under flatter samplers. In group-based RLVR with token-level losses, the baseline-dependent part of this drift is set by the token-weighted net advantage, which masking and failing can push to opposite signs. The rest comes from a covariance between advantages and the sampler's sharpness gap and feeds back on itself: in a two-level model, a push away from a sharper sampler takes off in finite time, while a pull toward it saturates. On a 2B model, the entropy slope is linear in shifts of the net advantage under truncated sampling and indistinguishable from flat under exact sampling. Token-level importance ratios leave 98% of the drift, and four clipped minibatch updates per batch amplify it sevenfold. In 100-step runs, a net-zero baseline only delays an entropy explosion, and entropy raised at the start keeps rising only under truncation; cancelling the first-order drift at every step keeps entropy bounded without changing the learner. On a 9B reasoning model forked from an uncorrected run, zeroing the net advantage or renormalizing the learner raises held-out accuracy after ten steps by 8.2 and 8.8 points over the uncorrected rule, with no difference under exact sampling.

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

↑