Lesson 6.3: Automated and human grading
Learn how to grade AI outputs: rules, reference checks, model judges and human review, how judges go wrong, and how to calibrate and cost each method.
You have a test set. Each case produces an answer from your system, and now someone or something must decide whether the answer is good. If a person reads every answer, grading is accurate but slow and expensive, and you will not run it before every change. If a rule checks the answer, grading is instant and free, but rules see only what they were written to see. Between them sits a popular middle path: ask another language model to grade the answer against a written rubric. It is fast and cheap enough to run on every change and capable of judging things that rules cannot, such as whether an answer is complete or polite. But a model judge has its own habits and mistakes, and if you trust it blindly you will measure the judge's tastes instead of your product's quality. This lesson covers all four kinds of grader, when to use each, how model judges go wrong and how to correct for it, how to check a judge against people, and what each approach costs. By the end you will be able to choose a grader for each requirement, write a rubric that a judge or a person can apply consistently, describe the common biases of model judges and the tricks that reduce them, measure how far a judge agrees with human graders using accuracy, sensitivity and specificity, run a pairwise comparison with the order swapped and read the result, estimate the cost of grading with a model and with people, and design a grading plan that mixes methods. You should have read Lessons 6.1 and 6.2. No programming is needed, and the arithmetic is percentages and multiplication.
Four kinds of grader
1. Rules and code. A program checks a property of the output: it is valid JSON, has every required field, is under 150 words, contains a citation, includes no phone number, matches the expected category exactly or has a total within one rupee of the true figure. Rules are fast, free, perfectly repeatable and easy to explain. They suit anything that can be written as a precise test. Their limit is that they cannot judge meaning, so they miss an answer that is well formed and wrong.
2. Comparison with a reference. The output is compared with a known good answer. Exact match works for classification and extraction. For free text, older word-overlap scores such as BLEU and ROUGE count shared words and correlate poorly with quality for modern assistants, since a good answer can use entirely different words. A better approach is to check that the answer contains the key facts from the reference, by rules for numbers and names, or by a model judge that is told to compare. Embedding similarity, from Module 4, can flag answers that are far from the reference, though it does not tell you whether a difference matters.
3. A model as judge. A second model receives the question, the answer, any reference or source passages and a rubric, and returns a verdict or a score. This is the workhorse for qualities such as correctness, completeness, helpfulness, tone and faithfulness to sources. It scales to thousands of cases at low cost and is often the only practical option for open-ended answers.
4. Human review. People read and grade. This is the standard against which the other methods are judged, and the right choice for subtle quality, high-stakes domains and calibration. It is slow, costs real money and varies between people, which is why guidelines and agreement checks, as in Lesson 6.2, matter.
A good eval uses all four, each where it is strongest: rules for structure and safety, references for facts that have a known answer, a model judge for the large volume of judgments that need meaning and people to check the judge and to rule on the hardest cases.
Writing a rubric
A rubric is a written description of what counts as good, and it is the most important part of a model judge. Vague rubrics give noisy grades. Several principles help.
Break quality into separate criteria, such as "uses only the supplied sources", "answers the question asked" and "tone is polite and clear", and grade each on its own. A single overall score blends them and hides what failed.
Prefer yes or no questions over a numeric scale. "Does the answer state the refund window correctly, as in the policy text? Yes or no." is easier to apply consistently than "rate correctness from 1 to 10". If you do use a scale, define each level: what a 5, a 3 and a 1 look like, with examples.
Give the judge the evidence. Include the retrieved passages or the reference answer, so the judge compares and does not rely on its own memory.
Ask for the reason first, then the verdict. A short explanation before the score tends to improve reliability, and it gives you something to read when you disagree.
Include examples of passing and failing answers, especially borderline ones.
Say what to ignore, such as length, style or formatting when they are not part of the criterion.
Output a fixed format, such as a short JSON object with the reason and a pass or fail, so that your program can read it, using the structured outputs of Lesson 3.2.
An example rubric item for a returns assistant: "Criterion: grounded. Pass if every statement about refunds, windows or conditions in the answer is supported by the supplied policy text. Fail if any statement goes beyond it or contradicts it. Ignore wording and length. First write one sentence naming the strongest evidence for your verdict, then give the verdict."
How model judges go wrong
A model judge is a model with habits. The best-known ones are these.
Verbosity bias. Judges often prefer longer, more elaborate answers, even when a short one is better.
Position bias. In a side-by-side comparison, a judge may prefer whichever answer comes first, or whichever comes second, regardless of quality.
Self-preference. A judge may favour answers written in its own style, or by a model of its own family.
Leniency. Judges are often generous, passing answers that a careful person would fail, particularly when the answer sounds confident.
Sensitivity to wording. A small change in the rubric can shift the scores a good deal.
Failure on hard facts. A judge without the source cannot check a number, and may accept a plausible but wrong figure.
Drift. If the judge model is updated by its provider, your scores can move with no change to your system.
None of these makes judges useless. They mean that a judge is an instrument that must be calibrated, as any instrument is.
Calibrating a judge against people
To trust a judge, compare its verdicts with careful human grades on the same cases. Take 100 cases and have people grade them as pass or fail. Then run the judge. Suppose people pass 70 and fail 30. The judge passes 62 of the 70 that people passed, and also passes 9 of the 30 that people failed.
· Judge says pass · Judge says fail · TotalPeople say pass · 62 · 8 · 70
People say fail · 9 · 21 · 30
Total · 71 · 29 · 100
From this table you can compute:
Agreement: (62 + 21) ÷ 100 = 83%.
Sensitivity, the share of truly good answers that the judge passes: 62 ÷ 70 = 88.6%.
Specificity, the share of truly bad answers that the judge fails: 21 ÷ 30 = 70%.
Precision, the share of the judge's passes that are truly good: 62 ÷ 71 = 87.3%.
Look at what the table says. The judge's overall pass rate is 71%, close to the human 70%, which might look fine. But specificity is only 70%: it lets nearly a third of bad answers through. The two errors happen to cancel in the total, 9 wrongly passed and 8 wrongly failed. If your system's quality changes, the cancellation will not hold, and the judge's total could mislead. Always look at specificity, because the point of an eval is to catch bad answers, and a lenient judge misses them.
How good is good enough? There is no fixed line. For a rough screen of many cases, agreement of 80% to 85% with people can be useful, provided that you know which way the judge errs. For decisions that matter, push agreement higher, use people for the borderline cases and report the judge's error rates beside the scores. If the judge is lenient, your scores are too high, and you can say so.
Improving a judge
Sharpen the rubric using the cases where the judge and people disagree. Add the disagreements as examples.
Split a broad criterion into narrower yes-or-no questions.
Give the judge the evidence it needs: the source text, the reference or the policy.
Ask for the reason before the verdict.
Use a stronger model for judging than for generating, where cost allows, or use several judges and take a majority.
Randomise or swap the order in comparisons.
Control length bias, by telling the judge to ignore length and by checking whether scores rise with length in your data.
Pin the judge's version and rerun the calibration whenever you change it.
Pairwise comparison and position bias
When you want to know which of two versions is better, asking a judge to pick between two answers can be more reliable than scoring each on a scale, since relative judgments are easier. The danger is position bias. The remedy is to run every comparison twice, with the order swapped, and keep only the verdicts that agree.
Suppose you compare version A and version B on 100 cases. In 72 cases the judge picks the same version in both orders. In the other 28, its pick flips with the order, which tells you the judge has no real preference there and you should treat them as ties. Among the 72 consistent cases, A wins 41 and B wins 31. The win rate for A, counting ties as half, is (41 + 0.5 × 28) ÷ 100 = 55%. That is a modest edge. Is it real? With 100 cases, the uncertainty is large, as Lesson 6.1 showed, so a 55% win rate is weak evidence, and the 28% of flips shows that many cases are close calls. It would take more cases, or a human look at the 41 and 31, to say with confidence.
Human review done well
People are the reference, so their grading must be careful.
Write guidelines with examples of pass and fail, and train reviewers on a few cases before they start.
Grade blind. Do not tell the reviewer which version produced an answer, and randomise the order.
Use two reviewers for a sample and measure agreement, as in Lesson 6.2. Resolve disagreements by discussion and record the reason.
Use experts for expert tasks. A lawyer should grade legal summaries, and a clinician should grade health information.
Sample sensibly. You cannot review everything. Review a random sample for an unbiased estimate, and add the cases where automated graders are uncertain or disagree.
Keep a record of grades and notes, and feed new failure types back into the test set.
Mind the person. Reading hundreds of outputs is tiring, and quality drops. Short sessions and a clear tool help.
What grading costs
Model judging is cheap compared with people, but not free, and it grows with the number of cases, the number of runs and the length of each judgment, which includes the question, the answer, the sources and the rubric.
Take an example with invented prices. You have 300 cases and run each three times to average out randomness, so 900 judgments per version. Each judgment sends about 1,500 tokens to the judge and receives 150. A strong judge model costs, say, ₹250 per million input tokens and ₹1,000 per million output tokens. One judgment costs 1,500 × 250 ÷ 1,000,000 + 150 × 1,000 ÷ 1,000,000 = ₹0.375 + ₹0.15 = ₹0.525. The 900 judgments cost about ₹472. Having a person grade the 300 cases once, at ₹15 a case, costs ₹4,500, which is ten times as much for one-third the number of judgments, and it takes days and not minutes.
The sensible plan is to run the model judge on everything, every time, and to spend human effort on a rotating sample and on the cases that matter most.
A grading plan
For most products a layered plan works.
1. Rules on every output: format, length, banned content, citations that exist, numbers that match the source.
2. A reference or source check for cases with known answers.
3. A model judge with a written rubric for the qualities that need meaning, run on every case in every eval.
4. Human review of a weekly random sample and of every case where the layers disagree, to track the judge's accuracy.
5. Calibration of the judge against people each time you change the judge, the rubric or the model, with the table above.
6. Reports that show the score, the judge's sensitivity and specificity, and the slices.
Three worked examples
Example 1: a lenient judge. A team grades support answers with a model judge and sees a 91% pass rate. A calibration on 100 cases against two experts shows sensitivity of 95% but specificity of only 55%, so the judge passes nearly half of the bad answers. Most of the false passes are fluent answers that state a refund window incorrectly. The team adds the policy text to the judge's input, splits "correct" into three yes-or-no checks about windows, amounts and exceptions, and adds six failing examples. Specificity rises to 84%, and the pass rate on the same outputs falls to 78%, which is closer to what users experience.
Example 2: layered grading. A contract-summary tool uses a rule to check that all parties, dates and amounts in the summary appear in the contract, a model judge to score completeness and plain language, and a lawyer to review 20 summaries a week. In a month the rule catches seven altered amounts that the judge missed, the judge flags 15% of summaries as incomplete and the lawyer confirms 11 of 15 of those she sees. The lawyer's ratings show the judge is a little harsh on completeness, and the team relaxes that rubric item.
Example 3: position bias. A team compares two prompts with a model judge and finds that prompt B wins 62% of the time. When they swap the order, B wins only 41% of the time, because the judge prefers whichever answer appears first. Counting only consistent verdicts, the two prompts are close to equal. Without the swap they would have shipped B on the strength of an artefact.
A grading worksheet
1. The criteria. What does good mean, as separate yes-or-no questions?
2. The grader for each. Rule, reference, model judge or person.
3. The rubric. Wording, examples and output format.
4. The evidence. What the judge sees: sources, reference, policy.
5. The bias checks. Order swapped, length checked, version pinned.
6. The calibration. Cases graded by people, and the table of agreement, sensitivity and specificity.
7. The human sample. How many, how often and by whom.
8. The cost. Per run for the model judge, and per case for people.
9. The report. What numbers go to the team.
10. The review date. When to recalibrate.
Common mistakes
Trusting a model judge without checking it against people.
Looking only at agreement, and not at which way the judge errs.
One broad score, instead of separate criteria.
Giving the judge no source or reference.
Comparing answers in a fixed order.
Letting the judge model change silently.
Using people for everything, so that evals are too slow to run.
Using no people at all, so nobody notices drift.
Key takeaways
Four graders: rules and code, comparison with a reference, a model as judge and human review. Use the cheapest that captures each requirement, and combine them.
A good rubric splits quality into criteria, prefers yes-or-no questions, gives the judge the evidence, asks for a reason first and includes examples.
Model judges show verbosity, position and self-preference biases, and are often lenient. Pin their version and calibrate them.
Calibrate with a table against human grades. In the example, agreement is 83%, sensitivity 88.6%, specificity 70% and precision 87.3%, and the low specificity shows a lenient judge.
In pairwise comparisons, swap the order and treat flips as ties. In the example, 28 of 100 flipped, and A's win rate was 55%, weak evidence.
Model judging is much cheaper than people. The example costs about ₹472 for 900 judgments against ₹4,500 for people grading 300 cases once.
Run the model judge on everything, and use people for samples, borderline cases and calibration.
Check yourself
1. Why is a rule such as "under 150 words" a good grader for length but not for correctness?
A rule can test any precise property, but it cannot judge meaning, so a short, well-formed answer can be wrong.
2. A judge passes 45 of the 50 answers people passed, and passes 8 of the 50 answers people failed. What are its sensitivity and specificity?
Sensitivity is 45 ÷ 50 = 90%. It failed 42 of the 50 bad answers, so specificity is 42 ÷ 50 = 84%.
3. Why swap the order in a pairwise comparison?
Judges can favour the first or the second position regardless of quality, and swapping reveals verdicts that depend on the order.
4. Why might a judge with an overall pass rate close to the human rate still be unreliable?
Its false passes and false fails can cancel in the total, so the overall figure looks right while individual verdicts are wrong, and it will mislead when quality changes.
5. Why give the judge the source passage?
Without it the judge relies on its own memory and cannot check specific facts such as numbers and conditions.
6. What is a sensible split of work between a model judge and people?
The model judge grades every case on every run, and people review a sample, the borderline cases and a calibration set.
Try this
Calibrate a judge. Set aside 90 minutes.
1. Take 30 outputs from an AI task, either from your own system or from an assistant tool, with their inputs.
2. Grade each as pass or fail yourself, with a one-line reason, using a written one-paragraph rubric.
3. Ask a model to grade the same 30 using the same rubric, with the evidence supplied, and record its verdicts.
4. Fill in the two-by-two table and use the first simulator to work out agreement, sensitivity, specificity and precision.
5. Read the cases where you disagree, and change the rubric to fix the main cause. Run the judge again and compare.
6. Use the second simulator with your own case counts and example prices to estimate the cost of grading each version.
7. Write your grading plan: which layers, who reviews what sample and how often you will recalibrate.
A good result is a graded set of 30 cases, a two-by-two table with four rates, a revised rubric with before and after agreement, a cost estimate and a written plan with review dates.
Tags: AI Engineering Evaluation LLM as judge Human review Grading