LLM-as-a-Judge: Biases, Validation, Reporting — CASRAI

LLM-as-a-Judge: Biases, Validation, Reporting — CASRAI

LLM-as-a-judge is the practice of prompting one large language model to evaluate the output of another model (or of itself) against a rubric, a reference answer or a competing answer, instead of paying human raters for every judgment. It scales cheaply and, in the original MT-Bench study, GPT-4 agreed with human voters more than 80% of the time, but judges carry documented biases (position, verbosity, possibly self-preference) and must be validated against human labels before their scores are reported as evidence.

For research and safety evaluations the practical question is not whether a judge model can score outputs, but whether the score can be trusted and whether a reader can reproduce how it was produced. This guide sets out how the method works, what the foundational study measured about its failure modes, how to validate a judge against human labels, and an eleven-point reporting checklist from recent work on agreement metrics. It also relates the method to NIKOLAI, CASRAI’s frontier-AI-safety dictionary, where the terminology of evaluation and assurance is indexed.

Definition and scope

The survey “A Survey on LLM-as-a-Judge” (Gu et al.) describes the approach as the use of LLMs to evaluate objects, actions or decisions based on predefined rules, and gives a formal shape: the judge receives the item to be evaluated together with a context, typically a prompt template, and returns an evaluation. The Cloud Security Alliance, republishing a TrojAI article, states the same idea in operational terms: using a large language model to evaluate the quality of AI-generated content, with the judge given instructions or criteria and optionally few-shot examples.

Three things sit inside that definition. The object is whatever is being judged: a chat answer, a summary, a transcript of an agent’s actions, or a labelled record in a dataset. The criteria are the rubric, reference or preference rule supplied to the judge. The output is a verdict: a choice between two answers, a score, or a pass/fail label. Because the verdict is produced by a model rather than a person, the judge is itself a measuring instrument, and like any instrument it needs calibration against a trusted standard before its readings are used.

The method is a complement to, not a substitute for, human review. The Cloud Security Alliance article closes on exactly this point, treating LLM judges as a complement rather than a replacement for human oversight, and recommends checking samples of judge outputs because a judge’s stated reasoning is a learned behaviour and not guaranteed logical rigour.

How LLM-as-a-judge works in practice

Zheng et al. (2023), “Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena”, define three variants that most later work builds on. The table below summarises what the judge is given and what it returns.

Variant
What the judge receives
What it returns

Pairwise comparison
A question and two answers
Which answer is better, or a tie

Single answer grading
A question and one answer
A score assigned directly to that answer

Reference-guided grading
A question, the answer, and a reference solution where one exists (the paper’s example is grading math answers)
A verdict or score anchored to the reference

Pairwise versus score-based judging

The Gu et al. survey reports that pairwise comparative assessment outperforms other judging methods on positional consistency, and that agreement between LLM judges and humans is higher for pairwise comparison than for score-based assessment. Pairwise judging is therefore the more defensible default when the aim is to rank two systems, while single-answer scores are convenient for monitoring but less consistent.

Prompt design choices

Zheng et al. found that how the judge is prompted changes its reliability. Few-shot examples raised GPT-4’s consistency under swapped answer order from 65.0% to 77.5%. For grading maths questions, a failure count of 14 out of 20 under the default prompt fell to 6 out of 20 with chain-of-thought and to 3 out of 20 with a reference-guided prompt. The practical reading is that a judge prompt is a methodological choice that belongs in the methods section, not a hidden implementation detail. The survey lists further mitigations drawn from the literature: swapping content order and averaging, labelling conflicting results after a swap as a tie, decomposing evaluation into steps or criteria, requiring structured output formats, averaging several evaluation rounds or voting across several judge models, and fine-tuning on debiased data.

Documented biases and how large they were

Zheng et al. measured several failure modes in 2023-era models. The figures below are specific to the models and prompts they tested (Claude-v1, GPT-3.5 and GPT-4) and should not be assumed to carry over to current judges; they show the type and rough scale of problem that a validation study should look for. The data table at the end of this page lays the measurements out side by side.

Position bias

Position bias is the tendency to favour an answer because of where it is placed, regardless of its content; the Cloud Security Alliance article describes it in those terms. In the MT-Bench paper, consistency of verdicts when the order of the two answers was swapped, using the default prompt, was 23.8% for Claude-v1, 46.2% for GPT-3.5 and 65.0% for GPT-4. The authors note that only GPT-4 gave consistent results in more than 60% of cases. Their mitigation was to run the comparison in both orders and count an inconsistent result as a tie.

