Reward model in RLHF: what does it score, and on what data does it train?
A reward model maps (prompt, response) to a scalar score and is trained on preference pairs under a Bradley-Terry loss so chosen beats rejected.
Imagine a restaurant critic who is shown two dishes from the same kitchen for the same order. The critic never says either dish is perfect or wrong; they just point at the one they preferred. Do this a few thousand times and a junior trainee can learn to predict which dish the critic would pick before the critic even tastes it. That trainee is the reward model. It does not learn an absolute standard of goodness; it learns the critic's relative preference from many head to head comparisons. Once trained, the trainee can score any new dish on a quiet scale that reliably ranks better above worse, which is exactly what the next stage of training needs.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: the reward model's role + architecture + Bradley-Terry loss + why pairwise beats absolute + where it plugs into PPO + reward hacking + how DPO eliminates it.
| Reward signal | Input shape | Training signal |
|---|---|---|
| RLHF reward model | (prompt, response) | Pairwise preferences, Bradley-Terry |
| BLEU / ROUGE | (response, gold reference) | Surface overlap with reference |
| Verifiable reward | (response, checker) | Programmatic pass/fail |
| LLM judge | (prompt, response) | Sampled from a strong model |
Real products, models, and research that use this idea.
- OpenAI's original InstructGPT pipeline trained a reward model from the SFT checkpoint and ran PPO against it, the canonical RLHF setup.
- Anthropic's HH-RLHF reward model is publicly described in the Helpful and Harmless paper and uses Bradley-Terry on preference pairs.
- Llama 4 Maverick post-training combines a reward model with rule-based and verifiable rewards for parts of its alignment pipeline.
- DeepSeek V4's RL stage uses learned reward models alongside programmatic checkers for code and math.
- Hugging Face TRL provides RewardTrainer with Bradley-Terry loss as a standard component for community RLHF runs.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does the Bradley-Terry loss only depend on the difference in scores?
QWhat is reward hacking, and how does PPO try to prevent it?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming the reward model needs gold answers or absolute scores. It learns purely from pairwise preferences; the absolute reward scale is free and meaningless on its own.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.