Part 2 — Reward Modeling and Preference Data
The reward model is the heart of classical RLHF. It is the component that turns raw human comparisons into a scalar signal that can be optimized.
From preference pairs to trainable signal
Human evaluators usually do not provide a single numeric score for every response. Instead, they compare pairs:
- response A is better than response B
- response B is safer than response A
- response A is more complete and grounded
This pairwise data is then used to train a reward model that estimates the utility of each generated response.
A common formulation is to learn a function r(x, y) that assigns a higher score to better completions for prompt x. The training objective looks like a preference classification problem: the model learns to rank candidates consistently with human judgments.
Why the reward model matters
The policy does not directly optimize human labels. Instead, it optimizes the learned reward. This is powerful because it allows a model to generalize beyond the specific preference examples it saw during data collection.
But it also introduces a risk: the reward model may reflect a narrow, biased, or incomplete notion of quality. If the reward is wrong, the policy can optimize for the wrong target.
This is the core alignment challenge in RLHF: the reward model is a proxy for human preference, not human preference itself.
Data quality is the bottleneck
Good RLHF requires more than a large dataset. It requires a high-quality dataset with:
- clear rubrics
- sufficient diversity of prompts and failure modes
- label calibration across evaluators
- disagreement-aware handling, not just forced consensus
A weak dataset creates a brittle reward model. That often leads to reward hacking: the model learns to exploit loopholes in the reward rather than genuinely improve the intended behavior.
Common RLHF data patterns
In production, teams often use a combination of:
- pairwise human comparisons
- rubric-based evaluations
- safety annotations
- adversarial prompt sets
- synthetic preference generation for bootstrapping
The best pipelines do not treat human feedback as a one-time process. They continuously refresh the preference data as model behavior changes.
Why a KL penalty matters
When the policy is optimized against a learned reward, it can drift too far from the safe base policy. This is why KL regularization is so common in RLHF.
The optimization usually looks like:
maximize expected reward - beta * KL(policy || reference policy)
This keeps updates anchored to a trusted reference model and reduces runaway behavior.
Engineering lesson
The reward model is not just a training artifact; it is a product decision. It encodes what “better” means for your system. If that definition is vague, inconsistent, or overly narrow, the resulting policy will inherit the same weaknesses.
For serious RLHF systems, the best approach is to combine careful labeling, robust evaluation, and regularized optimization rather than trusting the reward model blindly.