LLM as judge
Using a model with a rubric to grade another model’s output.
LLM as judge means using a language model with a written rubric to grade another model’s output. It is useful where exact checks are impossible: tone, faithfulness to a source, whether an answer covers the question. The judge needs a precise rubric and its own checks: a judge that agrees with everything measures nothing.
The method was studied in Judging LLM-as-a-Judge (Zheng et al., 2023). GPT-4 as judge agreed with human preferences over 80% of the time, about as often as humans agree with each other. The same paper names the biases to control: position (preferring the first answer in a pair), verbosity (preferring longer answers) and self-enhancement (preferring its own answers). In practice: swap the order in pairwise comparisons, ask for a score per criterion with a short reason, and grade with a different model from the one being tested when you can.
The judge is one grader inside your evals. It does not replace human evaluation, which is how you calibrate it. When the verdict goes back to the generator for another attempt, the setup becomes an evaluator-optimizer loop; when it only picks among several drafts, it is best-of-n. Where code can check the result (valid JSON, passing tests), prefer code.
Sources
Related terms
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Prompt regression: An answer that used to be right goes wrong after a change to the prompt or the model.
- Adversarial review (cross-model review): Asking a second AI model, or a fresh agent, to find what is wrong with a change before a person reviews it, instead of asking the author to check itself.
- Faithfulness (groundedness): A RAG metric: the share of claims in an answer that are supported by the retrieved sources, not by the model’s memory or invention.
- Human evaluation: People, ideally domain experts, grading AI outputs against a written rubric; the reference that automated metrics are checked against.
- Evaluator-optimizer (maker-checker): One model drafts, another checks the draft against stated criteria and returns feedback, in a loop until it passes or a round limit stops it.
- Best-of-N sampling: Generating several answers to the same prompt and keeping the best one, chosen by a test, a score or another model acting as judge.
