Sample Efficient Preference Alignment in LLMs via Active Exploration

Viraj Mehta, Syrine Belakaria, Vikramjeet Das, Ojash Neopane, Yijia Dai +5 more
12/1/2023
cs.LGcs.AIstat.ML

No official code found. Best implementation: belakaria/active-llm-alignment (5 stars, MIT, last commit 2025-07-04).

Abstract

Preference-based feedback is important for many applications in machine learning where evaluation of a reward function is not feasible. Notable recent examples arise in preference alignment for large language models, including in reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO). For many applications of preference alignment, the cost of acquiring human feedback can be substantial. In this work, we take advantage of the fact that one can often choose contexts at which to obtain human feedback to most efficiently identify a good policy, and formalize the setting as an active contextual dueling bandit problem. We propose an active exploration algorithm to efficiently select the data and provide theoretical proof that it has a polynomial worst-case regret bound. We extend the setting and methodology for practical use in preference alignment of large language models. We provide two extensions, an online and an offline approach. Our method outperforms the baselines with limited samples of human preferences on several language models and four real-world datasets including two new datasets that we contribute to the literature.

View on arXivView PDF

Code Implementations(1)

MIT

Sample-Efficient Preference Alignment in LLMs via Active Exploration

50PythonJan 31, 20251 years agoMIT

Similar Papers

Cite this paper

@article{mehta2023sample,
  title  = {Sample Efficient Preference Alignment in LLMs via Active Exploration},
  author = {Viraj Mehta and Syrine Belakaria and Vikramjeet Das and Ojash Neopane and Yijia Dai and Ilija Bogunovic and Barbara Engelhardt and Stefano Ermon and Jeff Schneider and Willie Neiswanger},
  year   = {2023},
  eprint = {2312.00267},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.00267v3}
}

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

Discussion