Reward modeling: Bradley–Terry, label disagreement and a worked example
TL;DR. A reward model (RM) is a learned scorer : usually a language model with a scalar head, read on the last token. It is trained on pairwise human judgments with the Bradley–Terry model, , and a logistic loss. It is the same pairwise loss IR has used for learning to rank. The RM is then used as the reward for RL (InstructGPT) or for best-of-N reranking.
Read this first: an RM is a proxy, and optimisation finds its holes. The RM is trained on a fixed set of responses, and the policy will drift towards text it was never trained on. Stiennon et al. show that as the policy optimises harder (more KL from the SFT model), the RM’s score keeps rising while real human preference first rises and then falls (Fig. 5). That is Goodhart’s law in one plot. Everything below is about building a better proxy. Nothing makes it safe to optimise without limit. See RM overoptimization scaling.
Why it matters for you. An IR researcher already knows this object. A reward model is a pairwise-trained relevance scorer (RankNet), with graded or pairwise human labels, agreement statistics and leakage pitfalls, just as in TREC assessment. What is new is that something then optimises against the scorer. Every LLM-as-judge, UMBRELA-style relevance labeller or RAG answer judge you build can end up as someone’s reward model.
The Bradley–Terry model
Section titled “The Bradley–Terry model”Each response has a latent “strength” . The chance a labeller prefers over is logistic in the gap:
Christiano et al. use exactly this form, summing predicted per-step rewards over each short clip, and compare it to Elo ratings in chess (Christiano preferences). Fitting by maximum likelihood gives the loss used by Stiennon et al. and InstructGPT:
With a soft label (the fraction of times A was preferred; for a tie) the loss is the cross-entropy , and its gradient with respect to is simply .
Worked example
Section titled “Worked example”These are my own illustrative numbers.
One pair. The RM gives and .
| quantity | value |
|---|---|
| gap | 0.8 |
| 0.690 | |
| loss if the label is “A wins” () | 0.371 |
| loss if the label is “B wins” () | 1.171 |
| gradient w.r.t. if A wins () | −0.310 |
| gradient w.r.t. if A wins | +0.310 |
| loss for a tie, | 0.771 (gradient on : +0.190, pulling the gap back to 0) |
Gradient descent raises and lowers by equal amounts. A correctly ordered pair still gets a push (0.31) until the gap is large, which is why an RM can keep stretching easy pairs.
Shift invariance. Add 5 to both rewards: , . The gap is still 0.8, so the probability and loss are unchanged. The data never pin down an offset per prompt. That is why papers normalise: Christiano to zero mean, Stiennon so that reference summaries average 0, InstructGPT so that demonstrations average 0. It is also why raw RM scores from different prompts should not be compared.
A ranking of three. InstructGPT labellers rank = 4–9 responses at once, which yields pairs. With and the ranking A ≻ B ≻ C, the three pair losses are 0.371 (A,B; gap 0.8), 0.168 (A,C; gap 1.7) and 0.341 (B,C; gap 0.9). Their mean is 0.293. InstructGPT puts all pairs from one prompt in one batch element. Shuffling them as independent examples made the RM overfit within one epoch, because each response would get separate updates.
Labels that are sometimes random. Christiano et al. assume a 10% chance that the human answers uniformly at random, so the model’s probability becomes , bounded in . If the RM is confident with a gap of 5 and the label disagrees, the plain loss is 5.01 but the noisy-model loss is 2.88. A single contradicting label can never cost more than .
Label disagreement: the data are noisy before the model is
Section titled “Label disagreement: the data are noisy before the model is”| source | who agrees with whom | agreement |
|---|---|---|
| Stiennon et al. 2020 (TL;DR) | labellers vs researchers / researchers vs researchers / labellers vs each other | 77 ± 2% / 73 ± 4% / 72% |
| Stiennon et al. 2020 | modal label of 3 labellers vs researchers | 77% (up from 72% for a single label) |
| InstructGPT 2022 | training labellers / held-out labellers, with each other | 72.6 ± 1.5% / 77.3 ± 1.3% |
| InstructGPT 2022 | RM accuracy: same labeller group / held-out labeller group | 72.4 ± 0.4% / 69.6 ± 0.9% |
| Stiennon et al. 2020 (CNN/DM transfer) | RM (6.7B) vs labellers / labellers vs each other | 66.5% / 66.9% |
| Ziegler et al. 2019 (4-way choice) | authors vs each other / authors vs Scale labellers on TL;DR | ~60% / 46% |
Lessons:
- Agreement between humans is a reference point, not a target to beat. When RMs reach roughly the agreement level, extra accuracy on the same noisy labels is suspicious (leakage or shortcuts).
- Hard comparisons are where the labels are noisy. Stiennon et al. report agreement ranging from about 65% on hard comparisons to about 85% on easy ones. Filtering out low-confidence labels hurt their RM, so do not assume that cleaner-looking data is better.
- Who labels is part of the objective. InstructGPT’s RM generalises somewhat less well to a held-out labeller group (69.6% vs 72.4%), and most of its comparisons were labelled by a single person.
How to check an RM before you optimise against it
Section titled “How to check an RM before you optimise against it”- Pairwise accuracy on held-out prompts and held-out labellers, compared with the agreement between humans on the same data.
- Bias probes: correlation of score with length, formatting, number of citations or model identity. Use counterfactual edits (shorten, add fluff) and check that the RM moves the way humans would.
- Calibration: do pairs predicted at 0.7 win about 70% of the time?
- Downstream test: best-of-N or a short RL run, plotting a gold judge or human score against KL from the start policy. If gold falls while RM score rises, you are overoptimising.
- Benchmarks such as RewardBench help, but they do not replace a test on your own distribution.
Alternatives to a scalar Bradley–Terry RM
Section titled “Alternatives to a scalar Bradley–Terry RM”| signal | example | when to prefer it |
|---|---|---|
| scalar BT RM | InstructGPT 6B RM | cheap to query for RL, fuzzy goals like helpfulness |
| implicit RM in the policy | DPO | no separate RM wanted; offline pairs |
| generative judge or rubric | generative RMs, rubrics as rewards | need explanations, criteria that change per task |
| rule-based verifier | math answer checks, unit tests | checkable outcomes (verifier robustness) |
| AI-labelled preferences | Constitutional AI | scaling labels for principles that are easy to state |
The map of all of these is on rewards map.
Connections
Section titled “Connections”- Papers in this section: Christiano 2017 (BT on clip pairs), summarize from feedback (BT RM for text, overoptimisation), InstructGPT (K-way rankings), DPO (the policy is the RM).
- Hacking the RM: RM overoptimization scaling, ODIN (disentangling length), reward misspecification.
- Judges in IR: LLM-as-judge, UMBRELA.
- Learn more: RLHF Book Ch. 5, reward models and Umar Jamil’s DPO video, which covers Bradley–Terry from 13:07.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
A reward model scores r_A = 0.3 and r_B = 1.1, and the human label says A wins. Compute the Bradley–Terry probability of the label, the loss, and the gradient of the loss with respect to r_A and r_B. Then recompute the loss under the 10% random-response noise model, and do the same when the gap is 4 instead of 0.8. What does the noise model change?
What a strong answer covers
- Δ = r_A − r_B = −0.8, so P(A ≻ B) = σ(−0.8) ≈ 0.310 and the loss = −log 0.310 ≈ 1.171.
- Gradient with respect to r_A is p − 1 ≈ −0.690 (gradient descent pushes r_A up). With respect to r_B it is +0.690 (pushes r_B down). They are equal and opposite, so only the gap moves.
- Noise model P = 0.9·σ(Δ) + 0.05 gives 0.329 and loss ≈ 1.112. Barely different when the gap is small.
- With a gap of 4 against the label: plain loss ≈ 4.02, noisy-model loss ≈ 2.72. Probabilities are bounded in [0.05, 0.95], so one confidently contradicted label can cost at most −log 0.05 ≈ 3.0.
- The noise model caps how much a single possibly mislabelled pair can pull the RM, which is the point when labellers disagree.
- Mechanism
The Bradley–Terry likelihood depends only on reward differences for the same prompt. Explain what this leaves undetermined in a trained reward model, why Christiano, Stiennon and InstructGPT all normalise their RM, and what goes wrong if you compare raw RM scores across different prompts.
What a strong answer covers
- Adding any constant, or any function of the prompt x, to all rewards leaves every pairwise probability unchanged. The offset per prompt is not identified by the data.
- The papers fix the offset by convention: zero mean (Christiano), reference summaries at mean 0 (Stiennon), or demonstrations at mean 0 (InstructGPT). This keeps the RL reward scale stable and the KL coefficient meaningful.
- Across prompts the offset is arbitrary, so a score of 2.0 on one query and 1.0 on another does not mean the first answer is better. Only within-prompt rankings are supported by the training signal.
- For RL this offset mostly cancels in a baseline or advantage, but filtering or thresholding by raw RM score across prompts is unreliable.
- Critique
InstructGPT reports about 72–73% agreement between training labellers and an RM accuracy of 72.4% on held-out comparisons from the same labeller group, versus 69.6% on a held-out group. A team claims their new RM reaches 80% on the same kind of data. What would you check before believing it means a better RM?
What a strong answer covers
- With noisy single labels, agreement between humans is a rough reference point for how predictable the labels are. A large jump past it suggests the RM is fitting something besides shared preferences.
- Check leakage: duplicate prompts, near-duplicate responses or the same labeller in train and test. Use the paper's split by labeller group.
- Check shortcuts: length, formatting or a model-identity signal that correlates with labels. Stiennon's RM preferred shortening edits much less often than humans did.
- Evaluate on a set with several labels per pair, report accuracy separately on high-agreement and low-agreement pairs, and test downstream with best-of-N or RL against a gold judge.
- Design
You want a reward model for RAG answers, starting from assessor labels that grade each answer 0–3 per query, as in a TREC-style track. Design how you turn those labels into RM training data and batches, how you handle ties, and how you validate the RM before running RL against it.
What a strong answer covers
- Within one query, every pair with different grades becomes a comparison. Never pair answers across queries, because Bradley–Terry only constrains differences for the same prompt.
- Ties: drop them or use a soft label μ = 0.5, as Christiano did. Optionally weight pairs by grade gap.
- Batch all pairs from one query together, as InstructGPT does with its K-way rankings, so a single answer is not over-fitted through many separate updates.
- Validate: held-out pairwise accuracy split by assessor, calibration, length and citation-count correlation, and a small best-of-N or RL run checking gold-judge score against KL for overoptimisation.
- Connect
Show that the Bradley–Terry reward-model loss is the same as RankNet's pairwise logistic loss for learning to rank, and say what InstructGPT's K-way ranking loss corresponds to in IR terms. What is different about how the learned scorer is then used?
What a strong answer covers
- RankNet models P(d_i ranked above d_j) = σ(s_i − s_j) for document scores of one query and minimises cross-entropy. Replace documents with responses and queries with prompts: it is the same loss.
- InstructGPT averages the pairwise loss over all C(K,2) pairs from one ranking of K responses, which is a pairwise decomposition of a listwise label. The Plackett–Luce form used in DPO's appendix is the listwise version.
- In IR the scorer is the product: it ranks a fixed candidate set. In RLHF the scorer is a training signal for a generator that can produce text the RM never saw, so robustness off-distribution matters far more.