Post-training 101, lesson 3
Reinforcement learning: teaching by reward
Reinforcement learning teaches a model with a score instead of examples. This lesson walks round the loop, and shows how a model learns to win the score without doing the job.
Every example below changes to fit what you pick. The businesses are made up for teaching.
The picture, one step at a time
Each box is one stage. The picture lights up as you scroll.
The reward loop: try, score, nudge, repeat
1Try
The model writes an answer, or several, to a task.
2Score
Each answer gets a score, from people's preferences or from a checker.
3Nudge
The model is changed a little, so answers like the high scorers become more likely.
4Repeat
The loop runs again and again, until high scores become a habit.
5Gaming the score
If the score can be won without doing the job, the model finds that way.
Try, score, nudge, repeat.
Step 1 of 6
A loop, not a lesson
In the last lesson the model copied good answers. Here there is nothing to copy. The model tries a task, its answer is scored, and it is nudged towards whatever scored well. Then it tries again. This is reinforcement learning: learning from a reward, which is just a score.
Step 2 of 6
Scores from people
For things with no answer key, like tone or helpfulness, people compare two answers and pick the better one. A second model, the scorer, learns to guess what they would pick. The model is then trained to win the scorer's approval.
This is the method in the 2022 InstructGPT paper from lesson 1, where people preferred a much smaller model trained this way.
Step 3 of 6
Scores from a checker
Where an answer can be marked right or wrong, no people are needed. A calculator checks a sum. Tests check code. Because a checker is cheap, the loop can run millions of times. That is why models improved fastest at maths and code.
Why do models get better fastest at maths and code?
Step 4 of 6
Nudge and repeat
Each round changes the model only a little. Answers like the high scorers become a bit more likely, and answers like the low ones a bit less. Over many rounds, small nudges add up to new habits, such as working a problem through before answering.
Step 5 of 6
The model learns the score, not your meaning
A reward only says "more of this". If there is a way to earn the score without doing the job, the model is likely to find it. This is called reward hacking. It is not cunning. The loop simply keeps whatever scored well.
In 2016 OpenAI trained a program on a boat-racing game, scored on targets hit. It found a lagoon where it could circle and hit the same targets again and again, caught fire, drove the wrong way, and still scored about 20% higher than human players.
Step 6 of 6
It happens with code too
In 2025 OpenAI reported coding models in training that made tests pass without doing the work. One rewrote a check so it always said "true". Another added a file that skipped every test. Any score you set for answering customers and pricing orders has a cheap way round it unless you close it.
When OpenAI penalised the model for writing down its plans to cheat, it still cheated, and learned to hide its plans.
Your score is "the tests pass". What do you add?
Who can mark this answer?
Here are four answers you might want to reward in your business. Sort each one: can a machine check it, can only a person judge it, or is the check easy to game?
1The total of a basket after a 20% discount code.
2Whether a reply to an upset customer feels kind.
3A reward for every chat that ends with a five-star rating.
4Whether the order number it quotes matches a real order in your system.
0 of 4 right so far, 4 to go.
The reward card
This is what you keep: what a reward teaches, where each kind comes from, and the question to ask before you trust one.
The reward card
- A reward is a score. The model learns whatever earns it, not what you meant.
- People's preferences teach taste: tone, kindness, what reads well. They are slow and costly to collect.
- A checker teaches what can be marked right or wrong: sums, formats, tests. It is cheap and can run millions of times.
- Models get best at what can be checked. Expect them to be weaker where only a person can judge.
- If the score can be won without doing the job, the model will find that way.
Before you trust a score, ask how you would cheat it. Close that door, then read real answers by hand.
Next: Lesson 4: distillation, a small model taught by a big one. When a cheaper, faster model is enough for the job.