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

利用对比奖励改进基于人类反馈的强化学习

Improving Reinforcement Learning from Human Feedback Using Contrastive Rewards

Fudan University(复旦大学);ByteDance Research(字节跳动研究院);Northwestern University(西北大学)

Wei Shen, Xiaoying Zhang, Yuanshun Yao, Rui Zheng, Hongyi Guo, Yang Liu

AI总结:

本文提出对比奖励方法,通过在奖励中引入惩罚项来改进RLHF,提高奖励模型鲁棒性,并在PPO中减少方差,经实验验证优于强基线。

摘要:

基于人类反馈的强化学习(RLHF)是用于使大型语言模型(LLMs)与人类偏好保持一致的主流范式。然而,现有的RLHF严重依赖准确且信息丰富的奖励模型,这些模型容易受到各种来源的噪声(例如人工标注错误)的影响,导致整个流程脆弱。在本工作中,我们通过在奖励中引入一个惩罚项(称为“对比奖励”)来提高奖励模型的有效性。我们的方法包括两个步骤:(1)离线采样步骤,获取对提示的响应,作为基线计算;(2)使用基线响应计算的对比奖励,并在近端策略优化(PPO)步骤中使用。我们表明,对比奖励使LLM能够惩罚奖励不确定性,提高鲁棒性,鼓励相对于基线的改进,根据任务难度进行校准,并减少PPO中的方差。我们通过实验表明,对比奖励可以显著改进RLHF,经GPT和人类评估,我们的方法始终优于强基线。

英文摘要:

Reinforcement learning from human feedback (RLHF) is the mainstream paradigm used to align large language models (LLMs) with human preferences. Yet existing RLHF heavily relies on accurate and informative reward models, which are vulnerable and sensitive to noise from various sources, e.g. human labeling errors, making the pipeline fragile. In this work, we improve the effectiveness of the reward model by introducing a penalty term on the reward, named as \textit{contrastive rewards}. %Contrastive rewards Our approach involves two steps: (1) an offline sampling step to obtain responses to prompts that serve as baseline calculation and (2) a contrastive reward calculated using the baseline responses and used in the Proximal Policy Optimization (PPO) step. We show that contrastive rewards enable the LLM to penalize reward uncertainty, improve robustness, encourage improvement over baselines, calibrate according to task difficulty, and reduce variance in PPO. We show empirically contrastive rewards can improve RLHF substantially, evaluated by both GPTs and humans, and our method consistently outperforms strong baselines.

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

↑