Reward Model and KL Objective
The reward model converts pairwise judgments into a scalar scoring function . Given a prompt and two responses, it should assign the chosen response a higher score than the rejected one.
The common Bradley-Terry form turns a reward difference into a probability:
This gives us a scalar reward model. The margin matters more than the absolute score, and controls how sharply the model separates winners from losers.
Reward model math
Tune the Bradley-Terry scoreboard
Move the reward scores and temperature. The preference probability depends on the difference, not the absolute score level.
Delta r
1.10
P(A wins)
82%
loss if A chosen
0.19
Once exists, policy optimization tries to maximize predicted human reward. But in RLHF we also want the model to stay near behavior we already trust. That gives the KL-regularized objective:
The reward term pulls toward human-preferred behavior. The KL term limits drift from the reference policy. The coefficient controls the strength of the leash.
KL-regularized objective
What RLHF wants to optimize
The policy should increase learned reward without drifting too far from a trusted reference model.
KL divergence
Measures how far the current policy's output distribution moves from the reference policy for the same prompt.
Target distance
Kappa sets the desired KL distance.
DKL(πφ || πref) ≈ κ
Adaptive
Most RLHF systems monitor a target KL distance . If observed KL rises above , raise so the reference pulls harder. If observed KL stays far below , lower so the policy can learn more from reward.
In short: pulls toward better answers, while KL keeps the new policy from drifting too far too fast.
Shift Invariance
If the same constant is added to both reward scores, the margin stays the same. Pairwise reward modeling learns relative preference, not an absolute moral meter.
Confidence Needs Calibration
A reward model that predicts preference on ambiguous near ties is overconfident. Calibration checks whether predicted probabilities match observed rater frequencies, which matters when uncertainty should trigger more labels or human review.
In , what directly controls whether A is predicted to win?