LLM as a judge means using a language model to grade the output of another AI system. You give the judge the input, the output and a rubric, and it returns a verdict: pass or fail, a score, or which of two answers is better. It lets you check thousands of outputs that no team could read by hand.
It works, with limits. In the study that popularized the method, a strong judge agreed with human experts about as often as the experts agreed with each other. The same study showed that judges favor answers by position and length. This guide covers how LLM judges work, where they go wrong and how to build one your team can trust on its own work.
How an LLM judge works
Zheng and colleagues, in their 2023 paper on MT-Bench and Chatbot Arena, described three common setups. In single-answer grading, the judge scores one output on its own. In pairwise comparison, it sees two outputs for the same input and picks the better one, or calls a tie. In reference-guided grading, it gets a correct answer to compare against.
Pick the setup by what you're deciding. To decide whether a single output is good enough to send, use single-answer grading against clear criteria. To compare two models or prompts on the same task, pairwise comparison is often more sensitive. When there's a known right answer, such as a figure pulled from a document, give the judge the reference.
How well LLM judges agree with people
On the MT-Bench data, GPT-4 agreed with human experts on 85% of comparisons where neither side was a tie, against 81% agreement among the experts themselves. The authors concluded that a strong judge can approximate human preferences at scale.
Later work is more cautious. A 2024 study by Thakur and colleagues tested 13 judge models on a task where people agreed with each other strongly. Only the best and largest judges reached reasonable alignment with humans, and even they stayed well behind human agreement, with scores that could differ from human scores by up to five points. The authors also warn that a high percent agreement can hide judges that assign very different scores, so use more than one agreement measure.
The practical lesson: agreement on a public benchmark doesn't tell you how a judge will do on your task. You have to measure it.
Where LLM judges go wrong
Position bias. Judges tend to prefer an answer because of where it appears. In the MT-Bench tests, GPT-4 gave the same verdict after the two answers were swapped in 65% of cases with the default prompt, and Claude-v1 in under 24%.
Verbosity bias. Judges can prefer longer answers even when the extra length adds nothing. When the researchers padded answers with a reworded copy of their own lists, Claude-v1 and GPT-3.5 preferred the padded version in over 91% of cases. GPT-4 resisted far better, failing in under 9%.
Self-preference. Some judges appeared to favor answers from their own model family, though the MT-Bench authors said their data was too limited to confirm it.
Leniency. Thakur and colleagues found that judges tend to pass answers a person would fail, which matters most when the judge is the gate before output reaches a customer.
Weak grading of reasoning. On a set of math questions, GPT-4 marked a wrong answer as correct in 14 of 20 cases with a plain prompt. Asking it to reason first cut that to 6, and giving it a reference answer cut it to 3.
Source: Zheng et al., Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (2023).
How to build a judge you can trust
Start with your own examples. Pull real inputs and outputs from production and have the people who know the work label them pass or fail, with a short reason. Fifty to a hundred labeled examples is enough to start finding where a judge disagrees with them.
Write yes-or-no criteria. A question such as "Does the reply quote the customer's order number?" is easier for a judge and a person to apply the same way than "Rate the reply from 1 to 10". If you need a scale, describe what each level looks like. Expect the criteria to change as you grade: Shankar and colleagues call this criteria drift, and found that people refine what "good" means by looking at real outputs.
Ask for reasoning before the verdict, and give the judge a reference answer whenever one exists. Use a fixed output format so the verdict is easy to read by code.
Design around bias instead of telling the judge to ignore it. For pairwise comparisons, run each pair twice with the order swapped, and count a win only when the judge picks the same answer both times. The MT-Bench authors treat a disagreement after the swap as a tie.
Measure the judge against your labels, criterion by criterion, before you rely on it. Fix the worst criterion first, then check again. Keep a set of labeled examples the judge never saw while you tuned it, so you know how it does on new work.
Use code where code works. Format checks, exact matches, valid JSON and required fields don't need a model. Anthropic's guide to building evaluations recommends automating grading where you can, with code-graded and LLM-graded checks as two of the options. Save the judge for qualities only a reader can assess, such as tone, faithfulness to a source or whether a reply answers the question.
Keep the judge honest in production
A judge is part of your system, so it can drift too. Re-check it against fresh human labels on a regular schedule and whenever you change the judge model, its prompt or the model it grades. Send the cases where the judge is unsure, or where it disagrees with a spot check, to a person. Those cases are also the best new examples for your labeled set.
A trusted judge is what makes the rest of model improvement safe. It's how you know whether a new prompt, a different model or a fine-tuned specialist does the job as well as what you run today. For more on evaluation as a whole, read our guide to LLM evaluation.
Where Orchestra fits
Orchestra measures each AI workflow against your team's definition of success, then tests other models against that baseline before anything changes. Your domain experts define what a good result looks like, and that definition becomes the grading used on real production work. For how this works in practice, read How production traces become evals.
What is LLM as a judge?
It's a way of evaluating AI output by asking a language model to grade it. You give the judge model the input, the output and a rubric, and it returns a verdict such as pass or fail, a score, or which of two answers is better.
How accurate are LLM judges?
It depends on the judge, the task and the rubric. In the MT-Bench study by Zheng and colleagues, GPT-4 agreed with human experts 85% of the time on non-tied comparisons, slightly more than the experts agreed with each other (81%). A 2024 study of 13 judge models found that only the best and largest came close to human judgments, and even they fell short of how often people agree. Measure your own judge against your own labels.
What biases do LLM judges have?
The best documented are position bias (preferring the answer shown first or second), verbosity bias (preferring longer answers), a possible preference for their own outputs, and leniency (passing work a person would fail). They also make mistakes grading math and reasoning unless they get a reference answer.
Should the judge be a bigger model than the one it grades?
Often, but not always. Research so far finds the strongest general models make the most reliable judges. Open models trained specifically to evaluate, such as Prometheus 2, are another option when you want to run the judge yourself. Pick the judge by how well it agrees with your labeled examples, not by its size.
Can an LLM judge replace human review?
Not entirely. A judge lets you grade far more output than people can, but people still write the rubric, label the examples the judge is checked against, and review the cases where the judge and humans disagree.
Follow the evidence.
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (2023)
- Thakur et al.: Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judges (2024)
- Shankar et al.: Who Validates the Validators? (2024)
- Kim et al.: Prometheus 2, an open evaluator language model (EMNLP 2024)
- Anthropic: Define success criteria and build evaluations
- How production traces become evals
- Domain experts, not ML teams, should define the reward signal
- Orchestra platform