Training Language Models to Follow Instructions with Human Feedback
1. Research problem
A pretrained language model optimized for next-token likelihood does not reliably follow user instructions or reflect human preferences about helpfulness and safety.
2. Motivation
The authors wanted a systematic recipe to align a large model with user intent using human feedback rather than ad hoc prompt engineering.
3. Previous approaches
GPT-3 could perform tasks via prompting but was unpredictable; earlier RLHF work was in RL environments or smaller language models.
4. Core contribution
Defined the three-stage RLHF pipeline: supervised fine-tuning on human demonstrations, training a reward model from human rankings, and optimizing the policy with PPO against that reward with a KL penalty to the SFT model.
5. Mathematical formulation
Objective: maximize E[r_phi(x,y)] - beta*KL(pi_theta(y|x) || pi_sft(y|x)) using PPO, where r_phi is trained on rank-ordered model outputs.
6. Methodology
Collect demonstration and comparison data from contractors, train a reward model, fine-tune with PPO, and evaluate with human preference studies and benchmarks.
7. Architecture
GPT-3 family decoder-only Transformers fine-tuned from 1.3B to 175B parameters.
8. Experimental setup
Human evaluations of helpfulness, honesty, harmlessness; truthfulness and toxicity benchmarks; ablation of each training stage.
9. Datasets
Human-written prompts and demonstrations, a comparison dataset of model outputs, and public evaluation benchmarks.
10. Results
Human raters preferred 1.3B InstructGPT outputs to 175B GPT-3 outputs despite the size gap, with improvements in truthfulness and reductions in toxicity.
11. Limitations
Depends heavily on the preferences and instructions of a limited annotator pool; can reduce capability on some tasks ('alignment tax'); reward model remains exploitable.
12. Critical analysis
The paper that standardized RLHF for LLMs, but it also made clear that alignment is constrained by who provides feedback and how disagreements are resolved.
13. Implementation tasks
- 1.Implement a small SFT then reward-model training loop on a synthetic preference dataset.
- 2.Run PPO with a KL penalty against the SFT policy and track reward versus KL.
- 3.Ablate the KL coefficient and measure output quality and divergence.
14. Follow-up work
- 1.Direct Preference Optimization: Your Language Model is Secretly a Reward Model (Rafailov et al., 2023)
- 2.Constitutional AI: Harmlessness from AI Feedback (Bai et al., 2022)
15. Open research questions
- 1.Whose preferences should a reward model represent?
- 2.How can alignment preserve capabilities on tasks raters do not value?