LLM as Judge
Scaling grading with models
Use a model to grade models: rubric-driven, fast, scalable evaluation where human annotation can't scale. Judges need calibration, position-bias control, and human spot-checks to stay trustworthy.
What you will learn
- Author judge rubrics
- Control judge biases
- Calibrate judge against human grades
What is this?
An LLM-as-judge grades answers with a rubric rather than matching strings — fast and scalable across big eval sets. Trustworthiness requires control: explicitly separate instructions from the judged content, avoid position bias (vary order in pair comparisons), and periodically calibrate the judge against human grades.
Why do you need it?
- Human review doesn't scale to thousands of variants.
- Judges handle open-ended multi-dimension quality cheaply.
- Rubrics give judges (and humans) a shared standard.
- Calibrated judges approach agreement with careful human grading.
Mental model
A trained examiner with a rubric
LLM judge
Examiners don't grade by vibes; they use a rubric (criteria + anchors), read blind where possible, and their grading is audited against a panel (calibration). An untrained examiner is noise; a trained, calibrated one is repeatable. Your judge model needs the same discipline.
How it works
- Write a rubric: dimensions, anchors, pass rules.
- Prompt the judge with role + rubric + item, nothing else mixed in.
- Randomize presentation order for pair grades.
- Run on a sample; compare against human grades.
- Adjust rubric/threshold until judge-human agreement is strong.
Judge loop.
In production
- Large prompt sweeps graded quickly through judges.
- RAG evals use judges for coherence+ groundedness.
- Support-answer evals score tone+resolution with rubric.
Best practices
- Separate the artifact from instructions (no concatenated style bleed).
- Randomize order in A/B judge comparisons.
- Calibrate on samples where humans graded first.
- Re-calibrate judges when models change.
Common mistakes
- Judge 'agrees' because it saw the answer before grading.
- Position bias: option A always wins in pair grading.
- No human audit — the judge rot goes unnoticed.
Common issues
Judge disagrees with humansPoor rubric or judge model
Re-author anchors; try a stronger judge; sample humans.
Judge suspects the graded answer is its ownLeakage in prompt
Clean separation; randomize; don't include reference drafts.
Debugging tips
- Judge favors style over logic → rubric calls out correctness explicitly.
- Scores cluster at ceiling → anchors too generous; re-anchor.
- Judge-model change shifts grades → re-calibrate and re-run baseline evals.
Interview checkpoint
Hands-on lab
- Score outputs against a rubric with attributes
- Apply the judge to a response batch
- Aggregate scores and flag weak items
Simulate an LLM Judge
30 min · intermediate
Quick quiz
Position bias in pair grading is controlled by…
Judge models need periodic human calibration.