Check the Judge Against Human Labels
A model grader, often called a judge, is itself a language model, so its verdicts can be wrong. Before you trust its pass rate, you check it the way you would check any measuring tool. You compare its verdicts with careful human judgments on the same outputs and count where the two differ. Then you fix the judge where it goes wrong, and confirm the fix on judgments it has never been tuned on.
Human labels as the reference
To know whether a judge is right, you need something to compare it with. That reference is a set of human labels: a person reads a sample of real outputs and marks each one pass or fail, using the same criterion the judge uses. If the judge checks whether every claim in an answer is supported by the source text, the person labels exactly that, and nothing else, such as tone or length.
The labels are treated as the truth for this comparison. That only works when they are trustworthy, so in practice they come from one person who knows the domain well and applies the criterion consistently, usually the same person who wrote the pass and fail definitions. The sample also has to hold both kinds of output: enough failed ones and enough passed ones, because, as the next sections show, the judge is measured separately on each.
- Sample of outputs
- Person labels pass or fail
- Judge verdicts pass or fail
- Compare per output
- Sample of outputs to Person labels: same criterion
- Sample of outputs to Judge verdicts: same criterion
- Person labels to Compare per output
- Judge verdicts to Compare per output
Labels are only needed where a judge makes the decision. A check that plain code can decide, such as whether a required field is present, gives the same verdict every time and needs no human reference. And labelling has a useful side effect: deciding real borderline cases one by one usually makes the person sharpen the criterion itself, which later sharpens the judge.
True or false?
A judge built on a strong model can be trusted without comparing it to human labels.
False. A judge is a model with errors of its own. Only a comparison with labels shows how often it misses failures and how often it raises false alarms.
The person labelling should judge the same single criterion the judge is asked about.
True. Otherwise a difference between the two can come from judging different things, and says nothing about whether the judge is right.
Agreement, and why it can mislead
The first number most people compute is agreement: the share of outputs where the judge's verdict matches the person's label. If judge and person give the same verdict on 87 of 100 outputs, agreement is 87%.
Agreement is easy to understand, and it works well when roughly half the outputs fail. The trouble starts when most outputs pass, which is the usual situation for an app that mostly works. Take 100 labelled outputs in which the person failed 20. Now imagine a useless judge that answers pass to everything. It matches the person on all 80 passing outputs and misses all 20 failures, so its agreement is 80%. It looks fairly good, yet it has never caught a single failure.
Agreement
The trap p is the share of outputs the person failed
The rarer the failures, the worse the trap: with 5 fails in 100, the same do-nothing judge scores 95%. This is known as the accuracy paradox. Agreement is dominated by whichever verdict is most common. So it mostly reports how often outputs pass, not how well the judge finds failures, and finding failures is the reason the judge exists.
True or false?
A judge with 90% agreement must catch most of the failures.
False. If 10% of outputs fail, a judge that passes everything also reaches 90% agreement while catching none of them.
When about half the outputs fail, a judge that passes everything gets about 50% agreement.
True. Its agreement equals the share of passing outputs. The trap matters most when that share is large.
Two rates instead of one
The fix is to measure the judge separately on the two kinds of output. In evaluation, positive means a failure is present, so a judge's fail verdict is a positive and its pass verdict a negative. Each labelled output then falls into one of four cells, depending on what the person said and what the judge said. In formulas the four cells are shortened to TP, FN, FP and TN.
| Judge says fail | Judge says pass | |
|---|---|---|
| Person said fail | True positive (caught): 15 | False negative (missed): 5 |
| Person said pass | False positive (false alarm): 8 | True negative: 72 |
From the four cells come two rates, each computed within one row of the table:
- The true positive rate (TPR, also called recall) is the share of the person's failures that the judge also failed. Here 15 of 20, so 75%. A low TPR means the judge lets real failures through.
- The true negative rate (TNR) is the share of the person's passes that the judge also passed. Here 72 of 80, so 90%. A low TNR means false alarms: good outputs flagged as failures, which someone then has to review.
True positive rate
True negative rate
Because each rate looks only at one kind of output, neither is inflated by how common passes are. The do-nothing judge from the previous section now shows what it really does: a TPR of 0% and a TNR of 100%.
- Passes everything
- Working judge
- Agreement
- True positive rate
- True negative rate
The two rates are reported side by side, never merged into one number, because they pull against each other. A judge told to be stricter catches more failures (TPR up) but usually also flags more good outputs (TNR down). Which one matters more depends on the cost: if a missed failure could reach a customer, you push TPR up and accept some false alarms; if failures are rare, even a small false-alarm rate creates many needless reviews.
Counting the cells takes a few lines of plain Python. Each pair holds the person's label and the judge's verdict for one output:
def judge_rates(pairs):
tp = sum(1 for person, judge in pairs if person == "fail" and judge == "fail")
fn = sum(1 for person, judge in pairs if person == "fail" and judge == "pass")
tn = sum(1 for person, judge in pairs if person == "pass" and judge == "pass")
fp = sum(1 for person, judge in pairs if person == "pass" and judge == "fail")
return {
"agreement": (tp + tn) / len(pairs),
"tpr": tp / (tp + fn),
"tnr": tn / (tn + fp),
}True or false?
The true positive rate is the share of outputs the judge passed correctly.
False. Positive means a failure is present. The TPR is the share of the person's failures that the judge also failed; correct passes are the TNR.
Making the judge stricter can raise its true positive rate and lower its true negative rate at the same time.
True. A stricter judge fails more outputs: more real failures are caught, and more good outputs are flagged by mistake.
The two rates can be computed only when the labels hold both failed and passed outputs.
True. The TPR divides by the number of failed outputs and the TNR by the number of passed ones; with none of a kind, that rate cannot be measured.
Improving the judge from its disagreements
The two rates say how often the judge is wrong. The outputs where judge and person disagree say why. Each disagreement is either a miss (the person failed it, the judge passed it) or a false alarm (the person passed it, the judge failed it). Read them one by one, next to the judge's written reasoning, and a pattern usually shows.
Suppose the judge checks that an answer makes no claim beyond its source text, and several of the misses are answers that add a delivery time the source never mentions. The judge's reasoning says the claim does not contradict the source. The fail definition in the prompt only spoke of contradictions, so the judge applied it faithfully. The fix is in the prompt: state that a claim the source does not support is a fail even when nothing contradicts it.
- Run the judge on the tuning labels
- List disagreements misses and false alarms
- Read each one with the judge's reasoning
- Edit the prompt definitions or examples
- Run the judge to List disagreements
- List disagreements to Read each one
- Read each one to Edit the prompt
- Edit the prompt to Run the judge: measure again
Most fixes touch one of two places in the judge prompt:
- The definitions. Vague wording such as "accurate" or "relevant" leaves room for the judge to decide differently from the person. Replace it with the exact condition the person used, and name the borderline case that caused the disagreements.
- The examples. A worked example teaches the judge where the line is. Adding one close to a recurring disagreement, with a detailed critique of why it passes or fails, often settles it. Examples are sensitive, though: changing their number, order or labels can shift the verdicts, so measure again after every change.
Read the disagreements yourself before trying anything automatic. Some problems are not in the wording at all: the judge may lack the source text or the user's question, or the person's label may turn out to be the mistake, and only reading the cases reveals that. After each edit, recompute both rates, so you see whether the fix helped one without hurting the other.
True or false?
When judge and person disagree, the judge prompt is always the thing to change.
False. Reading the case can show missing context, such as a source text the judge never received, or a human label that was itself wrong.
After a change to the judge prompt, both rates should be measured again.
True. A change that catches more failures can also add false alarms, and only the two rates together show that.
Tune on one part, confirm on another
There is a catch in the loop above. Every time you read the disagreements and edit the prompt, you shape the judge to fit those particular labels. After a few rounds, the judge scores well on them partly because it was fitted to them, just as a student who has seen the exam questions scores well on that exam. This is overfitting, and it happens even if none of those outputs is ever pasted into the prompt: your edits carry what you learned from them.
The answer is to split the labels before you start, into three parts that never mix:
- All human labels
- Training part about 10-20%: prompt examples
- Development part about 40-45%: tune the judge
- Test part about 40-45%: held back, used once
- All human labels to Training part
- All human labels to Development part
- All human labels to Test part
- The training part supplies the worked examples in the judge prompt. Its outputs are never used to measure the judge, because the judge has effectively seen their answers.
- The development part (dev) is where the loop runs: measure the rates, read the disagreements, edit, measure again, as often as needed.
- The test part is set aside until you stop changing the judge. Then you run the finished judge on it once and report those rates. They are honest because nothing about the judge was decided by looking at these outputs.
If the test rates come out much worse than the dev rates, the judge was overfitted to dev, and the test result is the one to believe. Once you have looked at the test part, it has influenced you, so if you go back and change the judge, the next final check needs a new set of labels that nobody has seen.
Each part also needs enough failed and passed outputs to measure both rates. With 10 failures in the test part, one more failure caught moves the TPR by 10 points, so such a figure is a rough estimate. Guidance from practitioners is to label around 100 to 200 outputs per failure mode, with 30 to 50 fails and 30 to 50 passes in each of the dev and test parts, when that is possible.
True or false?
If dev outputs never appear in the judge prompt, the dev rates are a fair final measure of the judge.
False. Each edit was chosen by reading dev disagreements, so the judge is fitted to them anyway. Only the untouched test part gives the final figure.
A worked example in the judge prompt should come from the training part, not from dev or test.
True. An example the judge has seen with its answer would flatter the rates measured on whichever part it came from.
Checking the test part after every prompt edit is a good way to track progress.
False. Then the test part becomes a second dev part and its rates are flattered too. Progress is tracked on dev; the test part is used once, at the end.