Book a demo →

RLHF (Reinforcement Learning from Human Feedback)

Definition

Reinforcement learning from human feedback (RLHF): people rank a model's answers, a reward model learns the ranking, and the model is tuned toward it.

In short

Reinforcement learning from human feedback (RLHF) is a way to train a language model on human rankings of its answers. Raters rank several answers to the same prompt, a reward model learns to predict those rankings, and the language model is then adjusted to produce answers the reward model scores higher. OpenAI described the method for InstructGPT in 2022 and for ChatGPT in a post of 30 November 2022.

What RLHF is

RLHF uses people's judgements as the training signal for a model. IBM notes that the method is “also called reinforcement learning from human preferences” and that it suits tasks “with goals that are complex, ill-defined or difficult to specify”. IBM's example is humour: defining “funny” in mathematical terms is impractical for an algorithm, while people can rate jokes.

RLHF is a form of reinforcement learning, in which a system learns from a reward. What sets it apart is where the reward comes from: human judgements take the place of a hand-written rule. OpenAI's post of 13 June 2017 gave the motivation: “One step towards building safe AI systems is to remove the need for humans to write goal functions”. The paper behind that post showed that complex tasks can be solved “without access to the reward function”.

For a large language model, RLHF comes after pretraining. It is one form of preference tuning, which the entry on fine-tuning places among the other types of further training.

How RLHF works

Sources count the stages differently. Hugging Face's explainer of 9 December 2022 names three core steps: “Pretraining a language model (LM), gathering data and training a reward model, and fine-tuning the LM with reinforcement learning”. A Google Cloud blog post of 25 January 2024 counts two: “RLHF tuning consists of two phases: reward modeling and reinforcement learning.” OpenAI's post introducing ChatGPT (30 November 2022) puts a supervised step before the reward model. The table follows OpenAI's order.

StepWhat happens
1. Supervised fine-tuningPeople write example answers, and the model is trained on them
2. Reward modelPeople rank several answers to the same prompt, and a second model learns to predict the ranking
3. Reinforcement learningThe language model is adjusted toward answers the reward model scores higher, with a penalty for drifting too far from its starting point

Sources: OpenAI, “Introducing ChatGPT” (30 November 2022); Hugging Face, “Illustrating Reinforcement Learning from Human Feedback (RLHF)” (9 December 2022); both retrieved 4 December 2026.

Supervised fine-tuning. For ChatGPT, OpenAI wrote: “We trained an initial model using supervised fine-tuning: human AI trainers provided conversations in which they played both sides—the user and an AI assistant.”

Reward model. To collect comparison data, OpenAI “randomly selected a model-written message, sampled several alternative completions, and had AI trainers rank them.” Hugging Face explains why rankings are used instead of scores: “The differing values of humans cause these scores to be uncalibrated and noisy.” Rankings instead “create a much better regularized dataset”. The same explainer calls the result a reward model, “also referred to as a preference model”.

Reinforcement learning. With the reward model in place, OpenAI wrote, “we can fine-tune the model using Proximal Policy Optimization”, an algorithm John Schulman and co-authors published in July 2017. A penalty keeps the model close to where it started. Hugging Face: “The KL divergence term penalizes the RL policy from moving substantially away from the initial pretrained model with each training batch”. In a paper of 12 April 2022, Yuntao Bai and co-authors reported “a roughly linear relation between the RL reward and the square root of the KL divergence between the policy and its initialization.” The steps can repeat. OpenAI: “We performed several iterations of this process.”

People's judgement enters twice, as written answers and as rankings; in the last step the reward model stands in for them.

Where it came from

The papers below appeared between 2017 and 2022, listed by submission date.

YearWorkReported
2017Christiano et al.Human feedback on “less than one percent of our agent's interactions with the environment”
2019Ziegler et al.Language models: 5,000 human comparisons for stylistic continuation, 60,000 for summarization
2020Stiennon et al.Better summaries from optimizing for human preferences
2022Ouyang et al. (InstructGPT)A 1.3B-parameter model preferred to the 175B GPT-3 in human evaluations
2022OpenAI, ChatGPTTrained “using the same methods as InstructGPT”

Dates from the arXiv submissions and the OpenAI posts, retrieved 4 December 2026.

Paul Christiano and five co-authors submitted their paper on 12 June 2017. They trained agents on Atari games and simulated robot locomotion from people's comparisons between pairs of their behaviours. OpenAI's post on the work, published the next day, describes it as done “In collaboration with DeepMind’s safety team”.

