arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.08215cs.CLcs.LGstat.ML
收藏

通过 f-散度最小化使语言模型与偏好对齐

Aligning Language Models with Preferences through f-divergence Minimization

Naver Corp(NAVER公司);Yonsei University(延世大学);University of Sussex(萨塞克斯大学);Naver Labs Europe(NAVER欧洲实验室)

Dongyoung Go, Tomasz Korbak, Germán Kruszewski, Jos Rozen, Nahyeon Ryu, Marc Dymetman

AI总结:

本文提出 f-DPG,用任意 f-散度逼近可评估目标分布,统一 RLHF 与 GDC 等方法,并发现不同散度具有不同对齐-多样性权衡,其中 Jensen-Shannon 散度表现突出。

摘要:

使语言模型与偏好对齐可以被表述为逼近一个代表某种期望行为的目标分布。现有方法在目标分布的函数形式以及用于逼近该分布的算法上均有所不同。例如,基于人类反馈的强化学习(RLHF)对应于最小化来自隐式目标分布的反向 KL,该目标分布源于目标函数中的 KL 惩罚。另一方面,生成式分布控制(GDC)具有显式目标分布,并使用分布式策略梯度(DPG)算法最小化相对于该分布的前向 KL。在本文中,我们提出了一种新方法 f-DPG,它允许使用任意 f-散度来逼近任何可被评估的目标分布。f-DPG 统一了两个框架(RLHF、GDC)以及逼近方法(DPG、带 KL 惩罚的 RL)。我们展示了不同散度目标选择的实际收益,并证明不存在普遍最优的目标,而是不同散度呈现出不同的对齐与多样性权衡。我们表明,Jensen-Shannon 散度在这些目标之间取得了良好平衡,并且经常以显著优势优于前向 KL 散度,从而带来相对于先前工作的显著改进。随着模型规模增加,散度之间的这些区分性特征仍然存在,这凸显了选择适当散度目标的重要性。

英文摘要:

Aligning language models with preferences can be posed as approximating a target distribution representing some desired behavior. Existing approaches differ both in the functional form of the target distribution and the algorithm used to approximate it. For instance, Reinforcement Learning from Human Feedback (RLHF) corresponds to minimizing a reverse KL from an implicit target distribution arising from a KL penalty in the objective. On the other hand, Generative Distributional Control (GDC) has an explicit target distribution and minimizes a forward KL from it using the Distributional Policy Gradient (DPG) algorithm. In this paper, we propose a new approach, f-DPG, which allows the use of any f-divergence to approximate any target distribution that can be evaluated. f-DPG unifies both frameworks (RLHF, GDC) and the approximation methods (DPG, RL with KL penalties). We show the practical benefits of various choices of divergence objectives and demonstrate that there is no universally optimal objective but that different divergences present different alignment and diversity trade-offs. We show that Jensen-Shannon divergence strikes a good balance between these objectives, and frequently outperforms forward KL divergence by a wide margin, leading to significant improvements over prior work. These distinguishing characteristics between divergences persist as the model size increases, highlighting the importance of selecting appropriate divergence objectives.

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

↑