Training language models to follow instructionswith human feedback
论文信息
标题:Training language models to follow instructions with human feedback(InstructGPT)
作者:Long Ouyang, Jeff Wu, Xu Jiang 等(OpenAI)
提交:2022-03-04
论文下载链接:
链接:https://pan.quark.cn/s/f522cbc4e291
提取码:7dsh
一句话总结:正式提出RLHF完整三阶段范式,训练出InstructGPT,证明对齐可以用远更小的模型超越原生大GPT-3,是ChatGPT的技术基石。
原文摘要
Making language models bigger does not inherently make them better at following a user’s intent. For example, large language models can generate outputs that are untruthful, toxic, or simply not helpful to the user. In other words, these models are not aligned with their users. In this paper, we show an avenue for aligning language models with user intent on a wide range of tasks by fine-tuning with human feedback. Starting with a set of labeler-written prompts and prompts submitted through the OpenAI API, we collect a dataset of labeler demonstrations of the desired model behavior, which we use to fine-tune GPT-3 using supervised learning. We then collect a dataset of rankings of model outputs, which we use to further fine-tune this supervised model using reinforcement learning from human feedback (RLHF). We call the resulting models InstructGPT. In human evaluations on our prompt distribution, outputs from the 1.3B parameter InstructGPT model are preferred to outputs from the 175B GPT-3, despite having 100x fewer parameters. Moreover, InstructGPT models show improvements in truthfulness and reductions in toxic output generation while having minimal performance regressions on public NLP datasets. Even though InstructGPT still makes simple mistakes, our results show that fine-tuning with human feedback is a promising direction for aligning language models with human intent.
摘要中文翻译
单纯扩大语言模型规模,并不能天然提升模型遵循用户意图的能力。大语言模型可能生成虚假、有害或者对用户没有帮助的内容,也就是模型没有和用户对齐。
本文提出利用人类反馈微调,让语言模型在各类任务上对齐用户意图。首先基于标注员编写的提示词、以及OpenAI API用户提交的提示,收集标注员给出的示范回答,用监督学习微调GPT-3;之后收集模型输出的人类偏好排序数据,基于这份数据用人类反馈强化学习(RLHF)继续微调,得到的模型命名为InstructGPT。
在人工评测中,13亿参数的InstructGPT,输出更受人类偏好,优于1750亿参数的原生GPT-3,参数量仅为后者的百分之一。同时模型真实性提升、有害内容减少,在公开NLP基准上性能几乎没有下降。
尽管InstructGPT依然会犯基础错误,但实验证明基于人类反馈的微调是对齐大模型的极具潜力的路线。
核心贡献
标准RLHF三阶段流水线
SFT监督微调:人工标注指令-回答示范对,微调基座GPT-3;
奖励模型RM训练:同一prompt下,人工对多个模型输出排序,训练奖励模型预测人类偏好;
PPO强化:以奖励模型作为reward,用PPO对SFT模型做策略优化。
一个关键结论:对齐 > 单纯堆参数量 1.3B InstructGPT 人工偏好超过175B原始GPT-3,说明对齐是提升模型有用性的独立维度,不只是靠模型规模。
量化对齐收益 幻觉、有毒内容下降,同时在传统NLP基准上不会明显掉点,验证RLHF不是简单“阉割模型能力”。
奠定工业对齐范式 这套三阶段流程成为后续ChatGPT、很多开源大模型对齐的标准框架。
Training language models to follow instructionswith human feedback
https://www.devpilot.cloud/archives/wei-ming-ming-wen-zhang-AHNspScG
评论