Sub topic 9
Self-preference bias
This chapter assumes you can prompt an LLM, read Python, and know what an evaluation set is. It also assumes you have seen pointwise and pairwise judging and have met position and verbosity bias in earlier chapters.
What the bias is
Self-preference bias is a judge's tendency to give higher scores to outputs written by itself, or by a model from the same family, than to equally good outputs from other models. Research on judge setups has reported this tendency. One proposed explanation is that a model finds text close to its own style and wording more likely, and rates that familiarity as quality.
The bias matters most when you compare systems. If you ask GPT-style model X to judge a contest between X and a rival, X's win rate may be inflated for reasons unrelated to correctness.
Where it shows up
The bias appears in three common setups:
- A team uses its production model as the judge for its own outputs.
- A team compares a fine-tuned model against its base model, and the same base model judges.
- A team compares vendors, and the judge comes from one of them.
The size of the effect varies by task, model and rubric, so treat any single reported figure as an example. Measure it on your own data.
Detecting it
Compare the judge with human labels, split by which model wrote each answer. Overall agreement can look fine while one model's answers are consistently over-scored.
def score_gap(rows, model):
"""rows: dicts with 'author', 'human' and 'judge' scores (same scale)."""
own = [r for r in rows if r["author"] == model]
other = [r for r in rows if r["author"] != model]
def mean_gap(group):
return sum(r["judge"] - r["human"] for r in group) / len(group)
return mean_gap(own) - mean_gap(other)
rows = [
{"author": "A", "human": 3, "judge": 4},
{"author": "A", "human": 4, "judge": 5},
{"author": "B", "human": 3, "judge": 3},
{"author": "B", "human": 4, "judge": 4},
]
print(score_gap(rows, "A"))Here the judge scores model A one point above the humans and scores model B exactly as the humans do, so the function prints 1.0. A value near zero suggests no self-preference on this sample. A clearly positive value means the judge favors that author beyond what humans do. With a small sample, put a confidence interval on the gap, as covered in the chapter on statistical uncertainty.
Mitigations
- Use a judge from a different family than the models you compare. This is the simplest fix.
- Use several judges from different families and combine their verdicts, for example by majority vote or averaging.
- Use a reference answer or a narrow rubric, so the judge checks facts instead of preferring a style.
- Validate the judge on human labels per author, as shown above, and re-check when you change the judge or candidates.
- Fall back to deterministic checks or human review for the final decision on close comparisons.
None of these removes the bias with certainty. They reduce it, and the per-author gap tells you how much remains.
Exercise
You evaluate a fine-tuned model F against its base model B, using B as the judge. B's win rate over F is 62%. Why is this result weak evidence that B is better, and what two changes would make it stronger?
Show answer
B may prefer its own outputs because of self-preference bias, so the 62% mixes real quality with familiarity. Stronger evidence comes from using a judge from a different family (or several judges from different families), and from checking the judge's scores against human labels split by which model wrote each answer.