Post-training 101, lesson 6
Reward models: teaching a scorer
A reward model is a second model that learns to score answers the way people would. This lesson shows how it is trained from pairs of answers, and the habits it picks up along the way.
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.
How a scorer is trained, from two answers to the reward loop
1Two answers to one question
The model answers the same question twice, or more, in different ways.
2A person picks the better one
That gives a preference pair: the answer that won, and the answer that lost.
3The scorer learns from the pairs
A second model is trained to give the winner a higher number than the loser, pair after pair.
4Test it on pairs it has not seen
How often does it agree with people on pairs held back from training?
5It marks the practice
The scorer stands in for people, marking millions of answers in the reward loop.
The scorer stands in for people who cannot read a million answers.
Step 1 of 7
Why the reward loop needs a stand-in
In lesson 3 people picked the better of two answers, and a scorer learned their taste. This lesson opens that scorer up. The reason it exists is simple: the reward loop marks millions of answers, and no team of people can read that many. So you train a model to stand in for them. That model is called a reward model, or a scorer.
Step 2 of 7
Start with pairs, not marks out of ten
People are not asked to give an answer a mark. They are shown two answers to the same question and asked which is better. That is a preference pair: a winner and a loser. It is much easier to say which of two is better than to decide if one is a 7 or an 8, and easier to keep steady across a team.
In OpenAI's 2022 InstructGPT work, about 40 hired contractors ranked between 4 and 9 answers at a time. Each ranking was split into every possible pair, and the scorer's training set covered about 33,000 questions.
Step 3 of 7
How the scorer learns
The scorer is usually a copy of the model itself, changed so that it gives back one number instead of words. Think of a trainee judge at a baking contest who watches the head judge pick between cakes, two at a time, until the trainee can score a cake alone. The scorer never sees a "right" score. It only learns that the winner should get a higher number than the loser. Where the picture breaks: the trainee has tasted every cake. The scorer has only the pairs it was shown, and a cake unlike any of them gets a guess.
The InstructGPT scorer (2022) was a 6-billion-parameter model, much smaller than the 175-billion one it marked. The paper says the biggest size was less stable to train as a scorer.
Step 4 of 7
It copies its pickers, habits and all
A scorer learns whatever the winners had in common. If good answers were often longer, it may simply learn to like length. If people favoured confident or flattering answers, it learns that too. And if the pickers disagree with each other, the scorer can be no steadier than they were.
In the InstructGPT work (2022), trained pickers agreed with each other about 73% of the time. A 2023 study found that scorers leaned heavily on answer length, and that rewarding length alone reproduced most of the gains of the full method (Singhal et al.).
Your pickers agree with each other 7 times in 10. What can you expect from the scorer?
Step 5 of 7
Test it before you trust it
Before the scorer marks anything, give it pairs it has never seen and count how often it picks the same winner as people did. Then look at what it scores highest. If the top of its list is all long answers, or all polite ones that say nothing, it has learned a shortcut.
Step 6 of 7
Push too hard and the score lies
Once the scorer marks the reward loop, the model learns to win its approval. A little of that makes answers better. Too much, and the model finds the scorer's blind spots: the score keeps rising while the real answers get worse. So training adds a pull back towards the starting model, a leash that stops it drifting too far just to please the scorer.
OpenAI researchers measured this in 2022: optimising too hard against a scorer lowered the true quality it stood for (Gao, Schulman and Hilton). InstructGPT added its leash for the same reason.
The scorer's marks keep climbing, but your team says the answers feel worse. What is likely happening?
Step 7 of 7
Your own pairs are the raw material
You may never train a scorer for your shop's support assistant. But every time someone on your team picks one draft over another, they make a preference pair. Start keeping them: the question, both answers, which won, and one line on why. Write down what "better" means first, so the picks agree. Those pairs feed a scorer, or the shorter method in the next lesson.
Would this teach the scorer well?
Here are four things you might feed a scorer in your business. Sort each one: is it a useful pair, would it teach the wrong lesson, or could a simple checker mark it instead?
1Two replies to "my parcel is late". Both are accurate. Your support lead picks the one that apologises once and gives a delivery date.
2Looking back over 500 picks, the longer reply won almost every time, whether or not it was better.
3Whether the refund amount in a reply matches the order total.
4Two replies to a complaint. One offers a discount code your shop does not have, so the lead picks the other.
0 of 4 right so far, 4 to go.
How a scorer is trained, on one page
This is what you keep: the scorer from pairs to practice, and the places it goes wrong.
How a scorer is trained, on one page
- A scorer is a second model that gives an answer a number. It is trained to agree with people's picks.
- It learns from pairs: one question, two answers, the better one marked.
- Picking the better of two is easier, and steadier across a team, than giving marks out of ten.
- It copies its pickers. If they disagree, so does it. If longer answers always won, it learns to love length.
- Test it on pairs it has never seen, and look at what it scores highest.
- Push a model too hard against a scorer and the score rises while the answers get worse. Keep a pull back to the start.
A scorer learns its pickers' habits, good and bad. Write down what "better" means before anyone picks.
Next: Lesson 7: Preference tuning without the scorer. How the same pairs can tune a model directly, and when the shorter road is enough.