Technique · 38 studies

LLM-as-a-judge: how to build a grader you can trust

LLM-as-a-judge uses a model to score, rank or compare outputs against criteria. It approaches human agreement when the prompt asks a pairwise or rubric question with discriminating criteria, puts the reasoning before the verdict and averages several ratings; a bare 'rate this 1-10' mostly measures how persuasive the text sounds.

Also called: LLM evaluator, rubric grading, pairwise comparison, AI grader

What LLM-as-a-judge is

LLM-as-a-judge means asking a model to score, rank or compare outputs instead of producing them: grading essays or support replies, picking the best of several drafts, reviewing code or summaries against a standard. Its appeal is scale and a written rationale; its weakness is that the model reads text rather than measuring truth.

A judge prompt has four parts you control, and the studies in this hub test each of them:

  • Question format: an absolute score, a pairwise choice, or a pass/fail per criterion.
  • Criteria: a rubric with anchored levels, or the model's own idea of quality.
  • Output order: reasoning before the verdict, or after it.
  • Sampling and isolation: one call or several, all criteria together or one per call.

Why rubrics and comparisons turn an opinion into a measurement

Without criteria, a judge applies its own hidden theory of quality. In the codebook study on user stories, LLM evaluations approached human level only when the prompt carried a codebook: named criteria, a small scale and calibration examples for each level. The same study flags what stays hard: models grade structure and form well and the quality of a rationale poorly.

Criteria also have to discriminate. The Recursive Rubric Decomposition study found that generic LLM-written criteria such as "the answer is helpful" cut GPT-4o's agreement with humans from 55.6% to 42.9%, worse than no rubric, because they fit almost every answer. Splitting each broad criterion until it separates the candidates, dropping duplicates and weighting correlated items raised agreement to 73.3% on JudgeBench. A cheap version of the idea from the RewardBench 2 study: one sentence naming the dimension that matters most added +3 pp of accuracy at no cost.

The question format matters as much as the criteria. In a best-of-N study on Chatbot Arena prompts, a 0-100 score produced only about 20 distinct values, so 67% of comparisons ended in ties and the judge delivered 21% of the value of a perfect choice. Asking "A, B or tie?" cut ties from 60% to 4% and raised that value to 61%.

Design choices that tested well

  1. Explain first, score last. In a production judge study, six rounds of rubric rewrites barely moved agreement with experts; swapping two output fields so the reasoning came before the score raised it from 43% to 52%. A score written first becomes a position the explanation has to defend.
  2. Hints for what is missing. Judges see what is written and miss omissions. In Analytic Hints, production LLM judges caught only 45-53% of planted bugs in COBOL programs with a generic prompt; feeding the findings of a checklist pass into the prompt as hints raised coverage to as much as 94%, while the models kept only 67% of their own original findings.
  3. Several ratings, averaged. In the RewardBench 2 study, eight independent ratings added +9.8 pp and, together with the criterion sentence, +11.9 pp over a 71.7% baseline.
  4. One criterion per call. When many criteria are scored in one answer, an early high score pulls the later ones up. The multi-agent evaluation framework cleans the text first, then runs one isolated agent per criterion, each with low, medium and high examples.
  5. Your own answer before the candidate's. For checkable tasks, have the judge write its own answer before it reads the one it is grading; the verification-asymmetry study explains why, and the verification prompts page covers the method.

When it helps and when it hurts

Judges work best on checkable criteria with an explicit rubric. Grading written work against a reference answer, GPT-4o reached a 0.98 correlation with instructors in a course-grading study, but only 55% exact agreement, and it graded lower than humans in 39% of cases. For subjective criteria the scale itself matters: a 0-5 scale tracked human ratings better than 0-10 in the scale comparison. The studies disagree on calibration examples: the codebook study treats per-level examples as essential, while the RewardBench 2 study found no reliable gain from them once ratings were averaged.

The counter-evidence is serious. In a code-generation judge study, models approved buggy code that looked right, including code they wrote themselves. In the verification-asymmetry study, three different judge models accepted more than half of deliberately wrong answers: they scored persuasiveness, not correctness. A judge allowed to overrule a majority vote scored 10 points below the majority vote; restricting it to overrule only with a verbatim quote made it the best option tested. A SQL-checking judge wrongly rejected correct answers in 77% of hard cases by inventing rules from unfamiliar data values. Splitting a holistic verdict into separate criteria reduced self-preference bias by 31.5% in a self-preference study, but did not remove it.

