An LLM judge scores or compares other models' outputs against a rubric for qualities such as helpfulness, faithfulness, tone or correctness that string matching cannot capture.
Rubric, verdict and human validation
The judge receives a rubric that defines the criteria, the input, the model's output and often a reference output. It returns a structured verdict: a label, a score, or a pick between two outputs in a pairwise comparison. A rationale with the verdict supports transparency.
- Provide the input prompt.
- Include the model output and a reference output.
- Define the judging rubric.
- Request a structured verdict.
- Validate the verdicts against human labels.
When calibrated and validated against human judgments, a judge can grade thousands of outputs in a fraction of the time a human would need. The role is that of an oracle in a property-based or snapshot test. The difference is that this oracle is an LLM, which is fallible and biased.
Judge bias: position, verbosity and style
Judges favor certain styles and longer answers, and they can prefer whichever output appears first. Four controls reduce the effect:
- Pairwise comparison in place of absolute scores.
- Order swapping: run A against B and B against A to cancel positional bias.
- Few-shot examples that anchor the rubric.
- Human validation: compare the judge's verdicts with human labels before relying on them.
Without calibration the results can be skewed, most of all for subjective qualities with no clear right answer.
Deterministic grader, LLM judge or human reviewer
| Grader | Use it for | Reason |
|---|---|---|
| Deterministic grader | Math, coding exercises, data extraction | Answers are checkable, and graders are cheaper and free of LLM bias. |
| LLM judge | Open-ended or subjective outputs at scale | Quality cannot be quantified by string matching. |
| Human reviewer | High-stakes evaluations | Accuracy matters most, with the judge as a first filter. |
Human grading is accurate but slow and costly, and exact match cannot assess tone or helpfulness. A calibrated judge scales to thousands of cases in minutes at a fraction of the cost. In the original MT-Bench study, a strong judge (GPT-4) agreed with human preferences more than 80% of the time, about as often as humans agree with each other (Zheng et al., 2023). For high-stakes evaluations, keep humans in the loop and use the judge as a preliminary filter.
Example scenario: a judge reaches 65% accuracy on helpfulness
Inconsistent scores can come from sensitivity to small changes in the prompt or context. The same output then gets different interpretations and fluctuating scores that do not reflect its quality.
- Check that input prompts are consistent across evaluations.
- Log the judge's rationale for a sample of outputs and look for patterns.
- A/B test other prompt formulations for more stable scores.