AI Dojo Open on the typewriterThe typewriter

Explainer

LLM-as-a-judge (AI judge)

2 min read
Assumes: you know what an evaluation rubric is.
First published 29 October 2026. Last edited 19 November 2026.

Asking a language model to grade AI answers against your written rules. Its verdicts have an error rate, so check them against answers you labelled yourself.

Use a program when a rule can be checked mechanically, such as whether a price field equals 500. Use an AI judge for rules that need reading, such as whether an answer covers both parts of a question. Give it the question, the evidence, your rules and, when the task has one, a correct answer for comparison. Ask for its reasons first and a verdict for each rule last: pass, fail or cannot tell. Treat each reason as a claim to check against the evidence, not a record of how it decided. Send cannot-tell verdicts to a person, and count them apart from passes and fails. Anthropic's evaluation guide calls code-based grading the fastest and most reliable, and asks for detailed, clear rubrics when a model grades.

Then grade the grader. Label a set of answers yourself, including known failures, before you look at its verdicts. Count false passes (bad answers it passed) and false fails (good answers it failed) separately. One agreement figure can hide every failure: if 90 of 100 answers are good, a judge that passes everything agrees 90% of the time (hamel.dev).

Judges have known weak spots. They struggle with questions they cannot answer themselves, and a correct reference answer narrows that gap (Krumdick et al. 2025). Swapping two answers can change a judge's pick, and which position it favours depends on the judge (Wang et al. 2023). Longer answers can win more often (Dubois et al. 2024), and text inside an answer can steer the verdict (JudgeDeceiver). Record the judge model and its instructions, and check again after either changes.

Going deeper

An often quoted 2023 result found GPT-4 agreed with human preferences over 80% of the time, about as often as people agreed with each other. That figure excluded ties. With ties counted, GPT-4 and people agreed about 66% of the time, close to the 63% to 67% at which people agreed with each other (Zheng et al. 2023, arxiv.org). Early work also found judges favour their own writing. A 2025 study found that for stronger models, much of that preference matched genuinely better answers on tasks with checkable answers, with the harm concentrated where the judge was itself wrong (Chen et al. 2025). Advice differs on whether the judge should be a different model from the one that wrote the answers: Anthropic calls it general best practice, while practitioners report the same model often works once checked against human labels (hamel.dev). A panel of several smaller judges from different families showed less bias than one large judge in one study (Verga et al. 2024, arxiv.org). Training a model against a judge's score teaches it the judge's blind spots; see reward hacking.

In the evaluations lesson: Let an AI judge grade, then check it. For training, see Did it work?.

Changes

  • 2026-11-17: Corrected two claims: the 2023 agreement figure excluded ties and is now given with its conditions, and judges do not all favour the first answer; the favoured position depends on the judge.