LLM Automated Evaluation LLM-as-Judge
LLM-as-Judge is an evaluation method in which a stronger language model acts as judge, scoring or comparing the quality of answers from another model. It automates subjective judgement that previously required human annotation, costs one to two orders of magnitude less and can be a thousand times faster, and has become one of the main evaluation methods in the large model iteration process.
Core principles
There are two basic forms. Pointwise scoring gives the judge a question, an answer and a rubric, and asks for a score or grade, optionally with reasoning; pairwise comparison gives two answers to the same question and asks the judge which is better, or whether it is a tie. Pairwise comparison is usually more stable on discrimination tasks, because models are good at comparing and bad at absolute calibration, and so are humans; but pointwise scoring accumulates absolute baselines more easily and is easier to regress-calibrate against human scores.
A typical process is: first build the evaluation set, containing questions and reference answers; then write the judge prompt, specifying scoring dimensions, grade definitions and output format; have the judge score each sample; finally calibrate against a batch of human annotations, checking the agreement rate between judge and human and whether the judge is systematically biased on certain categories.
The reasoning the judge outputs is more valuable than the score: it exposes ambiguity in the evaluation criteria and often in turn drives revision of the prompt.
The evaluation set itself must be maintained: samples should cover typical scenarios and long-tail hard cases, and should be trial-run periodically with new models to confirm discriminative power, avoiding stale questions that let every model score full marks. Pairwise comparison can also be reported with win rate and confidence intervals, which reflects real differences better than a single accuracy figure; if budget allows, adding a third judge for majority voting significantly reduces the randomness of a single judge.
Judge prompts should be version-pinned and committed to the code repository, and any change requires rerunning historical baselines, otherwise score changes cannot be attributed. For open-ended subjective questions, you can first define dimension weights, then have the judge score each dimension separately and finally aggregate with weights; this is more stable than a single total score.
Key points
Three systematic biases must be known. Position bias: in pairwise comparison the judge favours the answer appearing first or second; the fix is to swap the order, evaluate twice and average, or to score only when the two runs agree. Length bias: judges tend to give longer, better-structured answers higher scores even when the content is hollow; the fix is to control length, add a length penalty, or summarize long answers before scoring. Self-preference: models from the same family easily recognize and favour their own outputs; the fix is to keep the judge model from the same source as the candidate model, or to use multiple judges with voting.
Other points: scoring must be anchored in detailed criteria rather than a vague notion of good or bad; use reference-answer comparisons for spot checks; run the same evaluation set several times to observe score variance; the judge model must be clearly stronger than the model being evaluated, otherwise the evaluation produces noise.
Human calibration is indispensable: double-annotate a few percent of samples, compute the agreement rate with the judge, and if it falls below an acceptable threshold, revise the prompt or change the model.
Common misconceptions
First, treating judge scores as objective ground truth. It is more like a biased, calibratable measuring instrument, and absolute scores cannot be compared across evaluation sets.
Second, drawing conclusions from a single evaluation. When sample size is small and variance large, the difference between two model versions often falls within noise and is not significant.
Third, using the judge to evaluate questions on which it clearly lacks judgement, such as factual details in highly specialized domains; there, human review or tool verification should be used.
Application scenarios
Fast regression during model iteration, prompt version comparison, dialogue quality inspection, initial screening for multi-model benchmarking, RLHF data selection, and readability and format compliance checks.