Reinforcement learning from human feedback (RLHF) is a post-training method in which human raters compare pairs of model outputs, a reward model is trained to predict those preferences, and the language model is then optimized, typically with policy-gradient reinforcement learning, to maximize the learned reward. It is the technique that turned raw large language models into usable assistants.12
How it works
The standard pipeline has three stages. First, supervised fine-tuning on demonstrations gives the pretrained model a workable instruction-following prior. Second, human labelers rank multiple model responses per prompt, and a reward model, usually initialized from the language model itself, is trained on these comparisons. Third, the policy is optimized against the reward model with an RL algorithm, with a penalty term keeping it close to the supervised baseline to limit reward exploitation.2
History
The preference-learning core comes from Christiano et al.'s 2017 work on deep RL from human preferences, developed jointly by researchers at OpenAI and DeepMind (now Google DeepMind).1 Its decisive application came with OpenAI's InstructGPT in early 2022, which showed that a 1.3-billion-parameter RLHF model could be preferred by raters over the 175-billion-parameter GPT-3: alignment beating scale, on the metric that mattered.2 ChatGPT and GPT-4 carried the recipe to production atop the GPT family's Transformer base.3
Limitations and critiques
RLHF optimizes for what raters prefer, not what is true or safe: documented failure modes include sycophancy, reward hacking of the learned reward model, and shallow refusals. These weaknesses motivated successor methods (direct preference optimization, AI-assisted feedback, and verifiable-reward RL) covered elsewhere on this wiki, and they sit at the center of alignment research at every major lab. Benchmark gains from RLHF are also uneven; knowledge-heavy suites such as MMLU largely measure the pretrained base, not the post-training.23
References
-
Christiano, P., Leike, J., Brown, T., Martic, M., Legg, S., Amodei, D., "Deep Reinforcement Learning from Human Preferences," arXiv:1706.03741, June 2017. ↩↩
-
Ouyang, L., et al., "Training language models to follow instructions with human feedback," arXiv:2203.02155, March 2022. ↩↩↩↩
-
OpenAI, "GPT-4 Technical Report," arXiv:2303.08774, March 2023. ↩↩