Advanced

Reward models & human preference data

Preference pairs turn comparative human judgments into a learned score, but the score is only a proxy for the rubric and data that produced it.

Updated

1

Concept

Many qualities we want from an assistant are hard to express as a token-level target. Two answers can use different words and both be correct; a fluent answer can be subtly misleading; a refusal can be either necessary or overly cautious. Preference data captures a comparative judgment: for the same prompt, a reviewer sees candidate responses and chooses which better satisfies a rubric.

A typical record contains a prompt xx, a chosen response y+y^+, and a rejected response yy^-. Candidates should be presented without irrelevant clues such as model names, and order should be randomized. The rubric may cover correctness, relevance, clarity, safety, citation fidelity, and instruction following. Reviewers need an option for ties, invalid tasks, or insufficient expertise; forcing a preference can turn uncertainty into false supervision.

A reward model maps a prompt and response to a scalar rϕ(x,y)r_\phi(x,y). It is commonly trained with a pairwise logistic objective:

LRM=logσ(rϕ(x,y+)rϕ(x,y)).\mathcal{L}_{RM}=-\log \sigma\big(r_\phi(x,y^+)-r_\phi(x,y^-)\big).

The loss cares about score differences, not an absolute unit of goodness. Adding the same constant to both scores changes nothing. After training, the model can score newly generated responses, providing a differentiable or efficiently queried proxy that a policy optimizer can maximize.

Data collection determines what this proxy means. Annotators can disagree because a prompt is ambiguous, the rubric is incomplete, or values genuinely differ. Agreement statistics are useful, but majority vote does not make a contested preference objective. Expert domains need qualified reviewers. Multilingual data needs native competence. Safety judgments need clear escalation and psychological protections for annotators exposed to harmful material.

Candidate generation matters too. If every comparison pits an excellent answer against nonsense, the reward model learns easy signals and may not distinguish two plausible responses. On-policy or periodically refreshed data samples candidates from the policy being improved, exposing the boundary it currently finds confusing. Hard negatives, adversarial examples, and balanced lengths can reduce shortcut learning.

Length is a classic confounder. Detailed answers can genuinely be better in one dataset, so a reward model may learn “longer is better” and reward unnecessary verbosity elsewhere. Formatting, disclaimers, citations, or confident tone can become similar shortcuts. Slice evaluations should test whether scores track the intended rubric after controlling for these superficial properties.

When a policy optimizes the reward model, it searches for outputs with high predicted reward. This creates distribution shift: the policy discovers regions the reward model did not see during training. Errors that were rare can become attractive. The phenomenon is often described through Goodhart’s law—once a measure becomes a target, it may stop being a good measure. Regularization, conservative updates, refreshed comparisons, and independent evaluations limit but do not abolish this risk.

Reward models also invite calibration questions. Pairwise accuracy on held-out comparisons is necessary but insufficient. Teams should examine ties, subgroup disagreement, adversarial sensitivity, score distributions, and whether higher scores correlate with task success measured independently. A reward model can rank familiar pairs well and still guide optimization badly.

The durable picture is a learned judge trained from relative examples. Its usefulness comes from scaling a costly human signal to many candidate outputs. Its danger comes from the same compression: a nuanced, conditional judgment becomes one scalar. Every later optimization step must remember what information that scalar omitted.

2

Explain it like I am five

Two apprentices plate the same dish, and a judge must choose the better plate using a written rubric: safe temperature, correct order, clean presentation, and no missing ingredient. A reward model is an assistant judge trained from many such comparisons. It can score new plates quickly, but it may learn shortcuts—such as favoring taller garnishes—if the examples or rubric accidentally correlate height with quality.

3

Teach it back

Explain how a reward model learns from a chosen and rejected response, and why its scalar output should not be treated as ground-truth human value.

Minimum: 80 characters and 15 words. Your text stays only in this browser.

Saved only on this device.

Show a model answer

For one prompt, the reward model scores both responses and is trained to make the chosen response's score exceed the rejected response's score, often with a logistic pairwise loss. The scalar is a learned predictor of judgments collected under a particular rubric, annotator population, sampling policy, and data distribution. It can exploit correlations, inherit disagreement, and fail out of distribution, so optimizing it too aggressively can reward artifacts rather than genuine quality.

4

Check your understanding

1. What information does a preference pair directly provide?
Answer and explanation

A relative judgment between two responses for a prompt — Pairwise data says which candidate was preferred under the collection procedure; it does not reveal an absolute universal utility.

2. What is reward hacking in this setting?
Answer and explanation

The policy finds patterns that raise predicted reward without delivering the intended quality — A proxy can be optimized through unintended shortcuts, especially outside the data distribution on which it was validated.

Complete the teach-back and answer the quiz correctly to finish this lesson.

Sources

  1. Long Ouyang et al. (2022). Training language models to follow instructions with human feedback.