TensorX
返回文献探索

Paper · arXiv 2411.01493

Sample-Efficient Alignment for LLMs

Zichen Liu, Changyu Chen, Chao Du, Wee Sun Lee, Min Lin

12 upvotesNovember 3, 2024arXiv 预印本
AI 摘要

A sample-efficient algorithm called SEA is introduced for aligning large language models with human preferences using contextual dueling bandits and Thompson sampling.

contextual dueling banditsonline RLHFonline DPOThompson samplingsample-efficientactive explorationDPOIPOSLiConline alignment

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Sample-Efficient Alignment for LLMs | TensorX