Relative Preference Optimization: Enhancing LLM Alignment through Contrasting Responses across Identical and Diverse Prompts

Yueqin Yin, Zhendong Wang, Yi Gu, Hai Huang, Weizhu Chen +1 more
2/12/2024
cs.CLcs.AIcs.LG

Official code: yinyueqin/relative-preference-optimization (26 stars, Apache-2.0, last commit 2024-02-23).

Abstract

In the field of large language models (LLMs), aligning models with the diverse preferences of users is a critical challenge. Direct Preference Optimization (DPO) has played a key role in this area. It works by using pairs of preferences derived from the same prompts, and it functions without needing an additional reward model. However, DPO does not fully reflect the complex nature of human learning, which often involves understanding contrasting responses to not only identical but also similar questions. To overcome this shortfall, we propose Relative Preference Optimization (RPO). RPO is designed to discern between more and less preferred responses derived from both identical and related prompts. It introduces a contrastive weighting mechanism, enabling the tuning of LLMs using a broader range of preference data, including both paired and unpaired sets. This approach expands the learning capabilities of the model, allowing it to leverage insights from a more varied set of prompts. Through empirical tests, including dialogue and summarization tasks, and evaluations using the AlpacaEval2.0 leaderboard, RPO has demonstrated a superior ability to align LLMs with user preferences and to improve their adaptability during the training process. Our code can be viewed at https://github.com/yinyueqin/relative-preference-optimization

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Relative Preference Optimization: Enhancing LLM Alignment through Contrasting Responses across Identical and Diverse Prompts

261Shell, PythonFeb 23, 20242 years agoApache-2.0

Cite this paper

@article{yin2024relative,
  title  = {Relative Preference Optimization: Enhancing LLM Alignment through Contrasting Responses across Identical and Diverse Prompts},
  author = {Yueqin Yin and Zhendong Wang and Yi Gu and Hai Huang and Weizhu Chen and Mingyuan Zhou},
  year   = {2024},
  eprint = {2402.10958},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10958v2}
}

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

Discussion