Open Agent School · Public worked example
LLM-as-a-Judge: meaning and example
Welcome! Take one idea with you today.
LLM-as-a-judge means using a language model to score or compare outputs, usually against a written rubric. It is a measuring instrument, so it needs the same care as any instrument: a definition of what is being measured, a check against trusted human labels (calibration), known biases such as preferring whichever answer is shown first (position bias), and an estimate of uncertainty.
Picture it: An invented cooking app compares two draft replies to each synthetic home-cook question and wants a model to pick the better one. A food editor has already labeled 100 pairs by hand. You notice the judge seems to favor whichever reply appears first. Decide how to measure and report the judge's reliability.
What is easy to mix up?
Judges show position, length, and self-preference biases and can misread a rubric. Calibrate against human labels, swap orders, report uncertainty, and recheck whenever the rubric, judge model, or task changes.
Teaching example by Open Agent School. Source: Zheng et al. - Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena.