arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10038cs.CLcs.AIcs.CVcs.LG
收藏

RS-DPO:一种用于大语言模型对齐的混合拒绝采样与直接偏好优化方法

RS-DPO: A Hybrid Rejection Sampling and Direct Preference Optimization Method for Alignment of Large Language Models

Amazon(亚马逊公司)

Saeed Khaki, JinJin Li, Lan Ma, Liu Yang, Prathap Ramachandra

AI总结:

本文提出RS-DPO方法,通过将拒绝采样与直接偏好优化相结合,从监督微调策略模型采样对比样本并进行偏好对齐,从而在有限资源下提升大语言模型对齐效果并优于RS、PPO和DPO。

摘要:

基于人类反馈的强化学习(RLHF)已被广泛用于使大语言模型与用户意图对齐。然而,基于近端策略优化(PPO)的RLHF有时不稳定,需要大量的超参数微调,并且在对齐过程中最大化估计奖励的计算成本很高。最近,直接偏好优化(DPO)被提出以应对这些挑战。然而,DPO依赖来自人类标注者和替代大语言模型生成的对比响应,而不是来自策略模型,这限制了RLHF的有效性。在本文中,我们通过系统地结合拒绝采样(RS)和DPO来同时解决这两个挑战。我们提出的方法RS-DPO首先开发一个监督微调策略模型(SFT)。针对每个提示,直接从SFT模型采样一组k个不同的响应。RS-DPO根据奖励分布识别对比样本对。最后,我们使用对比样本应用DPO,使模型与人类偏好对齐。我们的实验表明,所提出的方法能够在有限资源环境下有效微调大语言模型,从而改善与用户意图的对齐。此外,它优于现有方法,包括RS、PPO和DPO。

英文摘要:

Reinforcement learning from human feedback (RLHF) has been extensively employed to align large language models with user intent. However, proximal policy optimization (PPO) based RLHF is occasionally unstable requiring significant hyperparameter finetuning, and computationally expensive to maximize the estimated reward during alignment. Recently, direct preference optimization (DPO) is proposed to address those challenges. However, DPO relies on contrastive responses generated from human annotator and alternative LLM, instead of the policy model, limiting the effectiveness of the RLHF. In this paper, we addresses both challenges by systematically combining rejection sampling (RS) and DPO. Our proposed method, RS-DPO, initiates with the development of a supervised fine-tuned policy model (SFT). A varied set of k responses per prompt are sampled directly from the SFT model. RS-DPO identifies pairs of contrastive samples based on their reward distribution. Finally, we apply DPO with the contrastive samples to align the model to human preference. Our experiments indicate that our proposed method effectively fine-tunes LLMs with limited resource environments, leading to improved alignment with user intent. Furthermore, it outperforms existing methods, including RS, PPO, and DPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