Sub topic 8
Verbosity and Style Bias
This chapter assumes you have read the earlier chapters on judge formats and rubrics. You should also be able to read Python and know what a correlation is. It covers how to find out whether your judge rewards longer or more polished answers, and what to do when it does.
What the bias looks like
A judge shows verbosity bias when it gives higher scores to longer answers, even when the extra text adds no information. It shows style bias when it rewards surface presentation over substance. Common style signals include:
- Markdown headings, bullet lists and bold text.
- A confident, authoritative tone.
- Polished, formal wording.
- Polite openers such as "Great question!".
- A closing summary that repeats what was already said.
Both biases are failures of the same kind. The rubric asks about one property, such as faithfulness, and the judge's score partly tracks a different property that is easy to see. Studies of LLM judges, including the MT-Bench work by Zheng et al. (2023), have reported that judges can prefer longer answers. That work also showed that padding an answer with repeated, content-free text can fool some judges. Treat this as a tendency to test for in your own setup. Its size depends on the judge model, the prompt, and the task.
Why it happens
Nobody has a complete explanation, but three causes are commonly proposed:
- Correlated training signal. In much human preference data, longer and better-formatted answers really were better on average. A model trained on that data may learn length as a shortcut for quality.
- Thoroughness looks like correctness. A long answer contains more claims, and each one looks plausible. Checking them all is harder than skimming them.
- Judges read fluency as competence. Smooth, confident prose lowers the judge's suspicion, even if a claim is unsupported.
Length is not always a flaw. A complete answer to a hard question is often longer than a shallow one. The goal is not to cancel the effect of length, only the part of it that has nothing to do with the criterion you are measuring.
Detecting it
You can test for the bias in three ways. They get stronger in the order listed.
1. Correlate score with length
Compute the correlation between answer length and judge score. Then compute the correlation between answer length and human score on the same items. If the judge's correlation is much higher than the humans', the judge is probably rewarding length.
import statistics
def pearson(xs, ys):
mx, my = statistics.fmean(xs), statistics.fmean(ys)
cov = sum((x - mx) * (y - my) for x, y in zip(xs, ys))
vx = sum((x - mx) ** 2 for x in xs)
vy = sum((y - my) ** 2 for y in ys)
if vx == 0 or vy == 0:
return 0.0
return cov / (vx * vy) ** 0.5
lengths = [40, 55, 80, 120, 150, 200, 260, 300]
judge = [2, 3, 3, 4, 4, 5, 5, 5]
human = [3, 2, 4, 3, 4, 3, 4, 3]
print("judge vs length:", round(pearson(lengths, judge), 2))
print("human vs length:", round(pearson(lengths, human), 2))With this toy data the judge's correlation with length is far higher than the humans'. A gap like that is a warning sign, not proof. If longer answers really were better in your data, both correlations would rise together. This check is cheap, and it only works if you already have human labels from the earlier validation chapter.
2. Run a padding test
A correlation shows association only. A padding test is a controlled experiment. Take answers, add text that carries no new information, and score each answer before and after. Any score change is caused by the padding, because nothing else changed.
import statistics
FILLER = (" To summarize, the points above cover the main aspects of the "
"question in a thorough and comprehensive way.")
def pad(answer, times=3):
return answer + FILLER * times
def padding_shift(call_judge, items):
"""call_judge(question, answer) returns an integer score."""
deltas = [
call_judge(question, pad(answer)) - call_judge(question, answer)
for question, answer in items
]
return statistics.fmean(deltas)
def toy_judge(question, answer):
# A deliberately biased stand-in: score grows with word count.
return min(5, 1 + len(answer.split()) // 20)
items = [
("What is 2+2?", "It is 4."),
("Capital of France?", "Paris is the capital of France."),
]
print(padding_shift(toy_judge, items))Replace toy_judge with your real judge call. For an unbiased judge the mean shift is near zero. A clearly positive mean shift means padding alone raises scores. Run it on several items and look at the spread as well as the mean. Use the bootstrap from the statistics chapter if the item count is small.
You can run the same experiment for style. Rewrite an answer with bullet points and bold headings, keep the content identical, and compare the scores.
3. Compare within length buckets
Group items by length, for example short, medium and long. Then check judge-human agreement inside each group. If the judge agrees with humans on short answers but not on long ones, length is distorting its scores in a way a single overall agreement number hides.
Mitigations
No single fix removes the bias. The usual options are below.
| Mitigation | How it works | Limits |
|---|---|---|
| Explicit rubric wording | State that length, formatting and tone must not affect the score, and name the one criterion to judge | Reduces the effect but rarely removes it. Check with the padding test. |
| Normalize before judging | Strip markdown, or rewrite all candidates into one plain format | The rewrite step can change meaning. Spot-check it. |
| Length-matched comparisons | In pairwise tests, compare answers of similar length, or discard pairs with a large length gap | Throws away data and may bias which prompts remain. |
| Statistical length control | Fit a model of score against length and report the effect of the system after accounting for length | Assumes a simple relationship between length and score. |
| Reference-based judging | Compare the answer to a reference, so the judge checks against known facts | Needs references, and a long answer can still look closer to one. |
| Few-shot examples | Show a long wrong answer scored low and a short right answer scored high | Examples add their own bias. Choose and rotate them with care. |
| Add a concision criterion | When brevity matters, score it as a separate rubric item | Needs its own validation. |
Do not overcorrect. A prompt that says "penalize long answers" can push the judge to prefer short, incomplete answers. After any change, repeat both the padding test and the human-agreement check. A mitigation counts only if the padding shift drops and agreement with humans does not.
Practical checklist
- Log answer length with every judged item. It costs nothing and makes every later analysis possible.
- Run the padding test whenever you change the judge model, the rubric or the prompt.
- When comparing two systems, report their mean lengths. A win by a system that writes twice as much needs more scrutiny.
- Keep a small human-labeled set that includes long wrong answers and short correct ones. These cases separate content from presentation.
Exercise
A judge scores two systems on 200 items. System B scores 0.4 points higher on a 1-5 scale, and its answers average 2.5 times as many words as System A's. Describe two tests you would run before trusting that gap, and what result from each would suggest verbosity bias.
Show answer
First, the padding test: append content-free filler to System A's answers and re-score them. If the mean score rises noticeably, the judge rewards length alone, and some of B's lead may come from its length. Second, a length-bucket comparison against human labels: check judge-human agreement, or compare A and B only on items where the answers have similar length. If B's advantage shrinks or disappears within matched-length items, or if the judge disagrees with humans mostly on the long answers, verbosity bias is a likely explanation. Correlating score with length and comparing it to the human correlation on the same items is also a reasonable first check.