arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17407cs.AIcs.CL
收藏

事后奖励校准:关于长度偏差的案例研究

Post-hoc Reward Calibration: A Case Study on Length Bias

University of Edinburgh(爱丁堡大学);Alibaba Group(阿里巴巴集团);INF Technology(INF技术);University of Amsterdam(阿姆斯特丹大学)

Zeyu Huang, Zihan Qiu, Zili Wang, Edoardo M. Ponti, Ivan Titov

AI总结:

本文提出事后奖励校准方法,通过估计并移除奖励模型中的长度偏差,在无需额外训练的情况下提升LLM对齐性能,并在多个基准上验证了其有效性。

摘要:

基于人类反馈的强化学习(Reinforcement Learning from Human Feedback, RLHF)使大语言模型(Large Language Models, LLMs)的输出与人类价值观和偏好对齐。该过程的核心是奖励模型(reward model, RM),它将人类反馈转化为用于优化LLM行为的训练信号。然而,奖励模型可能通过利用训练数据中的虚假相关性而产生偏差,例如基于长度或风格而非真实质量来偏好某些输出。这些偏差可能导致错误的输出排序、次优的模型评估,以及在LLM对齐中放大不良行为。本文解决了在无需额外数据和训练的情况下纠正此类偏差的挑战,提出了事后奖励校准(Post-hoc Reward Calibration)的概念。我们首先提出一种直观的方法来估计偏差项,从而将其移除,以近似潜在的真实奖励。随后,我们将该方法扩展为一种更通用、更稳健的形式,即局部加权回归(Locally Weighted Regression)。针对普遍存在的长度偏差,我们在三个实验设置中验证了所提出的方法,并展示了一致的改进:(1)在RewardBench数据集上,33个奖励模型平均性能提升3.11;(2)基于AlpacaEval基准,奖励模型排序与GPT-4评估及人类偏好的一致性得到增强;(3)在多个LLM–RM组合中,RLHF过程的长度控制胜率(Length-Controlled win rate)得到提升。我们的方法计算高效,且可推广到其他类型的偏差和奖励模型,为缓解LLM对齐中的偏差提供了一种可扩展且稳健的解决方案。我们的代码和结果可在 https://github.com/ZeroYuHuang/Reward-Calibration 获取。

英文摘要:

Reinforcement Learning from Human Feedback aligns the outputs of Large Language Models with human values and preferences. Central to this process is the reward model (RM), which translates human feedback into training signals for optimising LLM behaviour. However, RMs can develop biases by exploiting spurious correlations in their training data, such as favouring outputs based on length or style rather than true quality. These biases can lead to incorrect output rankings, sub-optimal model evaluations, and the amplification of undesirable behaviours in LLMs alignment. This paper addresses the challenge of correcting such biases without additional data and training, introducing the concept of Post-hoc Reward Calibration. We first propose an intuitive approach to estimate the bias term and, thus, remove it to approximate the underlying true reward. We then extend the approach to a more general and robust form with the Locally Weighted Regression. Focusing on the prevalent length bias, we validate our proposed approaches across three experimental settings, demonstrating consistent improvements: (1) a 3.11 average performance gain across 33 reward models on the RewardBench dataset; (2) enhanced alignment of RM rankings with GPT-4 evaluations and human preferences based on the AlpacaEval benchmark; and (3) improved Length-Controlled win rate of the RLHF process in multiple LLM--RM combinations. Our method is computationally efficient and generalisable to other types of bias and RMs, offering a scalable and robust solution for mitigating biases in LLM alignment. Our code and results are available at https://github.com/ZeroYuHuang/Reward-Calibration.

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

↑