Daniel Ziegler and co-authors applied the approach to language models in September 2019: “For stylistic continuation we achieve good results with only 5,000 comparisons evaluated by humans.” For summarization they used 60,000 comparisons, and the resulting models copied whole sentences from the input. The authors added that this “may be exploiting the fact that labelers rely on simple heuristics”. A year later Nisan Stiennon and co-authors trained “a model to predict the human-preferred summary, and use that model as a reward function to fine-tune a summarization policy using reinforcement learning.”

The InstructGPT paper by Long Ouyang and co-authors (4 March 2022) starts from a problem: “Making language models bigger does not inherently make them better at following a user's intent.” Its main comparison comes with a frame: “In human evaluations on our prompt distribution, outputs from the 1.3B parameter InstructGPT model are preferred to outputs from the 175B GPT-3, despite having 100x fewer parameters.” On 30 November 2022, OpenAI wrote about ChatGPT: “We trained this model using Reinforcement Learning from Human Feedback (RLHF), using the same methods as InstructGPT”, with “slight differences in the data collection setup.” The page now carries a note: “This post introduced ChatGPT in 2022. ChatGPT has evolved substantially since then.”

Limits and failure modes

Stephen Casper and 31 co-authors wrote in July 2023 that “RLHF has emerged as the central method used to finetune state-of-the-art large language models (LLMs)”, and that “there has been relatively little public work systematizing its flaws.” Their survey covers open problems and fundamental limitations of RLHF. Four limits are documented in papers of their own:

The reward model is a stand-in. Leo Gao and co-authors (19 October 2022): “Because the reward model is an imperfect proxy, optimizing its value too much can hinder ground truth performance, in accordance with Goodhart's law.”

People reward agreement. Mrinank Sharma and co-authors (20 October 2023) write that “human feedback may also encourage model responses that match user beliefs over truthful ones, a behaviour known as sycophancy.”

Rankings do not check facts. OpenAI listed this limit for ChatGPT in 2022: “ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers.” One reason it gave: “during RL training, there’s currently no source of truth”.

Human labels are costly. The RLAIF paper by Harrison Lee and co-authors starts from the observation that “gathering high-quality preference labels is expensive”. The Ziegler result above points to a second problem: a model may exploit the shortcuts raters take.

Alternatives and variants

Some methods replace parts of RLHF, and others change only the algorithm in the third step.

MethodWhat changesSource
DPONo separate reward model and no reinforcement learning stepRafailov et al., 29 May 2023
RLAIFThe preference labels come from a language model instead of peopleLee et al., 1 Sep 2023
Constitutional AIA list of principles replaces human labels for harmful outputsBai et al., 15 Dec 2022
GRPOThe reinforcement learning algorithm in step 3Shao et al., 5 Feb 2024

Dates of the first arXiv versions, retrieved 4 December 2026.

Direct preference optimization (DPO). Rafailov et al. write that “RLHF is a complex and often unstable procedure” and show how to “solve the standard RLHF problem with only a simple classification loss”. DPO trains directly on pairs of better and worse answers.

RLAIF. In reinforcement learning from AI feedback, a language model produces the preference labels. Lee et al. report: “Across the tasks of summarization, helpful dialogue generation, and harmless dialogue generation, we show that RLAIF achieves comparable performance to RLHF.” The result applies to those three tasks.

Constitutional AI. Yuntao Bai and co-authors described the method in December 2022: “The only human oversight is provided through a list of rules or principles”, and for the reinforcement learning phase “we use 'RL from AI Feedback' (RLAIF)”. In a post of 9 May 2023, Anthropic described the aim as giving language models “explicit values determined by a constitution, rather than values determined implicitly via large-scale human feedback”.

GRPO. The DeepSeekMath paper (5 February 2024) introduces “Group Relative Policy Optimization (GRPO), a variant of Proximal Policy Optimization (PPO)”. It replaces the algorithm in the third step and keeps the rest of the method.

