Glossary termTraining technique

Reinforcement Learning from Human Feedback

Also known as: RLHF

Training technique that fine-tunes AI models using human judgments of output quality, which are turned into a reward signal for reinforcement learning.

Reinforcement learning from human feedback is a method for steering a model toward human preferences that are hard to specify as explicit rules. In the common recipe for language models, people compare pairs of model responses and indicate which is better. Those comparisons train a separate reward model that predicts human preferences. The original model is then fine-tuned with reinforcement learning, often using an algorithm called proximal policy optimization, to produce outputs the reward model scores highly, while being kept close to its starting behavior.

A 2017 paper by Paul Christiano and colleagues at OpenAI and DeepMind showed that agents could learn complex behaviors from a modest number of human preference comparisons. OpenAI applied the approach to text summarization and then, in its 2022 InstructGPT work, to make GPT-3 follow instructions more helpfully; the same general technique was used for ChatGPT, released in November 2022. RLHF became a standard stage in building chat assistants, typically following supervised fine-tuning on example dialogues.

RLHF has clear limitations. Human raters can be inconsistent or misled by confident but wrong answers. Their preferences may also reward flattery, a tendency often called sycophancy, and reward models can be gamed by the policy being trained. Alternatives and extensions include direct preference optimization, which skips the separate reward model, and reinforcement learning from AI feedback, as used in Constitutional AI. The method remains a central and debated tool in efforts toward AI alignment.

Key points

  • RLHF trains a reward model on human preference comparisons, then optimizes the AI model against it.
  • A 2017 paper by Paul Christiano and colleagues helped establish learning from human preferences.
  • OpenAI's 2022 InstructGPT work and ChatGPT made RLHF a standard step for chat assistants.
  • Reward model gaming and sycophancy are well-known failure modes of the approach.

Related entries

Glossary term

Machine learning approach in which an agent learns to choose actions by trial and error, guided by rewards and penalties from its environment.

Glossary term

Further training of a pretrained model on a smaller, task-specific dataset so that it adapts its behavior to a particular domain, style or task.

Glossary term

Training method developed by Anthropic that guides an AI model's behavior with a written set of principles, using AI feedback in place of much human labeling.

Glossary term

Research field concerned with ensuring that AI systems pursue the goals their designers intend and act in line with human values and interests.

Person

American AI alignment researcher who co-developed reinforcement learning from human feedback and founded the Alignment Research Center.

Technology

Conversational AI assistant from OpenAI, launched in 2022, that answers questions, writes text and code and performs tasks through a chat interface.

Organization

American artificial intelligence company that develops the GPT family of language models and the ChatGPT assistant, founded in 2015 as a nonprofit lab.

Glossary term

Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.

Featured in guides