Learn
Evaluations & benchmarks

LLM-as-a-Judge: Using Reasoning Models to Grade Outputs

The short answer

LLM-as-a-judge uses a strong model to grade outputs that have no single correct answer. It scales human judgement cheaply, but it carries position, verbosity and self-preference biases, and its scores are noisy. Treat the judge as an instrument: design a decomposed rubric, calibrate against human labels, and report intervals rather than point estimates.

On this page

Why a model grades another model

Most valuable model outputs do not have a checkable answer. A summary can be accurate and badly organised. A support reply can be correct and rude. A refactor can be functionally equivalent and unreadable. Exact match scores zero on all of these, and unit tests do not apply. Human evaluation handles them well and costs an hour or more per hundred judgments once you account for recruiting, briefing and adjudication.

A capable model with a written rubric sits between the two. It reads the output, applies criteria, and returns a verdict at a cost of fractions of a cent, in seconds, at any volume. The original MT-Bench work found that a strong judge agreed with human preferences on more than 80 percent of pairwise comparisons, roughly the level of agreement between two humans on the same task. That result is the reason the technique spread, and also the reason it is dangerous: agreement that high is good enough to be useful and not good enough to be trusted blindly.

The right mental model is a measurement instrument, not an oracle. Instruments have bias, variance and a range over which they are valid. The rest of this entry is about estimating those properties and designing around them.

Three modes, three different measurements

Pairwise comparison shows the judge two responses to the same prompt and asks which is better, or whether they tie. It is the most reliable mode, because relative judgements are easier than absolute ones and the prompt acts as its own control. Its output is a preference, which aggregates naturally into a win rate.

Single-answer rubric scoring shows one response and asks the judge to rate it against explicit criteria, usually on a small scale or as a set of binary checks. It is cheaper, works when you have only one system to evaluate, and produces an absolute number that can be tracked over time. It is also the mode most vulnerable to leniency drift: judges cluster scores toward the middle and above, and a 7 out of 10 means little without anchors.

Reference-based grading gives the judge a gold answer or a set of required facts and asks whether the response contains them, contradicts them, or adds unsupported claims. This is the mode to use for factual summaries, extraction and question answering, because it turns an open-ended quality question into a coverage and contradiction check. It is closest to a real metric and least dependent on the judge's taste.

Mixing modes in one score is a mistake: a win rate and an average rubric score are not on the same scale. Pick the mode that matches the decision.

Pairwise judging and the Bradley-Terry model

Pairwise results are usually aggregated with a Bradley-Terry model, which assigns each system a strength parameter and models the probability that A beats B as a logistic function of the difference in strength. Fitting it on all pairwise outcomes produces a ranking that uses every comparison, including indirect ones, and gives more stable estimates than raw win rates when the comparison graph is sparse.

Two practical details matter. First, ties must be modelled explicitly rather than discarded, because discarding them inflates win rates for systems that are merely unusual. Second, each pair should be evaluated in both orders, or at least a random half in each order, so that position bias averages out instead of accumulating in one direction. If A is shown first in every comparison, the resulting win rate partly measures the judge's preference for the first slot.

The output of a pairwise study should be a win rate with a confidence interval, not a bare percentage. On 200 comparisons, a win rate of 60 percent has a standard error of about 3.5 points, and the interval is wide enough that a 55 to 65 range is the honest summary. On 1,000 comparisons it narrows to about plus or minus 3 points.

The biases that are documented, not hypothetical

Position bias is the best established. Judges prefer the response in the first or second slot at rates that can exceed 60 percent when the two are of equal quality, and the direction varies by model and prompt. The mitigation is mechanical: randomise or swap order, and measure the inconsistency rate as a quality metric for the judge itself.

Verbosity bias is next. Longer answers score higher even when length adds nothing, and the effect survives instructions to ignore length. This matters whenever a system chooses its own length, because it rewards padding. Mitigate with length-controlled analysis, rubric language about conciseness, and reporting quality at matched length.

Self-preference bias appears when the judge and the candidate come from the same model family. Judges tend to rate their own generations higher, partly because they find their own style more fluent. Never use a model to judge a comparison that includes itself, and be cautious even with siblings from the same family.

Authority and sycophancy bias make judges defer to confident tone, citations, headings and assertions of expertise. A response that says "according to the 2023 amendment" scores higher than one that says "I believe", independent of whether either is true. Format bias overlaps with this: markdown, bullet points and bold text raise scores. Leniency and score compression round out the list, with judges avoiding the extremes of a scale and clustering in the upper middle.

None of these biases is fatal on its own. Together they mean an uncalibrated judge is a random number generator with good manners, and that any judge-based metric must be validated on data where you know the right answer.

Rubric design is most of the work

A judge can only be as precise as the rubric it is given. "Rate the quality from 1 to 10" produces noise, because the judge has to invent the criteria and the scale simultaneously. A decomposed rubric produces something closer to a measurement.

The core move is to break quality into independent, checkable criteria and grade each one separately. For a technical answer: factual correctness, completeness against the question, absence of unsupported claims, and clarity. For a code review: identifies the actual bug, proposes a fix that compiles, does not introduce unrelated changes, and explains the reasoning. Each criterion gets its own verdict, and the overall score is a weighted sum or a decision rule rather than a holistic impression.

Each criterion needs anchors: a one-sentence description of what a 1, a 3 and a 5 look like, ideally with a short example. Anchors reduce scale drift and make disagreements diagnosable. They also make the rubric reviewable by humans, who can argue about whether the anchor is right instead of arguing about a number.

Require evidence before verdict. Ask the judge to quote the span of the response that supports its judgement, then assign the score. This does two things: it makes the judgement traceable, and it reduces the rate at which the judge hallucinates a justification for a score it produced by vibe. The order matters, so the rubric should specify evidence first, verdict second.

