# What is RLHF (reinforcement learning from human feedback)?

> RLHF trains a language model on human rankings of its answers, through a reward model. OpenAI used it for ChatGPT, and Anthropic for Claude.

Canonical: https://promptlyfound.com/glossary/rlhf
Updated: 2026-12-01

## Short answer

RLHF, or reinforcement learning from human feedback, is **a training method in which people rank a model's answers and the model learns to prefer the higher-ranked ones**. A reward model learns the rankings, and reinforcement learning then moves the language model toward answers that score well. OpenAI trained ChatGPT with RLHF, and Anthropic says Claude was trained with it too.

## Key findings

- The InstructGPT paper fine-tuned GPT-3 on labeler demonstrations and then with human feedback. Raters preferred outputs from the 1.3 billion parameter result, InstructGPT, to those of the 175 billion parameter GPT-3. [1]
- A 2017 paper trained agents from human preferences between pairs of short clips of their behavior. People gave feedback on less than 1% of the agent's interactions with its environment. [2]
- OpenAI trained ChatGPT with RLHF. It said ChatGPT was often too verbose, partly because trainers preferred longer answers that look more comprehensive. [3]
- Anthropic's glossary says Claude has been trained using RLHF to be a more helpful assistant. [4]

RLHF is the training step that turned text predictors into chat assistants such as ChatGPT. It teaches a model what a group of human raters preferred, so it shapes the length, tone and caution of the answers that AI search products write.

## How does RLHF work?

People compare answers, a reward model learns their preferences, and reinforcement learning trains the language model to match them. [Anthropic's glossary](https://platform.claude.com/docs/en/about-claude/glossary) describes the human feedback as rankings of two or more example texts. The reinforcement learning process then encourages the model to prefer outputs that are similar to the higher-ranked ones.[4]

[OpenAI's post introducing ChatGPT](https://openai.com/index/chatgpt/) gives the steps it used. AI trainers wrote example conversations for supervised fine-tuning. They then ranked several model answers to the same message. OpenAI trained reward models on these rankings and fine-tuned the model against them with Proximal Policy Optimization, over several rounds.[3] [How do RLHF and Constitutional AI differ?](https://promptlyfound.com/llms/rlhf-vs-constitutional-ai) explains each stage and compares RLHF with Anthropic's method.

## Where did RLHF come from?

RLHF began in reinforcement learning research outside language. [Deep reinforcement learning from human preferences](https://arxiv.org/abs/1706.03741), a 2017 paper, trained agents to play Atari games and control simulated robots from human choices between pairs of short clips. People gave feedback on less than 1% of the agent's interactions.[2]

[Training language models to follow instructions with human feedback](https://arxiv.org/abs/2203.02155), published in March 2022, applied the method to GPT-3. The result was InstructGPT. In human evaluations, raters preferred the 1.3 billion parameter InstructGPT to the 175 billion parameter GPT-3, a model with 100 times more parameters.[1]

## Which models are trained with RLHF?

The major chat assistants use it. OpenAI trained ChatGPT with RLHF, using the same methods as InstructGPT.[3] Anthropic's glossary says Claude has been trained using RLHF.[4] Anthropic's 2022 paper, [Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback](https://arxiv.org/abs/2204.05862), found that this training improved performance on almost all of the NLP evaluations it ran.[5]

## How does RLHF shape AI answers?

A model trained with RLHF learns the habits of its raters as well as their judgment. OpenAI said ChatGPT was often too verbose and overused certain phrases. It traced this partly to trainers who preferred longer answers that look more comprehensive, and partly to over-optimization against the reward model.[3]

RLHF does not give a model a source of truth. OpenAI said this made ChatGPT's plausible but wrong answers hard to fix.[3] AI search products add retrieved pages to the prompt for current facts, as [What is retrieval-augmented generation (RAG)?](https://promptlyfound.com/ai-search/rag) explains.

## Sources

1. Training language models to follow instructions with human feedback. arXiv, 2022-03-04. https://arxiv.org/abs/2203.02155
2. Deep reinforcement learning from human preferences. arXiv, 2017-06-12. https://arxiv.org/abs/1706.03741
3. Introducing ChatGPT. OpenAI, 2022-11-30. https://openai.com/index/chatgpt/
4. Glossary. Claude API documentation. https://platform.claude.com/docs/en/about-claude/glossary
5. Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback. arXiv, 2022-04-12. https://arxiv.org/abs/2204.05862

---

This is a plain-text copy of https://promptlyfound.com/glossary/rlhf from Promptly Found. The web page is the canonical version and includes the charts.
