arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.19107cs.LGcs.AI
收藏

用于大型语言模型对齐的离线正则化强化学习

Offline Regularised Reinforcement Learning for Large Language Models Alignment

Google DeepMind(谷歌DeepMind);Cohere(科here);Stanford University(斯坦福大学);Google Research(谷歌研究院)
Pierre Harvey Richemond, Yunhao Tang, Daniel Guo, Daniele Calandriello, Mohammad Gheshlaghi Azar, Rafael Rafailov, Bernardo Avila Pires, Eugene Tarassov, Lucas … 展开作者

Pierre Harvey Richemond, Yunhao Tang, Daniel Guo, Daniele Calandriello, Mohammad Gheshlaghi Azar, Rafael Rafailov, Bernardo Avila Pires, Eugene Tarassov, Lucas Spangher, Will Ellsworth, Aliaksei Severyn, Jonathan Mallinson, Lior Shani, Gil Shamir, Rishabh Joshi, Tianqi Liu, Remi Munos, Bilal Piot

AI总结:

本文提出DRO(直接奖励优化)框架,通过均方目标利用更丰富的单轨迹数据集进行大型语言模型对齐,无需成对偏好数据,并在T5模型上验证了其优于KTO等基线的性能。

摘要:

大型语言模型(LLM)对齐的主流框架,无论是通过人类反馈的强化学习还是直接偏好优化,都是从偏好数据中学习。这涉及构建数据集,其中每个元素是一个四元组,由一个提示、两个独立的回复(提示的补全)以及两个人类在两个独立回复之间的偏好组成,从而产生一个被偏好的回复和一个不被偏好的回复。这样的数据通常稀缺且收集成本高昂。另一方面,单轨迹数据集,其中每个元素是一个三元组,由一个提示、一个回复和人类反馈组成,自然更为丰富。此类数据集的典型元素例如LLM对用户提示的回复,随后是用户的反馈,如点赞或点踩。因此,在本研究中,我们提出DRO,即直接奖励优化,作为一个不需要成对偏好的框架和相关算法。DRO使用简单的均方目标,可以通过多种方式实现。我们使用T5编码器-解码器语言模型实证验证了我们的发现,并展示了DRO在选定基线(如Kahneman-Tversky Optimization (KTO))上的性能。因此,我们确认DRO是一种简单且在经验上令人信服的单轨迹策略优化方法。

英文摘要:

The dominant framework for alignment of large language models (LLM), whether through reinforcement learning from human feedback or direct preference optimisation, is to learn from preference data. This involves building datasets where each element is a quadruplet composed of a prompt, two independent responses (completions of the prompt) and a human preference between the two independent responses, yielding a preferred and a dis-preferred response. Such data is typically scarce and expensive to collect. On the other hand, \emph{single-trajectory} datasets where each element is a triplet composed of a prompt, a response and a human feedback is naturally more abundant. The canonical element of such datasets is for instance an LLM's response to a user's prompt followed by a user's feedback such as a thumbs-up/down. Consequently, in this work, we propose DRO, or \emph{Direct Reward Optimisation}, as a framework and associated algorithms that do not require pairwise preferences. DRO uses a simple mean-squared objective that can be implemented in various ways. We validate our findings empirically, using T5 encoder-decoder language models, and show DRO's performance over selected baselines such as Kahneman-Tversky Optimization (KTO). Thus, we confirm that DRO is a simple and empirically compelling method for single-trajectory policy optimisation.

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

↑