Start studying
Module 13 · AI Evaluation Module contents
Module 13  ·  Card 14 / 18intermediate

LLM-as-Judge

LLM-as-judge uses a model to score another model's output.

It is far cheaper and faster than human raters.

It needs a specific rubric, not a vague instruction to rate quality.

Known biases include favouring longer answers and its own style.

Always validate the judge against human ratings before trusting it.

Learn in depth ↓
Module 13 · AI Evaluation · 18 concepts
In depth  /  15 lines

LLM-as-Judge, in more detail

LLM-as-judge uses a model to score another model's output.

It is far cheaper and faster than human raters and can run on every change.

That makes continuous evaluation practical rather than aspirational.

It needs a specific rubric, exactly as a human rater does.

Asking a model to rate quality out of ten gives you a number with no meaning.

Give it criteria, a scale with described levels, and the context it needs to judge.

Ask for reasoning before the score, since the reasoning improves the score.

The known biases are well documented and consistent.

It prefers longer answers, and it prefers answers in its own style.

It shows position bias when comparing two outputs, so the order must be randomised.

It is generous to fluent nonsense, since fluency is what it is best at recognising.

It cannot reliably judge factual accuracy without being given the facts.

Always validate against human ratings on a sample before trusting it.

Agreement of 80 per cent with humans is usable, and 50 per cent is a coin toss with extra steps.

Use a different model from the one being evaluated, since a model marking its own work is not a test.

Deep dive

What is underneath LLM-as-Judge

Using a model to grade a model

s=LLM(criteria,  input,  output)s = \mathrm{LLM}\big(\text{criteria}, \; \text{input}, \; \text{output}\big)

Human evaluation is slow and expensive, and string metrics cannot tell a correct paraphrase from a wrong one.

A judge model sits between them: it costs cents, runs in seconds, and understands the text well enough to apply a written rubric.

agreement with humans≈80%\text{agreement with humans} \approx 80\%

Published comparisons put a strong judge at roughly the level of agreement two human raters reach with each other, which is the bar that matters.

Measuring the judge before trusting it

κ=po−pe1−pe\kappa = \frac{p_o - p_e}{1 - p_e}
  • pop_o: the observed agreement between judge and human.
  • pep_e: the agreement expected by chance.

Raw agreement is misleading when one label dominates. On a set that is 90 percent correct, a judge answering correct every time agrees 90 percent of the time and has learned nothing.

κ>0.6  ⟹  usable,κ>0.8  ⟹  strong\kappa > 0.6 \implies \text{usable}, \qquad \kappa > 0.8 \implies \text{strong}

Cohen's kappa subtracts the chance level, which is why it is the number to report for a judge.

The judge must be validated on a few hundred human-labelled examples before it is used on thousands, and revalidated whenever the prompt or the model version changes.

The biases, which are documented and large

The first option shown wins more often.

The fix is to run every pair twice with the order swapped, and to count a disagreement between the two runs as a tie.

Longer answers score higher.

The rubric has to state that length is not quality, and even then the effect survives, so length should be reported alongside the score.

A model prefers its own outputs.

Judging a model with itself or with its own family inflates the result, which is why an independent judge is the standard precaution.

One judging setup, in order

  1. Write the rubric as explicit criteria, with what counts as each score.
  2. Include two or three graded examples in the prompt, covering the range.
  3. Ask for reasoning first and the score last, since a score written first is not revised.
  4. Constrain the output to a small discrete set, and parse it strictly.
  5. Run both orders on pairwise comparisons and average.

On a 1 to 10 scale, scores cluster at 7 and 8.

A fine-grained scale produces false precision. Three or five levels with written definitions is more reliable and easier to act on.

Where it should not be used

A judge is not ground truth.

Anything with a checkable answer should be checked: run the code, compare the number, query the database. A judge is for the cases where no such check exists.

Optimising a model against a judge makes the judge's blind spots into the model's behaviour, which is Goodhart's law with a fast feedback loop.

That is why a held-out human evaluation stays in the process, even when the judge is doing almost all the volume.

Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
What is the biggest known weakness of LLM-as-judge?
AI Evaluation

18 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close