Zenaique

Why do reward models often reward longer responses, and how do you mitigate it?

Short answer·Medium·4.0 · 0·~3 min·Asked atGroqInduced Ai
Attempt it

Why do reward models often reward longer responses, and how do you mitigate it?

Free · 2 AI evals / day
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

Key concepts

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.

How the reward model and the policy amplify it
Fixes in the data and the reward model
Fixes in the objective: KL and length-aware DPO
Length-aware evaluation
Choosing a mitigation
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

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.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhy can a length penalty make PPO training unstable?
A

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.

3 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

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

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
What is RLHF, and why is it used after pretraining?
MCQ·Easy