Skip to content

Reward modeling: Bradley–Terry, label disagreement and a worked example

TL;DR. A reward model (RM) is a learned scorer rϕ(x,y)r_\phi(x,y): 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, P(yA≻yB∣x)=σ(rϕ(x,yA)−rϕ(x,yB))P(y_A\succ y_B\mid x)=\sigma(r_\phi(x,y_A)-r_\phi(x,y_B)), 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.

Each response has a latent “strength” r(x,y)r(x,y). The chance a labeller prefers yAy_A over yBy_B is logistic in the gap:

P(yA≻yB∣x)=er(x,yA)er(x,yA)+er(x,yB)=σ(r(x,yA)−r(x,yB)).P(y_A\succ y_B\mid x)=\frac{e^{r(x,y_A)}}{e^{r(x,y_A)}+e^{r(x,y_B)}}=\sigma\big(r(x,y_A)-r(x,y_B)\big).

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 rϕr_\phi by maximum likelihood gives the loss used by Stiennon et al. and InstructGPT:

L(ϕ)=−E(x,yw,yl)[log⁡σ(rϕ(x,yw)−rϕ(x,yl))].\mathcal{L}(\phi)=-\mathbb{E}_{(x,y_w,y_l)}\big[\log\sigma\big(r_\phi(x,y_w)-r_\phi(x,y_l)\big)\big].

With a soft label μ∈[0,1]\mu\in[0,1] (the fraction of times A was preferred; μ=0.5\mu=0.5 for a tie) the loss is the cross-entropy −μlog⁡p−(1−μ)log⁡(1−p)-\mu\log p-(1-\mu)\log(1-p), and its gradient with respect to rAr_A is simply p−μp-\mu.

These are my own illustrative numbers.

One pair. The RM gives rA=1.2r_A=1.2 and rB=0.4r_B=0.4.

quantityvalue
gap Δ=rA−rB\Delta=r_A-r_B0.8
P(A≻B)=σ(0.8)P(A\succ B)=\sigma(0.8)0.690
loss if the label is “A wins” (−log⁡0.690-\log 0.690)0.371
loss if the label is “B wins” (−log⁡0.310-\log 0.310)1.171
gradient w.r.t. rAr_A if A wins (p−1p-1)−0.310
gradient w.r.t. rBr_B if A wins+0.310
loss for a tie, μ=0.5\mu=0.50.771 (gradient on rAr_A: +0.190, pulling the gap back to 0)

Gradient descent raises rAr_A and lowers rBr_B 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: rA=6.2r_A=6.2, rB=5.4r_B=5.4. 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 KK = 4–9 responses at once, which yields (K2)\binom{K}{2} pairs. With rA=1.2>rB=0.4>rC=−0.5r_A=1.2 > r_B=0.4 > r_C=-0.5 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 (K2)\binom{K}{2} 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 K−1K-1 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 0.9 σ(Δ)+0.050.9\,\sigma(\Delta)+0.05, bounded in [0.05,0.95][0.05, 0.95]. 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 −log⁡0.05≈3.0-\log 0.05\approx 3.0.

Bradley–Terry: from reward gap to preference probability, with the worked example Left: a plot of preference probability against the reward gap r_A minus r_B from minus 5 to 5. The solid sigmoid curve passes through 0.5 at a gap of 0; a marked point at gap 0.8 has probability 0.69. A dashed curve, the 10 percent random-answer noise model, is flattened and stays between 0.05 and 0.95. Right: the worked example, with rewards 1.2 and 0.4, the losses for each label, the gradient, and the note that shifting both rewards leaves the probability unchanged. P(A ≻ B) = σ(r_A − r_B) 0.95 0.5 0.05 0 −5 0 5 reward gap Δ = r_A − r_B Δ = 0.8 → P = 0.69 dashed: 0.9·σ(Δ) + 0.05 (10% random answers) Worked example r_A = 1.2, r_B = 0.4, Δ = 0.8 P(A ≻ B) = σ(0.8) = 0.690 label A wins: loss 0.371 label B wins: loss 1.171 ∂loss/∂r_A = p − 1 = −0.31 tie (μ = 0.5): loss 0.771 add +5 to both rewards: gap, P and loss unchanged
Original sketch. The Bradley–Terry curve maps a reward gap to a preference probability. The dot marks the worked example (gap 0.8, probability 0.69). The dashed curve is the noise model that mixes in 10% random answers, which caps probabilities at 0.05 and 0.95.

Label disagreement: the data are noisy before the model is

Section titled “Label disagreement: the data are noisy before the model is”
sourcewho agrees with whomagreement
Stiennon et al. 2020 (TL;DR)labellers vs researchers / researchers vs researchers / labellers vs each other77 ± 2% / 73 ± 4% / 72%
Stiennon et al. 2020modal label of 3 labellers vs researchers77% (up from 72% for a single label)
InstructGPT 2022training labellers / held-out labellers, with each other72.6 ± 1.5% / 77.3 ± 1.3%
InstructGPT 2022RM accuracy: same labeller group / held-out labeller group72.4 ± 0.4% / 69.6 ± 0.9%
Stiennon et al. 2020 (CNN/DM transfer)RM (6.7B) vs labellers / labellers vs each other66.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”
  1. Pairwise accuracy on held-out prompts and held-out labellers, compared with the agreement between humans on the same data.
  2. 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.
  3. Calibration: do pairs predicted at 0.7 win about 70% of the time?
  4. 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.
  5. 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”
signalexamplewhen to prefer it
scalar BT RMInstructGPT 6B RMcheap to query for RL, fuzzy goals like helpfulness
implicit RM in the policyDPOno separate RM wanted; offline pairs
generative judge or rubricgenerative RMs, rubrics as rewardsneed explanations, criteria that change per task
rule-based verifiermath answer checks, unit testscheckable outcomes (verifier robustness)
AI-labelled preferencesConstitutional AIscaling labels for principles that are easy to state

The map of all of these is on rewards map.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.