Skip to content
The AI Agent Factory

24.5 Calibrating the judge against human labels

Approved by
Panaversity ·
15 min read

In everyday life. A school hires a new marker for its final exams. The senior teacher has already marked 40 papers. The new marker practices on 30 of them with the marking guide open. Where his marks differ from hers, the guide is made clearer. Her marks are not changed. Then he marks the last 10 papers, which he has never seen, and the school counts how often he agrees with her. That count, taken once, says how far to trust him on the papers she will never read.

What you will learn. How to measure a judge against Ana's marks before its marks count. You practice it in Lab 24, Tasks 3 and 4.

  • What does calibrating a judge mean?
  • Why hold answers out?
  • Why report passes and fails apart?
  • How much agreement is enough?
  • What does calibrating cost?

Why it matters. A judge is a model, and a model can be wrong. Until it is measured against the expert, its "correct" is only an opinion.

At work. Monday, April 12, 8:40. Beside the judge's mark, the report carries one line:

agreed with Ana on 9 of her 10 held-out answers: 6 of 6 passes, 3 of 4 fails

Ana reads it before she reads the answer. On the six answers she had passed, the judge agreed every time, so it does not often send her good answers to read again. On the four answers she had failed, it caught three and let one through. So a judge's "incorrect" is worth her twenty minutes, and a judge's "correct" is not proof. The line was made before Friday, in five steps.

  1. Two runs were recorded. The worker answered 20 of the 25 questions twice: once on its own prompt, and once on a weakened prompt, so that some answers are wrong. That gives 40 answers.
  2. Ana marked all 40 pass or fail, with a reason for each fail. These are her marks (24.2). She marked them before any judge ran, so the judge's opinion could not lead hers.1
  3. The builder split them by question, before writing the rubric. Of the 20 questions, 15, with their 30 answers, are for calibrating. The other 5, with their 10 answers, are held-out, which means kept away from the builder and the judge while the rubric is written. No question sits on both sides. The held-out 10 must hold at least 3 of her fails, and here they hold 4.
  4. The rubric changed against the 30. The judge marked them, the builder read every disagreement with Ana's mark, and changed the rubric: a line made tighter, or one good and one bad example added.2 Then the judge marked the 30 again.
  5. The judge marked the 10 once. It agreed on 9. The builder and Ana read the one disagreement together and wrote down why the judge missed it.

Figure 24.2. The split. The rubric changes against 30 answers, and agreement is measured once on the 10 the judge never saw.

What does calibrating a judge mean?

To calibrate a judge is to measure how often it agrees with a person's marks, and to change its rubric until it agrees more. The exam guide's words are "calibrated against human-labeled data". The human-labeled data here is Ana's 40 marks. The prep course teaches the loop: run the judge on cases a person already marked, count the agreement, fix the rubric, and count again.2

Only the rubric moves. When the judge and Ana disagree, the builder does not ask her to think again so that the number looks better. Her marks are the measure, and a measure that changes to fit the judge measures nothing.

Why hold answers out?

Because a rubric changed many times against the same 30 answers will fit those 30. It may fit them because it now says what Ana means. Or it may fit them because the builder added examples that look like those very answers. The 30 cannot tell you which. Ten answers the judge has never seen can.

The split is by question because the two answers to one question are alike. If one sat in the 30 and the other in the 10, the judge would meet the held-out answer already knowing the question.

Use the 10 once. If the builder reads the held-out result and then changes the rubric, the 10 have shaped the rubric and are no longer held out. A later rubric change needs new held-out answers, marked by Ana.

The prep course stops at the calibration loop. Anthropic's engineering posts hold test cases out for the system being tested.3 Holding marked answers out for a judge comes from a practitioner's guide.4

Why report passes and fails apart?

One number hides the part that matters. Suppose 19 of 20 answers are good, and a judge says "correct" to everything. It agrees with the expert 19 times in 20 and catches nothing.4 So the report gives two counts: how many of her passes the judge passed, and how many of her fails it caught. The second is the one that protects Brightline.

Brightline's report goes one step further, and gives agreement by kind of failure, with every disagreement read and explained. So the builder tags each of Ana's fails with one of the six failure names in 24.7, and she agrees to each tag. The report then lists, for each name, how many fails she marked and how many the judge caught. These are counts, never percentages: 10 answers give one or two fails to a name.

How much agreement is enough?

No source read for this chapter gives a number. So the builder and Ana read the line together before they trust the judge, and they decide for their own work. "3 of 4 fails" means the judge may pass about one wrong answer in four, on very little evidence: one more miss would have made it 2 of 4. Brightline accepts that because a judge's "correct" is never the only check. The checks by code still run on every answer.

What does calibrating cost?

Ana's time first: 40 answers to mark, and new ones after each rubric change that needs testing. It is fair to skip calibrating only when no judge's mark is used at all, because a person reads every answer.

Going further. A judge whose marks change as models change, a judge that favors long answers or the first option, and a judge that decides a release are Chapter 35's subject.

The operating rule: split the expert's marks by question before you write the rubric. Change the rubric, never her marks. Report agreement once, on held-out answers, on her passes and her fails apart.

Do this now. Ask your coding agent to plan a split for a small set of your own. Copy this line:

I have 12 answers that I marked pass or fail, two answers for each of 6 questions. Split them by question into a calibration group and a held-out group, so that no question is in both and the held-out group has at least one fail. Show me the two groups, and tell me what I may no longer do once I have seen the held-out result.

Check its last sentence against "Use the 10 once" above.

Check yourself

Question 1 / 8

0 answered

While the rubric is calibrated, the judge and Ana disagree on an answer. What changes?

  1. Building strong safety evaluations, Anthropic.↑
  2. Claude Certified Developer, Foundations prep path, Module 4: Production Engineering, Evals, and Security, Anthropic Partner Academy.↑↑2
  3. Writing effective tools for agents, with agents, Anthropic.↑
  4. Using LLM-as-a-Judge For Evaluation: A Complete Guide, Hamel Husain.↑↑2
Owner
Panaversity