Why do reward models often reward longer responses, and how do you mitigate it?
Why do reward models often reward longer responses, and how do you mitigate it?
Raters read length as thoroughness, so reward models learn length as a cheap feature. Fix it with length-balanced data, length penalties or a separate length head, and length-controlled evaluation.
Imagine a teacher who, without meaning to, gives slightly higher marks to longer essays. Students notice. Soon students pad every essay with repeated points and extra examples. The marks go up while the essays get no better. A reward model is that teacher. It learned from people who picked the longer of two answers a bit more often, because long answers look thorough. The model being trained is the student, and it learns that adding words is the cheapest way to raise its marks. To fix it, you can change the marking so padding costs points, give the teacher examples where the short essay is better, or compare essays only at similar length before deciding which one is really better.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Reward models trained on human preferences tend to score longer answers higher, even when the extra length adds nothing. This length bias is the best-documented form of reward hacking in RLHF. RL turns a small bias in the labels into a large change in behavior: answers that pad, repeat and over-explain.
The bias starts in the labels, the reward model encodes it, and the policy amplifies it. Each step has its own fixes, and evaluation has to be length-aware to confirm that a fix worked.
Where the bias starts: the labels
Preference data comes from people, or LLM judges, comparing two answers to the same prompt. A longer answer usually covers more points, adds caveats and looks more careful. Raters often take that look as quality, especially when they have little time to check whether each point is correct or needed.
The effect is measurable. One study checked how often a trivial rule, "pick the longer answer", agrees with the human label. It agreed 55.7% of the time on WebGPT, 59.6% on Stack and 63.1% on RLCD, where 50% is chance. Those margins look small, but they are a steady signal that any model trained on the labels can pick up.
LLM judges have the same problem. The MT-Bench and Chatbot Arena study named verbosity bias as one of the main biases of LLM-as-a-judge, next to position bias and self-enhancement bias. So moving from human labels to AI feedback does not remove the bias by itself. A judge used to create RLAIF labels passes its preference for long answers into the reward model in the same way.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- A study of length correlations in RLHF found that a reward based only on length reproduced most RLHF gains over SFT on WebGPT, Stack and RLCD data.
- ODIN trains a length head and a content head on shared reward model features and discards the length head during RL, which almost removes the reward's correlation with length.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy can a length penalty make PPO training unstable?
Think about how a penalty changes the scale and variance of the reward, and what happens when the penalty outweighs the quality signal for most samples.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Fixing length bias only with a hard token cap. The cap hides the symptom, but the reward model still pays for length, so the policy pads its answers right up to the cap.
60 second bullets to scan on the way to the call.
Why raters prefer longer answers
How often the longer answer wins in preference data
Primary sources. Browse if you want the original framing.
- Singhal et al., A Long Way to Go: Investigating Length Correlations in RLHF
- Chen et al., ODIN: Disentangled Reward Mitigates Hacking in RLHF
- Park et al., Disentangling Length from Quality in Direct Preference Optimization
- Meng et al., SimPO: Simple Preference Optimization with a Reference-Free Reward
- Dubois et al., Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluators
Same topic, related formats. Practice these next.