基于人类反馈的强化学习(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.
Decoupling Reasoning and Confidence: Resurrecting Calibration in Reinforcement Learning from Verifiable Rewards
Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China(中国科学院软件研究所信息处理实验室);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学);Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学网络安全学院);National Computer Network Emergency Response Technical Team/Coordination Center of China, Beijing, China(中国国家计算机网络应急技术配合中心)
StepGuard: Guarding Web Navigation via Single-Step Calibration
School of Software Engineering, Xi’an Jiaotong University(西安交通大学软件工程学院);School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机与信息工程学院);Xiamen University(厦门大学);Zhejiang Lab(之江实验室);CSIRO(澳大利亚联邦科学与工业研究组织)
Department of Computer Science and Engineering, University of California San Diego, La Jolla, California, USA(加州大学圣地亚哥分校计算机科学与工程系,拉贾尔,加利福尼亚州,美国);Halıcıoğlu Data Science Institute, University of California San Diego, La Jolla, California, USA(加州大学圣地亚哥分校Halıcıoğlu数据科学研究所,拉贾尔,加利福尼亚州,美国);Department of Statistics, Stanford University, Stanford, California, USA(斯坦福大学统计学系,斯坦福,加利福尼亚州,美国)
Claim-Level Confidence Calibration for Reliable Decision Making with Large Language Models
Tsinghua University(清华大学);Vulcan Research(伏尔坎研究院);AIFT;Keio Global Research Institute (KGRI)(庆应全球研究所(KGRI));China Mobile Research Institute(中国移动研究院);Zhongguancun Laboratory(中关村实验室)
Post-hoc Uncertainty Calibration for Domain Drift Scenarios
Technical University of Munich(慕尼黑工业大学);Siemens AG(西门子股份公司);German Cancer Consortium(德国癌症联盟);German Cancer Research Center Heidelberg(海德堡德国癌症研究中心);Frankfurt University(法兰克福大学)
What You Train Is What You Get: Gender Bias, Training Composition, and Post-Hoc Mitigation in Audio Deepfake Detection
School of Computing, Wichita State University(威奇托州立大学计算学院);Institut national de la recherche scientifique (INRS–EMT)(国家科学研究院(INRS–EMT));INRS-UQO Mixed Research Unit on Cybersecurity(INRS-UQO网络安全混合研究单位)
Probing Routing-Conditional Calibration in Attention-Residual Transformers
Adelaide University(阿德莱德大学);Australian Institute for Machine Learning (AIML), Adelaide University(澳大利亚机器学习研究所(AIML),阿德莱德大学);The University of Queensland(昆士兰大学)
h-calibration: Rethinking Classifier Recalibration with Probabilistic Error-Bounded Objective
Research Inst. of Trustworthy Autonomous Systems & Dept. of Computer Science and Engineering, SUSTech, China(可信自主系统研究所及计算机科学与工程系,深圳技术大学,中国);Guangdong Provincial Key Laboratory of Brain-inspired Intelligent Computation, Dept. of Computer Science and Engineering, SUSTech, and Peng Cheng Lab, China(脑启发智能计算广东省重点实验室、计算机科学与工程系,深圳技术大学,以及鹏城实验室,中国);Faculty of Engineering and Information Technology, University of Technology Sydney, Australia(工程与信息技术学院,悉尼大学,澳大利亚);Inst. of Biomedical Engineering, Dept. of Engineering Science, University of Oxford, UK(生物医学工程研究所、工程科学系,牛津大学,英国)
Multi-Agent Collaboration via Reward Attribution Decomposition
University of California, Berkeley(加州大学伯克利分校);Unveristy of California, San Diego(加州大学圣地亚哥分校);Tsinghua University(清华大学);Facebook AI Research(Facebook人工智能研究院)