Verbosity bias

To test whether judges favour longer answers, the authors ran a “repetitive list” attack, which lengthens an answer without adding information. The judge failed this test in 91.3% of cases for Claude-v1 and for GPT-3.5, and in 8.7% of cases for GPT-4. The Gu et al. survey lists length bias, position bias and concreteness bias among the biases affecting judges.

Self-enhancement bias

Zheng et al. observed that GPT-4 had a 10% higher win rate for its own answers and Claude-v1 a 25% higher win rate for its own. They are explicit that their study cannot determine whether the models exhibit a self-enhancement bias, because the data were limited and the differences small, and because a controlled test is hard to construct when answers cannot easily be rephrased into another model’s style without changing their quality. A page or paper that states self-preference as a proven effect on the strength of this study overstates it; the defensible position is that it is a risk to check for, for example by using a judge from a different model family than the system under test.

Limited reasoning

The same paper states that LLMs have limited maths and reasoning capability, which makes judges unreliable on questions they cannot solve themselves, and that even with chain-of-thought prompting GPT-4 can still be misled by the context in the answer it is grading. This matters most for scientific and safety content, where the correct answer may be exactly what the judge does not know.

Over-optimisation and shared blind spots

The Cloud Security Alliance article names two further risks. If a model is trained or tuned against a judge, it may over-optimise to the judge’s preferences, a form of Goodhart’s law, producing outputs that score well but are weak in practice. And judges may reflect their own training norms, so a judge and a system built on shared alignment data can share blind spots that neither detects.

Validating a judge against human labels

Validation means collecting a set of items that humans have labelled, running the judge on the same items, and measuring agreement before the judge’s scores are used for any claim. Zheng et al. provide the reference point. On MT-bench, under their setup that excludes ties, GPT-4 agreed with human experts 85% of the time on the first turn, against 81% agreement between the humans themselves; on Chatbot Arena, GPT-4 pairwise agreement with human voters was 87%. The abstract summarises this as over 80% agreement, the same level as between humans.

Two cautions follow from that benchmark. First, human-human agreement is the ceiling worth comparing against: a judge that matches the level at which people agree with each other is doing about as well as an extra human rater, and a judge that falls well below it is not. Second, a high headline percentage on a general chat benchmark says little about a specialised task. A judge validated on conversational helpfulness has not been validated on grading chemistry records or clinical answers, and the validation set must come from the task the judge will actually be used for. HealthBench, which scores clinical LLM responses against physician-written rubrics, is one example of a medical evaluation where the quality of the grading rubric and its human validation are central to what the score means.

Which agreement statistic to use

Rao and Callison-Burch (“Agreement Metrics for LLM-as-Judge Evaluation: What to Report and Why”) show that on non-degenerate binary labels, Pearson’s r, Spearman’s ρ, Kendall’s τb, the phi coefficient and the Matthews correlation coefficient are the same statistic. Reporting several of them therefore adds no independent evidence. Cohen’s κ shares phi’s numerator but has a different denominator; the paper shows that |κ| is never larger than |φ|, with equality only when the judge’s and the human’s positive-label rates match, so the gap measures how far the judge’s positive rate has drifted from the human’s. Accuracy alone is unreliable on imbalanced criteria, and every symmetric statistic the paper covers cannot distinguish a judge that misses positives from one that over-predicts them, which is why a confusion matrix, or at least precision and recall, belongs alongside any single number.

Handling abstentions, ties and invalid outputs

Judges sometimes refuse, return an unparseable answer, declare a tie or say they cannot assess an item. Rao and Callison-Burch stress that the common handling modes estimate different quantities rather than being interchangeable preprocessing. Excluding abstentions estimates performance on the subset where both sides committed to a verdict. Recoding them as negative erases the signal that an abstention carries. Keeping them as a third category gives a three-class metric, such as multi-class κ or a weighted variant with an explicit weight matrix, which breaks the binary equivalences above. For pairwise judgments, the tie convention must be stated, because the binary equivalences apply only after ties are excluded or collapsed.

What to report: an eleven-item checklist