Source

  • IBM Think, “What Is Reinforcement Learning From Human Feedback (RLHF)?” (10 November 2023). Source for the alternative name and suitable tasks (retrieved 2026-12-04): https://www.ibm.com/think/topics/rlhf
  • OpenAI, “Learning from human preferences” (13 June 2017). Source for goal functions and the collaboration with DeepMind's safety team (retrieved 2026-12-04): https://openai.com/index/learning-from-human-preferences/
  • Hugging Face, “Illustrating Reinforcement Learning from Human Feedback (RLHF)” (9 December 2022). Source for the three core steps, rankings, the preference model and the KL penalty (retrieved 2026-12-04): https://huggingface.co/blog/rlhf
  • Google Cloud Blog, “RLHF on Google Cloud” (25 January 2024). Source for the two phases (retrieved 2026-12-04): https://cloud.google.com/blog/products/ai-machine-learning/rlhf-on-google-cloud
  • OpenAI, “Introducing ChatGPT” (30 November 2022). Source for the training steps of ChatGPT and its limits (retrieved 2026-12-04): https://openai.com/index/chatgpt/
  • Schulman et al., “Proximal Policy Optimization Algorithms” (arXiv 1707.06347, 20 July 2017). Source for PPO (retrieved 2026-12-04): https://arxiv.org/abs/1707.06347
  • Bai et al., “Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback” (arXiv 2204.05862, 12 April 2022). Source for reward and KL divergence (retrieved 2026-12-04): https://arxiv.org/abs/2204.05862
  • Christiano et al., “Deep reinforcement learning from human preferences” (arXiv 1706.03741, 12 June 2017). Source for the 2017 experiments (retrieved 2026-12-04): https://arxiv.org/abs/1706.03741
  • Ziegler et al., “Fine-Tuning Language Models from Human Preferences” (arXiv 1909.08593, 18 September 2019). Source for the first language model results and the labeler heuristics (retrieved 2026-12-04): https://arxiv.org/abs/1909.08593
  • Stiennon et al., “Learning to summarize from human feedback” (arXiv 2009.01325, 2 September 2020). Source for the summarization work (retrieved 2026-12-04): https://arxiv.org/abs/2009.01325
  • Ouyang et al., “Training language models to follow instructions with human feedback” (arXiv 2203.02155, 4 March 2022). Source for InstructGPT and the 1.3B result (retrieved 2026-12-04): https://arxiv.org/abs/2203.02155
  • Casper et al., “Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedback” (arXiv 2307.15217, 27 July 2023). Source for the survey of open problems (retrieved 2026-12-04): https://arxiv.org/abs/2307.15217
  • Gao et al., “Scaling Laws for Reward Model Overoptimization” (arXiv 2210.10760, 19 October 2022). Source for the reward model as an imperfect proxy (retrieved 2026-12-04): https://arxiv.org/abs/2210.10760
  • Sharma et al., “Towards Understanding Sycophancy in Language Models” (arXiv 2310.13548, 20 October 2023). Source for sycophancy (retrieved 2026-12-04): https://arxiv.org/abs/2310.13548
  • Lee et al., “RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback” (arXiv 2309.00267, 1 September 2023). Source for the cost of labels and RLAIF (retrieved 2026-12-04): https://arxiv.org/abs/2309.00267
  • Rafailov et al., “Direct Preference Optimization: Your Language Model is Secretly a Reward Model” (arXiv 2305.18290, 29 May 2023). Source for DPO (retrieved 2026-12-04): https://arxiv.org/abs/2305.18290
  • Bai et al., “Constitutional AI: Harmlessness from AI Feedback” (arXiv 2212.08073, 15 December 2022). Source for Constitutional AI (retrieved 2026-12-04): https://arxiv.org/abs/2212.08073
  • Anthropic, “Claude's constitution” (9 May 2023). Source for explicit values instead of large-scale human feedback (retrieved 2026-12-04): https://www.anthropic.com/news/claudes-constitution
  • Shao et al., “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models” (arXiv 2402.03300, 5 February 2024). Source for GRPO (retrieved 2026-12-04): https://arxiv.org/abs/2402.03300

Frequently asked questions

What is RLHF?

RLHF stands for reinforcement learning from human feedback. People rank a model's answers, a reward model learns to predict those rankings, and the language model is then trained to produce answers the reward model scores higher. IBM notes that it is also called reinforcement learning from human preferences.

Is ChatGPT trained with RLHF?

In its post introducing ChatGPT on 30 November 2022, OpenAI wrote that it trained the model using RLHF, with the same methods as InstructGPT and slight differences in data collection. The page itself notes that ChatGPT has evolved substantially since then, so the post describes the 2022 model.

How does RLHF training work?

In OpenAI's description from 2022, there are three steps after pretraining: supervised fine-tuning on example answers written by people, a reward model trained on people's rankings of several answers, and reinforcement learning against that reward model. Google Cloud counts two phases, reward modeling and reinforcement learning.

What is a reward model?

A reward model is a second model that learns from human rankings to score answers the way people would. Hugging Face also calls it a preference model. During reinforcement learning, its score is the reward the language model is trained to increase.

What are alternatives to RLHF?

Direct preference optimization (DPO, May 2023) trains on pairs of better and worse answers without a separate reward model or reinforcement learning step. RLAIF (September 2023) takes the preference labels from a language model instead of people. Constitutional AI (December 2022) replaces human labels for harmful outputs with a list of principles.

Does RLHF make a model truthful?

Not on its own, according to the sources. OpenAI wrote in 2022 that during RL training there was no source of truth, and that ChatGPT sometimes gave plausible-sounding but incorrect answers. Sharma et al. (2023) report that human feedback can reward answers that match the user's beliefs over truthful ones.