arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.08635cs.LGcs.AIstat.ML
收藏

大型语言模型通过在线偏好优化实现人类对齐

Human Alignment of Large Language Models through Online Preference Optimisation

Google DeepMind(谷歌DeepMind)
Daniele Calandriello, Daniel Guo, Remi Munos, Mark Rowland, Yunhao Tang, Bernardo Avila Pires, Pierre Harvey Richemond, Charline Le Lan, Michal Valko, Tianqi Li… 展开作者

Daniele Calandriello, Daniel Guo, Remi Munos, Mark Rowland, Yunhao Tang, Bernardo Avila Pires, Pierre Harvey Richemond, Charline Le Lan, Michal Valko, Tianqi Liu, Rishabh Joshi, Zeyu Zheng, Bilal Piot

AI总结:

本文证明IPO与Nash-MD在线版本的等价性,并据此提出IPO-MD算法,通过混合策略采样和偏好模型自博弈优化,在摘要任务上验证了其有效性。

摘要:

确保语言模型输出与人类偏好对齐,对于保证有用、安全和愉悦的用户体验至关重要。因此,人类对齐近年来被广泛研究,并涌现出多种方法,如基于人类反馈的强化学习(RLHF)、直接策略优化(DPO)和序列似然校准(SLiC)。在本文中,我们的贡献有两个方面。首先,我们证明了两种近期对齐方法——即身份策略优化(IPO)和纳什镜像下降(Nash-MD)——之间的等价性。其次,我们引入了IPO的一种泛化形式,命名为IPO-MD,它利用了Nash-MD提出的正则化采样方法。这种等价性乍一看可能令人惊讶,因为IPO是一种离线方法,而Nash-MD是一种使用偏好模型的在线方法。然而,当我们考虑IPO的在线版本时,即当两个生成样本由在线策略采样并由训练好的偏好模型标注时,这种等价性可以被证明。通过这样的数据流优化IPO损失,就等同于通过自博弈寻找偏好模型的纳什均衡。基于这种等价性,我们引入了IPO-MD算法,该算法使用混合策略(介于在线策略和参考策略之间)生成数据,类似于一般的Nash-MD算法。我们在摘要任务上,将在线IPO和IPO-MD与现有损失函数(如DPO和SLiC)的不同在线版本进行了比较。

英文摘要:

Ensuring alignment of language models' outputs with human preferences is critical to guarantee a useful, safe, and pleasant user experience. Thus, human alignment has been extensively studied recently and several methods such as Reinforcement Learning from Human Feedback (RLHF), Direct Policy Optimisation (DPO) and Sequence Likelihood Calibration (SLiC) have emerged. In this paper, our contribution is two-fold. First, we show the equivalence between two recent alignment methods, namely Identity Policy Optimisation (IPO) and Nash Mirror Descent (Nash-MD). Second, we introduce a generalisation of IPO, named IPO-MD, that leverages the regularised sampling approach proposed by Nash-MD. This equivalence may seem surprising at first sight, since IPO is an offline method whereas Nash-MD is an online method using a preference model. However, this equivalence can be proven when we consider the online version of IPO, that is when both generations are sampled by the online policy and annotated by a trained preference model. Optimising the IPO loss with such a stream of data becomes then equivalent to finding the Nash equilibrium of the preference model through self-play. Building on this equivalence, we introduce the IPO-MD algorithm that generates data with a mixture policy (between the online and reference policy) similarly as the general Nash-MD algorithm. We compare online-IPO and IPO-MD to different online versions of existing losses on preference data such as DPO and SLiC on a summarisation task.

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

↑