Every team building with LLMs eventually hits the same problem: they have thousands of outputs to evaluate, and only a handful of humans available to grade them. Human evaluation is expensive and slow. Automated metrics like BLEU and ROUGE barely work for generative text. Something has to score the outputs, and that something has become — increasingly — another LLM.
This is the LLM-as-judge pattern. One AI model evaluates the output of another AI model (or sometimes itself). It sounds circular — how can AI grade AI reliably? — but when done well, it's one of the most useful evaluation techniques in production AI today. This post explains what it is, why it works, where it breaks, and how to use it without being fooled.
What LLM-as-judge actually means
The pattern: you have an AI system that produces outputs — summaries, answers, code, translations, whatever. You want to measure how good those outputs are. Instead of hiring humans to read each one, you give the output to a separate LLM (the "judge") along with a scoring rubric and ask it to grade.
A simplified example of what the judge sees:
You are evaluating customer support responses.
Rubric (score 1-5 on each):
- Accuracy: Does the response correctly address the customer's issue?
- Clarity: Is it easy to understand?
- Tone: Is it professional and empathetic?
Customer question: "My order never arrived."
Response to evaluate: "I'm sorry to hear your order
hasn't arrived. Can you share your order number so I
can look into this for you right away?"
Rate the response and explain your reasoning for each criterion.
The judge returns scores and reasoning. You collect scores across hundreds or thousands of outputs. Patterns emerge: the system does well at clarity, mediocre at empathy, poorly at technical accuracy. You can now iterate on the system with real feedback instead of guessing.
That's the pattern. Simple to describe; nuanced to make reliable.
Why it works at all
The intuition behind LLM-as-judge working at all: modern LLMs are better at evaluating than generating in many domains. Writing a great customer support response from scratch requires creativity, judgment, and context. Reading a response and saying "this misses the apology but has correct info" requires only comprehension. The second task is easier for LLMs than the first.
This asymmetry — judging is easier than generating — is what makes LLM-as-judge viable. The judge can be the same model, a smaller model, or a different-family model, and often produces useful evaluations because the judging task is simpler than the generation task.
Published research (and lots of production experience) backs this up: when human evaluations and LLM evaluations are compared on the same outputs, agreement rates are often 70-85%. Not perfect, but comparable to inter-human agreement on subjective tasks, and dramatically cheaper. For most evaluation needs, that trade-off is fine.
Where LLM-as-judge is reliable
Not every evaluation task works with this pattern. The ones where it reliably does:
Clear-rubric evaluation. When you can write explicit criteria ("does the response contain all five required facts?"), the judge can check each criterion mechanically. These are the most reliable use cases.
Pairwise comparison. "Which of these two responses is better?" is easier than "rate this response 1-10 on an absolute scale." Judges are more consistent on comparative judgments than absolute ratings. Many production eval systems use pairwise comparison for exactly this reason.
Objective quality checks. Correctness of code (does it compile? does it pass tests?), accuracy of extracted data (does it match ground truth?), presence of required elements — things with ground truth or near-ground-truth answers. The judge is really acting as a checker here, which is a well-defined task.
Content moderation. Is this output safe to show? Does it contain PII? Does it match our content policies? These have well-defined rubrics and the judge can apply them consistently.
In each of these, the judge isn't making deep aesthetic judgments. It's applying rules or checking facts, which it's good at.
Where LLM-as-judge fails
The other side: situations where LLM-as-judge is unreliable enough that you shouldn't trust it without additional validation.
Deep expertise domains. Judging whether a legal argument is sound, whether a medical recommendation is correct, whether a scientific explanation is accurate — these need expertise the judge may not have. The judge will produce confident scores anyway, which look authoritative but may be wrong. For high-stakes expertise domains, LLM-as-judge should supplement human experts, not replace them.
Aesthetic judgments. "Is this writing elegant?" "Is this UI beautiful?" "Is this joke funny?" Judges have aesthetic preferences baked in from training data, and those preferences may not match yours. For subjective quality, human evaluation is still needed to anchor the judge's calibration.
Judging the judge's own weaknesses. If the judge model shares blindspots with the system being judged (both are Claude, or both are GPT, or both were trained similarly), it will systematically miss errors that both make. The judge can't catch what it also doesn't see. See the second-reader post for the related pattern.
Reward hacking. If you train your generator to maximize judge scores, the generator will learn to produce outputs that score well without necessarily being better. The judge becomes gameable. This is the classic Goodhart's law failure mode in AI eval.
LLM-as-judge is reliable for clear-rubric evaluation of outputs the judge is qualified to assess. It's unreliable for deep expertise, aesthetic judgment, or any situation where the judge shares blindspots with the thing it's judging.
Known biases in LLM judges
Research has identified several systematic biases that affect LLM judges. Knowing about them lets you design around them:
Position bias. In pairwise comparison, judges tend to favor the first-presented option (or sometimes the last, depending on the model). Counter: swap positions and ask the judge again; if the preference flips, the judge is position-biased on this comparison and the result is unreliable.
Length bias. Judges often rate longer responses higher, even when they're not better. Counter: include length-matched examples in your rubric, or normalize for length when scoring.
Self-preference bias. Judges tend to rate outputs from their own model family higher. GPT-4 judging GPT-4 output vs Claude output will often prefer GPT-4; Claude judging the same comparison may prefer Claude. Counter: use a judge from a different family than the generator, or use multiple judges from different families.
Reasoning bias. Judges rate outputs that show their work (step-by-step reasoning) higher than outputs that just give the answer, even when both answers are equally correct. Counter: either ask for consistent output format from both outputs being judged, or score reasoning quality separately from answer correctness.
Formatting bias. Judges favor well-formatted responses (bullet points, headers) over equally-correct unformatted ones. Counter: standardize formatting across responses before judging.
None of these biases are fatal, but all of them require awareness. Running LLM-as-judge without accounting for position/length/self-preference biases produces results that look rigorous and aren't.
How to run LLM-as-judge well
Six practices that separate reliable LLM-as-judge setups from unreliable ones:
- Write explicit rubrics. Vague instructions ("evaluate the response") produce inconsistent scores. Specific criteria with clear scoring guidance ("5 = all facts correct; 3 = minor inaccuracies; 1 = major factual errors") produce consistent scores.
- Validate against human scores on a sample. Have humans score 50-100 outputs. Have the LLM judge score the same outputs. Compare. If agreement is below 70%, your rubric or your judge needs work before you trust it at scale.
- Use pairwise comparison when possible. More consistent than absolute scoring. Also easier to validate — human-vs-LLM comparison on "which is better" is easier than on "rate 1-10."
- Debias systematically. At minimum, address position bias by swapping and averaging. Address self-preference by using a different judge family than the generator.
- Use multiple judges when stakes are high. Three judges, majority vote. Catches cases where a single judge has a strong idiosyncratic preference. More expensive but much more reliable.
- Monitor for drift. Judge model behavior can change over time (model updates, prompt caching effects, etc.). Re-validate against human scores periodically to make sure the judge is still calibrated.
None of these are optional. Skip one and you have a judge that produces numbers that look like data but don't correspond to anything measurable. All six together produce evaluations trustworthy enough to drive real decisions.
A concrete production pattern
What this looks like in practice, from a real evaluation setup we've seen work:
A customer-support AI generates responses. The team wants to track response quality over time and compare prompt variants. They set up LLM-as-judge like this:
- Judge model: Different family than the generator (Claude judges a GPT-based generator, or vice versa) to avoid self-preference bias.
- Rubric: Five criteria (accuracy, empathy, clarity, actionability, policy compliance), scored 1-5 each with explicit guidance for each level.
- Evaluation set: 500 real customer messages, held out from training. Same set run against each prompt variant.
- Pairwise comparison: For each customer message, judge compares the response from prompt A vs response from prompt B, scores both on the rubric.
- Position debiasing: Each pair is scored twice with positions swapped; disagreements flagged.
- Human validation: 50 random comparisons per month are scored by a human; agreement rate tracked to ensure judge remains calibrated.
This setup lets the team iterate on prompts weekly with real quality feedback, catches regressions early, and surfaces specific weaknesses (prompt B is clearer but less empathetic). It's not perfect — humans still need to spot-check — but it's dramatically faster than full human eval and reliable enough to make real decisions.
When human eval is still needed
LLM-as-judge supplements human evaluation; it doesn't replace it. Three situations where human eval remains essential:
Initial rubric design. You can't write a good rubric without first having humans evaluate outputs and figure out what matters. Human eval teaches you what to measure; LLM-as-judge then measures it at scale.
Validation and drift detection. Human scores anchor the judge. Without periodic human validation, you have no way to know if the judge is still calibrated.
High-stakes decisions. Any decision that will be hard to reverse (deploying a new model, approving a major prompt change) should have human eyes on representative samples. The judge gives you broad coverage; the humans give you confidence on the specific cases that matter most.
The pattern that works: humans design and validate; the judge scales. Humans do a small amount of highly-leveraged work; the judge does a large amount of mechanical work. Both are needed; neither alone is sufficient.
LLM-as-judge isn't AI replacing human evaluators. It's AI scaling what human evaluators do, with human evaluators keeping the system honest.
Where this fits in the eval landscape
LLM-as-judge is one technique in a broader eval ecosystem. Rough map of alternatives and when each applies:
- Ground-truth automated eval: Best when available. Exact-match comparisons, test suite pass rates, metric calculations against known-correct answers. Most reliable, but only works when ground truth exists.
- Classic text metrics (BLEU, ROUGE): Fast and cheap, but weakly correlate with quality for most generative tasks. Mostly superseded by LLM-as-judge for anything beyond translation.
- LLM-as-judge: Covered above. Best for subjective-but-rubric-able evaluation at scale.
- Human eval: Still the gold standard. Expensive. Used for rubric design, judge validation, and high-stakes decisions.
- User signals in production: Thumbs up/down, abandonment rates, follow-up questions. Noisy but captures real user preference.
Most mature AI systems use several of these in combination. Ground-truth eval for the parts that have ground truth; LLM-as-judge for the parts that need rubric evaluation at scale; human eval for calibration; user signals for ultimate validation. Each layer catches what the others miss.
The takeaway
LLM-as-judge is a legitimate evaluation technique, not a shortcut or a hack. When implemented well — explicit rubrics, debiasing, human validation, multiple judges for high-stakes — it produces evaluations reliable enough to drive real decisions. When implemented naively — vague rubrics, single biased judge, no human validation — it produces numbers that look like data but don't correspond to anything useful.
The pattern is here to stay because the alternative (manual human evaluation at scale) isn't economically feasible for most production AI systems. The question isn't whether to use LLM-as-judge; it's how to use it well. The practices above are the difference between "we have an eval system" and "we have an eval system that works."
Understanding LLM-as-judge is quickly becoming essential for anyone building with AI. It's one of the few techniques that lets a small team evaluate the thousands of outputs modern AI systems produce. Done right, it enables real iteration and improvement. Done poorly, it produces false confidence in a system that may be getting worse without you knowing.