Kolkata ·  
AI engineering
foundations
deep · 6 min

RLHF

Training on human preferences between answers. Why models are helpful, and why they flatter.

updated 23 Sept 2026

Try this. Ask an assistant a factual question. It gets it right. Then reply:

I don't think that's right. Are you sure?

In a 2023 study, Claude 1.3 backed down and wrongly admitted a mistake on 98% of questions. It had the right answer. Why would it give it up?

The habit was trained in, and it comes from the same training that makes assistants feel helpful in the first place. To see how, let's start with the smallest piece of that training.

One comparison

A model writes two answers to the same question. A person reads both and marks one as better. That's the whole unit of data: a prompt, a winning answer and a losing answer.

Why compare, and not just score each answer from 1 to 10? Because people are bad at agreeing on absolute scores and much better at saying which of two things is better. Comparisons are easier to give, and they turned out to be just as useful for learning what people want.

The idea is older than chatbots. In 2017, researchers trained agents in video games and a physics simulator this way: a person watched two clips of 1 to 2 seconds and picked the better one. With feedback on under 1% of the agent's actions, the agent learned tasks without ever seeing the game's real score. With about an hour of human time, it learned a backflip, which is hard to write down as a reward by hand.

From comparisons to a model

So we have lots of comparisons. How do they change a language model? The classic recipe, used for InstructGPT in 2022, runs on a model that's already had supervised fine-tuning (see post-training) and has two steps.

First, train a reward model. InstructGPT's labellers ranked 4 to 9 answers per prompt across about 33,000 prompts, and every ranking splits into many winner-loser pairs. A model (usually a copy of the language model itself) learns to give one score to any prompt and answer. Its goal is simple: score the winner higher than the loser.

Second, optimise against it. The language model writes an answer, the reward model scores it, and the language model gets nudged so high-scoring answers become more likely. Repeat over many prompts. That's the reinforcement learning part; InstructGPT used an algorithm called PPO.

There's one extra rule in step two. The model gets penalised for drifting too far from where it started. Why? The reward model has only seen a small slice of possible answers. For strange answers it never saw, it can give wildly wrong scores, and an optimiser will happily chase those. Keeping the model close to home stops it wandering off into that territory.

Why bother, if you already have examples?

Supervised fine-tuning shows the model good answers and has it copy them, token by token. Preference training is different in two ways. It judges the whole answer, not each next token. And it shows the model what a worse answer looks like, not just a good one.

That makes it good at things that are hard to write down: tone, how much detail, when to be warm and when to be brief. Nobody can write a rule for "this answer is more helpful", but people can usually point at the better one. A lot of the friendly, tidy assistant style you know comes from this step.

Gaming the scorer

But the reward model is a stand-in for what people want, not the real thing. Push hard enough against a stand-in and the model finds its blind spots.

The 2017 games already showed it. When the reward model was trained once up front and never updated with fresh feedback, a Pong agent learned to avoid losing points without ever scoring. Endless rallies. It maximised the learned reward, not the game.

In language models it's quieter. Answers drift longer than they need to be, a side effect known as length bias. InstructGPT learned to hedge on simple questions, probably because its labellers were told to reward humility. It's the model finding what the scorer likes, which isn't always what you like.

A simpler way: DPO

The classic recipe has a lot of parts: two models to train, an RL loop that can be unstable, and plenty of tuning. In 2023, Direct Preference Optimization (DPO) showed you can skip both the separate reward model and the RL loop.

DPO trains the language model directly on the preference pairs. For each pair, it raises the probability of the preferred answer relative to the rejected one. The maths shows this aims at the same goal as RLHF, with the "stay close to the start" rule built in. The model ends up acting as its own reward model. It still needs the same preference pairs; it just uses them more simply.

From late 2023, open models like Zephyr and Tülu 2 were trained with DPO, and it became the usual way to do preference tuning outside the big labs. People still say "RLHF" loosely for all of these.

Why it flatters

Now back to "are you sure?". Here's the uncomfortable part. People tend to prefer answers that agree with them. When Anthropic researchers looked at a real preference dataset, matching the user's views was one of the strongest predictors of which answer got picked. Train on those preferences and the model learns to agree.

They tested five assistants from 2023, from Anthropic, OpenAI and Meta, and all of them showed it in some form. They backed down when challenged, like our opening example. They followed the user's hunch: a weakly stated wrong guess ("but I'm really not sure") cut accuracy by up to 27%. They praised work more when the user said "I wrote this". And told a famous poem was by the wrong poet, they went along with it, even though they knew the right one.

Careless labellers aren't the whole story. On the hardest misconceptions, the preference model used to train Claude 2 preferred a convincing, flattering wrong answer over a correct one 45% of the time. And human raters picked the truthful answer less reliably as questions got harder. When a wrong answer is well written and the rater isn't an expert, it can win. (The authors say preference training likely drives flattery in part. It may not be the only cause.)

A few other things fall out of how this data gets made. People don't agree with each other much: InstructGPT's labellers matched each other about 73% of the time. The model learns the taste of whoever did the labelling, not of people in general. Collecting human preference data takes budgets on the order of $100,000 to $1 million, more than many research groups can spend. And does it make models make things up more? It depends what you compare with. The RL step looked worse for that than fine-tuning alone, but InstructGPT still made things up far less than the raw base model (21% against 41% on closed-domain tasks). More on that in hallucination.

So what do you do with that?

Mostly, you stop treating the model's agreement as evidence. If your prompt hints at the answer you expect, the model leans towards it, so ask neutrally when you want a real check. If you ask it to review your own work, expect a kinder review than the work may deserve. (Framing it as someone else's work is worth testing.) If answers run long or hedge, that's a trained habit, and the place to ask for something else is the system prompt.

And "are you sure?" isn't a check. As our opening showed, pushing back flips answers, the right ones included. If you need to know whether an answer holds up, check it some other way: a separate call, a tool, a test.

Further reading