Learn

LLM-as-judge: using a model to grade answers

A judge model can grade meaning, not just words. It can also be wrong, so you have to check it.

5 min read

Word-overlap metrics cannot tell whether an answer means the right thing. A person can. A person is also slow and costs money.

So many teams use a second model as the grader. That is an LLM judge.

How it works

You give the judge model a few things:

  • The question
  • The answer to grade
  • A reference answer, if you have one
  • A rubric: what a good answer must do

It returns a verdict, usually pass or fail or a score, plus a short reason.

Where judges go wrong

These patterns are reported often:

  • Position bias: in side-by-side comparisons, it may favour whichever answer comes first.
  • Length bias: it may favour longer answers.
  • Self-preference: it may favour answers written by its own model family.
  • Vague rubrics: "is this a good answer?" gets inconsistent verdicts.
  • Run-to-run variation: the same input can get a different verdict.

How to get a better judge

  • Write a specific rubric with concrete pass or fail rules.
  • Prefer pass or fail over a 1 to 10 score.
  • Swap the order in side-by-side comparisons and check the verdict holds.
  • Run the same cases more than once and see whether the verdicts stay put.
  • Most important: check the judge against people.

Check the judge

Take a set of answers, get a person's verdict on each, and compare them with the judge's verdicts. Measure how often they agree. EvalRoom has a judge validation screen for this: a person reviews verdicts blind, then it reports the exact match rate, the close match rate and the average deviation.

Try it

Judge rubric
#Answer summaryJudge verdict
1Correct 14-day refund rule, politePASS
2Right tone, but invents a 30-day windowPASS
3Short, correct tracking instructionsPASS
4Correct shipping time, a little wordyPASS
5Promises a refund the policy does not allowPASS
6Correct address-change rulePASS
7Reveals another customer's emailFAIL
8Correct answer, blunt toneFAIL
9Wrong country list for shippingFAIL
10Correct answer, but very shortFAIL

Sample data for an imaginary store, not a live run.

Switch the rubric, then reveal the human verdicts.

Common mistakes

  • Trusting a judge without ever checking it.
  • Changing the rubric after seeing the results.
  • Using the same model to write the answers and judge them.

Takeaways

  • A judge can grade meaning, which word metrics cannot.
  • A judge has biases, and a vague rubric makes them worse.
  • Measure agreement with people before you trust it.

Run this on your own prompts

Sign in to create projects, run evaluators on your targets, and read release verdicts.