arXiv:2501.02790cs.CLcs.AI2025-01被引 14

用语义片段替代单个词元,提升语言模型强化学习对齐效果

Segmenting Text and Learning Their Rewards for Improved RLHF in Language Model

  • 提出按语义完整片段分配奖励的新型奖励模型
  • 在三个主流评测上表现优于现有方法,最高提升4.3%得分
  • 适合追求更精准奖励信号的RLHF研究者与工程师

强化学习从人类反馈(RLHF)被广泛用于使语言模型符合人类偏好。以往工作多采用经典的老虎机式设定,虽直观但忽略生成过程的序列性,易遭遇奖励稀疏问题。近期工作尝试在词元级别进行密集奖励,但可能过度细化导致奖励分配不准确。本文提出一种片段级奖励模型,在短序列词元构成的语义完整片段上分配奖励,兼顾了粒度与合理性。该方法支持动态文本分段,并兼容标准序列偏好数据集。为实现基于片段奖励的语言模型训练,我们推广经典标量归一化器为位置感知函数,并通过插值进一步增强奖励密度。在AlpacaEval 2.0、Arena-Hard和MT-Bench三个主流基准测试中,本方法表现竞争力。消融实验验证了各模块的有效性。

原文摘要 · Abstract (English)

Reinforcement learning from human feedback (RLHF) has been widely adopted to align language models (LMs) with human preference. Prior RLHF works typically take a bandit formulation, which, though intuitive, ignores the sequential nature of LM generation and can suffer from the sparse reward issue. While recent works propose dense token-level RLHF, treating each token as an action may be oversubtle to proper reward assignment. In this paper, we seek to get the best of both by training and utilizing a segment-level reward model, which assigns a reward to each semantically complete text segment that spans over a short sequence of tokens. For reward learning, our method allows dynamic text segmentation and compatibility with standard sequence-preference datasets. For effective RL-based LM training against segment reward, we generalize the classical scalar bandit reward normalizers into location-aware normalizer functions and interpolate the segment reward for further densification. With these designs, our method performs competitively on three popular RLHF benchmarks for LM policy: AlpacaEval 2.0, Arena-Hard, and MT-Bench. Ablation studies are conducted to further demonstrate our method.

强化学习语言模型奖励建模文本分割

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。