How do you train a reward model? Explain the preference data and the Bradley - Terry loss.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
A reward model maps (prompt, response) → scalar score. Standard construction: take the SFT model, replace the LM head with a scalar head (typically reading the last token's hidden state), and train on pairwise preference data.
Full worked answer with diagram
A reward model maps (prompt, response) → scalar score. Standard construction: take the SFT model, replace the LM head with a scalar head (typically reading the last token's hidden state), and train on pairwise preference data.
Data collection: for each prompt, sample 2+ responses (from the SFT model - you want the RM accurate on the distribution the policy will actually produce), and have annotators pick the better one under a written rubric (helpfulness, harmlessness, accuracy...). Pairwise comparison is used because humans are much more consistent at "A beats B" than at absolute scores. Quality control is the hard part: measure inter-annotator agreement (often only ~70-80% on subtle pairs), calibrate annotators, and audit for systematic biases - annotators reliably over-prefer longer and more confident-sounding answers, and your RM will faithfully learn those biases.
Loss: the Bradley-Terry model says the probability that response $y_w$ beats $y_l$ is a logistic function of the score difference:
$$P(y_w \succ y_l \mid x) = \sigma\big(r_\theta(x, y_w) - r_\theta(x, y_l)\big)$$
so you minimise $-\log\sigma(r_\theta(x,y_w) - r_\theta(x,y_l))$ - logistic regression on score differences. Only differences are identified, so absolute rewards have an arbitrary offset (some setups normalise or anchor them). With k-way rankings, you decompose into pairs.
Evaluation: held-out preference accuracy (how often the RM agrees with humans; ~70-80% is typical and bounded by annotator agreement) plus targeted probes for known failure modes - length bias, sycophancy, format bias. The RM is the load-bearing proxy for the whole RLHF run: the policy will exploit any systematic error it has, which is why RM quality, fresh on-distribution preference data, and periodic RM retraining matter more than PPO hyperparameters.
Worth sketching. the loop back to the sampling model is the part candidates leave out.
flowchart LR
A["Prompt"] --> B["Sample 2 responses<br/>from the SFT model"]
B --> C["Annotator picks the better one<br/>under a written rubric"]
C --> D["Scalar head on<br/>the SFT backbone"]
D --> E["Bradley-Terry loss on<br/>the score difference"]
E -->|"only differences<br/>are identified"| F["Reward model"]
F --> G["Probe for length,<br/>format and sycophancy bias"]
What a good answer covers
- A reward model maps (prompt, response) → scalar score
- Standard construction: take the SFT model, replace the LM head with a scalar head (typically reading the…
- Data collection: for each prompt, sample 2+ responses (from the SFT model - you want the RM accurate on…
- Pairwise comparison is used because humans are much more consistent at "A beats B" than at absolute scores
- Quality control is the hard part
Key terms: pairwise preference data · Data collection · Loss · Evaluation
In the glossary: Reward model · SFT · Bradley-Terry · Sycophancy · RLHF · PPO
Interviewer follow-ups to expect
Why sample RM training responses from the SFT model rather than another model?
How would you detect and correct length bias in a reward model?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep