LLM-as-Judge

LLM-as-judge evaluation uses a model to score, classify, critique, or compare outputs from another system. It can scale qualitative review for RAG evaluation, but it is not ground truth. The judge prompt, candidate order, rubric, model version, and sampling settings are part of the evaluation artifact.

Judge-human agreement

For pairwise judging, compare the judge label with a human label on an audit sample. Agreement and kappa measure whether judge outputs are usable as a proxy:

This audit should sit next to human evaluation, not replace it. If the judge chooses the first answer too often, randomize answer order and estimate the bias.

Worked calculation

On a twelve-example audit, the human and judge labels compare as follows:

audit statisticvalue
exact agreements10 of 12
raw agreement0.833
Cohen’s kappa0.733
judge A-share after removing ties0.500

The judge agrees with the human labels on 10 of 12 examples and shows no A-side preference in this small audit. That is promising, but too small for a production claim; use repeated sampling and slice audits before trusting automated scores.

Caveats

LLM judges can reward verbosity, miss subtle factual errors, prefer outputs from similar models, and leak rubric assumptions into prompts. For abstention, the rubric must penalize both unsafe answers and unnecessary refusals. Keep a blind human audit set to detect drift in judge behavior.

References