arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.23087cs.LGcs.AIstat.ML
收藏

动态词汇剪枝:通过驯服尾部实现稳定的LLM强化学习

Dynamic Vocabulary Pruning: Stable LLM-RL by Taming the Tail

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Fudan University(复旦大学)

Yingru Li, Jiawei Xu, Jiacai Liu, Yuxuan Tong, Ziniu Li, Tianle Cai, Ge Zhang, Qian Liu, Baoxiang Wang

AI总结:

动态词汇剪枝通过限制RL目标到安全词汇,减少尾部token的偏置误差,从而实现稳定的大语言模型强化学习。

摘要:

强化学习(RL)用于大语言模型(LLM)面临一个根本性的矛盾:高性能推理引擎与数值精确的训练引擎之间的数值分歧。尽管这些系统具有相同的参数,但它们会产生略微不同的概率分布,从而产生训练-推理不匹配。我们证明,由于这种不匹配引起的对数概率分歧的界随着(1-p) scaling,其中p是token的概率。这种scaling诱导了高度不对称的效果:对于高概率token,界消失,但对于分布尾部的低概率token,界仍然显著。当被采样时,这些尾部token会引入系统性的偏置误差,在序列中累积,从而破坏梯度估计。而不是应用事后修正,我们提出动态词汇剪枝(DVP),它将RL目标限制到一个动态确定的''安全''词汇中,排除极端尾部。这种策略用大的、不稳定的数值误差换小的、有界的优化偏置。我们通过实验证明DVP的稳定性,并通过推导严格的偏置界进行理论验证。

英文摘要:

Reinforcement Learning (RL) for Large Language Models (LLMs) faces a fundamental tension: the numerical divergence between high-throughput inference engines and numerically precise training engines. Although these systems share the same parameters, they produce slightly different probability distributions, creating a training-inference mismatch. We prove that the bound on the log-probability divergence arising from this mismatch scales as $(1-p)$, where $p$ is the token probability. This scaling induces a highly asymmetric effect: the bound vanishes for high-probability tokens but remains significant for low-probability tokens in the distribution tail. When sampled, these tail tokens introduce systematically biased errors that accumulate over sequences, thereby destabilizing gradient estimation. Instead of applying post-hoc corrections, we propose Dynamic Vocabulary Pruning (DVP), which constrains the RL objective to a dynamically determined ''safe'' vocabulary that excludes the extreme tail. This strategy trades large, destabilizing numerical errors for a small, bounded optimization bias. We validate DVP empirically by demonstrating stable training, and theoretically by deriving strict bounds on the induced bias.

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

↑