WPO: Enhancing RLHF with Weighted Preference Optimization

Wenxuan Zhou, Ravi Agrawal, Shujian Zhang, Sathish Reddy Indurthi, Sanqiang Zhao +3 more
6/17/2024
cs.CLcs.AIcs.LG

Official code: wzhouad/WPO (41 stars, last commit 2024-09-24).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

wzhouad/WPOOfficial100%

Code and models for EMNLP 2024 paper "WPO: Enhancing RLHF with Weighted Preference Optimization"

411PythonJun 17, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhou2024wpo,
  title  = {WPO: Enhancing RLHF with Weighted Preference Optimization},
  author = {Wenxuan Zhou and Ravi Agrawal and Shujian Zhang and Sathish Reddy Indurthi and Sanqiang Zhao and Kaiqiang Song and Silei Xu and Chenguang Zhu},
  year   = {2024},
  eprint = {2406.11827},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.11827v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.11827.svg)](https://codeofpaper.com/paper/2406.11827)

Discussion