Unit 4 of 10 · about 5 hours · implement, measure
Model-judge rubrics and calibration, and position, length, style and self-preference bias
Model judges make open-ended evaluation cheap enough to iterate, but their shortcuts can become the optimization target. This unit extends the LLM Foundations unit on model judges and human review from warning about bias to measuring it in your own instrument.
You'll be able to
- Write an anchored judge rubric and compare its decisions with a hand-labeled subset not used to revise the rubric.
- Implement controlled position, length, style, identity-cue and self-preference probes on fixed answer pairs.
- Separate length-adjusted preference from correctness and report residual disagreement and invalid judge outputs.
Covers
Read
In this order, only the parts listed
0 of 3 done
- MT-Bench: judge biases and human agreementJudging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023)
Sections 3.1 to 3.5, especially 3.3 Limitations and 3.4 Addressing limitations; Section 4.2, High agreement between GPT-4 and humans
Study the rubric and counterexamples. The paper's hosted judges and agreement figures are not the learner's implementation or expected results.
- Length control is a fitted counterfactualLength-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluators (Dubois et al., 2024)
Section 3, Length-Controlled AlpacaEval: Length control via regression, The regression model and Obtaining length corrected (LC) win-rate; Other biases discussion
Do not run the paid annotation pipeline. Contrast its instruction and transformed-length terms with TensorTonic's simpler linear-length drill; they are not the same estimator.
- Inspect: explicit rubric and grader selectionInspect
Overview, Template Variables and Reproducible Grading (page read 2026-10-16)
Use Inspect 0.3.281 with an explicitly selected local grader. For its Hugging Face backend set
do_sample=Falsein model arguments, nottemperature=0. Skip hosted-provider examples.
Focus on
- Label 20 short answer pairs by hand against explicit correctness and usefulness anchors. Split by question into rubric-development and held-out audit halves before inspecting judge errors. Record uncertainty in your own labels.
- Swap order while preserving candidate identity. Add controlled verbosity, formatting and claimed-author changes with content checked by hand. Identity cues test attribution bias; actual judge-authored versus other-authored answers test self-preference but also confound answer quality.
- Use Qwen/Qwen3-0.6B at revision c1899de289a04d12100db370d81485cdf75e47ca for a local grader, with model and tokenizer from that revision, PyTorch 2.14.1 and transformers 5.19. Disable thinking and cap judge output at 128 tokens. Run short pairs serially on your GPU or CPU; a weak judge is an audit result, not a reason to buy an API.
- Calibration here means checking and revising the instrument against trusted labels, then auditing held-out agreement. It is not proof that rubric scores are calibrated probabilities. Separate raw preference, length-adjusted preference, correctness and invalid-verdict coverage.
Common mistakes · 3
- Calling order-swap consistency accuracy. A judge can be consistently wrong in both orders.
- Dividing a score by answer length and calling it Length-Controlled AlpacaEval. The paper fits a regression and evaluates it at equal length.
- Tuning rubric and acceptance thresholds on the same subset used to report agreement, or dropping unparsable grades from coverage counts.
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.Can longer answers legitimately be better?Answer
Yes. Extra content can supply needed evidence. A controlled length probe preserves relevant content; an observational length coefficient alone does not prove causal bias.
2.Why does changing only the claimed author not isolate actual self-preference?Answer
It isolates sensitivity to the identity cue. Genuine self-preference involves answer provenance; comparing naturally different outputs also needs quality controls.
3.A small local judge disagrees with trusted labels. Should it decide release?Answer
Not without a justified error budget. Retain the failure, use deterministic or manual scoring for the decision, and limit any model-judge claim to the audited task and slices.
Practice
- TensorTonic: Remove Response-Length Bias from Judge Scores
Implement
judge_length_debiasing; public cases Balanced identities with length bias, Neutral reciprocal ties and Unseen third modelUse PyTorch 2.14.1 on CPU. The public inputs exercise the supplied finite-step fitting rule and neutral unseen-model convention, not causal identification or grader correctness. The section mini-project covers rubric calibration and the controlled local judge probes.
You're done when
The drill passes its public cases, and your held-out judge audit reports raw decisions, swapped-order consistency, coverage and residual errors for each controlled probe.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 15 more in the section
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023)LMSYS · required
Read Section 3 (position, verbosity and self-enhancement bias and their mitigations) and Section 4.2 (agreement with humans). Swapping order reduces position bias but does not prove the judge correct.
- Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluators (Dubois et al., 2024)Stanford University · support
Read Section 3: a regression that asks what the preference would be at equal length. Dividing a score by length is not this method, and length control leaves style biases.
- InspectUK AI Security Institute · support
Implement one small Inspect task on a local Hugging Face model with a deterministic scorer and one model-graded scorer. For greedy decoding pass
do_sample=Falsein the model arguments;temperature=0fails. Keep the.evallogs and compare the model grader against a trusted subset before using it for a claim.
Also in this section
- CS336 2026 - EvaluationStanford University · primary
Step through the Lecture 12 trace (perplexity, knowledge, instruction, agent, reasoning and safety benchmarks, validity). Rebuild conditional perplexity, multiple-choice scoring and one generation evaluator, then fix prompt, decoding, item and inference-compute versions before any comparison.
- Language Model Evaluation HarnessEleutherAI · required
Follow
docs/new_task_guide.mdto write one local JSON task (dataset_path: json) with explicitoutput_type, prompt, choices, filters and metrics, and run it with--log_samplesto keep per-sample outputs. Pin the harness version (0.4.13 was checked).should_decontaminateonly marks a query; it does not search any training corpus. - Lessons from the Trenches on Reproducible Evaluation of Language Models (Biderman et al., 2024)EleutherAI · required
Read Section 2.3 (why implementations of the same benchmark disagree), Section 3 (share exact prompts, code and model outputs) and Section 4 (uncertainty). Section 4.3 notes that its bootstrapped standard error covers resampling the questions, not training seeds.
- Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations (Miller, 2024)Anthropic · required
Read Section 2 (independent and clustered questions), Section 4 (unpaired and paired comparisons) and Section 5 (power). Repeated answers to one question are not new questions.
- Evaluating Large Language Models Trained on Code, Section 2 (Chen et al., 2021)OpenAI · support
Read Section 2, Figure 3 and Appendix A for the unbiased pass@k estimator
1 - comb(n-c, k)/comb(n, k)and its stable implementation. Never report k larger than n, and run generated code only in a sandbox. - Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (Chiang et al., 2024)LMSYS · support
Read Sections 4 and 5 and Appendix A: Bradley-Terry fitting, bootstrap and robust intervals. Online Elo is not this estimator, and overlapping intervals do not give a total order.
- Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design (Sclar et al., 2023)University of Washington · support
Read Section 3 (a grammar of plausible formats) and Section 4.2 (spread across formats), then run a predeclared format sweep on your task. Choosing the best format on the test set leaks.
- Proving Test Set Contamination in Black Box Language Models (Oren et al., 2023)Stanford University · support
Read Sections 2 and 3 (compare canonical-order likelihood with shuffled orders) and Section 6 (limits). It needs log probabilities and exchangeable examples, and it does not replace direct overlap checks.
- ARENA 3.1 Intro to Evals and 3.3 Running Evals with InspectARENA · support
Do 3.1 by hand (threat model, specification and 20 questions for one property) and 3.3 against a local model (Inspect dataset, solvers, scorers, choice shuffling). 3.1 and 3.2 assume a paid OpenAI API for generation; skip those calls rather than buying credit.
- Build a Reasoning Model (From Scratch), Chapter 3 and Appendix FSebastian Raschka / Manning · support
Use Chapter 3 (pp. 57-93: boxed-answer extraction, normalization, equivalence checks and grading on a MATH subset) as the first verifier you can break on purpose, and Appendix F for evaluation approaches.
- Tulu 3, Sections 3.2 and 7 (decontamination and the evaluation framework)Allen Institute for AI · support
Read Section 3.2 (prompt decontamination) and Sections 7.1 to 7.4 (OLMES, the development and unseen suites, how design decisions were evaluated) as a case of separating development from held-out evaluation.
- Holistic Evaluation of Language ModelsStanford CRFM · required
Read Sections 2 to 4 (scenarios and the seven metrics) and Section 7 (adaptation via prompting) to define capability, robustness, fairness, toxicity and efficiency as separate evidence. HELM entered maintenance mode on 2026-06-01, so treat the framework as methodology and do not run a second full evaluation stack.
- Modern LLM Notebook - EvaluationWalking Labs · support
Use
notebooks-en/part3-inference/25-evaluation.ipynbfor the framework map and judge examples. Its judge cells need an OpenAI-compatible endpoint, so point them at a local model or read them only, then add position and response-length counterexamples. - TensorTonic - Evaluation SetTensorTonic · support
Solve Compute Conditional Perplexity (
cs336-l12-conditional-perplexity), Score Multiple-Choice Continuations (cs336-l12-multiple-choice-likelihood), Fit Elo Ratings from Pairwise Votes (cs336-l12-pairwise-elo-fit) and Remove Response-Length Bias from Judge Scores (cs336-l12-judge-length-debiasing). Add all four to evaluator unit tests. Public test cases check the listed edge cases, not gradients or the hidden grader, so keep your own tests beside each solution. - LLM Research Track CheckpointRoadmap-Final · support
Use the evaluation and compare sections as a closed-note audit after the harness exposes at least three instrument failures.