重新思考序列级强化学习中的比较单元:从损失校正到样本构建的等长配对训练框架
Rethinking the Comparison Unit in Sequence-Level Reinforcement Learning: An Equal-Length Paired Training Framework from Loss Correction to Sample Construction
AI总结:
本文提出序列级相对强化学习中的长度问题本质是比较单元构建问题,并基于此提出等长配对训练框架EqLen,通过双轨同步生成、前缀继承和段掩码构建可比较的训练样本。
摘要:
本文研究了序列级相对强化学习中的长度问题。我们观察到,尽管现有方法部分缓解了与长度相关的现象,但一个更根本的问题仍未得到充分刻画:训练过程中使用的比较单元缺乏内在可比性。基于这一观察,我们提出一个新的视角:长度问题不应仅仅被视为损失缩放或归一化偏差,而应被视为一个比较单元构建问题。我们进一步建立了一个基于样本构建的训练框架,该框架不是对不等长响应进行事后校正,而是在生成过程中主动构建等长、可对齐且可比较的训练段。在该框架内,我们提出了EqLen,一种适用于组相对比较算法(如GRPO、GSPO和RLOO)的具体方法。通过双轨同步生成、前缀继承和段掩码,EqLen高效地收集有效的等长训练段,并实现稳定的训练。
英文摘要:
This paper investigates the length problem in sequence-level relative reinforcement learning. We observe that, although existing methods partially alleviate length-related phenomena, a more fundamental issue remains insufficiently characterized: the comparison units used during training lack inherent comparability. Building on this observation, we propose a new perspective: the length problem should not be viewed merely as a loss-scaling or normalization bias, but rather as a \emph{comparison unit construction} problem. We further establish a sample-construction-based training framework that, instead of applying post-hoc corrections to unequal-length responses, proactively constructs equal-length, alignable, and comparable training segments during generation. Within this framework, we propose EqLen, a concrete method applicable to group-relative comparison algorithms such as GRPO, GSPO, and RLOO. Through dual-track synchronous generation, prefix inheritance, and segment masking, EqLen efficiently collects effective equal-length training segments and enables stable
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。