Unit 5 of 10 · about 4 hours · derive

Human pairwise evaluation, disagreement and Bradley-Terry and Elo summaries

Human preference gives a reference for open-ended answers, not an infallible total order. You need both the vote protocol and the statistical model to know what a rating summarizes.

You'll be able to

  • Derive Bradley-Terry likelihoods, their additive non-identifiability and their conversion to an Elo-style scale.
  • Design blinded pairwise review with ties, disagreement records and adjudication that preserves original labels.
  • Recognize disconnected comparison graphs, separation and uncertain rankings before interpreting fitted scores.

Covers

Human pairwise evaluation, disagreement, adjudication and annotator effectsBradley-Terry and Elo-style summaries with ordering limits
1

Read

In this order, only the parts listed

0 of 2 done

  1. Chatbot Arena: votes, coefficients and uncertaintyChatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (Chiang et al., 2024)

    Section 3, Human Preference Data Collection; Section 4, From Pairwise Comparisons to Rankings; Section 5 through Estimating the BT scores; Appendix A, Confidence Interval Simulation Study

    Skip anomalous-user detection and adaptive sampling implementation. Use fixed local answer pairs, not live Arena voting.

  2. Human labels and agreement protocolsJudging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023)

    Sections 4.1 and 4.2; Table 5's distinction between agreement with and without ties

    Read the labeling and agreement conventions, not the benchmark scores as targets.

2

Focus on

  • For binary votes, . Maximize summed vote log likelihood after fixing one score or centering all scores. State any regularizer and tie convention separately.
  • An undirected connected graph permits comparison across all models, but does not guarantee a finite unregularized optimum. A model that only wins can drive a score difference without bound.
  • Blind identities and randomize display order. Retain tie, both-bad and unsure labels separately even if a fitting convention maps some to half a win. Review correctness separately from stylistic preference.
  • On the hand-labeled pairs, do a delayed blinded second pass and record changes before adjudicating. With only one reviewer, this measures intra-rater stability, not inter-rater agreement or population consensus.
Common mistakes · 3
  • Treating full-batch maximum-likelihood fitting as the same algorithm as online Elo updates. They can share a probability link while producing different estimates.
  • Ranking disconnected components by their arbitrary fitted offsets.
  • Treating overlapping marginal intervals as a total ordering or as a paired test of the rating difference.
3

Try it yourself

Closed-book, before checking anything

Closed-book, fit the two-model vote table in which A wins three times and B wins once, with no ties or regularizer. The fitted A-win probability is 0.75 and the natural-log score difference is . On the base-10 Elo-style scale the gap is , approximately 190.8485 points. Derive this from the likelihood, then compare with a numerical optimum. Explain why a finite-step TensorTonic fit need not reach that optimum.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Why does adding the same constant to every BT coefficient change nothing?Answer

    All modeled probabilities depend only on differences. Fixing an offset chooses a representation, not additional preference evidence.

  2. 2.A connected graph has one model that wins every comparison. Does centering guarantee convergence?Answer

    No. Centering removes an additive degree of freedom, not separation. The unregularized likelihood can approach its supremum while score differences diverge.

  3. 3.Why not discard ties before reporting human agreement?Answer

    That conditions on decisive items and can inflate agreement. Report the full label policy, tie rate and denominators; a non-tie analysis is a separately labeled subset.

5

Practice

  • TensorTonic: Fit Elo Ratings from Pairwise Votes

    Implement pairwise_elo_fit; public cases Single decisive comparison, Connected tie cycle and Two disconnected components

    Use PyTorch 2.14.1 on CPU. Implement exactly the finite-step simultaneous update rule, not a converged optimizer. Public cases exercise those vote graphs; add your own separation diagnostic. The section mini-project covers blinded review, delayed relabeling and disagreement records.

You're done when

You derive the fixed vote-table optimum, pass the finite-step drill, and explain which model comparisons your graph and reviewer evidence leave unidentified or uncertain.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 16 more in the section

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.md to write one local JSON task (dataset_path: json) with explicit output_type, prompt, choices, filters and metrics, and run it with --log_samples to keep per-sample outputs. Pin the harness version (0.4.13 was checked). should_decontaminate only 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.

  • 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.

  • 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.ipynb for 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.

  • 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=False in the model arguments; temperature=0 fails. Keep the .eval logs and compare the model grader against a trusted subset before using it for a claim.

  • 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.