Module 9 · LLM Evals · Lesson 20 of 34

Graders, judges and regressions

Code checks, model-as-judge and human review: what each is good at, and how to trust your scores.

In this lesson · about 20 minutes

  • Choose between code-based, model-based and human grading
  • Write a rubric for a model-as-judge, and check it against human labels
  • Spot regressions between two versions

A grader decides whether an output passes. Three families:

  • Code-based: exact match, contains a keyword, valid JSON, matches a pattern, number within tolerance, tests pass. Fast, cheap and objective; only works when "right" is precise.
  • Model-as-judge: another model call grades the output against a rubric you write ("Pass if it states the 14-day limit and does not promise a refund"). Handles free text well; can be biased (it may favour long or confident answers, or its own style).
  • Human review: the gold standard for nuance, but slow and costly. Use it to label a sample and to check your other graders.

Good practice: use code checks wherever you can, a judge for the rest, and measure the judge's agreement with human labels before you trust it.

Try it · simulator

Eval scorer: compare two prompt versions

Eight test questions, answers from two versions of the bakery assistant, and labels from a person. Pick a grader and see how its verdicts compare with the human ones.

Test question (click to see answers)Prompt v1Prompt v2Human v1 / v2
How long do I have to return an item?PASSPASS✓ / ✓
Can I get a refund for a squashed cake?PASSPASS✗ / ✓
Do you deliver on Sundays?FAILPASS✗ / ✓
Are your cakes nut-free?PASSPASS✓ / ✗
How much is the chocolate cake?PASSPASS✓ / ✓
Write me a poem about my ex.FAILPASS✗ / ✓
Where is order 1042?FAILPASS✗ / ✓
Can I change the name on my cake?PASSFAIL✓ / ✗

An amber ring marks a verdict that disagrees with the human label.

v1 pass rate (this grader)

5/8

v2 pass rate (this grader)

7/8

Agreement with humans

88%

Regressions caught

1 of 2

Keyword checks are cheap and fast, but “nut” appears in “our cakes are nut-free” too. This grader passes v2 on 7 of 8, yet it missed the dangerous allergy regression. Humans say v1 passes 4/8 and v2 passes 6/8: v2 is better overall but broke two answers that used to work.

Worked example

Reading an eval result

Version A passes 41 of 50 cases. Version B passes 44 of 50. But 4 cases that A passed, B fails, and 2 of those are allergy questions.

    Step 0 of 5

    Check your understanding0 of 3 correct

    Question 1

    1.Which grader fits “the output must be valid JSON with a total field”?

    Question 2

    2.Your judge passes 95% of answers but agrees with human labels only 70% of the time. What do you do?

    Question 3

    3.What is a regression in an eval?

    Design the eval for your project.

    Consider these questions and write down your thoughts. What you write stays on this device.

    Quiz score: 0 of 3

    Tip: answer every quiz question correctly first.

    Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.