Reward Models · Chapter 13
Uncertainty-aware reward models: how sure is the score?
1. How sure is the score?
One number cannot say whether the model is confidently right or guessing.
A scalar reward model gives
For an answer like those in the training data, 0.82 may be accurate. For an odd answer unlike anything the model was trained on, 0.82 may be an accident of extrapolation. Both look the same. An uncertainty-aware reward model reports two things: a reward, and how uncertain that reward is.
2. Reward over-optimisation
In RLHF the policy maximises the learned reward \(r_\phi\) while a KL penalty keeps it near a reference policy:
The learned reward is a proxy for what we actually want, the gold reward. Early in training, raising the proxy also raises the gold reward. Later the policy finds answers the proxy overrates, and the gold reward falls while the proxy keeps rising. This is Goodhart's law applied to reward models, and it is called reward over-optimisation or reward hacking.
Gao et al. measured this in a controlled setting: a large reward model played the role of the gold labeller, and smaller proxy reward models were trained on its labels. They plotted gold reward against distance from the initial policy,
and found that simple curves fit well for best-of-\(n\) sampling and for RL:
Both rise, peak and fall. The fitted coefficients changed smoothly with the size of the proxy reward model, with larger proxies over-optimised less. The lesson for this chapter: the proxy is least reliable exactly where the policy pushes hardest, far from the data it was trained on. That is where we most need to know how uncertain it is.
3. Definition
The simplest way to measure uncertainty is to train several reward models and see whether they agree.
An ensemble reward model consists of \(K\) reward models \(r_1,\ldots,r_K\) trained on the same task. For a prompt and response it returns the pair \((\mu,\sigma)\): the mean reward and the spread of the members' rewards.
Members that were trained differently agree where the data pin the answer down and drift apart where they do not. A large \(\sigma\) therefore signals low confidence.
4. Agreement and disagreement
Four reward models score answer P:
High reward, high confidence. The same four models score answer Q:
The mean of Q is middling, but the members range from 0.22 to 0.95. One model loves Q and another rejects it. A system that saw only 0.595 would not know to be cautious.
Equation (6) is the population variance. Some work divides by \(K-1\) instead, which for Q gives \(\sigma_Q=\sqrt{0.3509/3}\approx0.342\). Either is fine if used consistently, since the penalty weight \(\lambda\) of Section 6 absorbs the difference. This chapter uses \(1/K\) throughout.
5. Building an ensemble
An ensemble is only useful if its members make different mistakes. Ways to make them differ, roughly from cheapest to most diverse:
- Different fine-tuning seeds. Same pretrained backbone, different head initialisation and data order.
- Bootstrapped data. Each member trains on a resample of the preference pairs.
- Shared backbone, several heads. One Transformer with \(K\) linear heads. Almost free at inference, but the heads share every feature, so they disagree little.
- Different pretraining seeds. Members start from separately pretrained backbones. Most expensive, and the most diverse.
Independent members
\(K\) full reward models. \(K\) times the memory and compute, but members can differ in what features they learned.
cost ≈ K forward passes
Multi-head
One backbone, \(K\) heads. Cost close to a single model, but disagreement only reflects the heads, not the representation.
cost ≈ 1 forward pass
A related idea averages the weights rather than the outputs. Fine-tune \(K\) reward models from the same pretrained start, then use
This is WARM, weight-averaged reward models (Ramé et al.). The result is a single model with single-model inference cost that was reported to be more robust to distribution shift and label noise than its members. It gives a better point estimate, but no \(\sigma\): a single model cannot disagree with itself.
6. Aggregation rules
The policy needs one number. The ensemble gives \(K\). Besides the mean of Equation (5), three rules are common.
Coste et al. compare mean, worst-case and a variance-penalised rule of the form (12), which they call uncertainty-weighted optimisation, for RLHF against an ensemble. A further option keeps \(\mu\) as the reward but down-weights high-\(\sigma\) samples in the policy update. Applied to answers P and Q of Section 4, with \(\lambda=1\):
| Answer | Mean \(\mu\) | Min | \(\mu-\sigma\) | \(\mu-\sigma^2\) |
|---|---|---|---|---|
| P (agree) | 0.905 | 0.880 | 0.887 | 0.905 |
| Q (disagree) | 0.595 | 0.220 | 0.299 | 0.507 |
The rules barely touch P and cut Q sharply. Because \(\sigma<1\) here, \(\sigma^2<\sigma\) and the variance penalty is the mildest of the three at the same \(\lambda\).
7. Conservative reward in RL
Using \(R_\lambda\) in place of \(\mu\) makes the reward pessimistic where the ensemble is unsure. Compare an answer with \(\mu=0.90,\ \sigma=0.20\) and one with \(\mu=0.75,\ \sigma=0.02\), at \(\lambda=1\):
By the mean the first answer wins; by the conservative reward the second does. An uncertain high reward is discounted. If the policy finds a strange answer that one member loves and the others do not, the disagreement raises \(\sigma\) and the exploit stops paying. This targets reward hacking, out-of-distribution exploitation and overconfident reward-model mistakes, the failures that produce bad RL updates.
For \(K\) member rewards with mean \(\mu\) and population standard deviation \(\sigma\), \(\mu-\sigma\sqrt{K-1}\;\le\;\min_k r_k\;\le\;\mu\). Hence for \(\lambda\ge\sqrt{K-1}\) the rule \(\mu-\lambda\sigma\) is at least as pessimistic as the worst member. With \(K=4\) the threshold is \(\sqrt3\approx1.73\).
The left inequality is Samuelson's inequality: no value can lie more than \(\sigma\sqrt{K-1}\) from the mean. For Q, \(0.595-1.73\cdot0.296\approx0.082\le0.22\).
The KL term in Equation (2) is already a form of caution: it keeps the policy near the reference everywhere. The uncertainty penalty is targeted: it bites only on answers where the reward models disagree. The two are used together.
9. Epistemic vs aleatoric uncertainty
Epistemic
Uncertainty from lack of knowledge: too little or no training data near this answer. More data reduces it.
Members disagree.
Aleatoric
Uncertainty in the labels themselves: annotators genuinely disagree. More data does not reduce it.
People disagree.
Ensemble disagreement measures the epistemic kind. For a comparison label \(\ell\in\{0,1\}\), let member \(k\) predict \(p_k=P_k(y_2\succ y_1)\) and pick a member uniformly at random. The law of total variance splits the label's variance into two parts:
If annotators split 50/50 on a pair, a well-trained ensemble learns \(p_k\approx0.5\) in every member: the aleatoric part is 0.25 and the epistemic part is 0. The ensemble is confident, correctly, that people disagree. If instead the members predict \(p_k=[0.9,0.1,0.9,0.1]\), the mean is again 0.5, but the split is 0.09 aleatoric and 0.16 epistemic: the models do not know. Only the second case should trigger the penalty of Section 7. Disagreement between people is the subject of the previous chapter on conditional reward models.
10. Other uncertainty estimates and uses
Ensembles are the most common estimate, not the only one.
- MC dropout. Keep dropout on at inference and run the same model \(M\) times with different random masks \(m_j\). The spread of the outputs is a cheap stand-in for an ensemble (Gal and Ghahramani).
- Predicting a distribution. Give the head two outputs, a mean \(\mu_\theta\) and a standard deviation \(\sigma_\theta\), and treat each reward as Gaussian. The preference probability then accounts for both answers' spreads:
where \(\Phi\) is the standard normal CDF. A single model trained this way mostly learns aleatoric spread from the labels; it has no built-in way to know what it has not seen.
Uses of \(\sigma\) beyond the conservative reward:
- Active labelling. Send the pairs with the highest disagreement to human annotators first.
- Out-of-distribution flags. Route high-\(\sigma\) answers to a stronger judge or a human.
- Best-of-\(n\) selection. Pick the candidate with the highest \(\mu-\lambda\sigma\) rather than the highest \(\mu\).
11. Weaknesses
- Cost. Independent members multiply training and inference compute by \(K\).
- Diversity is hard to get. Members fine-tuned from one backbone agree too much, so \(\sigma\) understates the real uncertainty.
- Shared errors are invisible. A bias common to all members enters \(\mu\) and leaves \(\sigma\) unchanged (Equation 14).
- \(\sigma\) is not calibrated. Nothing guarantees that \(\sigma=0.1\) means the same thing on different prompts.
- Choosing \(\lambda\). Too small and hacking continues; too large and the policy avoids anything novel, including genuinely better answers.
- Epistemic only. Disagreement does not measure genuine disagreement between people.
12. Laboratory: ranking under uncertainty
Four ensemble members score three candidate answers. Answer A is modest and agreed on, answer B is rated highly by two members and poorly by the others, and answer C is in between. Move \(\lambda\) and watch the ranking under \(\mu-\lambda\sigma\) change. The "Shared error" preset makes every member overrate B by the same amount.
Mean, spread and worst case
\(R_\lambda=\mu-\lambda\sigma\)Ensemble table
With the default scores, B wins for \(\lambda<0.76\), C for \(0.76<\lambda<1.06\), and A beyond that. Now press "Shared error": B's members agree, \(\sigma_B\) is tiny, and B wins at every \(\lambda\), whether or not it deserves to.
13. Worked example, step by step
Use the lab's default scores. Members score A as \([0.66,0.63,0.67,0.64]\), B as \([0.99,0.55,0.97,0.69]\) and C as \([0.79,0.66,0.81,0.62]\). Rank the answers by the mean, by \(\mu-\sigma\), and by the worst case.
- Means: \(\mu_A=\tfrac{2.60}{4}=0.65\), \(\mu_B=\tfrac{3.20}{4}=0.80\), \(\mu_C=\tfrac{2.88}{4}=0.72\).
- B's deviations: \(+0.19,-0.25,+0.17,-0.11\). Squares sum to \(0.1396\), so \(\sigma_B^2=0.0349\) and \(\sigma_B\approx0.187\).
- Likewise \(\sigma_A^2=\tfrac{0.0010}{4}=0.00025\), \(\sigma_A\approx0.016\), and \(\sigma_C^2=\tfrac{0.0266}{4}=0.00665\), \(\sigma_C\approx0.082\).
- By the mean (\(\lambda=0\)): \(B\,(0.80)\succ C\,(0.72)\succ A\,(0.65)\).
- By \(\mu-\sigma\): \(A=0.634\), \(B=0.613\), \(C=0.638\), so \(C\succ A\succ B\).
- By the worst case: \(\min A=0.63\), \(\min B=0.55\), \(\min C=0.62\), so \(A\succ C\succ B\).
- Crossovers: B and C tie at \(\lambda=\tfrac{0.80-0.72}{0.187-0.082}\approx0.76\); C and A tie at \(\lambda=\tfrac{0.72-0.65}{0.082-0.016}\approx1.06\). Growing caution moves the choice from B to C to A.
14. What comes next
Ensembles make a learned reward more cautious, but every member is still a learned model with the same blind spots. The next chapter combines learned rewards with rules that cannot be fooled in the same way: exact-match checks, unit tests and format constraints.
A normal RM says how good an answer looks. An uncertainty-aware RM also says how sure it is, \((\mu,\sigma)\), and a cautious policy trusts uncertain rewards less.
See also
- Gao et al., 2023, scaling laws for reward model overoptimization.
- Coste et al., 2023, reward model ensembles help mitigate overoptimization.
- Eisenstein et al., 2023, reward model ensembles mitigate but do not eliminate reward hacking.
- Ramé et al., 2024, WARM: on the benefits of weight-averaged reward models.
- Lakshminarayanan et al., 2017, simple and scalable predictive uncertainty estimation using deep ensembles.
- Gal and Ghahramani, 2016, dropout as a Bayesian approximation.
- The RL notes on PPO, where the KL-penalised objective is optimised.
Previous
← Conditional Reward Model
Next chapter
Hybrid rule-based and learned rewards
Checkable rules alongside a learned score.