May 15, 2026 · Updated November 14, 2026 ·
LLM-as-a-judge: a practical guide to scoring prompt outputs
LLM-as-a-judge uses one language model to score another model's output against a written rubric. Instead of a human reading every response and rating it by hand, you give a judge model the input, the response and a rubric that says what "good" means, and ask it to grade. The judge returns a score and, if you ask for it, a sentence of rationale. That is the whole idea. Everything interesting is in the details of making LLM-as-a-judge scoring consistent enough to trust.
It exists because the obvious alternatives don't work for the outputs people actually ship. Exact-match comparison works when there's one correct string; it falls apart the moment the output is a summary, an answer, an extraction, a rewrite, anything where two good responses can be worded completely differently. Human grading works, and it's the gold standard, but it doesn't scale: nobody is going to read 200 responses every time you tweak a prompt, and if scoring is slow then scoring stops happening. LLM-as-a-judge is the thing in the middle. It's cheap enough to run on every change and consistent enough to be useful, as long as you respect what it is and isn't.
The reason to want it on every change is that prompt edits rarely move in one direction. A rewrite that fixes the example you were staring at can quietly break a few others. An instruction to sound warmer can loosen the policy wording. Run the same dataset and the same rubric against both versions and you can see which metric moved and which rows got worse, instead of reading a handful of outputs and deciding the new one "looks better".
Why a model judge is credible at all
The name comes from a June 2023 paper, "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", out of the Berkeley group behind Chatbot Arena and the Vicuna model. They had a concrete problem: they were ranking chatbots head-to-head and needed to grade open-ended, multi-turn answers, and human voting couldn't keep up with the volume. So they asked whether a strong model could stand in for the crowd.
The clever part was the bar they set. They didn't ask "is the model judge correct?", an unanswerable question for open-ended text. They asked: does the judge agree with a human as often as two humans agree with each other? On this kind of task, human graders only agree with each other around 80% of the time; that's the ceiling, and it's nowhere near 100%. GPT-4, used as a judge, also hit over 80%, matching the human-to-human rate. That single result is what made LLM-as-a-judge credible: not that the judge is right in some absolute sense, but that it disagrees with you about as much as your own colleague would.
The same paper named the failure modes in the same breath (position bias, verbosity bias, and self-enhancement bias), so the method and its known flaws have been on the table together from the start. That's the right way to hold it: a useful instrument with a documented margin of error, not an oracle.
How LLM-as-a-judge scoring works
A judge is just another prompt. You give a model the input that produced the response, the response itself, and a rubric that says what "good" means. Where the metric needs it you add more: the source document for a faithfulness check, an expected answer if your dataset has one, a scored example or two. You ask it to return a score on a fixed scale. In CompletionKit the scale is 1–5, where 5 is the best and 1 is the worst, and each run can carry several metrics so you score independent things independently.
Score separate metrics, not one global number
Scoring several metrics per run matters more than it looks. A single global "is this good?" score blends everything you care about into one mushy number, and a mushy number can't tell you what regressed. A reply can be accurate, friendly and well formatted and still break policy; an overall 4 hides that. Score the things you actually care about as separate criteria ("stays faithful to the source", "valid JSON", "acknowledges the order number", "never promises a refund"), and a drop in any one of them points straight at the problem.
A good rule of thumb is that the metrics you judge on should be as specific as the instructions in the prompt, because those instructions are exactly what a prompt change can break. If a rule matters enough to write into the production prompt, it probably deserves its own metric.
Common LLM-as-a-judge failure modes
An LLM judge is a model, and it brings a model's failure modes with it. None of these are reasons to avoid LLM-as-a-judge. They're reasons to set it up deliberately.
- Position bias. Asked to compare two responses, judges favour whichever one came first (or sometimes whichever came last) independent of quality. If you do pairwise comparison, run each pair both ways and average, or you're measuring order as much as quality.
- Verbosity bias. Longer, more confident-sounding answers score higher even when they say nothing more. If brevity matters for your product, you have to name it in the rubric explicitly, because the judge's default instinct runs the other way. Something as plain as "a response that is correct but much longer than it needs to be does not get a 5" gives the judge something concrete to score against.
- Self-preference. A model tends to rate outputs from its own family more highly. Grading a GPT response with a GPT judge, or a Claude response with a Claude judge, quietly tilts the score. Where you can, judge with a different family than the one you're evaluating.
- Score compression. Left to its own devices a judge clusters everything around 4 out of 5. A scale where nothing ever scores 2 isn't a scale. Anchoring each point of the rubric with a concrete description (what specifically earns a 2, what earns a 5) spreads the distribution back out.
- Missing context. A judge can only score what it can see. Ask it whether a summary is faithful without giving it the source, and it will guess from how plausible the summary sounds. Match the context to the metric: a formatting metric needs only the output, a tone metric needs the customer's message too, and a faithfulness metric needs the source material. CompletionKit passes the judge the prompt, each row's input and the output, plus the expected output when your dataset has one, so put the source in the row if the metric depends on it.
- Silent failure. This is the one that bites hardest, because it doesn't look like a failure. If the judge call truncates, or the model burns its whole token budget on hidden reasoning and returns an empty visible completion, a naive parser reads that empty string and coerces it to a score, usually the floor. Now a broken call looks like a genuine 1-star review. A wrong number is far worse than an error, because the error you'd investigate and the number you'd trust. We hit exactly this with reasoning models: their reasoning tokens count against the same budget as the answer, so a too-small limit produces empty content and a quiet floor of 1. The fix is to give the judge real token headroom and to treat truncation or an empty completion as a failed review (recorded, surfaced, and excluded from the average), never as a score.
How to improve LLM-as-a-judge scoring
"Reliable" here doesn't mean the judge is correct in some absolute sense. It means it's consistent enough to rank prompt versions and catch regressions, which is what you actually need. Six habits get you there.
- Write a specific rubric. "Rate the quality 1–5" gives you noise. "Score 5 if every action item names an explicit owner; 3 if owners are implied; 1 if ownership is missing" gives you a signal. The rubric is the whole instrument: vague in, vague out.
- Anchor every point of the scale. Describe what earns each score, not just the top and bottom. This is the single most effective fix for score compression.
- Give a few worked examples. One or two responses with their correct scores and a sentence of why, included in the judge prompt, calibrate it far better than instructions alone.
- Calibrate against humans once. Hand-label 20–50 responses, run the judge over the same set, and look at where they disagree. You're not chasing perfect agreement; you're checking the judge isn't systematically wrong somewhere. If it is, the disagreements tell you which rubric line to rewrite. In CompletionKit this is the judge agreement surface: tag rows agree, disagree, or borderline, and the trust panel shows you where the judge and your own labels part ways.
- Use a capable judge and give it headroom. A judge weaker than the model it grades misses subtle errors. And whatever model you pick, leave enough token budget for it to finish, especially with reasoning models, where hidden reasoning eats the same budget as the answer.
- Hold the rubric fixed. The rubric is your measuring stick. If you change it while comparing prompt versions, you've changed the thing being tested and the instrument measuring it at once. Version the rubric the way you version the prompt, and when you do change it, treat the new scores as a new baseline rather than comparing them with the old ones. In CompletionKit, once a metric has scored any rows, a rubric edit is saved as a draft and only goes live when you publish it as a new numbered version, so the scores you already have stay tied to the rubric that produced them.
A worked example, from a real run
Here's the whole instrument assembled and fired, from a run in our own workspace. The metric is acknowledges-order-number, and the rubric anchors every point of the scale: 5, the reply quotes the customer's order number verbatim; 4, it references the specific order but doesn't quote the number; 3, it acknowledges an order exists; 2, generic acknowledgment with no reference to the order; 1, it ignores the order entirely.
One row's input was a two-line complaint about order #58219 arriving with the box crushed and the mug inside shattered. The generated reply opened with "I'm so sorry to hear about the delay and the damaged mug" and never mentioned the order number. The judge returned a 1, with this rationale: "The reply never references the customer's order or order number #58219, instead giving a completely generic response that ignores the specific order details provided."
That rationale line is the part you can't get from an assert. It doesn't just dock the score; it names the failure precisely enough that the fix writes itself. Across the eight-row dataset the prompt averaged 3.88, dragged down by exactly the rows where the reply went generic.
(Real run, June 12, 2026. Generation by gpt-4.1-mini, judged by claude-sonnet-4-6.)
Use deterministic checks alongside the judge
Not every requirement needs a model to grade it. If a rule can be checked by code, check it by code: it's cheaper, it's instant, and it never drifts. Does the output parse as JSON? Is a required key there? Is it under the length limit? Does it contain a required identifier, or a banned phrase? None of those need judgment, and asking a judge to answer them only adds noise to a question with a known answer.
Save the judge for the questions that need reading comprehension: is the summary faithful to the source, does the reply answer what the customer actually asked, is the tone right, does it follow the intent of a policy rather than its exact words. In CompletionKit the two sit side by side in one run. A check metric (contains, regex, valid JSON, a JSON path match, length or numeric bounds) scores each row pass or fail, and the judge's metrics score the same rows 1–5.
The half of the loop you can run on outputs you already have
You don't always need to generate anything to use a judge. If you already have outputs (production logs, a competitor's responses, hand-curated examples, results from an older model) you can score them directly. In CompletionKit that's a judge-only run: drop the outputs into a column of a dataset, point the run at that column, define your metrics, and the judge scores every row against your rubric. Same scoring, same per-row rationale, no generation step. It's a fast way to benchmark something you didn't build, or to put a number on how your live traffic is actually doing.
However you use it, the point of a judge is the same: turn "this output feels fine" into a number you can compare to last week's number. That's the difference between hoping a prompt change helped and knowing it did. And once the judge is one you trust, you don't have to drive the loop by hand either: point a coding agent at the MCP server and let it climb the score for you.
FAQ
What is LLM-as-a-judge?
Using one language model to score the output of another against a written rubric. The response and the grading criteria go to a model, which returns a score and a short rationale. It's used for open-ended outputs (summaries, answers, extractions) where exact-match checks don't work.
Is LLM-as-a-judge reliable?
Reliable enough to rank prompt versions and catch regressions when it's set up carefully: a specific rubric, a 1–5 scale with anchored points, a capable judge model, and a one-time calibration against human labels. It is not a reliable absolute measure of quality, and it carries known biases you design around rather than remove.
Which model should I use as the judge?
A capable frontier model with enough token headroom to finish reasoning and still emit a full response. A judge weaker than the model being graded misses subtle errors. Avoid grading a model with a judge from its own family, because of self-preference bias.
What is a judge-only run?
A run that scores outputs you already have (production logs, hand-curated examples, another system's results) with no generation step. You point the run at the column holding the outputs, define your metrics, and the judge scores each row.
When should I use a deterministic check instead of an LLM judge?
When the requirement has a known answer that code can test: the output parses as JSON, a required key or identifier is present, a banned phrase is absent, the length is within bounds. Use the judge for questions that need reading, such as faithfulness to a source, whether the reply answers the question, or tone. Most useful evaluations run both on the same rows.
Put a judge on your outputs free Why we built CompletionKit
Built by Homemade Software. Disagree with any of this? support@completionkit.com or r/completionkit.