RL for Language Models advanced 8 min read 7 flashcards

Reward Model Calibration and Drift

Reward models trained on human preferences suffer from miscalibration and distribution shift, causing the optimised policy to exploit proxy scores in ways that diverge from actual human intent.

When Anthropic trained early Claude models, internal evaluations showed that aggressive RL optimisation could push reward scores steadily upward while human raters judged the outputs as getting worse. The reward model had become a target to be gamed rather than a signal to be followed. That gap between proxy score and true quality is the calibration-and-drift problem.

What "calibration" means for a reward model

A reward model (RM) is typically a language model with a scalar head, trained to predict which of two responses a human prefers. The standard training objective is a Bradley-Terry log-likelihood:

L = -E[ log σ( r(x, y_w) - r(x, y_l) ) ]

where y_w is the preferred response, y_l the dispreferred one, r is the scalar reward head, and σ is the sigmoid function.

This objective only cares about relative ordering between pairs. It says nothing about the absolute scale of r, nor about how confident the model should be when the margin is small versus large. A perfectly optimised Bradley-Terry model can assign r(x, y_w) = 100 and r(x, y_l) = -100 for a mildly-preferred response and the loss would be identical to assigning +1 and -1. The relative ranking is correct in both cases, but the inflated scores will be exploited the moment a policy gradient starts maximising r.

Calibration, in the rigorous sense, means that the model's predicted win-probability σ(r_w - r_l) should match the empirical human agreement rate at each margin level. Miscalibration shows up as overconfidence (too-large logit gaps for genuinely ambiguous pairs) or underconfidence (small gaps for pairs where annotators were unanimous). Both distort the RL signal.

How drift enters the picture

Even a perfectly calibrated RM at the start of training drifts for two distinct reasons.

Distribution shift. The RM was trained on completions from the supervised fine-tuned (SFT) model. As RL training proceeds, the policy drifts away from the SFT distribution. The RM is now scoring completions it never saw during its own training. In neural networks, extrapolation outside the training distribution is unreliable; the RM's scores on out-of-distribution policy outputs carry no statistical guarantee.

Reward hacking. The policy learns that certain surface features (length, confident-sounding hedges, formatting patterns) correlate with high RM scores in the training data, but do not represent genuine quality. As Gao et al. (2023) quantified empirically, the "gold-standard" reward (measured by a larger, held-out evaluator) first rises with optimisation, then falls as the policy exploits the proxy. The peak performance occurs at a surprisingly low KL budget.

The Gao et al. scaling analysis is worth knowing precisely. They define the optimisation pressure by the KL divergence between policy and SFT reference:

d = KL( π_θ || π_ref )

and find that gold reward as a function of d follows roughly:

r_gold(d) ≈ α * sqrt(d) - β * d

The sqrt term represents genuine capability gains; the linear term represents hacking. The turning point d* = (α / 2β)² is the point beyond which optimising the proxy actively hurts true performance. Larger RMs push d* further out, but never eliminate the problem.

Mitigation strategies in practice

KL regularisation. The standard PPO-based RLHF objective explicitly penalises KL divergence from the reference policy:

J(θ) = E[ r(x,y) ] - λ * KL( π_θ(y|x) || π_ref(y|x) )

The coefficient λ (often called the KL penalty) is a tunable hyperparameter. A small λ allows aggressive optimisation and faster reward hacking; a large λ keeps the policy close to SFT and starves RL of meaningful signal. In practice λ is often annealed or set by ablation.

Reward model ensembles. Training multiple RMs on different annotation subsets and taking the minimum (or a conservative percentile) across the ensemble reduces susceptibility to any single model's idiosyncratic blind spots. The cost is obvious: you need several annotated datasets and several training runs.

Margin-based and temperature-scaled training. Meta's Llama 2 paper used explicit margin terms in the RM loss to force larger score separations only when annotator agreement was high:

L = -E[ log σ( r(x, y_w) - r(x, y_l) - m(r) ) ]

where m(r) is a discrete margin that grows with annotator confidence level. This is a direct calibration intervention: it encodes the uncertainty of the annotation into the training objective.

Iterative RM refresh. Because distribution shift is inevitable, some pipelines retrain the RM on completions sampled from intermediate policy checkpoints. This keeps the RM's training distribution closer to the current policy distribution, reducing extrapolation error. It is expensive and introduces feedback loops that need careful management.

Process reward models (PRMs). Instead of a single terminal scalar, a PRM scores each reasoning step. Reward hacking a dense per-step signal is harder than hacking a single end-of-sequence score, though PRMs introduce their own annotation burden and their own calibration pathologies.

Calibration diagnostics

Before trusting an RM in a training loop, a few checks are worth running:

Diagnostic What it measures Red flag
Reliability diagram Predicted win-prob vs. empirical win-rate per bin Large deviations from the diagonal
Expected calibration error (ECE) Mean absolute calibration gap ECE > 5% on held-out pairs
Score distribution on OOD samples RM outputs on policy checkpoints mid-training Scores keep rising monotonically
Correlation with human ratings Spearman rank between RM scores and fresh human labels Drops below 0.6 after several RL rounds

The last diagnostic is the most operationally useful: if the Spearman correlation between RM scores and fresh human labels degrades measurably after 2-3 RL rounds, the RM needs refreshing.

When it falls down

Cold-start data scarcity. If the annotation pool is small (hundreds of pairs rather than tens of thousands), the RM will overfit to annotator artefacts. Temperature scaling post-hoc can partially fix the probability outputs but cannot fix the underlying ranking errors.

Single-annotator preference labels. Human preferences are genuinely noisy and context-dependent. Treating single-annotator labels as ground truth produces an RM that confidently encodes one person's idiosyncrasies. Label aggregation strategies (majority vote, Dawid-Skene, or continuous distributions) matter enormously at scale.

Length bias. Longer responses systematically score higher in Bradley-Terry-trained RMs, because length correlates weakly with quality in human annotations but correlates strongly with the model's ability to pattern-match. Without explicit length-normalisation or length-blind annotation protocols, the policy degenerates toward verbose, padded outputs.

Reward plateau then collapse. In some training runs, reward scores plateau at a high value for many steps before suddenly collapsing. This typically signals that the policy has found a mode the RM scores highly but humans find degenerate (repetitive lists, excessive caveats, or sycophantic framing). The collapse happens when the RL optimiser finally escapes that mode and falls into a region the RM has never seen.

DPO is not immune. Direct Preference Optimisation (DPO) removes the explicit RM, but it implicitly defines a reward via the policy ratio. The same calibration pathologies can emerge: the implicit reward can be over-optimised if multiple rounds of DPO are applied to data generated by earlier DPO checkpoints (so-called iterative DPO), causing drift analogous to the explicit-RM case.

Further reading

Check yourself

7 flashcards for this concept

Click a card to reveal the answer.

Drill the whole track