The working rule these papers support: use a judge to rank and explain, prefer pairwise or rubric formats, sample more than once, and require evidence (a quote, a recomputation, an independent answer) before a judge's verdict overrides anything that matters. Specific biases are covered on the LLM judge bias page.

What the studies measured

StudyLab scoreFindingEffect
LLM-Judge Scores Lie: Pairwise Comparison Works Three Times BetterMar 12, 2026 91 Switching from a 0-100 score to 'A, B or tie?' cut ties from 60% to 4% and raised the value of best-of-N selection from 21% to 61% of a perfect choice. Helps
RRD (Recursive Rubric Decomposition): Recursively Splitting Evaluation Criteria for Accurate LLM JudgmentFeb 4, 2026 80 Generic LLM-written rubrics cut GPT-4o's agreement with humans from 55.6% to 42.9%; recursively decomposed, filtered and weighted criteria raised it to 73.3% on JudgeBench. Mixed
Criteria + Ensemble: How to Make LLM Ratings ReliableApr 15, 2026 87 One criterion sentence added +3 pp and eight averaged ratings +9.8 pp, together +11.9 pp over a 71.7% baseline; calibration examples gave no reliable gain. Helps
Analytic Hints: Making an LLM Judge Sharper with Structured HintsDec 18, 2025 84 Injecting checklist findings as hints raised planted-bug coverage from 45-53% to as much as 94%, while models kept only 67% of their own original findings. Helps
Judge output order: why an LLM should explain itself before scoringSep 2, 2026 75 Putting the reasoning before the score raised agreement with experts from 43% to 52% after rubric rewrites had failed. Helps
A rubric in the prompt: the LLM evaluates texts at an expert levelJul 20, 2025 83 A codebook with criteria, a small scale and per-level examples brought LLM evaluation of user stories close to human level; rationale quality stayed hard to judge. Helps
Verification Asymmetry: LLMs Judge Persuasiveness, Not Correctness — And How to Fix ItJul 7, 2026 91 Three judge models accepted more than half of deliberately wrong answers; having the judge write its own answer first cut false positives from 72% to 1.2%. Hurts
EL-DGR (Evidence-Locked Derive-Gate-Repair): A Judge With No Right to Overrule the Consensus Without EvidenceAug 7, 2026 76 A judge with full authority over a pool of answers scored 10 points below majority vote; limiting it to evidence-backed overrides made it the best selector. Hurts
GRADE-HALLUCINATION: how an LLM judge invents rules that were never in the taskSep 9, 2026 84 An SQL-answer judge wrongly rejected correct answers in 77% of hard cases by inventing rules from rare but legitimate data values. Hurts
Self-Preference Bias + Structured Multi-Dimensional Evaluation: Why a Strong Model Is an Unfair Judge, and How to Fix ItApr 24, 2026 90 Stronger models showed more self-preference bias; scoring five separate criteria instead of one holistic verdict reduced it by 31.5%. Hurts
LLM-as-a-Judge: The Model Approves Bugs It Wrote ItselfJul 22, 2025 72 LLM judges were over-optimistic on code generation and summarization and often approved incorrect code, including their own. Hurts
LLM-as-a-Grader: Automated Grading of Written Work with GPTNov 13, 2025 74 GPT-4o grading against a reference answer reached a 0.98 correlation with instructors but 55% exact agreement, grading lower in 39% of cases. Mixed
A 0-5 Scale Maximizes Agreement Between LLMs and Humans When GradingJan 6, 2026 72 On subjective criteria a 0-5 scale gave better agreement with humans than 0-10; on objective criteria the scale barely mattered. Helps
A Multi-Agent Framework for Evaluation: Splitting a Hard Judgment Across Independent AgentsFeb 2, 2026 86 Running one isolated agent per criterion, each with three calibration examples, avoids the halo effect of scoring many criteria in one prompt. Helps
PlanJudge: Two-Stage Evaluation to Reduce Bias in Reasoning ModelsJan 7, 2026 83 An explicit evaluation plan with primary and secondary criteria reduced length and structure bias by 16-32% in reasoning models. Helps
RTLC (Research, Teach-to-Learn, Critique): A Three-Stage Feynman-Style Prompt for Accurate JudgmentsMay 13, 2026 88 Asking the judge to explain the topic to a beginner and find gaps before deciding added +9.4 pp of judgment accuracy. Helps
Overwhelmed by Choice: Why an LLM Gets Worse at Picking the Right Option as the Options Pile UpSep 26, 2026 85 Tournament rounds and shuffled voting delivered +20 pp over a single prompt when picking the best of 160 options. Helps
Inference-Aware Judge: A Content-Checking Prompt That Doesn't Penalize Expert InferenceApr 16, 2026 88 An automated judge flagged 35% of summary claims as hallucinations where experts found 9%; a five-tier definition of 'supported' plus a checking protocol cut false positives fourfold. Helps
Reflect-and-Revise: Iteratively Improving Scoring Criteria by Reflecting on MistakesOct 1, 2025 93 Comparing the model's scores with reference scores and rewriting the rubric over 3-10 iterations turns a vague scale into explicit thresholds. Helps
Evaluative Fingerprints: Every LLM Judge Grades by Its Own Theory of QualityJan 8, 2026 90 Agreement between judge models was 0.04 while each model was consistent with itself; the judge model could be identified from its scores with 90% accuracy. Mixed
AMEL: The Accumulated History Effect, or Why LLM Ratings "Drift" Within a Single ChatMay 21, 2026 87 Rating items one after another in one chat drifted toward earlier verdicts, with runs of rejections weighing 1.6 times more; the effect saturated after 5 ratings. Hurts
Anchoring Bias in LLM Judges: Mentioning a Past Score Spoils the New ReviewAug 26, 2026 91 Mentioning a previous score in the prompt dropped GPT-4.1's probability of the top score from 93% to 0%, regardless of the anchor's value. Hurts
EditJudgeBias: How Multimodal AI Judges Get Thrown Off by Things That Have Nothing to Do With Edit QualityOct 1, 2026 80 Swapping the order of two image edits flipped up to 60.9% of verdicts for one judge; accept a winner only when both orders agree. Hurts
LLM as judge: pairwise comparison instead of a scale, plus a positional-bias checkJul 14, 2025 83 Pairwise comparison with a swapped-order rerun exposes positional bias: a verdict that changes with order was reacting to position, not quality. Helps
The Position Bias Test: How to Check That an LLM Judges on Substance, Not OrderJul 23, 2025 71 Asking the same comparison twice with the items swapped is a two-request test of whether the judgment rests on substance. Helps
MERG (Metacognitive Enhanced Rubric Generation): Forcing Knowledge Activation Before Evaluation — How to Get Honest Criticism from an LLM Instead of ComplimentsMar 11, 2026 90 Three AI judges gave a 9/10 to a pitch with an illegal business model; recalling domain knowledge and naming biases before scoring produced real criticism. Mixed
MRRG (Multi-Role Rubric Generation): evaluating text from five perspectives at onceJul 2, 2026 79 Generating a rubric from five narrow roles, each with 3-7 weighted binary criteria, produced sharper requirements than one generalist reviewer. Helps
AdaRubric: Grade Against Criteria That Actually Fit This TaskMar 22, 2026 79 Asking for task-specific criteria with weights before grading, then scoring each dimension in isolation, keeps one critical failure from hiding in the average. Helps
Rhetorical reward hacking: how a confident delivery fools an AI reviewer without changing the substanceAug 10, 2026 87 AI reviewers raised scores for confident framing without any change in substance; an evidence-demanding prompt lowered but did not remove the effect. Hurts
Adversarial Repackaging: How Presentation Shifts an LLM's Score Without Changing the SubstanceJun 11, 2026 82 Amplifying strengths raised LLM review scores consistently, while hiding weaknesses backfired in one case out of three. Hurts
LLM as a Judge: Rating Text Quality Better Than Any Automatic MetricJul 15, 2025 79 Combining step-by-step reasoning with good and bad benchmark examples outperformed automatic text-quality metrics. Helps
Judge, Not Advisor: An LLM Recommends More Accurately by Scoring Ready-Made CandidatesJul 9, 2025 70 Scoring ready-made candidates against a preference profile with two calibration examples ranked options better than asking for recommendations. Helps
The LLM judge: a structured error breakdown instead of prompt guessworkJul 24, 2025 72 Judging an answer in a fresh chat against an explicit criteria list produced a map of specific failures instead of 'not bad, could be better'. Helps
Structured Review via Decomposition: The LLM Finds the Main Problem, Not the First One It Trips OverJul 21, 2025 77 A list of specific aspects to check made models find structural failures they skipped under an open 'evaluate this text'. Helps
Structured Evaluation Framework: Personalized Grading of Work with ChatGPTOct 13, 2025 70 Assignment plus weighted criteria plus a fixed strengths/shortcomings/score/justification format produced consistent, actionable grades. Helps
Error Taxonomy: a Structured Checklist Turns an LLM From Cheerleader Into Strict AuditorJul 22, 2025 75 A skeptic role plus a taxonomy of 4-7 error types produced a strict, item-by-item critique instead of balanced praise. Helps
Context-driven prompting for evaluation tasks: how to turn an LLM's confident nonsense into a meaningful resultJul 8, 2025 72 With sparse context, GPT inflated scores for candidates human recruiters rejected; a detailed context block and an explanation of point allocation stabilized ratings. Helps
Clarity Scoring: An LLM as the Judge of Clarity, and Why It Matters More Than CharismaApr 6, 2026 76 Two LLM scores for clarity and structure tracked real audience response on TED talks better than readability formulas. Helps

