Adversarial Preference Optimization: Enhancing Your Alignment via RM-LLM Game

Pengyu Cheng, Yifan Yang, Jian Li, Yong Dai, Tianhao Hu +3 more
11/14/2023
36 citations
cs.CLcs.AIcs.LG
rlhf-rlvr-dpo

Official code: Linear95/APO (55 stars, Python, Apache-2.0, last commit 2024-06-03).

Abstract

Human preference alignment is essential to improve the interaction quality of large language models (LLMs). Existing alignment methods depend on manually annotated preference data to guide the LLM optimization directions.

Show full abstract

However, continuously updating LLMs for alignment raises a distribution gap between model-generated samples and human-annotated responses, hindering training effectiveness. To mitigate this issue, previous methods require additional preference annotation on newly generated samples to adapt to the shifted distribution, which consumes a large amount of annotation resources. Targeting more efficient human preference optimization, we propose an Adversarial Preference Optimization (APO) framework, in which the LLM and the reward model update alternatively via a min-max game. Through adversarial training, the reward model can adapt to the shifted generation distribution of the LLM without any additional annotation. With comprehensive experiments, we find the proposed adversarial training framework further enhances existing alignment baselines in terms of LLM helpfulness and harmlessness. The code is at https://github.com/Linear95/APO.

View on arXivView PDF

Code Implementations(1)

Linear95/APOOfficial100%
Apache-2.0

Code for ACL2024 paper - Adversarial Preference Optimization (APO).

553Python, ShellNov 20, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{cheng2023adversarial,
  title  = {Adversarial Preference Optimization: Enhancing Your Alignment via RM-LLM Game},
  author = {Pengyu Cheng and Yifan Yang and Jian Li and Yong Dai and Tianhao Hu and Peixin Cao and Nan Du and Xiaolong Li},
  year   = {2023},
  eprint = {2311.08045},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08045v4}
}

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/2311.08045.svg)](https://codeofpaper.com/paper/2311.08045)

Discussion