arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12150cs.LGcs.CL
收藏

将语言模型与人类偏好对齐

Aligning language models with human preferences

Faculty of Engineering and Informatics(工程与信息学院);Department of Informatics(信息学系)

Tomasz Korbak

AI总结:

本论文探讨将语言模型与人类偏好对齐的多种方法,视其为贝叶斯推理,证明RLHF是分布匹配的特例,并发现预训练阶段引入人类反馈更有效。

摘要:

在大量文本数据上训练的语言模型(LMs)能够获得生成摘要、回答问题或生成代码等复杂技能。然而,它们也会表现出违反人类偏好的行为,例如生成冒犯性内容、虚假信息或延续社会偏见。在本论文中,我探讨了将语言模型与人类偏好对齐的几种方法。首先,我认为对齐语言模型可以被视为贝叶斯推理:以关于人类偏好的证据为条件,对先验(基础、预训练的语言模型)进行条件化(第2章)。以人类偏好为条件可以通过多种方式实现。在第3章中,我研究了使用评分函数给出的反馈对预训练语言模型进行微调的两种方法之间的关系:基于人类反馈的强化学习(RLHF)和分布匹配。我表明,RLHF可以被视为分布匹配的一个特例,但分布匹配严格来说更为通用。在第4章中,我展示了如何将分布匹配扩展到条件语言模型。最后,在第5章中,我探索了另一条路径:在预训练期间就使语言模型以人类偏好为条件。我表明,从一开始就引入人类反馈往往比仅在监督微调期间使用它更有效。总体而言,这些结果凸显了与RLHF不同且互补的对齐技术的空间。

英文摘要:

Language models (LMs) trained on vast quantities of text data can acquire sophisticated skills such as generating summaries, answering questions or generating code. However, they also manifest behaviors that violate human preferences, e.g., they can generate offensive content, falsehoods or perpetuate social biases. In this thesis, I explore several approaches to aligning LMs with human preferences. First, I argue that aligning LMs can be seen as Bayesian inference: conditioning a prior (base, pretrained LM) on evidence about human preferences (Chapter 2). Conditioning on human preferences can be implemented in numerous ways. In Chapter 3, I investigate the relation between two approaches to finetuning pretrained LMs using feedback given by a scoring function: reinforcement learning from human feedback (RLHF) and distribution matching. I show that RLHF can be seen as a special case of distribution matching but distributional matching is strictly more general. In chapter 4, I show how to extend the distribution matching to conditional language models. Finally, in chapter 5 I explore a different root: conditioning an LM on human preferences already during pretraining. I show that involving human feedback from the very start tends to be more effective than using it only during supervised finetuning. Overall, these results highlight the room for alignment techniques different from and complementary to RLHF.

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

↑