Prompts to copy

Pairwise comparison with a tie option and confidence

Evaluate two versions of {what_we_compare}.

Version A:
{version_A}

Version B:
{version_B}

Selection criterion: {criterion}

First explain how they differ on this criterion.
Then give your verdict: A / B / TIE.
Rate your confidence: 1 (nearly equal) — 5 (clear winner).

From: LLM-Judge Scores Lie: Pairwise Comparison Works Three Times Better

Two-stage review: checklist pass, then analysis with hints

Evaluate {object of evaluation} in two stages:

STAGE 1 — Quick check against the checklist:
{checklist of typical problems for your task}

Mark what you found from the checklist.

STAGE 2 — In-depth evaluation with hints:
1. Analyze each problem found from the checklist in detail
2. Find problems the checklist doesn't cover
3. Give specific recommendations

OBJECT OF EVALUATION:
{text/code/idea to evaluate}

From: Analytic Hints: Making an LLM Judge Sharper with Structured Hints

Reasoning first, score last

Here's the ad post text: {text}.

First, break it down in detail:
- Are there any stretched arguments or exaggerations?
- Are there reputational risks if the post lands differently than intended?
- Is the logic actually convincing, or does the text just sound smooth?

Don't praise nice phrasing — look for substantive problems,
even if the text reads easily.

Don't mention a score until you've finished the breakdown.

Only at the very end, give a final score from 1 to 10.

From: Judge output order: why an LLM should explain itself before scoring

Problems it helps with:

Questions people ask

Should an LLM judge give scores or compare pairs?

For picking the better of close candidates, compare pairs. In the best-of-N study, 0-100 scores tied in 67% of comparisons, while 'A, B or tie?' cut ties to 4%. Use scores with an anchored rubric when you need absolute grades, and keep the scale small.

Does a rubric always make an LLM judge more accurate?

No. Generic criteria such as 'helpful' or 'clear' fit almost every answer and lowered GPT-4o's agreement with humans below the no-rubric baseline in one study. Criteria help when they are specific enough to separate the candidates you are comparing.

Should the judge explain before or after giving the score?

Before. A score written first anchors everything after it. In one production study, moving the reasoning ahead of the score raised agreement with expert ratings from 43% to 52% without changing any grading rule.

Can I trust an LLM judge to check correctness?

Not on its own. Judges tend to score how convincing an answer sounds; three judge models accepted more than half of deliberately wrong answers in one study. For checkable tasks, have the judge solve the task first, or require a quote or recomputation as evidence.