Unit 3 of 7 · about 3 hours · explain, measure
Model judges and human review
Open-ended quality has no ground truth, so a judge is a measuring instrument with its own errors. Without bias controls and a human spot check, win rates measure style more than correctness.
You'll be able to
- Explain position, length, style, identity and verbosity biases in model judges and the fix for each.
- Explain when human review and adjudication subsets are needed instead of another automatic metric.
- Measure judge disagreement with a position-swap study and report residual uncertainty against a human or deterministic subset.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Modern LLM Notebook 25-evaluation: LLM-as-Judge and AlpacaEvalModern LLM Notebook - evaluation and FLOP accounting
Section 4.1 to 4.3 (judge idea, WR, LC win rate and MT-Bench scores,
JUDGE_PROMPTwith[[rating]]format and the two-sample scoring loop) and Section 6.1 to 6.5 (AlpacaEval 805-prompt workflow, CLI and Python API, LC versus raw win rate with average length) - Modern LLM Notebook 25-evaluation: judge bias and consistencyModern LLM Notebook - evaluation and FLOP accounting
Section 8.1 (position, length, egocentric and verbosity biases with randomize, LC win rate and cross-judge mitigations) and Section 8.2 (
CR@K, prompt, order and sampling robustness, plus manual review proportion by risk) - CS336 Lecture 12: chat benchmarksStanford CS336 - resource accounting, inference and evaluation
Function
chat_benchmarks()with Chatbot Arena pairwise ELO, live prompts, style versus correctness and sycophancy risks; AlpacaEval 805 win rate versus GPT-4 preview with length gaming and 2.0 regression debias plus Arena correlation; WildBench 1024 examples with checklist judging
Focus on
- Randomize order and average both directions. A judge that flips with position is reporting position, not quality.
- Report LC win rate with raw win rate and average length. Longer answers win raw comparisons even when they are worse.
- Checklists and rubrics beat single scores for both human and model judges. WildBench uses them for that reason.
- One judge model is one instrument. Cross-check with a second judge plus a human or deterministic subset before claiming a win.
Common mistakes · 3
- Treating a single GPT-4 score as ground truth. Agreement with humans depends on task, prompt, version and format.
- Assuming length control fixes everything. It corrects length, not position, style, identity or verbosity effects.
- Skipping human review because the judge correlates with Arena. Correlation on past prompts does not certify your task.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.The judge picks answer A when it is first, then answer B after a swap. What is that, and what fixes it?Answer
Position bias. Randomize the order, average both directions, and report the inconsistency rate before trusting the verdict.
2.Model X has higher raw win rate but lower LC win rate than baseline, with much longer outputs. Which rate should you trust?Answer
The LC rate. Raw win rate is inflated by length, so check average length and inspect a subset by hand.
3.How does Chatbot Arena turn pairwise votes into ELO scores?Answer
. Fit ELO scores to maximize the likelihood of the observed pairwise wins.
4.When is human adjudication required?Answer
When correctness matters rather than style, when judge disagreement is high, or when the risk is high. Size the subset by risk and budget, judge with a checklist, and keep every raw judgment.
Practice
- Modern LLM Notebook 25-evaluation Exercise 2: LLM-as-Judge Bias Detection
Exercises: Exercise 2 with the same answer pair swapped across 3 repeats; the position bias rate is inconsistent scores over total
You're done when
Your swap study reports an inconsistency rate, and every win rate you quote comes with LC, lengths and a human-checked subset.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 4 more in the section
- Stanford CS336 - resource accounting, inference and evaluationStanford University · primary
Use Spring 2026 Lectures 2, 10 and 12 for FLOPs, memory, arithmetic intensity, inference and evaluation. Reproduce the small calculations locally. Assignment 3 IsoFLOPs analysis is optional; do not require its hosted training API or costly experiments.
- Modern LLM Notebook - evaluation and FLOP accountingWalking Labs · required
Use English notebook 25-evaluation and Appendix B FLOP and memory accounting. Build a 20-example evaluator with two slices, raw outputs and bootstrap intervals, and deliberately create one parser, prompt or judge failure.
Also in this section
- LLMs from Scratch companion - GPT FLOP analysisSebastian Raschka · required
Use ch04/02_performance-analysis/flops-analysis.ipynb as a concrete calculator, then rebuild the formulas from the model configuration and reconcile parameters and at least one memory or operation estimate with runtime state.
- LLM Foundations Checkpoint - evaluation and arithmetic sliceRoadmap-Final · support
Use the contamination, evaluator-bias, parameter, FLOP, activation, state and KV requirements as the assessment contract. Keep raw outputs and distinguish a verified task result from a broad model capability claim.
- Language Model Evaluation HarnessEleutherAI · optional
After the small evaluator passes, inspect task versioning, request construction and result schemas to understand production evaluation plumbing. Do not use the harness as a substitute for owning the task and metric contract.
- Stanford CS336 Assignment 3 - IsoFLOPs scalingStanford University · optional
Use Section 2.1 and Problem
chinchilla_isoflopswithdata/isoflops_curves.jsonfor the bounded curve-fitting exercise only. Do not use the hosted training API or costly experiments.