Sample-Efficient Alignment for LLMs

Zichen Liu, Changyu Chen, Chao Du, Wee Sun Lee, Min Lin
11/3/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: sail-sg/oat (670 stars, Apache-2.0, last commit 2026-01-29).

Abstract

We study methods for efficiently aligning large language models (LLMs) with human preferences given budgeted online feedback. We first formulate the LLM alignment problem in the frame of contextual dueling bandits. This formulation, subsuming recent paradigms such as online RLHF and online DPO, inherently quests for sample-efficient algorithms that incorporate online active exploration. Leveraging insights from bandit theory, we introduce a unified algorithm based on Thompson sampling and highlight its applications in two distinct LLM alignment scenarios. The practical agent that efficiently implements this algorithm, named SEA (Sample-Efficient Alignment), is empirically validated through extensive experiments across three model scales (1B, 2.8B, 6.9B) and three preference learning algorithms (DPO, IPO, SLiC). The results demonstrate that SEA achieves highly sample-efficient alignment with oracle's preferences, outperforming recent active exploration methods for LLMs. Additionally, we release the implementation of SEA together with an efficient codebase designed for online alignment of LLMs, aiming to accelerate future research in this field.

View on arXivView PDF

Code Implementations(1)

sail-sg/oatCommunity100%
Apache-2.0

🌾 OAT: A research-friendly framework for LLM online alignment, including reinforcement learning, preference learning, etc.

67063Shell, PythonOct 15, 20248 months agoApache-2.0
alignmentdistributed-rldistributed-trainingdpodueling-bandits+11 more

Similar Papers

Cite this paper

@article{liu2024sampleefficient,
  title  = {Sample-Efficient Alignment for LLMs},
  author = {Zichen Liu and Changyu Chen and Chao Du and Wee Sun Lee and Min Lin},
  year   = {2024},
  eprint = {2411.01493},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.01493v2}
}

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

Discussion