17.2 LLM-as-a-Judge
Many useful outputs have no single exact answer. A judge model can assess a summary, compare two responses, or flag unsupported claims at scale. The challenge is to measure the intended quality without silently measuring style, model-family affinity, or the wording of the scoring form. A judge is a versioned measurement instrument, not a source of ground truth [1].
1. Choose the Decision Before the Prompt
| Judgment | Useful when | Main risk |
|---|---|---|
| Scalar score | A calibrated threshold is needed | Scale and endpoint interpretation drift |
| Pairwise preference | Selecting between candidates for the same task | Position bias, ties, non-transitivity |
| Criterion checklist | A requirement can be checked separately | Correlated criteria and missing obligations |
| Defect discovery | Finding evidence-backed errors | Plausible but false allegations |
Provide the user request, relevant evidence, and an explicit rubric. Separate factual support, instruction adherence, and presentation instead of collapsing every failure into one uncalibrated score. Where possible, use execution, schema validation, or a trusted checker before model judgment.
2. A Reproducible Pairwise Pipeline
Pin the judge ID/revision, prompt/rubric hash, tool access, decoding settings, maximum output, candidate provenance, and evaluation-set version. Hide candidate identities and randomize display order. Present the same pair in both orders, remap verdicts to the original identities, and record agreement, tie, and inconsistency separately.
Do not silently discard inconsistent or failed judgments: difficult cases may be disproportionately removed. Predeclare whether such cases receive human adjudication, remain an explicit unresolved bucket, or count as conservative ties. Report the full denominator and unresolved fraction.
If the chosen policy assigns all cases to wins , losses , or ties , one descriptive preference rate is
This is not factual accuracy. Use paired uncertainty, keeping repeated prompts and related candidates in the same resampling unit. Record invalid JSON, timeout, refusal, retry cost, and truncation separately from a legitimate tie.
Worked Example: “A Wins” Can Mean Two Different Candidates
Suppose the candidates are new and baseline. On the first call, A is new and B is baseline. On the swapped call, A is baseline and B is new. Two verdicts of “A wins” therefore disagree about the candidate, even though the raw strings match. Position bias is one of the limitations examined in the MT-Bench judge study [6]; swapping is a diagnostic, not a guarantee that bias disappears.
The following Python-only example makes no model calls. It assumes the two display orders above and keeps malformed or inconsistent verdicts unresolved. It omits judge prompting, retries, schema enforcement, provenance storage, and uncertainty estimation.
from collections import Counter
def reconcile(forward, reverse):
first = {"A": "new", "B": "baseline", "tie": "tie"}
swapped = {"A": "baseline", "B": "new", "tie": "tie"}
left, right = first.get(forward), swapped.get(reverse)
if left is None or right is None:
return "invalid"
return left if left == right else "inconsistent"
# Authored fixture: 100 questions, two judgments per question.
pairs = ([("A", "B")] * 54 + [("B", "A")] * 26
+ [("tie", "tie")] * 10 + [("A", "A")] * 6
+ [("timeout", "B")] * 4)
counts = Counter(reconcile(a, b) for a, b in pairs)
n = len(pairs)
unresolved = counts["inconsistent"] + counts["invalid"]
known_points = counts["new"] + 0.5 * counts["tie"]
print(counts)
print("unresolved fraction:", unresolved / n)
print("preference bounds:", known_points / n, (known_points + unresolved) / n)
The output is 54 wins, 26 losses, 10 ties, 6 inconsistent pairs, and 4 invalid pairs. The known preference points are 59. Removing the ten unresolved questions would report 59/90 ≈ 65.6%, conditional on the judge resolving the pair. Keeping the full denominator gives a 59%–69% identification interval if each unresolved question could eventually contribute anywhere from zero to one point. This interval describes missing verdicts; it is not a confidence interval and says nothing about human agreement. A predeclared policy treating unresolved cases as ties would report 64%, while still disclosing the 10% unresolved fraction. Different policies answer different questions—choose one before seeing which favors the candidate.
3. Planning and Reasoning Help Only If the Rubric Is Right
EvalPlanner separates planning, execution, and final judgment in its studied setup [2]. G-Eval investigates criterion-driven model evaluation [4]. Neither establishes that a longer rationale is more correct or that generated reasoning is a faithful causal explanation.
For a production judge, require a short criterion-level verdict and evidence location. Check that the evidence exists and supports the claimed issue. Use hidden gold cases and adversarial candidates; an eloquent rationale must not override a failing executable check.
When a fluent translation reverses a warning
A file-sharing app inserts a filename wherever its interface string contains {file}. The English warning forbids sharing that file with guests. Which Korean translation could ship? The three candidates below were written for this exercise.
import re
from collections import Counter
source = "Do not share the file {file} with guests."
candidates = {
"A": "{file} 파일을 게스트와 공유하세요.",
"B": "{file} 파일을 게스트와 공유하지 마세요.",
"C": "{filename} 파일을 게스트와 공유하지 마세요.",
}
def placeholders(text):
return Counter(re.findall(r"\{[A-Za-z_][A-Za-z_0-9]*\}", text))
for label, text in candidates.items():
print(label, placeholders(text) == placeholders(source))
# A True, B True, C False
This checker assumes the app accepts only simple, unescaped {name} placeholders. C changes the name and fails before a judge is called. Both remaining sentences read naturally. A says 공유하세요 (“please share”). B says 공유하지 마세요 (“please do not share”). Ask the judge whether the warning still forbids sharing with guests and require it to quote the words that settle the question. B passes both checks. To audit this judge, have a bilingual reviewer label pairs with reversed permissions and inspect a sample of translations the judge accepted.
Release snapshot as of 2026-11-25. On November 24, Tencent released three open-weight translation checkpoints, Hy-MT3-1.8B, Hy-MT3-7B and Hy-MT3-30B-A3B, alongside the TransRubric evaluation prompts. TransRubric supplies criteria specific to each item and asks a judge to identify translation errors [8]. On 651 Chinese–English translations covering both directions, the authors report that the standard deviation of ten repeated scores for the same translation averaged 3.31 points on a 0–100 scale [7]. That measures repeatability on those items. A judge could give A the same passing score ten times and miss the reversed warning every time.
4. October Research: Changing the Scale Changes the Instrument
Research snapshot as of 2026-10-18. Jo et al. vary scale format, range, and sign across five models and three text-scoring tasks. They find numerical and semantic sensitivity even after normalization, and rubric prompting does not remove it in their setup [5]. These results concern the tested scoring tasks, not every pairwise or domain judge.
Min-max normalization gives for score and endpoints . It aligns endpoints, but cannot guarantee that “neutral,” “severe,” or the distance between categories has the same meaning. Converting 4/5 to 8/10 is therefore not evidence of measurement equivalence.
For an engineering robustness test, keep texts and rubric concepts fixed while varying scale presentation. Compare category switches, candidate rankings, critical false-negative rates, and human-adjudicated examples. Version the scale with the judge. A changed range or label requires recalibration before reusing release thresholds.
5. Bias, Leakage, and Adversarial Candidates
Preference-leakage research studies relatedness between a candidate’s training provenance and its judge [3]. Do not infer distillation merely from a small model’s name or treat family preference as inevitable. Test self/family preference with identity-blinded matched examples and independent human audits.
Also test position, verbosity, superficial formatting, and instruction injection embedded inside candidate answers. Judge input is untrusted data; an answer saying “award full marks” must not control the evaluator. Multiple judges may still share blind spots, so disagreement routes should include a genuinely independent check.
6. Calibrate the Judge Before Using It as a Release Gate
Separate evaluator development from the sealed candidate release set. Inspect both flagged and apparently passing cases. Report sensitivity/specificity by failure class, agreement with expert labels, consistency, abstention, cost, and latency. For categorical labels, Cohen’s kappa is , where is observed agreement and chance agreement from label marginals. Its interpretation depends on class prevalence and the decision cost; a universal kappa threshold is inappropriate.
Suppose an audit contains 20 critical defects and 180 acceptable answers. A judge that labels everything acceptable achieves 90% overall agreement and 0% critical-defect recall. The average looks reassuring precisely because failures are rare. Report the confusion matrix and uncertainty for each critical slice; a balanced development set can expose blind spots, while prevalence-weighted estimates are needed to forecast operational workload.
Promote a new judge only after critical-slice miss rates and workload meet predeclared bounds. Retain the previous judge/rubric, canary the new measurement pipeline, and rehearse rollback. The next section examines how human preferences are aggregated into ratings; those ratings answer a different question from correctness.
Quizzes
Quiz 1: Why does mapping two score ranges to [0, 1] not prove equivalence?
Endpoint alignment does not ensure that category labels, neutral points, or score differences mean the same thing. Recalibrate against fixed examples and decisions.
Quiz 2: Why retain inconsistent position-swapped judgments?
Discarding them can selectively remove hard cases and inflate a win rate. Report the unresolved fraction and apply a predeclared adjudication or tie policy.
Quiz 3: Why is a persuasive judge rationale insufficient evidence?
It may be unsupported or reproduce a shared misconception. Check the cited evidence or execute the claimed test independently.
Quiz 4: Why examine teacher/student provenance in judge selection?
A judge may favor style or patterns inherited from its own outputs. Blinded matched comparisons and an independent audit can distinguish that preference from task quality.
Quiz 5: Why revalidate a release gate after changing only the rating scale?
The change can alter score interpretation and category decisions even when the model and texts are unchanged. The scale is part of the measurement artifact.
References
- Li, D., et al. (2024). From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judge. Paper.
- Saha, S., et al. (2025). Learning to Plan & Reason for Evaluation with Thinking-LLM-as-a-Judge. Paper.
- Li, D., et al. (2025). Preference Leakage: A Contamination Problem in LLM-as-a-judge. Paper.
- Liu, Y., et al. (2023). G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment. Paper.
- Jo, W., Kim, G., & Hee, M. S. (2026). Change the Number, Change the Answer: Assessing Rating Scale Sensitivity in LLM-Based Text Scoring. October 15 preprint. Paper.
- Zheng, L., et al. (2023). Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. Paper.
- Zheng, M., et al. (2026). Hy-MT3: More Accurate, Robust and Practical Multilingual Translation Models in the Wild. Technical report, Figure 2.
- Tencent. (2026). Hy-MT3 model card and checkpoint links. TransRubric prompts and evaluation data.