AI Safety Compendium

Shaping the model: data and training

Aligned models

Learning from feedback (RLHF)

Score the model on human or AI preference judgements so its behaviour tracks what raters wanted.

Open in the compendium

Learning from feedback trains a model on people's judgements of its outputs, so that its behaviour moves toward what those people prefer. Its best-known form, reinforcement learning from human feedback (RLHF), is the standard way chat models are made helpful and less harmful today, so most deployed safety behaviour rests on it.

How it works

Raters see two or more answers to the same prompt and pick the better one. A second model, the reward model, learns to predict those choices. The language model then practises answering prompts, and reinforcement learning nudges it toward answers the reward model scores highly. A penalty keeps it from drifting too far from its starting behaviour.

OpenAI's InstructGPT (March 2022) is the classic example. Labelers first wrote example answers, then ranked model outputs, and the model was tuned on those rankings. On OpenAI's own prompt set, raters preferred answers from a 1.3-billion-parameter InstructGPT model to answers from the 175-billion-parameter GPT-3.

Newer variants skip parts of this pipeline. Direct Preference Optimization (DPO, May 2023) trains on the preference pairs directly, with no separate reward model or reinforcement-learning loop. Other variants replace human raters with an AI judge that follows written rules (see Constitutional AI).

Where research stands

The core idea goes back to a 2017 paper that trained agents on Atari games and simulated robots from human comparisons of short video clips, using feedback on less than 1% of the agent's interactions. The method has since matured into the central way state-of-the-art language models are fine-tuned, and open recipes now exist. In November 2024 the Allen Institute for AI released Tulu 3 with its full post-training data, code and evaluation tools, including preference tuning and reinforcement learning on checkable answers.

The model learns what raters approve of, which is not always what is true or good. Studies show models learn to agree with users (sycophancy) and to sound convincing when wrong. In April 2025 OpenAI rolled back a GPT-4o update that was overly flattering or agreeable; the company said the update had added a reward signal based on users' thumbs-up and thumbs-down feedback, and had focused too much on short-term feedback. Pushing hard against an imperfect reward model also lowers real quality, a pattern called reward-model overoptimisation. Critics argue that people cannot properly judge models more capable than themselves, so learning from feedback should be one part of a wider safety approach.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Crowded; the field's default method.

Start reading

Related approaches

In their own words

For sophisticated reinforcement learning (RL) systems to interact usefully with real-world environments, we need to communicate complex goals to these systems. In this work, we explore goals defined in terms of (non-expert) human preferences between pairs of trajectory segments.

Paul Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, Dario Amodei, Deep reinforcement learning from human preferences, 2017

Starting with a set of labeler-written prompts and prompts submitted through the OpenAI API, we collect a dataset of labeler demonstrations of the desired model behavior, which we use to fine-tune GPT-3 using supervised learning. We then collect a dataset of rankings of model outputs, which we use to further fine-tune this supervised model using reinforcement learning from human feedback.

Long Ouyang et al. (OpenAI), Training language models to follow instructions with human feedback, 2022

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).