arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.09724cs.CL
收藏

驯服LLM中的过度自信:RLHF中的奖励校准

Taming Overconfidence in LLMs: Reward Calibration in RLHF

Carnegie Mellon University(卡内基梅隆大学);Washington University in St. Louis(圣路易斯华盛顿大学);UC Berkeley(加州大学伯克利分校)

Jixuan Leng, Chengsong Huang, Banghua Zhu, Jiaxin Huang

AI总结:

本研究揭示了RLHF会导致LLM产生言语化过度自信,其根源在于PPO的奖励模型存在偏向高置信度的固有偏见。为此提出PPO-M和PPO-C两种变体以校准奖励,在不需额外标签的情况下有效降低了校准误差并保持了模型性能。

摘要:

语言模型校准是指模型的置信度与其响应的实际性能之间的一致性。尽管先前的研究指出了大型语言模型(LLMs)中的过度自信现象,并表明使用人类反馈强化学习(RLHF)训练的LLMs更加过度自信,且输出概率更加尖锐,但在本研究中,我们揭示了RLHF倾向于导致模型在自身响应中表达出言语化的过度自信。我们调查了这种过度自信的潜在原因,并证明用于近端策略优化(PPO)的奖励模型表现出对高置信度分数的固有偏见,而不顾响应的实际质量。基于这一见解,我们提出了两种PPO变体:PPO-M:具有校准奖励建模的PPO,以及PPO-C:具有校准奖励计算的PPO。PPO-M在奖励模型训练中整合了显式的置信度分数,从而校准奖励模型以更好地捕捉响应质量与言语化置信度之间的一致性。PPO-C根据当前奖励与过去奖励的指数平均值之间的差异来调整PPO期间的奖励分数。PPO-M和PPO-C都可以无缝集成到当前的PPO管道中,并且不需要额外的黄金标签。我们在Llama3-8B和Mistral-7B上跨六个不同的数据集(包括多项选择和开放式生成)评估了我们的方法。实验结果表明,我们的两种方法都能减少校准误差,并保持与标准PPO相当的性能。我们进一步表明,它们可以在开放式对话设置中保留模型能力。

英文摘要:

Language model calibration refers to the alignment between the confidence of the model and the actual performance of its responses. While previous studies point out the overconfidence phenomenon in Large Language Models (LLMs) and show that LLMs trained with Reinforcement Learning from Human Feedback (RLHF) are overconfident with a more sharpened output probability, in this study, we reveal that RLHF tends to lead models to express verbalized overconfidence in their own responses. We investigate the underlying cause of this overconfidence and demonstrate that reward models used for Proximal Policy Optimization (PPO) exhibit inherent biases towards high-confidence scores regardless of the actual quality of responses. Building upon this insight, we propose two PPO variants: PPO-M: PPO with Calibrated Reward Modeling and PPO-C: PPO with Calibrated Reward Calculation. PPO-M integrates explicit confidence scores in reward model training, which calibrates reward models to better capture the alignment between response quality and verbalized confidence. PPO-C adjusts the reward score during PPO based on the difference between the current reward and the exponential average of past rewards. Both PPO-M and PPO-C can be seamlessly integrated into the current PPO pipeline and do not require additional golden labels. We evaluate our methods on both Llama3-8B and Mistral-7B across six diverse datasets including multiple-choice and open-ended generation. Experimental results demonstrate that both of our methods can reduce calibration error and maintain performance comparable to standard PPO. We further show that they could preserve model capabilities in open-ended conversational settings.

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

↑