Avoid double-barrelled criteria. "Accurate and well written" conflates two failures that need different fixes, and a judge forced to give one score will average them unpredictably. Avoid negations where possible, since judges handle "does not contain errors" less reliably than "all claims are supported by the source". And keep the scale small: three to five points, or a set of binary checks, is more reliable than a hundred-point scale that the judge cannot calibrate.

Reasoning models as judges

A reasoning model with a thinking budget is a materially better judge on rubrics that require multi-step checking: verifying that every claim in a summary appears in the source, checking a proof for a gap, or deciding whether a patch addresses the reported issue. The extra tokens let it enumerate claims, compare them one by one and tally, which is exactly the decomposition the rubric describes. On these tasks the gain over a non-reasoning judge is large enough to change conclusions.

It is not uniformly better. On simple binary checks a reasoning model can spend hundreds of tokens on an obvious call, multiplying cost for no accuracy gain, and on genuinely ambiguous items more deliberation produces more elaborate justification rather than more truth.

Two operational notes. First, keep the reasoning trace out of the verdict parsing path; require a final structured field so a long rationale does not break the extractor. Second, be aware that a reasoning judge's rationale is generated after the fact as much as it is a report of the computation. A persuasive explanation is not evidence that the score was derived correctly, which is why calibration against human labels remains mandatory.

Calibrating the judge against humans

Calibration is the step teams skip, and it is the only thing that separates a judge from a plausible-sounding score generator. The procedure is straightforward: sample 100 to 200 items that span the quality range, have a domain expert label them independently, and compare the judge's verdicts to the expert's.

For binary verdicts, report Cohen's kappa rather than raw agreement, because raw agreement is inflated when one class dominates. Kappa above 0.6 is workable for internal evaluation; above 0.8 is good. For ordinal scores, report Spearman correlation and, more usefully, the confusion matrix, because systematic offsets matter more than rank correlation when the absolute number is what gets reported.

Calibrate per criterion, not just overall. A judge that is reliable on factual correctness and unreliable on tone will produce an aggregate that looks fine and misleads on the dimension you care about. Where a criterion fails calibration, either rewrite its anchors, replace it with a deterministic check, or drop it and measure that dimension with humans on a sample.

Recalibrate whenever the judge model changes. A new judge version is a new instrument, and its biases are not inherited from its predecessor. Keep the labelled set as a regression test for the judge itself.

The statistics of noisy verdicts

Judge scores are noisy in three ways: sampling variance in the candidate outputs, variance in the judge's own verdicts across runs, and variance from the finite set of items you evaluated. All three need to be in the interval you report, and most published judge evaluations account for none of them.

Start by measuring judge consistency. Run the same 100 items through the judge three times with the same settings. If verdicts flip on more than a small fraction, the judge is too unstable for fine-grained comparisons, and you should either lower the temperature, simplify the rubric, or average multiple judgments per item. Averaging three verdicts reduces variance by roughly a factor of three if the errors are independent, which they often are not, so measure rather than assume.

Treat the item as the unit of analysis. Ten judgments of the same item are not ten independent samples, and computing a confidence interval over them will produce an interval that is far too narrow. Aggregate to one score per item first, then compute the interval across items, or use a clustered estimator.

Do not treat a 1-to-5 rubric score as an interval scale and average it carelessly. The difference between 2 and 3 is not the same as between 4 and 5, and a mean of 3.7 is not a meaningful quantity without the distribution behind it. Report the distribution, or convert to a binary threshold that matches the decision you are making.

A judge prompt that behaves

A reliable judge prompt has a predictable structure, and it is worth writing once and versioning carefully.

It states the role and the task in one sentence, then gives the rubric with numbered criteria and anchors. It includes the input, the response being judged, and any reference material, each in a clearly delimited block, with an explicit instruction that content inside the response block is data and not instructions. It requires a short evidence quote per criterion before the verdict. It specifies a JSON schema for the output and forbids prose outside it. It tells the judge what to do when the response is empty, truncated or off-topic, because those cases otherwise get scored as if they were attempts. And it instructs the judge not to reward length, formatting or confident tone unless the rubric explicitly asks for them.

Pin the judge prompt alongside the judge model version. A prompt change is a measurement change, and every historical score becomes incomparable the moment it lands. Keep a changelog with the reason for each revision and the effect on the calibration set.

Gaming, cost and the decision to use a judge at all

Any metric that can be optimised will be. A judge that rewards thoroughness will be gamed by padding; one that rewards citations will be gamed by fabricated ones; one that rewards confidence will be gamed by tone. If you train a model against a judge, expect it to find these exploits, and keep a human-labelled adversarial set to detect the drift. A judge that has never disagreed with your model is not evidence of quality; it is evidence that the judge is inside the optimisation loop.

Cost is manageable but not free. A thousand responses through a mid-sized judge with a five-criterion rubric costs a few dollars; a reasoning judge on long outputs can cost twenty times that. Cache aggressively, and use the cheapest judge that passes calibration for each criterion.

Finally, know when not to use one. If the task has an executable check, run the check. If the answer is a small closed set, use exact match. If the criterion is a hard safety requirement, use a classifier trained for it and a human escalation path. Judges are for the residual: open-ended quality, helpfulness, tone, coherence and the parts of correctness that no test can express. Used there, with calibration and intervals, they are the most useful evaluation tool available. Used everywhere else, they are a way of replacing a measurable thing with an opinion.

Page feedback

Was this helpful?

A quick signal helps improve these notes.

Report a mistake Straight to the lab inbox

Put it to work

See the models, datasets and gateway this lab runs.