Sub topic 9
Self-preference bias
This chapter assumes you have read the earlier chapters in this tutorial on pairwise judging, position bias and verbosity bias. You should also be able to read short Python programs and understand a win rate.
What self-preference bias is
Self-preference bias is the tendency of a judge model to score outputs from its own model, or its own model family, higher than equally good outputs from other models. The MT-Bench study by Zheng and colleagues (2023) called this "self-enhancement bias". They saw hints of it in some judges but did not have enough data to settle the question. Later work gave stronger evidence.
This bias matters in one common setup: you compare candidate models, and one candidate is also the judge. A vendor who grades its new model with its own flagship model is in this position. So is a team that picks the judge it already has API access to, which often shares a family with one of the candidates.
The bias also hides in less obvious setups:
- The judge and the generator are different checkpoints from the same vendor, trained on overlapping data.
- The candidate answers were produced by a model that was fine-tuned on the judge's outputs.
- The judge scores a pipeline that includes a step run by the same model, such as a rewrite or summarization step.
Why it happens
The causes are not fully settled. Three explanations are documented in the literature, and they are not mutually exclusive.
- Familiar text looks more probable. Wataoka and colleagues (2024) reported that judges tend to prefer outputs with lower perplexity, meaning text the judge finds more predictable. A model finds its own phrasing predictable, so its own outputs score well. Under this explanation the judge is not recognizing itself. It rewards fluent, expected text, and its own text is the most expected.
- Self-recognition. Panickssery and colleagues (2024) found that some models can distinguish their own outputs from other models' outputs. They also found that fine-tuning a model to recognize itself more accurately increased its self-preference. This points to a link between recognizing your own text and favoring it.
- Shared habits. Models in one family share training data, formatting habits and preferred structure. A judge may reward these habits because they match what it was trained to consider good, even when they do not help the answer.
Whichever explanation applies, the practical consequence is the same. A rising score for a candidate sharing the judge's lineage may reflect style match and not quality.
Measuring it
You cannot detect self-preference by looking at one judge's scores, because a judge may favor its own model simply because that model is better. You need a reference that does not share the suspected bias. There are two good ones: human labels, and other judges from different families.
The approach below uses other judges. For each model that is also a judge, compute its win rate as scored by itself, then compare it with the win rate the other judges give it. The difference is the self-preference gap.
from collections import defaultdict
PAIRS = [("A", "B"), ("A", "C"), ("B", "C")]
# For each judge, how many of 10 comparisons the first model of each pair won.
FIRST_WINS = {
"A": [7, 8, 5],
"B": [3, 6, 8],
"C": [5, 4, 4],
}
def build_verdicts(n=10):
"""Return a list of (judge, winner, loser) tuples."""
verdicts = []
for judge, firsts in FIRST_WINS.items():
for (x, y), k in zip(PAIRS, firsts):
verdicts += [(judge, x, y)] * k
verdicts += [(judge, y, x)] * (n - k)
return verdicts
def win_rates(verdicts):
"""Map (judge, model) to the share of that model's games it won."""
wins = defaultdict(int)
games = defaultdict(int)
for judge, winner, loser in verdicts:
wins[(judge, winner)] += 1
games[(judge, winner)] += 1
games[(judge, loser)] += 1
return {key: wins[key] / games[key] for key in games}
def self_preference_gap(rates, judges):
"""Own win rate minus the mean win rate other judges give that model."""
gaps = {}
for j in judges:
own = rates[(j, j)]
others = [rates[(o, j)] for o in judges if o != j]
gaps[j] = round(own - sum(others) / len(others), 3)
return gaps
rates = win_rates(build_verdicts())
print(self_preference_gap(rates, ["A", "B", "C"]))The program prints {'A': 0.3, 'B': 0.325, 'C': 0.275}. Every judge gives its own model a win rate 27 to 33 points higher than the other judges do. Model A wins 75% of its games under judge A but only 45% under both other judges.
Limits of this check
- The other judges are a baseline, not the truth. If all your judges share a bias, such as a preference for long answers, the gap will not show it. Human labels on a sample are a stronger reference.
- Sample size matters. With 10 comparisons per pair, a gap of 0.3 is large, but a gap of 0.05 would be indistinguishable from noise. Put a bootstrap interval on the gap before you act on it, as covered in the chapter on statistical uncertainty.
- Order effects must be removed first. Run each comparison in both orders and count disagreements as ties, as described in the position bias chapter. Otherwise position bias can masquerade as self-preference or hide it.
- The gap is not a count of wrong verdicts. It estimates how much a judge's view of itself differs from its peers. Use it to detect a problem, not to correct individual scores.
Mitigations
| Mitigation | What it does | Cost or weakness |
|---|---|---|
| Use a judge from a different family than every candidate | Removes the shared-lineage effect for those candidates | Hard when candidates come from many vendors |
| Use a panel of judges from several families and average | Spreads any single judge's self-preference across the panel | Higher cost; a panel member is still biased toward itself |
| Exclude the judge's own outputs from its scoring | Removes the effect for that comparison | Cannot rank the judge's own model against others |
| Anchor with human labels on a sample | Gives a baseline not shaped by any model's style | Needs labeling effort; sample may be small |
| Use reference-based or deterministic checks where possible | Reduces reliance on the judge's taste | Only applicable when a correct answer exists |
| Rewrite or normalize answers before judging | Strips surface style that may signal origin | Rewriting can change meaning and adds its own model bias |
A panel helps most when the panel members come from different families and you report per-judge scores as well as the average. If one judge's score for its own family is far above the rest, you can see it and drop that cell.
Practical checklist
- List the judge model and every candidate model, and mark any that share a vendor or training lineage.
- If any pair is related, run at least one judge from an unrelated family on the same data.
- Compute the self-preference gap for each judge that is also a candidate, with both answer orders.
- Compare the judges' rankings against a human-labeled sample. A judge whose ranking of its own family differs from the human ranking should not be the sole judge.
- Record the judge's exact version, since a changed judge changes the bias (see the later chapter on pinning and re-validating the judge).
Self-preference compared with other biases
Position bias depends on where an answer appears, and you can remove it by swapping order. Verbosity bias depends on a visible property, length, and you can partly control it with a length-matched rubric or a length-controlled analysis. Self-preference depends on who wrote the answer, which neither swapping nor length control fixes. You need a different judge, or independent labels, to see it.
Exercise
A team compares a new model N against an older model O. They use N itself as the judge and find that N wins 70% of comparisons. A second judge from an unrelated family, using the same pairs and both answer orders, gives N a win rate of 55%. A third unrelated judge gives 53%. What can the team conclude, and what should they report?
Show answer
The 70% figure is probably inflated by self-preference. The two unrelated judges agree with each other at about 53 to 55%, so the gap is roughly 15 to 17 points. The team cannot claim exactly how much of the gap is bias, because the unrelated judges may share other biases and the sample may be small. They should report the unrelated-judge win rates as the main result, give the self-judged number only alongside them with the judge's identity disclosed, add confidence intervals, and check the ranking on a human-labeled sample.
Exercise
In the code above, why is the self-preference gap computed against other judges' win rates for the same model, instead of simply reporting each judge's win rate for itself?
Show answer
A judge's own win rate mixes two things: how good its model actually is, and how much the judge favors it. A strong model would have a high own win rate even with an unbiased judge. Subtracting the average win rate that other judges give the same model removes the quality part, assuming the other judges are roughly unbiased about that model. What remains estimates the extra favor.