Evaluation lab · San Francisco · London · Zürich
Reinforced Labs Request a briefing
Glossary

Reward model

Also called: RM, preference model, learned reward function

A reward model is a network trained on human or AI preference comparisons to output a scalar score for a response, used as the reward signal in RLHF.

A reward model is a neural network that takes a prompt and a response and returns a single number estimating how much a human would prefer that response. It is trained on preference comparisons and then stands in for the human during RLHF, best-of-n sampling and data filtering.

How it is trained

Most reward models are a language model with its output layer replaced by a scalar head. Given a prompt , a preferred response and a rejected response , training minimises the Bradley-Terry negative log-likelihood:

where is the reward model with parameters and is the logistic function. Only differences in reward matter, so the scale and offset of are arbitrary; teams often normalise scores so the reference policy's responses average zero.

Worked example

The model scores the chosen response 1.5 and the rejected one 0.5. The predicted preference probability is and the loss for that pair is . Had the scores been swapped, the probability would be 0.27 and the loss 1.31, so the gradient pushes hard on pairs the model gets wrong.

Variants

How to evaluate one

The basic metric is pairwise accuracy on held-out comparisons; on noisy chat preferences it sits well below 100 percent, and it is bounded above by how often annotators agree with each other. Accuracy alone is not enough: check calibration, accuracy per category (safety, coding, factuality), and sensitivity to length and style, because a reward model that likes long answers will teach the policy to ramble.

Why it matters

Whatever the reward model gets wrong, the policy will learn to exploit. Gao et al. (2022) showed that as a policy is optimised further from its start, true quality first rises and then falls while the proxy reward keeps climbing. That is reward overoptimisation, and it makes the reward model one of the most safety-relevant artefacts in the training pipeline.

Sources

  1. Nisan Stiennon, Long Ouyang, Jeff Wu, Daniel M. Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, Paul Christiano. Learning to summarize from human feedback, 2020. arxiv.org
  2. Long Ouyang, Jeff Wu, Xu Jiang, et al.. Training language models to follow instructions with human feedback, 2022. arxiv.org
  3. Leo Gao, John Schulman, Jacob Hilton. Scaling Laws for Reward Model Overoptimization, 2022. arxiv.org

Know the number before you ship.

A 45-minute working session with an evaluation engineer. Bring one use case; leave with a threat model, a draft eval plan with sample sizes, and an honest read on where you stand.