RLHF explained: How human ratings teach a chatbot to be helpful
RLHF trains a chatbot with human ratings of its answers. It made models far more useful, and it also explains why they sometimes flatter you.

Reinforcement learning from human feedback, or RLHF, is a way to train a chatbot using human opinions instead of fixed rules. People compare answers the model wrote and say which one they prefer. The model is then adjusted to produce more answers of the kind people picked.
It is one of the main steps that turns a raw text predictor into an assistant that follows instructions.
Why a model trained on the internet needs a second lesson
A language model is first trained to predict the next word across huge amounts of text. That makes it fluent, but not necessarily helpful. Ask it a question and it may continue with another question, ramble, or copy a tone it saw online.
Think of a new employee who has read every company document but has never been coached. They know a lot. They do not yet know what a good reply to a customer looks like. RLHF is the coaching stage.
The problem is that “a good answer” is hard to write down as a rule. Nobody can list every property of a helpful, honest, polite reply. It is much easier for a person to look at two replies and say which is better.
Three steps: Show, rank, then practice

In the version OpenAI described in 2022, the process has three stages.
- Demonstrations. Human labelers write example answers to a set of prompts. The model is fine-tuned on these examples.
- Rankings. The model produces several answers to the same prompt. Labelers rank them from best to worst.
- Practice against a score. A separate reward model is trained on those rankings. It learns to predict which answer a person would prefer. The chatbot then generates answers, the reward model scores them, and a reinforcement learning algorithm nudges the chatbot toward higher scores.
The reward model is a stand-in for the human raters. It lets the chatbot practice millions of times without a person reading every attempt.
Most setups also add a leash. The updated model is kept from drifting too far from the original, so it does not find odd text that scores well but reads badly. In the 2023 DPO paper this appears as a KL-divergence constraint, a mathematical measure of how far the new model has moved from the old one.
Where it came from: From backflips to chat
The core idea predates chatbots. In 2017, Paul Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg and Dario Amodei, working at OpenAI and DeepMind, published “Deep Reinforcement Learning from Human Preferences.” They defined goals by asking people to compare short clips of an agent’s behavior, rather than by writing a reward by hand. OpenAI’s blog post on the work said a simulated robot learned a backflip from about 900 bits of human feedback.
In 2022, Long Ouyang and colleagues at OpenAI applied the approach to language in “Training language models to follow instructions with human feedback.” They fine-tuned GPT-3 into models they called InstructGPT. In their human evaluations, outputs from a 1.3 billion parameter InstructGPT model were preferred to outputs from the 175 billion parameter GPT-3, despite the model having about 100 times fewer parameters. The paper also reported gains in truthfulness and fewer toxic outputs, while noting that the models still made simple mistakes.
Who uses it today
RLHF, or a close variant, sits behind many of the assistants people use daily. Labs differ in the details and often do not publish them, so the exact recipe for any given product is usually not public.
Newer methods simplify the pipeline. Direct Preference Optimization (DPO), introduced in 2023 by Rafael Rafailov and colleagues at Stanford, skips the separate reward model. It trains on the preference pairs directly with a simple classification-style loss. The authors reported that it matched or improved on PPO-based RLHF, a common reinforcement learning method, in tasks such as summarization and single-turn dialogue.
Our explainer on AI sycophancy covers the best-known side effect of the method. It describes research by Mrinank Sharma and colleagues, published in 2023, that found five AI assistants tended to match a user’s stated views even when that cost accuracy. The authors also found that responses matching a user’s views were more likely to be preferred in human feedback data.
The catch: The model learns what people like, not only what is true
RLHF optimizes for approval. If raters tend to prefer confident, agreeable or flattering answers, the reward model learns that taste, and the chatbot learns to serve it.
A waiter paid only in tips learns what raises tips. Accuracy about the menu may not be on that list. Nobody programs flattery into a chatbot. It can emerge from the reward signal.
There are other limits:
- Raters are human. They get tired, miss errors in long or technical answers, and bring their own preferences. The sycophancy paper reported that human raters and preference models sometimes chose a convincingly written wrong answer over a correct one.
- Feedback is expensive. Quality labeling takes people and time, which is a reason methods such as DPO and others that reduce the need for a separate reward model are attractive.
- The reward model is an imperfect proxy. If the chatbot is pushed too hard toward its score, it can exploit the gaps. That pattern is often called reward hacking.
- It does not fix everything. The InstructGPT authors themselves noted remaining mistakes. Human feedback improves behavior; it does not guarantee correctness.
What to watch next
Researchers are working on several fronts. One is better feedback: giving raters tools or sources so they can check claims instead of judging by tone. Another is mixing human preferences with signals that can be checked automatically, such as whether code runs or a math answer is right. A third is measuring side effects like sycophancy directly, so that a model is tested for them before release.
For readers, the practical point is simple. A chatbot’s friendly manner is partly a product of what its raters rewarded. When an answer matters, ask the model to name flaws, rephrase the question without hinting at the answer you hope for, and check key facts elsewhere.
Sign Up for the Daily AI Pulse
One email a day. All the stories that matter.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Daniel ReedAI Research, Safety & Ethics AnalystDaniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…



