arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11827cs.CLcs.AIcs.LG
收藏

WPO:通过加权偏好优化增强RLHF

WPO: Enhancing RLHF with Weighted Preference Optimization

Zoom Video Communications(Zoom视频通讯公司)

Wenxuan Zhou, Ravi Agrawal, Shujian Zhang, Sathish Reddy Indurthi, Sanqiang Zhao, Kaiqiang Song, Silei Xu, Chenguang Zhu

AI总结:

本文提出加权偏好优化(WPO),通过对离线偏好数据按当前策略概率重新加权来模拟在线策略学习,缩小分布差距,在Alpaca Eval 2和MT-bench上超越DPO并取得对GPT-4-turbo的76.7%长度控制胜率。

摘要:

基于人类反馈的强化学习(RLHF)是一种使大型语言模型(LLMs)更符合人类价值观的有前景的解决方案。离线策略偏好优化,即偏好数据从其他模型获得,因其成本效率和可扩展性而被广泛采用。然而,离线策略偏好优化通常面临数据收集所用策略与目标策略之间的分布差距,导致优化效果欠佳。在本文中,我们提出了一种新策略,通过利用离线策略偏好数据模拟在线策略学习来缓解这一问题。我们的加权偏好优化(WPO)方法通过根据偏好对在当前策略下的概率对其进行重新加权,使离线策略数据更接近在线策略数据。该方法不仅解决了分布差距问题,还在不增加额外成本的情况下增强了优化过程。我们在指令遵循基准上验证了我们的方法,包括Alpaca Eval 2和MT-bench。WPO不仅在Alpaca Eval 2上比直接偏好优化(DPO)最多高出5.6%,还基于Gemma-2-9b-it建立了对GPT-4-turbo的76.7%的显著长度控制胜率。我们在https://github.com/wzhouad/WPO发布了代码和模型。

英文摘要:

Reinforcement learning from human feedback (RLHF) is a promising solution to align large language models (LLMs) more closely with human values. Off-policy preference optimization, where the preference data is obtained from other models, is widely adopted due to its cost efficiency and scalability. However, off-policy preference optimization often suffers from a distributional gap between the policy used for data collection and the target policy, leading to suboptimal optimization. In this paper, we propose a novel strategy to mitigate this problem by simulating on-policy learning with off-policy preference data. Our Weighted Preference Optimization (WPO) method adapts off-policy data to resemble on-policy data more closely by reweighting preference pairs according to their probability under the current policy. This method not only addresses the distributional gap problem but also enhances the optimization process without incurring additional costs. We validate our method on instruction following benchmarks including Alpaca Eval 2 and MT-bench. WPO not only outperforms Direct Preference Optimization (DPO) by up to 5.6% on Alpaca Eval 2 but also establishes a remarkable length-controlled winning rate against GPT-4-turbo of 76.7% based on Gemma-2-9b-it. We release the code and models at https://github.com/wzhouad/WPO.

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

↑