Reward Modelling
Nobody can write down a loss function for “helpful, honest, and not annoying”. But people can reliably say which of two answers they prefer. Reward modelling turns that cheap human judgement into a scoring function a training algorithm can actually optimise against.
How the model is builtAnnotators are shown one prompt and two or more candidate completions, and rank them. A copy of the language model — usually the fine-tuned policy with its output layer replaced by a single scalar head — is then trained on those comparisons with a ranking loss: the preferred completion must score higher than the rejected one. The result is a reward model that reads any prompt-response pair and emits a number standing in for human approval. It never sees an absolute score during training, only relative ones, which is why its outputs are meaningful as a ranking and arbitrary as a scale.
What depends on it, and how it fails- It is the training signal in RLHF: PPO improves the policy purely by chasing this model's score.
- It drives rejection sampling and best-of-n serving, where several completions are generated and the highest-scoring one is returned.
- Reward hacking is the characteristic failure: the policy finds text the reward model loves and humans do not — flattery, hedging, padded length, confident formatting in place of substance.
Because a reward model is accurate only near the distribution it was trained on, a KL penalty keeps the policy from wandering into territory where its score is fiction. Avoiding the reward model altogether is exactly what DPO set out to do.
Reward modelling trains a model to predict human preference: annotators rank candidate responses to the same prompt, and a scalar-head model learns to score the preferred one higher. That score becomes the optimisation target that RLHF and best-of-n sampling need, since qualities like helpfulness cannot be expressed as a loss function directly. Its accuracy bounds alignment quality — an exploitable reward model teaches the policy to game it rather than improve.
Imagine training a cook when you cannot describe what tasty means. You cannot hand them a formula, but you can put two dishes in front of a diner and ask which they prefer. Do that a few thousand times and you can build a judge that predicts the diner's choice. Reward modelling is building that judge for an AI's writing. People compare pairs of answers, and a second model learns to score answers the way those people would. The main AI then practises against the judge, instead of waiting for a human to rate every single attempt.