Prompt, chosen response, rejected response. The reward model uses Bradley-Terry loss to score chosen above rejected on the same prompt.
Think of a pizza tasting where you write down: what was ordered (the prompt), the pizza everyone liked best (chosen), and the pizza that came in second (rejected). After thousands of these notes, a judge can learn what people prefer in general, even for pizzas they have not tasted. The reward model is that judge. It does not need to know how much better the winner was, only that on this prompt the chosen response was preferred over the rejected one.
Detailed answer & concept explanation~6 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.
5 minutes: the three fields, the Bradley-Terry loss, why minimal is good, and the sibling formats (DPO, KTO, ORPO).
Real products, models, and research that use this idea.
- Anthropic's HH-RLHF dataset stores exactly these three fields per record and is one of the canonical open preference corpora
- OpenAI's WebGPT and InstructGPT preference data follow the same three-field structure
- Meta's Llama 3 and Llama 4 post-training pipelines consume preference records in the same shape, used for iterative DPO rounds
- Stanford's UltraFeedback dataset uses the three-field structure with AI-generated chosen/rejected pairs scored by GPT-4 class judges
What an interviewer would ask next. Try answering before peeking at the approach.
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.
Forgetting that the prompt anchors the comparison. A chosen/rejected pair without its prompt is meaningless because quality is conditional on the prompt.
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.