arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.00162cs.CLcs.AI
收藏

序列到序列奖励建模:通过语言反馈改进RLHF

Sequence to Sequence Reward Modeling: Improving RLHF by Language Feedback

Jiayi Zhou, Jiaming Ji, Juntao Dai, Dong Li, Yaodong Yang

AI总结:

通过序列到序列奖励建模方法改进RLHF,提升LLMs对齐人类意图的性能。

摘要:

将大型语言模型(LLMs)的行为与人类意图和价值观对齐仍然是一个关键挑战。通过人类反馈的强化学习(RLHF)通过在人类偏好上训练奖励模型(RM)并微调LLMs以最大化RM反馈来对齐LLMs。尽管其有效性和流行性,RLHF容易受到有偏局部优化的影响。这意味着RM无法提供准确对齐人类偏好的反馈,导致LLMs探索意外的泛化,无法实现对齐目标。为缓解这一问题,我们提出了一种新的序列到序列(seq2seq)奖励建模方法。其关键见解是通过语言反馈而非标量反馈改进RLHF,无需额外注释。我们从二元最大似然估计(MLE)替换奖励建模目标为序列MLE。该方法在无需额外注释、模型或训练阶段的情况下提供了更丰富和精细的语言反馈。我们的实验展示了其有效性,具体而言,减少了单轮安全对话中的拒绝回应现象和文本摘要任务中的长响应偏差。我们进一步分析表明,seq2seq RM在2B和7B LLMs上跨3个NLP任务提升了RLHF性能,平均胜率达到了76.9%。我们进一步表明,seq2seq RM在分布外提示下仍能提升RLHF的性能。

英文摘要:

Aligning the behavior of Large language models (LLMs) with human intentions and values remains a critical challenge. Reinforcement learning from human feedback (RLHF) aligns LLMs by training a reward model (RM) on human preferences and fine-tuning the LLMs to maximize RM feedback. Despite its effectiveness and popularity, RLHF is prone to biased local optimization. It means RM fails to provide feedback that accurately aligns with human preference, causing LLMs to explore unexpected generalizations, and failing to achieve alignment objectives. To mitigate this issue, we propose a novel \textit{sequence-to-sequence (seq2seq) reward modeling} method. Its key insight is that learning from language feedback rather than scalar feedback improves RLHF without additional annotations. We replaced the reward modeling target from binary maximum likelihood estimation (MLE) with sequence MLE. This method enables richer and fine-grained language feedback without additional annotations, models, or training stages. Our experiments demonstrated its effectiveness, specifically, reducing the refusal-to-response paradigm in single-turn safety dialogues and the long-response bias in text summarization tasks. We provide further analysis that seq2seq RM improves RLHF performance across 2B and 7B LLMs on 3 NLP tasks, achieving an average win rate of 76.9\%. We further show that seq2seq RM can still improve the performance of RLHF under out-of-distribution prompts.

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

↑