Would I Lie To You? Inference Time Alignment of Language Models using Direct Preference Heads

Avelina Asada Hadji-Kyriacou, Ognjen Arandjelovic
5/30/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: Avelina9X/direct-preference-heads (4 stars, BSD-3-Clause, last commit 2024-05-31).

Abstract

Pre-trained Language Models (LMs) exhibit strong zero-shot and in-context learning capabilities; however, their behaviors are often difficult to control. By utilizing Reinforcement Learning from Human Feedback (RLHF), it is possible to fine-tune unsupervised LMs to follow instructions and produce outputs that reflect human preferences. Despite its benefits, RLHF has been shown to potentially harm a language model's reasoning capabilities and introduce artifacts such as hallucinations where the model may fabricate facts. To address this issue we introduce Direct Preference Heads (DPH), a fine-tuning framework that enables LMs to learn human preference signals through an auxiliary reward head without directly affecting the output distribution of the language modeling head. We perform a theoretical analysis of our objective function and find strong ties to Conservative Direct Preference Optimization (cDPO). Finally we evaluate our models on GLUE, RACE, and the GPT4All evaluation suite and demonstrate that our method produces models which achieve higher scores than those fine-tuned with Supervised Fine-Tuning (SFT) or Direct Preference Optimization (DPO) alone.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
40PythonMay 29, 20242 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{hadjikyriacou2024would,
  title  = {Would I Lie To You? Inference Time Alignment of Language Models using Direct Preference Heads},
  author = {Avelina Asada Hadji-Kyriacou and Ognjen Arandjelovic},
  year   = {2024},
  eprint = {2405.20053},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.20053},
  url    = {http://arxiv.org/abs/2405.20053v1},
  journal = {NEURIPS 2024 2024}
}

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

Discussion