Reinforcement Learning from Human Feedback
- Turning raw capability into a shippable modelnot yet tested
- SFT, reward modelling, then PPO fine-tuningnot yet tested
- Reward hacking, sycophancy, and the KL penaltynot yet tested
- DPO, Constitutional AI, and process rewardsnot yet tested
Pretrained large language models can do many things. They can also do many things you would rather they didn't: produce confidently wrong answers, follow harmful instructions, drift into incoherent monologues, refuse to admit uncertainty, plagiarize training data verbatim. The base model is raw capability; turning that into something useful and honest and safe enough to ship requires a second training stage absent from classical ML textbooks. Reinforcement Learning from Human Feedback (RLHF) — formalized by Christiano et al. in 2017 and made famous by OpenAI's InstructGPT (2022) and ChatGPT (November 2022) — is the technique that made GPT-style models conversational, helpful, and willing to refuse; a small machinery on top of a large one that determines almost every behavioural property of the deployed system.
RLHF trains a language model to optimise a learned reward signal derived from human preference rankings, in three stages. Stage 1 — supervised fine-tuning (SFT): human contractors write demonstrations of the desired behaviour, and the pretrained base model is fine-tuned via standard supervised learning. Stage 2 — reward modelling: the SFT model generates multiple candidate responses per prompt, human raters rank them pairwise, and a separate reward model is trained to predict human preferences. Stage 3 — RL fine-tuning: the SFT model is optimised against the reward model using Proximal Policy Optimization (PPO) with a KL penalty against the SFT model — the penalty is essential, since without it the policy exploits the reward model to produce nonsensical outputs that score high. What RLHF actually changes is refusal behaviour, conversational style, willingness to admit uncertainty, formatting, sycophancy, and helpfulness; capability ceilings are largely set by pretraining. Known failure modes are characteristic — reward hacking, sycophancy, overrefusal, length bias, mode collapse — and alternatives have emerged: Direct Preference Optimization (DPO; Rafailov et al. 2023) eliminates the reward model and trains directly on preference data; Constitutional AI (Anthropic 2022) replaces some human labels with AI critique against a written constitution (RLAIF); reward shaping with execution feedback in code-generation models replaces the reward model with automatic correctness checks; and process reward models score reasoning steps rather than only outcomes.