When to reach for it
- Human evaluation must be scaled.
- Quality criteria can be linguistically formulated.
- Regressions in agent responses need to be detected.
An LLM grades another LLM.
A model evaluates outputs against criteria, rubrics, or comparative examples — scoring one output at a time (pointwise) or picking the better of two (pairwise, more robust to score drift). Structuring the judgment as chain-of-thought reasoning before a form-filled score (the G-Eval paradigm) improves alignment with human ratings.
In practiceA customer-service platform runs a frontier-model judge nightly over a sampled 5% of agent responses, flagging answers that fail a tone-and-accuracy rubric before they surface in the weekly quality report.
Without itWithout an automated judge, semantic regressions — answers that are factually wrong yet structurally valid — accumulate undetected, since schema validators and log monitors have no rubric for correctness or tone. See the anti-pattern →
A second model reads an answer together with a rubric and returns a judgement. It reasons first and scores afterwards, and its scores are compared with human ratings before anyone relies on them.
1 · Prepare
2 · Judge
| Answer | Accuracy | Tone | Flag |
|---|---|---|---|
| Explains the return policy correctly and kindly | 5 | 5 | None |
| Correct, but curt, and blames the customer | 5 | 2 | Flagged for tone |
| Polite, but names a return period of 60 days where the policy says 30 | 1 | 5 | Flagged for accuracy |
| Correct and polite | 5 | 5 | None |
import random
RUBRIC = """Accuracy (1-5): does the answer match the policy text?
Tone (1-5): is the answer polite and free of blame?"""
def judge(question, answer, policy):
reply = judge_model(
f"{RUBRIC}\n\nPolicy:\n{policy}\n\nQuestion:\n{question}\n\nAnswer:\n{answer}\n\n"
# reason first,
"First reason about each criterion in two sentences. "
'Then return JSON: {"accuracy": n, "tone": n}.' # score afterwards
)
return parse_scores(reply)
def nightly_report(conversations, sample_rate=0.05, threshold=3):
sample = [c for c in conversations if random.random() < sample_rate]
scored = [(c, judge(c.question, c.answer, c.policy)) for c in sample]
# the flagged answers
return [c for c, scores in scored if min(scores.values()) < threshold]When to reach for it
When it backfires
The judge model was trained on the same corpus as the generator. It rewards answers that sound correct rather than are correct.
Countermeasure
Use a different model family for evaluation, or ground scores in verifiable checks (test cases, regex, database queries).
Both generator and judge hallucinate the same false fact. The judge gives a high score to a wrong answer.
Countermeasure
Add a human calibration set. When judge and human disagree, retrain the rubric or switch to a non-LLM verifier.
In pairwise judging the model favors whichever answer comes first and rewards longer, more confident-sounding text; worse, it scores its own generations higher than humans do (self-preference correlated with self-recognition).
Countermeasure
Average both orderings to cancel position bias, normalize for length, and judge with a different model family than the generator. Calibrate against a human-rated set.
Search patterns, frameworks, and pages.