# ChatGPT 的 RLHF 训练

ChatGPT 的基于人类反馈的强化学习（RLHF），是 OpenAI 在 2022 年 11 月 30 日发布该聊天机器人之前所使用的后训练流程，用以将一个 GPT-3.5 语言模型转变为能够遵循指令、进行对话并拒绝有害请求的助手。该方法早在 2022 年初已在 [InstructGPT](https://www.edgepedia.org/zh/instructgpt) 上得到验证；ChatGPT 在此基础上加入了对话数据加以应用，其结果成为历史上增长最快的消费产品之一。

| 事实 | 数值 |
|---|---|
| 发布时间 | 2022 年 11 月 30 日<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> |
| 基础模型 | 一个于 2022 年初完成训练的 GPT-3.5 系列模型<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> |
| 后训练算力 | 4.9 petaflops/s-天（175B SFT）加 60（175B PPO-ptx），而 GPT-3 预训练为 3,640，约占 1.8%<sup>[2](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)</sup><sup> • </sup><sup>[6](https://splab.sdu.edu.cn/InstructGPT.pdf)</sup> |
| 头条结果 | 参数少 100 倍的 1.3B 参数 InstructGPT 在人类评估中比 175B GPT-3 更受青睐<sup>[2](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)</sup> |
| 早期增长 | 五天内 100 万用户；两个月内超过 3000 万<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup> |
| 截至 2024 年 12 月的规模 | 3 亿周活跃用户，40 亿美元收入<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup> |
| 发布时的已知局限 | 听起来合理但实际错误的回答；RL 训练期间没有事实依据来源<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> |

## 发生了什么

据《麻省理工科技评论》对构建团队的口述历史，OpenAI 在 2022 年 11 月下旬悄无声息地发布了 ChatGPT，并未预料到它会成为病毒式爆款。<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup> 公司在发布后五天内就超过了其最雄心勃勃的 100 万用户目标，而在亮相两个月后，该聊天机器人已拥有超过 3000 万用户。<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup>

到 2023 年 2 月，数百万人用它来写诗、构建应用、进行临时性的心理疗愈对话，它还引发了《纽约时报》所称的投资者疯狂追捧——他们试图搭上下一波 AI 热潮的顺风车。<sup>[5](https://www.nytimes.com/2023/02/03/technology/chatgpt-openai-artificial-intelligence.html)</sup> 一个期望不高的研究预览，竟成了行业竞争竞赛的导火索。

## RLHF 如何运作：OpenAI 实际做了什么

OpenAI 为 ChatGPT 记录在案的流程分为三步。第一，监督微调：人类 AI 训练师提供对话，在对话中他们同时扮演双方——用户和 AI 助手——训练师可以访问模型生成的建议，以帮助他们撰写回复。<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> 第二，奖励模型：OpenAI 随机选取一条模型撰写的消息，采样若干备选补全，让 AI 训练师对它们进行排序。<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> 第三，强化学习：利用这些奖励模型，OpenAI 使用近端策略优化（PPO）对模型进行微调，该算法在多次迭代中将模型推向奖励模型评分高的输出。<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup>

发布帖称，ChatGPT 使用与 InstructGPT 相同的方法通过 RLHF 训练，仅在数据收集设置上有细微差异。<sup>[1](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)</sup> ChatGPT 负责人 Liam Fedus（利亚姆·费杜斯）告诉《麻省理工科技评论》，该模型是从与 InstructGPT 相同的语言模型微调而来，方法类似，团队添加了一些对话数据并调整了训练过程，团队“不想把它过度吹嘘为一项重大的根本性进步”。<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup> 他说，添加的对话数据产生了很大的积极影响。<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup>

## 用数据说话

RLHF 效果最清晰的定量证据来自 2022 年 3 月发表、在 NeurIPS 2022 上展示的 InstructGPT 论文。在 OpenAI 自有提示分布的人类评估中，1.3B 参数的 InstructGPT 模型的输出比 175B GPT-3 的输出更受评估者青睐，尽管参数量少了 100 倍。<sup>[2](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)</sup> 论文还报告了真实性的提升和有毒输出生成的减少，而在公开 NLP 数据集上的性能回退极小。<sup>[2](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)</sup>

算力的不对称性令人瞩目。训练 175B SFT 模型需要 4.9 petaflops/s-天，175B PPO-ptx（RLHF）模型需要 60 petaflops/s-天，而 GPT-3 预训练为 3,640 petaflops/s-天。两个后训练阶段合计使用了预训练算力的约 1.8%；仅 PPO 阶段就占了约 1.6%。<sup>[2](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)</sup>

这一小部分算力带来的商业回报是巨大的。到 2024 年 12 月，即发布两年后，ChatGPT 已成为一台收入 40 亿美元的引擎，拥有 3 亿周活跃用户。<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup>

## 后果与反响

发布的后果在数周内便显现。到 2023 年 2 月，批评者抱怨 ChatGPT 容易给出有偏见或错误的答案，一些 AI 研究人员指责 OpenAI 鲁莽行事，全国各地的学区——包括纽约市的学区——封禁了 ChatGPT。<sup>[5](https://www.nytimes.com/2023/02/03/technology/chatgpt-openai-artificial-intelligence.html)</sup>

构建团队自己记录的局限在若干点上与批评者一致。OpenAI 的 Sandhini Agarwal（桑迪尼·阿加瓦尔）表示，通过对人类偏好的训练，模型自动学会了拒绝行为，拒绝了许多请求，但模型仍然非常有偏见，而且很容易写出提示词让它不拒绝 OpenAI 希望它拒绝的内容——这是早期的越狱问题。<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup> 团队在发布前最大的担忧是事实性，“因为模型喜欢编造东西。”<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup> 发布后，OpenAI 使用对抗训练——让聊天机器人互相对抗——并将成功的越狱案例加入训练数据，以加固模型。<sup>[4](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)</sup>

产品的定价跟随其增长：自 2023 年 2 月起提供有限的免费层级和每月 20 美元的 ChatGPT Plus 服务，后来又推出每月 200 美元的 Pro 层级，可使用专门的推理模型。<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup> 据 [The Verge](https://www.edgepedia.org/zh/the-verge) 2024 年 12 月的文章，Pro 层级的时间定在 2024 年 12 月或 2025 年初。<sup>[3](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)</sup>

## References

1. [Introducing ChatGPT, OpenAI launch post, November 30, 2022 (archived March 16, 2023)](https://web.archive.org/web/20230316001700/https:/openai.com/blog/chatgpt/)
2. [Training language models to follow instructions with human feedback (InstructGPT), NeurIPS 2022](https://proceedings.neurips.cc/paper%5Ffiles/paper/2022/file/b1efde53be364a73914f58805a001731-Paper-Conference.pdf)
3. [Inside the launch — and future — of ChatGPT, The Verge, December 12, 2024](https://www.theverge.com/2024/12/12/24318650/chatgpt-openai-history-two-year-anniversary)
4. [The inside story of how ChatGPT was built from the people who made it, MIT Technology Review, March 3, 2023](https://www.technologyreview.com/2023/03/03/1069311/inside-story-oral-history-how-chatgpt-built-openai/)
5. [How ChatGPT Kicked Off an A.I. Arms Race, The New York Times, February 3, 2023](https://www.nytimes.com/2023/02/03/technology/chatgpt-openai-artificial-intelligence.html)
6. [splab.sdu.edu.cn](https://splab.sdu.edu.cn/InstructGPT.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 11, 2026; Oct 25, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI products and assistants › Chat assistants and AI search

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/rlhf-for-chatgpt

English original: https://www.edgepedia.org/rlhf-for-chatgpt
