LLM-as-a-judge: Using a language model, prompted with a rubric, to score or compare outputs from another model.
Explained#
An LLM judge scores outputs against a rubric (pointwise) or picks the better of two (pairwise). It makes open-ended evaluation scalable, and it is a model with errors and biases of its own. Zheng et al. (2023) found strong judges reach over 80% agreement with human preferences, and documented position, verbosity and self-enhancement biases.
Calibrating a judge
- Label 200–500 outputs from the models you'll actually compare.
- Report sensitivity and specificity, not only Cohen's κ — κ moves with the pass rate of the outputs even when the judge doesn't change.
- Correct reported pass rates: .
- For pairwise judges, evaluate both orders and average.
Judge error also compresses gaps between models by the factor , so judge-scored evals need more items. Worked numbers: what Cohen's κ hides.
References#
- Zheng, L. et al. (2023). Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. arXiv:2306.05685. arxiv.org/abs/2306.05685