What is LLM-as-a-judge?
LLM-as-a-judge is an AI evaluation method in which a language model, known as a judge, applies defined criteria to one or more AI-generated outputs and returns a score, classification, ranking, or preference, often with a concise justification. The judge can use additional material, such as the original request, a rubric, supporting context, or a reference answer, to evaluate the output before producing a structured judgment.
Research on LLM-as-a-judge describes similar evaluator setups and examines how judge models behave across different scoring tasks.
For example, a legal team could create a rubric and ask a judge model whether a generated contract summary identifies every required clause and supports each conclusion. The resulting score indicates how well the output performed under that evaluation setup. Importantly, the judge doesn't provide ground truth, as it can misunderstand the rubric, overlook an error, or reward the wrong property.
What does LLM-as-a-judge measure?
Once a judge has the task, evidence, and scoring criteria, the next question to consider is what its verdict actually represents. An LLM judge measures specific qualities defined by the evaluation rubric rather than a universal concept of quality.
Common dimensions include:
- Correctness or task success: Does the response satisfy factual or task-specific requirements? For example, a finance evaluation might check whether the model calculated a margin correctly using the supplied figures.
- Instruction following: Does it follow the requested constraints, format, and process? A judge could verify whether a response stayed within a word limit, used the required structure, or followed a specified sequence of steps.
- Relevance: Does it address the task without unrelated material? A customer-support response, for instance, should answer the user's question without introducing information that doesn't help resolve the issue.
- Completeness: Are all required components present? A legal summary might need to identify every clause listed in the rubric rather than covering only the most obvious provisions.
- Consistency and groundedness: Are claims supported by the supplied context or sources? A retrieval augmented generation (RAG) evaluation can check whether an answer is consistent with the retrieved documents instead of introducing unsupported information.
- Citation quality: Does each cited source support the associated claim? A judge could verify that a cited contract section actually contains the obligation described in the response.
- Coherence and clarity: Is the response understandable, organized, and internally consistent? An LLM evaluation might flag an explanation that reaches the correct conclusion but contradicts itself along the way.
- Safety or policy compliance: Does it satisfy defined behavioral requirements? A support chatbot could be evaluated on whether it avoids prohibited disclosures or follows required escalation rules.
- Preference or overall quality: Which candidate best satisfies a specified standard? Teams might compare two responses and ask the judge which one is more accurate, complete, and clear.
Individual judgments can be aggregated into pass rates, average rubric scores, win rates, or regression rates. In addition, a text-only judge doesn't inherently measure latency, inference cost, business impact, or whether an agent completed a real-world action. Those require separate instrumentation or evidence supplied to the evaluator.
How does LLM-as-a-judge work?
Defining what to measure is only part of the process. Teams also need a consistent way to complete the full evaluation, including standardizing the rubric, gathering the right evidence, and validating the results. In practice, here's what a repeatable scoring pipeline may look like:
- Define the standard: Specify the criteria and scoring rules that describe successful performance, as an unclear rubric can lead to inconsistent judgments.
- Assemble the evidence: Provide the candidate output and, when useful, the original input, references, retrieved context, or competing output. Missing or misleading context can affect the judge's assessment.
- Run the judge model: Ask the model to apply the rubric and use the supplied evidence.
- Return a verdict: Produce a score, category, pass/fail result, ranking, or preference, optionally with a concise rationale. The judge may return inconsistent formats or explanations that sound more certain than the evidence supports.
- Validate and monitor: Compare judgments with qualified human labels, inspect disagreements, and track changes across judge or prompt versions. Calibration can drift over time as models, prompts, or evaluation criteria change.
Each step changes what the final evaluation will be. The same candidate output can receive different scores if the rubric, supporting evidence, option order, or judge model changes. Also, remember that the judge may introduce bias or lack the domain knowledge needed to assess the output accurately.
Evaluation prompts and rubrics
The evaluation prompt tells the judge what good performance looks like and what evidence it should consider. A useful rubric should be specific rather than vague.
For example, a vague statement such as "rate this answer" leaves the standard undefined. Instead, ask about specific details such as whether a legal summary identifies five required issues, grounds each conclusion in the provided contract, or avoids unsupported advice. With explicit, detailed evaluation criteria, the judge can score each point separately rather than guessing at overall quality.
Prompt wording, examples, scoring scales, and candidate ordering can affect the result. A concise justification or structured output can make the verdict auditable; exposing a model's full chain of thought is neither necessary nor proof of correctness.
Model scoring and validation
Depending on the decision, the judge may return a scalar score, pass/fail judgment, category, ranking, or pairwise preference. Explanations can help reviewers locate the judge's reasoning and diagnose errors, but a persuasive explanation does not validate the score.
Validation requires an expert-labeled sample that represents the actual task. Teams should compare model judgments with those labels, refine the rubric, repeat ambiguous cases, and review disagreements.
The original MT-Bench and Chatbot Arena study evaluated LLM judges against expert and crowd preferences and documented position, verbosity, self-enhancement, and reasoning limitations. The combination of agreement testing and explicit failure analysis is more informative than a single headline agreement rate.
Types of LLM-as-a-judge evaluations
The same judging method can be configured differently depending on what a team needs to compare and what evidence is available. Some judges choose between competing outputs, while others score a response against defined criteria with or without a reference. The main approaches include:
- Pairwise comparison: The judge sees two candidate outputs and selects the stronger one based on the given criteria. Teams can use pairwise evaluation to compare model versions, prompts, or system configurations during development.
- Reference-free evaluation by criteria: The judge scores an output against qualities defined in the rubric, such as relevance, clarity, completeness, or instruction following, without comparing it with a predefined correct answer. This approach works well for open-ended tasks where several responses may be valid.
- Reference-based evaluation by criteria: The judge evaluates an output using additional evidence, such as a reference answer, source document, original question, or retrieved context. Teams can use this approach to assess correctness, groundedness, citation support, or whether a response accurately reflects supplied material.
These approaches can also support different stages of evaluation. For example, pairwise comparisons can be useful during development to compare alternatives, and criteria-based scoring can help compare offline and sampled production outputs. The right evaluation approach depends on the decision being made and the evidence available to support the judgment.
LLM-as-a-judge use cases
Once teams choose an evaluation format, they can apply it across many stages of AI development and deployment. LLM judges are especially useful when qualitative judgment must be applied repeatedly across many outputs. Here are some use cases to consider:
- Model comparison: Compare candidate models against the same task-specific criteria. A team choosing between two models might score both on accuracy, completeness, and instruction following using the same evaluation set.
- Regression testing: Detect quality changes after a model, prompt, or pipeline update. A judge can flag situations in which a new release produces less accurate summaries or doesn't include required information from the previous version.
- Prompt evaluation: Score whether different prompts produce more useful or compliant responses. Teams might test several prompt versions to see which one consistently produces answers that follow formatting rules and cover required points.
- RAG evaluation: Assess groundedness, relevance, completeness, and citation support. A judge can check whether answers are accurate compared to retrieved documents and whether cited sources actually support the claims they accompany.
- Production monitoring: Sample live outputs and flag possible failures for review. Customer-support responses, for example, could be screened for unsupported claims, missed instructions, or other defined quality issues.
- Benchmark grading: Apply a fixed rubric across models and releases. The same criteria can be used to score responses from multiple systems on a shared set of tasks, making performance easier to compare over time.
- Agent evaluation: Judge final outputs or trajectories when the necessary evidence is available. An evaluation might assess whether an agent completed the requested task, used approved tools, or followed the required sequence of steps.
- Expert-review triage: Screen large output sets so that specialists can focus on disagreements and high-risk cases. A legal team could route responses with questionable citations or judgments with low confidence to attorneys for closer review.
The criteria must reflect the context of the work. A legal evaluation may emphasize source accuracy and application of the correct standard. However, a coding evaluation may instead emphasize functional correctness and adherence to hardware or software requirements.
An LLM judge can evaluate cases against defined criteria, but it should not independently make consequential medical, legal, financial, employment, or compliance decisions.
LLM-as-a-judge vs. human evaluation vs. traditional metrics
LLM-as-a-judge works best as one part of a broader evaluation system. Each method offers different strengths depending on the type of output, level of risk, and evidence available.
| Method | Best suited for | Strengths | Limitations |
|---|---|---|---|
| LLM-as-a-judge | Open-ended outputs scored against explicit criteria | Scalable, flexible, fast to rerun | Sensitive to rubrics, prompts, model versions, and bias |
| Human evaluation | High-stakes, novel, or domain-specific judgments | Nuanced expertise and accountability | Slower, costlier, and subject to reviewer variation |
| Traditional metrics and deterministic checks | Tasks with known answers or machine-verifiable rules | Fast, reproducible, and easy to audit | Too rigid for many qualitative or open-ended outputs |
Strong evaluation systems combine all three methods. Deterministic checks can verify format, calculations, tool results, or known answers. LLM judges can score open-ended qualities across a larger sample, while qualified humans can define the standard, calibrate the judge, and review cases where context, risk, or disagreement makes automated scoring insufficient.
This broader AI evaluation guide explains how these layers support different deployment decisions.
Why use LLM-as-a-judge for AI evaluation?
Teams that need more flexibility than deterministic checks and cannot send every output to a human reviewer will find value in LLM-as-a-judge. Used between those two approaches, an LLM judge can extend qualitative evaluation across much larger sets of outputs. The method can:
- Scale qualitative evaluation across large output sets.
- Apply the same rubric repeatedly.
- Support task- and domain-specific criteria.
- Speed up model, prompt, and agent iteration.
- Evaluate dimensions that exact-match metrics miss.
- Prioritize cases that need deeper human review.
However, these benefits are conditional. Using a vague rubric only scales ambiguity, and running an uncalibrated judge will produce unverified scores.
Reliability depends on representative test cases, version-controlled prompt and judge configurations, and validation from qualified reviewers. LLM-as-a-judge is only one layer in an evaluation system, not a standalone source of truth.
What are the limitations of LLM-as-a-judge?
The same flexibility that makes LLM judges useful also creates challenges with reliability. Their scores depend on how the task is framed, what evidence they receive, and how the judge model interprets the rubric. Important failure modes include:
- Position or ordering bias: A pairwise judge may favor an option because of where it appears. A systematic study of position bias found that the effect varies by judge and task.
- Verbosity and style bias: Longer, more polished, or more structured responses may be rewarded even when they're not more correct.
- Self-preference or model-family bias: Judges may favor familiar output patterns. Research on self-preference bias links higher ratings to lower-perplexity text, regardless of whether the output was actually self-generated.
- Prompt and rubric sensitivity: Small changes to wording, examples, or scales can change results.
- Run-to-run inconsistency: LLMs can produce different judgments for the same case across repeated evaluations.
- Correlated errors: A judge may share blind spots with the model that generated the candidate text, especially if they come from similar model families or training data.
- Insufficient domain expertise: A general model can miss errors that a qualified specialist would catch.
- Cost and latency: Large judges, repeated runs, and multi-judge panels can become expensive at production scale.
To reduce the chance of errors, target specific failure modes. For example, try some of these actions:
- Swap the candidate order.
- Blind model identities.
- Score criterion by criterion.
- Repeat uncertain judgments.
- Use independent judges.
- Calibrate against expert labels.
- Send disagreements to human review.
Use version control for the judge model, prompt, rubric, and scoring logic so historical comparisons remain possible. Finally, before trusting a judge-generated metric, consider what it was validated against and how often it disagrees with qualified reviewers.
How expert-built rubrics improve LLM-as-a-judge evaluation
Subject-matter experts can turn requirements into testable criteria. An LLM judge can then apply those criteria across many outputs for model comparison, regression testing, or production monitoring. Experts define and validate the standard, and the judge applies it at scale.
As an example, a finance specialist can require reconciled figures, or an attorney can specify the authorities and exceptions a legal answer must address. Their expertise determines what a judge's score represents.
Mercor uses this relationship in APEX benchmarks and enterprise evaluation work. In the original AI Productivity Index methodology, domain experts created tasks, evidence, and prompt-specific rubrics, while LLM judges applied those criteria. For organizational workflows, expert-built evaluation can support offline benchmarks and live production rubrics.
Build reliable AI evaluations with expert-defined standards
Define success for your workflow, then build repeatable expert-authored evals.
Interested in learning more?
