Sub topic 2
Why Judges Are Not Neutral Graders
Assume you can prompt a large language model and read Python. An LLM judge is a language model that scores or compares another system's answers using a rubric. Its score is a proxy for human judgment, not ground truth. The judge can apply the rubric inconsistently or favor features unrelated to quality.
Position Bias in Pairwise Comparisons
A pairwise comparison asks the judge to select the better of two answers. Position bias occurs when the judge favors the answer shown first or second, even when the answers are unchanged.
Reduce this bias by judging both orders:
- Compare A with B.
- Compare B with A.
- Report a winner only if both results agree.
- Treat disagreement as a tie or send it for review.
def stable_pairwise_result(call_judge, question, answer_a, answer_b):
first = call_judge(question, answer_a, answer_b)
second = call_judge(question, answer_b, answer_a)
winner_first_order = "A" if first == "first" else "B"
winner_second_order = "B" if second == "first" else "A"
return winner_first_order if winner_first_order == winner_second_order else "tie"Verbosity and Style Bias
A judge may mistake a longer answer, polished wording, headings, or confident tone for correctness. This is verbosity bias or style bias. A concise answer can contain the required facts while receiving a lower score.
Make the rubric test observable properties. For example, ask whether the answer contains the required facts and avoids contradictions. Tell the judge to ignore length and presentation unless those are explicit requirements.
Self-Preference Bias
Self-preference bias occurs when a judge favors answers produced by its own model family, wording patterns, or training style. This can hide regressions when the evaluated system uses the same model as the judge.
Use human-labeled samples and, when possible, judges from different model families. Compare judge decisions with labels before trusting automated scores.
> callout warning > A high judge score proves that an answer matches the judge's learned preferences. It does not prove that users find the answer correct or useful. > ```
Variance Across Runs and Settings
LLM judgments can change across runs because of sampling, prompt wording, model updates, and configuration settings such as temperature. Measure this variance by repeating a sample of evaluations and comparing the verdicts. Pin the judge model and prompt, record settings, and recheck the sample after any change.
Exercise
A pairwise judge selects answer A first, then answer B after the answers are swapped. What should the evaluation report?
Show answer
Report a tie or review the case, because the two orders disagree and position bias may be affecting the result.