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

使用最小贝叶斯风险目标进行正则化的Best-of-N采样以实现语言模型对齐

Regularized Best-of-N Sampling with Minimum Bayes Risk Objective for Language Model Alignment

CyberAgent(赛博agent(CyberAgent))

Yuu Jinnai, Tetsuro Morimura, Kaito Ariu, Kenshi Abe

AI总结:

本文提出MBR-BoN方法,通过将最小贝叶斯风险目标作为邻近正则化项融入Best-of-N采样,在推理时缓解奖励欺骗问题,并在多个数据集和直接偏好优化数据生成任务中显著优于基线方法。

摘要:

Best-of-N (BoN) 采样结合奖励模型已被证明是在解码时将大型语言模型(LLMs)对齐到人类偏好的有效策略。由于偏好数据集的质量或数量问题导致奖励模型准确度不够高时,BoN采样容易出现被称为奖励欺骗(reward hacking)的问题。因为奖励模型是真实目标的不完美代理,过度优化其价值可能会损害其在真实目标上的性能。在本研究中,我们提出MBR-BoN,作为BoN的一种变体,旨在通过将最小贝叶斯风险(MBR)目标作为邻近正则化项来在推理时缓解奖励欺骗。我们从经验和分析上表明,MBR目标量化了响应与参考策略的邻近度,充当了邻近正则化器。我们在AlpacaFarm和Anthropic的hh-rlhf数据集上评估了MBR-BoN,并表明它优于BoN采样和MBR解码。我们还评估了使用MBR-BoN为直接偏好优化(DPO)生成成对偏好学习数据集。经验结果表明,在使用MBR-BoN生成的数据集上训练的模型优于使用原始BoN的模型。我们的代码可在 https://github.com/CyberAgentailLab/regularized-bon 获取。

英文摘要:

Best-of-N (BoN) sampling with a reward model has been shown to be an effective strategy for aligning Large Language Models (LLMs) to human preferences at the time of decoding. BoN sampling is susceptible to a problem known as reward hacking when the accuracy of the reward model is not high enough due to the quality or the quantity of the preference dataset. Because the reward model is an imperfect proxy for the true objective, over-optimizing its value can compromise its performance on the true objective. In this research, we propose MBR-BoN, a variant of BoN that aims to mitigate reward hacking at inference time by incorporating the Minimum Bayes Risk (MBR) objective as a proximity regularization term. We show empirically and analytically that the MBR objective quantifies the proximity of the response to the reference policy, serving as a proximity regularizer. We evaluate MBR-BoN on the AlpacaFarm and Anthropic's hh-rlhf datasets and show that it outperforms both BoN sampling and MBR decoding. We also evaluate MBR-BoN to generate a pairwise preference learning dataset for Direct Preference Optimization (DPO). Empirical results show that models trained on a dataset generated with MBR-BoN outperform those with vanilla BoN. Our code is available at https://github.com/CyberAgentAILab/regularized-bon

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

↑