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

基于人类偏好预训练语言模型

Pretraining Language Models with Human Preferences

New York University(纽约大学);FAR AI(FAR人工智能研究所);University of Sussex(萨塞克斯大学);Northeastern University(东北大学);Anthropic(Anthropic公司)

Tomasz Korbak, Kejian Shi, Angelica Chen, Rasika Bhalerao, Christopher L. Buckley, Jason Phang, Samuel R. Bowman, Ethan Perez

AI总结:

该研究针对语言模型预训练易生成违反人类偏好内容的问题,提出条件训练这一帕累托最优的预训练目标,可大幅降低不良内容生成率且保留下游性能,证明训练初期融入人类偏好优于后续微调对齐。

摘要:

语言模型(LM)经预训练以模仿互联网文本,其中包含若由语言模型生成会违反人类偏好的内容:虚假信息、冒犯性评论、个人身份信息、低质量或有缺陷的代码等。本文探索了语言模型预训练的替代目标,这类目标同时能引导模型生成符合人类偏好的文本。我们在三项任务上对五种结合人类反馈的预训练目标进行了基准测试,研究它们如何影响预训练语言模型在对齐性与能力之间的权衡。我们在探索的方法中发现了一种帕累托最优且简单的方案:条件训练,即学习词元在奖励模型给出的人类偏好分数条件下的分布。无论是无提示生成还是在对抗性选择的提示下生成,条件训练都能将不良内容的生成率降低最多一个数量级。此外,在特定任务微调前后,条件训练都能保持标准语言模型预训练的下游任务性能。与先进行标准语言模型预训练、再通过反馈微调(即先学习再消除不良行为)的方式相比,结合人类反馈的预训练能带来好得多的偏好满足度。我们的结果表明,在预训练语言模型时,我们应当超越模仿学习,从训练初期就融入人类偏好。

英文摘要:

Language models (LMs) are pretrained to imitate internet text, including content that would violate human preferences if generated by an LM: falsehoods, offensive comments, personally identifiable information, low-quality or buggy code, and more. Here, we explore alternative objectives for pretraining LMs in a way that also guides them to generate text aligned with human preferences. We benchmark five objectives for pretraining with human feedback across three tasks and study how they affect the trade-off between alignment and capabilities of pretrained LMs. We find a Pareto-optimal and simple approach among those we explored: conditional training, or learning distribution over tokens conditional on their human preference scores given by a reward model. Conditional training reduces the rate of undesirable content by up to an order of magnitude, both when generating without a prompt and with an adversarially-chosen prompt. Moreover, conditional training maintains the downstream task performance of standard LM pretraining, both before and after task-specific finetuning. Pretraining with human feedback results in much better preference satisfaction than standard LM pretraining followed by finetuning with feedback, i.e., learning and then unlearning undesirable behavior. Our results suggest that we should move beyond imitation learning when pretraining LMs and incorporate human preferences from the start of training.

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

↑