The judge failed to parse and the mean went up
RolesAI Evaluation and ReliabilityLLM Product EngineeringAI Data Systems
The question
Your judge returns a JSON object with a score for each case. The pipeline parses it, and mean faithfulness rose from one week to the next with no change to the product. The logs show that the judge's output failed to parse on a growing share of cases. Explain the rise and fix the pipeline.
Answer it first, aloud or on paper. Then open the answer.
The answer
Show short answer
A parse failure becomes a missing score, and the aggregate silently drops missing scores. The cases that fail to parse are often the worst outputs, so dropping them lifts the mean. Catch the failure explicitly, record it as its own outcome, count it against the score or report it next to the mean, and alert when the failure share grows.
Show full answer
The mechanism
Bad JSON from the judge becomes a not a number value. A mean over a column with such values excludes them. The lesson names this as the second silent failure of a judge and asks for the parse to fail loudly with its own status.
Why the exclusion is biased
The judge breaks its format most often on long, odd or refused outputs. Those are also the low scoring outputs. So the exclusion removes the bottom of the distribution, and the mean rises for a reason that has nothing to do with quality.
The fix
- Wrap the parse in an explicit check and give every case a status: scored, parse failed, judge error.
- Report the parsed share with every run. A rising failure share fails the run.
- Publish the mean two ways: with failures counted as zero and with failures excluded. If the two differ a lot, the failures are not random.
- Allow one retry with a repair prompt, record that a retry happened, and cap retries.
- Store the raw judge text so a reviewer can read what broke.
Verify the diagnosis
Recompute last week's mean with failures counted as zero. If the rise disappears, you have the cause.
Follow-ups
L3SeniorWhy are the failed cases not a random sample?
Show expected answer
the judge breaks its format most on long, odd or refused outputs, which are also the low scoring ones.
L3SeniorDo you score a failed parse as a zero or leave it out?
Show expected answer
both, with the parsed share; a gate should treat a rising failure share as a failed run.
L4StaffHow do you design the judge output so this cannot happen silently again?
Show expected answer
a strict schema, a validator that rejects anything else, a status field per case, and a run level parse failure metric with an alert.
Wrong answers
Show the wrong answers that interviewers hear
“The mean rose, so quality rose.”
Nothing in the product changed; the denominator did.
“Retry until it parses.”
Retries without a record hide the failure and can change the score; record every retry and cap them.
“Exclude failures, they are judge bugs.”
The exclusion is biased toward bad outputs; the product number is wrong whatever the cause.
Taught in
The LLM evaluation frameworks lesson lists JSON parsing failures as a silent judge failure and requires an explicit failure mode.