What is reinforcement learning from human feedback?
A definition page for the training method OpenAI described on 27 January 2022 when it introduced InstructGPT. Later labs use the same name in other ways; this page stays with that post and the paper it points to.
Reinforcement learning from human feedback, often shortened to RLHF, is a training method, not a model name and not a legal standard. This page follows OpenAI’s 27 January 2022 post, “Aligning language models to follow instructions.” In that post, OpenAI said it had trained language models that were much better at following user intentions than GPT-3, while also making them more truthful and less toxic, “using techniques developed through our alignment research.” The resulting models were called InstructGPT. OpenAI said they were trained with humans in the loop, and that they were being deployed as the default language models on its API. The research paper the post points to is “Training language models to follow instructions with human feedback,”, posted on arXiv as 2203.02155.

The problem OpenAI said it was solving
OpenAI wrote that its API was powered by GPT-3 language models, which could be coaxed to perform natural language tasks with carefully engineered text prompts. Those models, the post said, could also generate outputs that were untruthful, toxic, or that reflected harmful sentiments. OpenAI’s stated reason was that GPT-3 was trained to predict the next word on a large dataset of Internet text, “rather than to safely perform the language task that the user wants.” In the post’s wording, the models were not aligned with their users.
That is a company’s description of its own earlier model, published in 2022. This page does not treat it as a finding about every later system.
What the post says RLHF is
To make the models safer, more helpful, and more aligned, OpenAI said it used “an existing technique called reinforcement learning from human feedback (RLHF).” The method, as the post describes it, starts from prompts submitted by API customers. Labelers provide demonstrations of the desired model behavior, and they rank several outputs from the models. OpenAI then uses that data to fine-tune GPT-3.
Those are the steps the 2022 post itself gives: human demonstrations, human rankings of model outputs, and a fine-tune of the base model. The post does not, in the paragraphs above, turn those steps into a full algorithm listing. The companion paper is the place to read the training procedure as the authors wrote it up for a research audience. The post is the product-facing account, and it is the document this page uses for the claims about InstructGPT as a deployed model.
OpenAI presented this as the first time its alignment research, which it said it had been pursuing for several years, had been applied to its product. The post also places the work next to other research that fine-tunes language models to follow instructions using academic NLP datasets, and it names FLAN and T0 as notable examples. A stated motivation, in OpenAI’s words, was to increase helpfulness and truthfulness while mitigating the harms and biases of language models. The post also points to earlier OpenAI research that, it said, reduced harmful outputs by fine-tuning on a small curated dataset of human demonstrations, and to other lines of work on filtering pre-training data, safety-specific control tokens, and steering generations.
What OpenAI reported about InstructGPT
The evaluation section of the post is comparative. OpenAI said it first evaluated how well InstructGPT outputs followed user instructions by having labelers compare those outputs with outputs from GPT-3. InstructGPT models, it wrote, were significantly preferred on prompts submitted to both the InstructGPT and GPT-3 models on the API. The post says that preference still held when a prefix was added to the GPT-3 prompt so that it entered an “instruction-following mode.”
One comparison is stated with model sizes attached. OpenAI wrote that its labelers preferred outputs from the 1.3 billion parameter InstructGPT model over outputs from a 175 billion parameter GPT-3 model, “despite having more than 100x fewer parameters.” That is a preference result from the labelers OpenAI used, on the prompt distribution it described, not a general proof that a smaller model is always better.
On safety metrics, the post says OpenAI primarily used a suite of existing metrics on publicly available datasets. Compared with GPT-3, InstructGPT produced fewer imitative falsehoods, according to TruthfulQA, and was less toxic, according to RealToxicityPrompts. The post also cites human evaluations on OpenAI’s API prompt distribution, and says InstructGPT “makes up facts (‘hallucinates’) less often, and generates more appropriate outputs.”
OpenAI added that it did not have to compromise on GPT-3’s capabilities as measured by performance on academic NLP evaluations. The post does not, in that sentence, list those evaluations. It presents the claim as a check that instruction-following came without a collapse on those academic tests, as the authors measured them.
What the 2022 post said about deployment
InstructGPT models, OpenAI wrote, had been in beta on the API for more than a year and were, as of that post, the default language models accessible on the API. The authors named on the post are Ryan Lowe and Jan Leike. The acknowledgments list paper co-authors including Long Ouyang, Jeff Wu, Roger Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, and Paul Christiano, along with the labelers the post thanks.
Those deployment sentences are dated 27 January 2022. They describe OpenAI’s API at that time. This page does not update them against later model names or later default settings.
How to read the method, and what this page does not claim
RLHF, as this post uses the term, is a way of changing a pretrained language model with human demonstrations and human rankings so that the model more closely follows instructions and, on the tests the authors ran, produces fewer of the failure modes they measured. It is not a guarantee that a model is truthful, safe, or free of bias. OpenAI’s own wording is comparative — “much better,” “less often,” “small decreases” — and it is tied to the datasets and labelers named in the post.
The method is also not the same thing as the architecture described in How transformer attention works. Attention is a computation inside a network. RLHF is a training procedure applied after a model already exists. They can be used together, and in this 2022 account they were, but one is not a definition of the other.
This page does not describe later variants under other names, and it does not rank labs. It does not tell a reader how to build a reward model or how to run a training job. For the documents themselves, see OpenAI’s 27 January 2022 post and the paper “Training language models to follow instructions with human feedback”.