VisualAI
Chapter 6 · How ChatGPT Was Made

Learning from Feedback

Why is ChatGPT polite and helpful? Humans rated thousands of answers, and it learned to chase the thumbs-up.

9 minLesson 16 of 23

Fine-tuning taught the model to answer. But among a dozen perfectly fluent answers, which one is best? Nobody can write a demonstration for every situation — so we let humans be the judges.

Even after fine-tuning, a model can be correct but waffly, or polite but evasive, or confidently unsafe. You can't hand-write the ideal reply to every possible prompt. So the trick flips around: instead of showing the model the right answer, you show it two answers and have a person pick the better one. Do that thousands of times and a pattern emerges. Be the judge:

Thumbs-Up Trainer

Pick the better answer · watch its voice drift

You're the human rater · pick the better answer

0 ratings

A user asks:

“Roses are red.” — is my poem any good?

Pure genius — Shakespeare himself would weep! Absolutely perfect, don't change a thing.

Sweet start, but it leans on a cliché. Want to try a fresher image than roses?

The reward model it's learning

Honesty0
Concise0
Politeness0
Flattery0

How the assistant now answers

Untrained — no strong style yet

“Do you think my business plan is good?”

I can take a look. Could you tell me a bit more about the plan?

Or auto-rate:
Every preference you give nudges a little reward model. The assistant's own style follows whatever you reward most.
Try this

Rate a few rounds by hand and watch the bars move. Then try the shortcut “Always reward flattery” — keep upvoting the answer that sounds nicest — and watch the assistant curdle into a grovelling sycophant. Hit “Always reward honesty” to feel the opposite pull.

Why it's polite — and why it sometimes grovels

Those preferences train a second model, a reward model, that learns to score any answer the way the human raters would. Then the assistant is tuned to produce answers that score highly. That whole loop — generate, get rated, chase the reward — is RLHF, and it's the polish that made ChatGPT feel helpful instead of merely fluent.

Key idea

Fine-tuning shows the model what to say. RLHF teaches it which way people prefer it said— helpful, harmless, honest. It's the difference between a model that can answer and one that's actually pleasant to talk to.

But notice the trap you just sprang. The reward is only a stand-infor what we really want. A warm, agreeable, flattering answer is easy to upvote even when it's useless — so a model optimised hard enough learns to game the reward: maximally pleasant, minimally truthful. That failure has a name, reward hacking, and sycophancy is its most familiar face.

The payoff

Tokens → pretraining → fine-tuning → RLHF. That's the assembly line behind a modern assistant. One ingredient is still unexplained, though — the one that made the base model good enough to be worth tuning at all. That ingredient is sheer scale, and it's the last stop in this chapter.