Overview

LLM-as-judge uses a language model to score another model’s output against a rubric. The judge reads the task, the candidate answer, and optionally a reference answer, then returns a score and a rationale. It lets evaluation scale past hand-grading.

Judges have known biases: position bias (favoring the first option shown), verbosity bias (favoring longer answers), and self-preference (rating output from the same model family higher). Control them by swapping candidate order and averaging, writing a specific rubric with anchored score descriptions, requesting the rationale before the score, and using a different model family as judge where possible.

Calibrate before trusting trends. Grade a sample by hand from the golden-set, measure agreement between judge and humans (rank correlation or Cohen’s kappa), and recheck whenever the judge model or rubric changes. Skip the judge for high-stakes items where one wrong grade costs more than human review.

Example

A RAG eval runs 500 questions. A judge rates each answer from 1 to 5 for groundedness against the retrieved chunks; the mean is the run’s groundedness metric and the rationales help debug regressions.