Anchored Preference Optimization and Contrastive Revisions: Addressing Underspecification in Alignment

Karel D'Oosterlinck, Winnie Xu, Chris Develder, Thomas Demeester, Amanpreet Singh +3 more
8/12/2024
54 citations
cs.LGcs.AIcs.CL
rlhf-rlvr-dpo

Official code: ContextualAI/CLAIR_and_APO (64 stars, Jupyter Notebook, MIT, last commit 2024-08-30).

Abstract

Large Language Models (LLMs) are often aligned using contrastive alignment objectives and preference pair datasets. The interaction between model, paired data, and objective makes alignment a complicated procedure, sometimes producing subpar results.

Show full abstract

We study this and find that (i) preference data gives a better learning signal when the underlying responses are contrastive, and (ii) alignment objectives lead to better performance when they specify more control over the model during training. Based on these insights, we introduce Contrastive Learning from AI Revisions (CLAIR), a data-creation method which leads to more contrastive preference pairs, and Anchored Preference Optimization (APO), a controllable and more stable alignment objective. We align Llama-3-8B-Instruct using various comparable datasets and alignment objectives and measure MixEval-Hard scores, which correlate highly with human judgments. The CLAIR preferences lead to the strongest performance out of all datasets, and APO consistently outperforms less controllable objectives. Our best model, trained on 32K CLAIR preferences with APO, improves Llama-3-8B-Instruct by 7.65%, closing the gap with GPT4-turbo by 45%. Our code is available at https://github.com/ContextualAI/CLAIR_and_APO.

View on arXivView PDF

Code Implementations(1)

MIT

Anchored Preference Optimization and Contrastive Revisions: Addressing Underspecification in Alignment

643Jupyter NotebookAug 6, 20242 years agoMIT

Similar Papers

Cite this paper

@article{doosterlinck2024anchored,
  title  = {Anchored Preference Optimization and Contrastive Revisions: Addressing Underspecification in Alignment},
  author = {Karel D'Oosterlinck and Winnie Xu and Chris Develder and Thomas Demeester and Amanpreet Singh and Christopher Potts and Douwe Kiela and Shikib Mehri},
  year   = {2024},
  eprint = {2408.06266},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.06266v5}
}

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

Discussion