+1 (570) 533-9287

Calibrating an LLM Judge: Agreement, Bias Checks, and When to Stop Trusting It

An LLM judge is a measuring instrument. If you have not checked it against something you trust, a green eval run tells you the judge is happy, not that the app improved.

This post covers how we calibrate a judge before it is allowed to gate a change: a labeled set, an agreement metric, three bias checks, and a rule for what the judge may and may not decide.

Why an uncalibrated judge fails quietly

A judge prompt returns a score for almost any input. It never errors out. That is the problem. Typical failure modes:

  • Rubric drift. The prompt says "is the answer helpful?" Two runs interpret "helpful" differently, so scores move without any change to your app.
  • Self-preference. A judge tends to rate output from its own model family higher. If you swap generator models, the eval delta partly measures the swap.
  • Verbosity and position bias. Longer answers score higher. In pairwise comparisons the first option wins more often than it should.
  • Ceiling effects. When 90% of outputs score 4 or 5 on a five-point scale, the judge cannot see regressions inside that band.

None of these show up in the aggregate score. You find them by comparing against labels.

Step 1: Build a small human-labeled set

Take 100 to 200 examples from real traces. Include failures, not just typical traffic. If you have bootstrapped a suite from production traces, reuse those examples.

Have one domain-literate person label each example with a binary verdict per criterion: grounded in the retrieved context or not, answers the question asked or not. Prefer binary labels to 1-5 scales. They are faster to produce, and two labelers disagree less.

Have a second person label a subset of 30 to 50. Compute their agreement. That number is your ceiling. A judge cannot be meaningfully more consistent with humans than humans are with each other.

Step 2: One criterion per judge, with a narrow rubric

Split "quality" into separate judges. Each gets a rubric that names observable evidence:

Criterion: groundedness
Pass if every factual claim in the answer is supported by a
passage in CONTEXT. Fail if any claim is absent from CONTEXT
or contradicts it. Ignore style and completeness.
Return JSON: {"reasoning": str, "verdict": "pass" | "fail"}

Use structured output for the verdict so parsing never becomes a source of noise. Set temperature to 0 where the provider allows it, and record the judge model and prompt version with every run.

Step 3: Measure agreement, not accuracy alone

Run the judge over the labeled set and build a confusion matrix against the human verdict.

from sklearn.metrics import cohen_kappa_score, confusion_matrix

human = [ex["human_verdict"] for ex in labeled]
judge = [run_judge(ex) for ex in labeled]

print(confusion_matrix(human, judge, labels=["pass", "fail"]))
print("kappa:", cohen_kappa_score(human, judge))

Raw accuracy misleads when classes are imbalanced. If 85% of examples pass, a judge that always says pass is 85% accurate. Cohen's kappa corrects for chance agreement, and the confusion matrix shows which direction the errors go.

The direction matters more than the headline number. For a groundedness judge used as a release gate, the costly error is a false pass: the judge accepts an unsupported answer. Track false-pass rate on its own. Then read every disagreement. Most calibration work is reading 20 disagreements and fixing the rubric sentence that caused them.

Step 4: Test for bias directly

Three checks, each cheap to run on the labeled set:

  1. Position swap. For pairwise judges, run every pair in both orders. If the verdict flips often, the judge is reading position. Only count a win when both orders agree, and treat the rest as ties.
  2. Length perturbation. Take passing answers and pad them with correct but redundant sentences. If scores rise, the judge rewards length. Add an explicit rubric line against it, then re-test.
  3. Model-family swap. Score the same outputs with a judge from a different provider. Large disagreement on outputs from one generator family points to self-preference. Use a judge from a different family than the generator where you can.

Record each result. They become the documented limits of the instrument.

Step 5: Decide what the judge may gate

Calibration ends in a policy, not a score. Ours is roughly:

  • Deterministic checks first. Exact match, schema validity, citation-present, and regex checks need no judge. Use them wherever the property is checkable by code.
  • Judge as a gate only for criteria where agreement with humans is close to human-human agreement and the false-pass rate is acceptable to the owner of the feature.
  • Judge as a signal for everything else. It flags examples for human review but does not block a merge.
  • Humans for a rotating sample. Re-label 20 to 30 fresh production examples each cycle and re-run the agreement check.

Step 6: Keep it calibrated

A judge is pinned to a model version, and providers retire and update models. Treat a judge change like any dependency bump: re-run the labeled set and compare kappa and false-pass rate before the new judge scores anything that matters. Version the rubric in the repo and store it alongside results in your tracing tool, so you can explain why a score changed between two runs.

If the labeled set stops resembling traffic, the calibration is stale. Add examples from new failure clusters as they appear.

When not to use a judge

If the task has a reference answer that code can compare, such as an extracted field, a classification label, or a SQL result, compare it with code. A judge adds cost, latency, and variance, and gives nothing in return. Reserve judges for open-ended output where no deterministic check exists, and then only after the steps above.

Summary

  • Label 100 to 200 real examples with binary verdicts, and measure human-human agreement.
  • Write one narrow rubric per criterion and return structured output.
  • Report kappa and false-pass rate against human labels, and read the disagreements.
  • Test position, length, and self-preference bias directly.
  • Give the judge a defined scope: gate, signal, or not at all. Re-check it whenever the judge model or the traffic changes.

If your eval scores have stopped predicting what users see, an Evaluation & Observability engagement usually starts with exactly this audit.