Rao and Callison-Burch give an eleven-item reporting checklist. The table below restates it in condensed form so that a methods section, a model card or an evaluation report can be checked against it.

#
Report
Why it matters

1
The judgment scale (binary, pairwise, ordinal, continuous, or nominal with abstention), before the metric
The right statistic depends on the scale

2
On binary data, only one of Pearson, Spearman, τb, φ or MCC (φ or MCC preferred)
They are the same statistic, so several create an appearance of corroboration

3
Accuracy together with a marginal-sensitive measure such as Cohen’s κ
Accuracy alone misleads on imbalanced criteria

4
The 2×2 confusion matrix, or at least precision and recall
Shows whether the judge is too strict or too lenient

5
How degenerate criteria (constant labels or predictions) are handled, with counts, marked NA rather than dropped silently
Prevents silent removal of hard cases

6
The abstention, tie and invalid-output handling mode for every reported number
Different modes estimate different quantities

7
Abstention, tie and invalid-output rates as metrics in their own right
A high abstention rate is itself a finding

8
If abstentions are excluded: covered-subset performance with coverage, and whether abstention tracks item difficulty
Subset performance generalises only under assumptions

9
For three-class or multi-class reporting, the weight or cost matrix
Weighted agreement is undefined without it

10
The aggregation level: micro, macro or item-level
The same data give different numbers at different levels

11
For judge ensembles, one primary inter-judge statistic and the per-judge confusion matrices
Separates ensemble agreement from individual judge behaviour

Beyond the checklist, the judge’s identity and version, the full judge prompt and rubric, the order-swapping policy and the size and provenance of the human-labelled validation set are the details a reader needs to reproduce or challenge the result. They follow from the sources above (prompt design changes consistency; position handling changes verdicts) even though the checklist itself concerns agreement metrics.

Where LLM-as-a-judge matters for research and safety evaluation

Judges are used wherever outputs are too numerous or too open-ended for human scoring. CASRAI’s news coverage of a preprint in which researchers used an LLM-as-a-judge framework to audit literature-mined chemistry data shows the research-data version: the judge replaces a human-curated ground truth that does not exist. Safety evaluation is the other major use. The garak vulnerability scanner is an example of tooling that probes a model and then needs a way to decide whether each response was a failure, which is the same measurement problem, and the Cloud Security Alliance article describes judges being used to monitor output during generation for harmful content, factual errors and privacy violations.

The safeguards this implies are those of any measurement process: a documented instrument, a validated protocol, an independent check and an honest account of error. Where a judge score is used to compare models, rank a leaderboard or support a statement that a system passed a safety threshold, the claim is only as strong as the validation of the judge. A related concept in CASRAI’s dictionary, bias audit (model), covers the broader practice of testing a model for systematic differences in behaviour; auditing the judge for position, length and self-preference effects applies the same discipline to the evaluator.

Where NIKOLAI fits

NIKOLAI is CASRAI’s own frontier-AI-safety dictionary: an independent, unendorsed reference for looking up how terms such as evaluation, safeguard and incident are used across labs, governments and standards bodies. It is not a standard. For this topic it is the place to look up the surrounding vocabulary when a report says a model was “evaluated” or “red-teamed” by an automated judge, and to check what that evaluation does and does not establish. The judge’s validation record, covered above, is what turns the word “evaluated” into a claim a reader can assess.

Common misunderstandings

“The judge is objective because it is automated.” A judge applies a learned preference consistently, but consistency is not validity. The measured position and verbosity effects above show that identical content can receive different verdicts depending on order or length.
“High agreement with humans on one benchmark means the judge is validated.” The 80%-plus agreement in MT-bench and Chatbot Arena was measured on general chat questions with specific models and prompts. It is a reference point for the method, not a certificate for another task or a newer model.
“Self-preference is proven.” The original authors state that their data cannot determine whether it exists. It is a risk to test, not an established effect to cite.
“Report every agreement metric to be safe.” On binary data several common metrics are mathematically the same statistic, so listing them together suggests more evidence than exists.
“Dropping unparseable judgments is harmless.” Excluding abstentions, ties or invalid outputs changes what the reported number estimates, and the handling mode has to be stated with the number.
“A bigger judge fixes everything.” In Zheng et al., GPT-4 was far more consistent than the other tested models, yet the authors still found it limited on maths grading and misled by context in some answers.

Sources