productinterview.tools
MenuClose

Judge Validation: Trusting Your LLM Judge

Knowing when you can trust an LLM judge.

CoreEvals core3 lessons5 questions

What this module covers

  • Why an LLM judgeLLM-as-judge. Using a language model, with a rubric, to grade another model's outputs. Read the full explanation is a measurement instrument, and has to be measured before you trust it
  • TPR and TNR against expert labels, and why accuracy alone hides the dangerous error
  • Splitting labelled data so you don't tune the judge on the answers you test it on
  • What to change when the judge and the experts disagree
Judge validation

Why it matters, by role

  • Model PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation: release decisions lean on automated grading; you're expected to say when the grader itself can be trusted.
  • AI Safety PM: a lenient judge lets harmful outputs through; judge validation is how you show your safeguard metrics are real.
  • Applied AI PM: most product eval suites use LLMLarge language model. A model trained to predict the next token of text, used to generate and reason over language. Read the full explanation judges; "how do you know the judge is right?" is a standard follow-up.
  • Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation: customers ask why they should believe your eval numbers; a validated judge is the answer.

Lessons

  1. TPR and TNR: is the judge right?
  2. Splitting labels so you don't fool yourself
  3. Fixing a judge that disagrees with your experts

TPR and TNR: is the judge right?

An LLM judge is a measurement instrument. Before its numbers mean anything, you compare it with a trusted reference: a set of outputs labelled Pass or Fail by a domain expert.

Treat Pass as the positive class and build a two-by-two table of expert label against judge label. Then:

  • TPR (true positive rate) = outputs both the expert and the judge passed ÷ all outputs the expert passed.
  • TNR (true negative rate) = outputs both failed ÷ all outputs the expert failed.

Always divide by the expert's column, never by what the judge reported. A judge with 95% accuracy can still have a TNR of 50% if failures are rare, which means it waves through half the bad answers. Low TNR is the dangerous direction: the judge is too lenient, and your dashboard looks better than the product is.

A common bar: trust the judge when TPR and TNR are both above 90% (80% at the very least) on a held-out labelled set.

Splitting labels so you don't fool yourself

You'll tune the judge's prompt and rubric against labelled examples. If you then measure TPR and TNR on those same examples, you're grading your own homework.

Split the expert labels three ways:

Split Share Used for
Train ~20% Few-shot examples inside the judge prompt
Dev ~40% Iterating on the rubric and prompt
Test ~40% One final measurement, touched once

Make sure each split has enough failures. If failures are 5% of production traffic, a random 100-example test set has about five, too few to estimate TNR. Oversample failures when you label.

Fixing a judge that disagrees with your experts

When TPR or TNR misses the bar, read the disagreements on the dev set before changing anything. They usually fall into a few patterns:

  • The rubric is vague. The judge and the expert are applying different definitions. Rewrite the criterion as something observable ("cites a policy section that exists"), not a quality ("is accurate").
  • One judge is doing several jobs. Split it: one binary judge per failure mode is easier to validate than a 1–10 score across everything.
  • The judge lacks context the expert had. Give it the source documents or the policy it's grading against.
  • The experts disagree with each other. Measure agreement between experts first; a judge can't beat the reference it's compared with.

Re-measure on dev after each change, and only check test once you're done.

Questions

Rubric

Dimension Weak Passable Strong
Reference Trusts the judge, or compares it with another model Compares with human labels Compares with expert labels, and checks expert agreement
Metrics One accuracy number TPR and TNR, or precision and recall TPR and TNR with the right denominators, and says which error is worse
Data hygiene Tunes and tests on the same examples Holds out a test set Train / dev / test, with enough failures in each
Iteration Rewrites the prompt at random Changes the rubric after seeing errors Reads disagreements, fixes the cause, re-measures on dev only

Build it

Next modules