The Post-training Process OpenAI Used for ChatGPT

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

It explains the SFT-then-reward-model-then-RLHF recipe behind ChatGPT, giving practitioners the conceptual foundation needed to build their own post-training pipelines.

Read this as

This article explains how OpenAI turned its raw GPT-3 model into ChatGPT in November 2022 through 'post-training', extra teaching after the model learned language. Humans wrote good answers, ranked which replies were better, and the model was nudged toward the better ones. The result was a chatbot anyone could text with. The author, Sharon Zhou, also covers newer skills like tool use and reasoning.

Zhou's walkthrough of OpenAI's InstructGPT paper shows what it cost to make GPT-3 useful: about 40 contract labelers, 13,000 labeled prompts, and 200,000 to 1.2 million preference comparisons for the reward model. For teams deciding whether to fine-tune models, the key figures are that safety-vs-helpfulness trade-offs remain human decisions, and reasoning models like o1 (74% on AIME versus GPT-4o's 12%) burn inference compute proportional to intelligence gains.

The three-stage InstructGPT pipeline: SFT of GPT-3 for 16 epochs on ~13K human-labeled prompts (mixed with 10% pretraining data; overfitting after one epoch was acceptable since only the checkpoint fed RLHF); a 6B reward model trained via cross-entropy on pairwise preferences from 4-9 ranked responses per prompt, updated continually as the policy improved; then RLHF. The 6B size was chosen over 175B for stability. OpenAI split train/val/test by labeler to avoid leakage. Frontier reasoning models' RL phase now matches pretraining compute.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

ChatGPT InstructGPT GPT-3 Model Context Protocol O'Reilly

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading