InstructGPT on one page
How roughly 40 people ranking answers taught GPT-3 to help
Ouyang et al., OpenAI, 2022 · arXiv:2203.02155 · “Training language models to follow instructions with human feedback”
The problem
GPT-3 is trained to predict the next word, so it continues your prompt instead of doing what you asked. The paper calls this misaligned, and a bigger model doesn’t fix it.
Copy good examplessupervised fine-tuning
Labelers write ideal answers to prompts (about 13k of them), and GPT-3 is fine-tuned to imitate them.
Learn a judgethe reward model
The model writes K = 4 to 9 answers to a prompt and a labeler ranks them, best to worst (33k prompts). Every pair is a lesson: K choose 2, up to 36 per ranking. A 6B model learns to score answers.
In words: score the winner (yw) above the loser (yl). σ turns the score gap into the chance a person would agree.
Practice against the judgereinforcement learning
Reinforcement learning (PPO) on 31k prompts: write an answer, get a score from the reward model, adjust. The objective adds two guard rails:
- βThe leash (a KL penalty): stay close to the step-1 model, so it can’t game the judge. The paper calls that gaming over-optimization.
- γKeep practicing on the original internet text. That’s PPO-ptx, the final InstructGPT: it wins back most of the “alignment tax” on old skills (SQuAD, DROP, HellaSwag, WMT French→English).
What it got
of the time, people preferred InstructGPT 175B over GPT-3 175B (give or take 3%)
the small InstructGPT beat GPT-3, a model over 100× bigger
how often it made things up vs GPT-3, on closed-domain tasks
extra compute: 4.9 + 60 vs GPT-3’s 3,640 petaflop/s-days