Sub topic 8
Verbosity and Style Bias
This chapter assumes you can read Python, know what a pointwise judge prompt looks like, and understand correlation as a number between -1 and 1.
What the bias is
Verbosity bias is a judge's tendency to give higher scores to longer answers, even when the extra length adds nothing. Style bias is the wider version of the same problem. A judge may prefer confident wording, bullet lists, headings, or polished formal prose over a plain answer with the same content.
The cause is that judges are language models trained on human preferences. Humans often reward answers that look thorough, and the judge learns that habit. The result is a judge that measures how an answer looks as well as whether it meets your rubric.
This bias matters most when you compare two systems that differ in verbosity. A new prompt that makes your assistant wordier can look like an improvement when the answers are no better.
Detecting it
First, check whether judge scores track length when quality should not. Collect scored answers and compute the correlation between word count and score.
from statistics import correlation
def length_correlation(answers, scores):
lengths = [len(answer.split()) for answer in answers]
return correlation(lengths, scores)
answers = [
"Paris.",
"The capital of France is Paris.",
"The capital of France is Paris, a city on the Seine that has been the "
"country's capital for many centuries and is known for its museums.",
"Paris is the capital.",
"France's capital city is Paris.",
]
scores = [3, 4, 5, 3, 4]
print(round(length_correlation(answers, scores), 3))A high correlation is a warning, not proof. Longer answers are sometimes better, for example when they cover more required facts. A stronger test is a padding experiment:
- Take answers the judge has already scored.
- Add filler that carries no information, such as a restated question or a polite closing.
- Rescore the padded versions with the same judge.
- Compare the scores. Any consistent rise is bias, because the content did not change.
You can run the same test for style. Reformat the same content as bullets or add headings, then compare scores.
Mitigations
| Technique | How it helps | Limit |
|---|---|---|
| Rubric instruction | Tell the judge to ignore length and style, as in the faithfulness rubric from earlier chapters | Reduces the bias but rarely removes it |
| Length-matched comparison | Compare answers of similar length, or trim both to a limit | Can remove real quality differences |
| Length as a covariate | Report scores alongside length, or fit a regression that controls for it | Needs enough data |
| Reference-based judging | Score against a reference answer so content matters more than polish | Needs reference answers |
| Narrow criteria | Judge one property, such as faithfulness, per call | More calls |
Also check your human labels. If annotators prefer longer answers, a judge that agrees with them inherits the same bias, and agreement metrics will not reveal it.
Reporting practice
When you compare two systems, report the mean answer length for each next to the judge scores. A reader can then see whether a gain might come from verbosity. If lengths differ a lot, add a length-controlled comparison before you claim an improvement.
Exercise
Your judge gives a mean score of 4.2 to System B and 3.8 to System A. System B's answers average 220 words and System A's average 90 words. What two checks would you run before concluding B is better?
Show answer
First, run a padding test: add filler to some of A's answers and see whether the judge's scores rise. Second, rerun the comparison with length controlled, either by matching answer lengths or by fitting a model that includes length. You could also check the judge against human labels on a length-matched subset. If B's advantage disappears under these checks, the gain came from verbosity.