InstructGPT: Aligning Language Models With Human Feedback (RLHF)
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C. L., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., Schulman, J., Hilton, J., Kelton, F., Miller, L., Simens, M., Askell, A., Welinder, P., Christiano, P., Leike, J., Lowe, R.
NeurIPS 2022 · arXiv 2203.02155
An engineering dissection of InstructGPT — OpenAI's three-stage reinforcement learning from human feedback (RLHF) pipeline. Covers why the language-modeling objective is misaligned with following instructions, the SFT → reward-model → PPO pipeline, the data-collection pipeline, the reward-model training objective and the batching trick that makes it efficient, the PPO objective with its KL penalty and pretraining mix (PPO-ptx), the alignment tax, and why a 1.3B aligned model beats a 175B unaligned one.
- Three-stage pipeline: supervised fine-tuning on demonstrations, a reward model trained on ranked comparisons, then PPO against that reward model
- A 1.3B InstructGPT model's outputs are preferred to the 175B GPT-3's — alignment buys more than 100× the parameters on this distribution
- The reward model trains all C(K,2) comparisons per prompt as one batch element — one forward pass per completion instead of C(K,2), which both speeds training and stops overfitting
- PPO adds a per-token KL penalty to the SFT model; PPO-ptx mixes pretraining gradients back in to pay down the alignment tax on public NLP benchmarks
InstructGPT
RLHF
Reward Model
PPO
Alignment
SFT
Preference Optimization
GPT-3
Human Feedback