Understanding Reference Policies in Direct Preference Optimization

Yixin Liu, Pengfei Liu, Arman Cohan
7/18/2024
cs.CLcs.LG

No official code found. Best implementation: yale-nlp/refdpo (16 stars, last commit 2024-07-23).

Abstract

Direct Preference Optimization (DPO) has become a widely used training method for the instruction fine-tuning of large language models (LLMs). In this work, we explore an under-investigated aspect of DPO - its dependency on the reference model or policy. Such reference policies, typically instantiated as the model to be further fine-tuned, are important since they can impose an upper limit on DPO's effectiveness. Therefore, we address three related research questions in this work. First, we explore the optimal strength of the KL divergence constraint in DPO, which penalizes deviations from the reference policy, and find that DPO is sensitive to this strength. Next, we examine the necessity of the KL-constraint from the reference policies in DPO by providing both theoretical and empirical comparisons between DPO and related learning objectives, demonstrating DPO's superiority in this controlled setting. Additionally, we investigate whether DPO benefits from stronger reference policies, finding that a stronger reference policy can lead to improved performance, but only when it is similar to the model being fine-tuned. Our findings highlight the confounding role of reference policies in DPO and offer insights for best practices, while also identifying open research questions for future studies.

View on arXivView PDF

Code Implementations(1)

yale-nlp/refdpoCommunity100%
161PythonJul 15, 20242 years ago

Similar Papers

Cite this paper

@article{liu2024understanding,
  title  = {Understanding Reference Policies in Direct Preference Optimization},
  author = {Yixin Liu and Pengfei Liu and Arman Cohan},
  year   = {2024},
  eprint = {2407.13709},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.13709v2}
}

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

Discussion