Unit 9 of 10 · about 4 hours · implement, measure

Item-level output lineage and evaluator agreement against a trusted subset

An aggregate score cannot explain an instrument failure. A complete output ledger lets another reader replay the score and locate the exact item that changed the conclusion.

You'll be able to

  • Reconstruct aggregate metrics from immutable item-level inputs, raw outputs, evaluator versions and statuses without rerunning generation.
  • Measure evaluator agreement, false acceptance and false rejection against an independently labeled held-out subset.
  • Diagnose disagreements by extraction, reference, rubric, judge and model failure while preserving original evidence.

Covers

Item-level inputs, raw outputs, scores, evaluator versions and lineageEvaluator agreement, calibration against trusted subsets and failure taxonomy
1

Read

In this order, only the parts listed

0 of 4 done

  1. Share outputs, not just headline scoresLessons from the Trenches on Reproducible Evaluation of Language Models (Biderman et al., 2024)

    Section 3, Always share your exact prompts and code, Always provide model outputs, Perform qualitative analyses and Measure and Report Uncertainty

  2. Harness sample loggingLanguage Model Evaluation Harness

    Data and Output: --output_path, --log_samples and --samples; Advanced Options: --seed

    Use lm-eval 0.4.13 and its lm-eval run CLI. Save samples from the local task already built; do not add a benchmark sweep.

  3. Inspect native logs and stable sample identitiesInspect

    Log Format; Log File API, especially EvalLog and Functions; Eval Retries and Sample Preservation (page read 2026-10-16)

    Use Inspect 0.3.281 and read_eval_log for .eval records. Skip cloud storage and log-editing APIs; retain immutable originals and write rescoring as a separate artifact.

  4. Agreement needs its denominatorJudging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023)

    Section 4.2 and Tables 5 and 6, human-judge agreement with explicit tie conventions

2

Focus on

  • Join by stable item ID and attempt ID, not row position. Keep dataset and checkpoint revisions, rendered prompt, raw output, extracted answer, score, status, generation controls, parser and judge versions, plus token and verifier-call counts.
  • Framework logs are evidence containers, not complete experiment manifests. Add any missing model/tokenizer revision, corpus boundary, human-label provenance and run configuration yourself.
  • Reuse the question-disjoint trusted audit half from the judge unit. Report the full confusion table and invalid-grade coverage, with slice counts and question-level uncertainty; do not relabel it to agree with the judge.
  • Keep original labels, uncertainty notes, adjudication reasons and scorer outputs. Classify disagreements before assigning blame: reference error, unsupported equivalence, parser failure, rubric ambiguity, judge shortcut or actual model error.
Common mistakes · 3
  • Replacing raw outputs with extracted answers, which makes parser bugs impossible to replay.
  • Reporting high overall agreement when the trusted subset contains almost no wrong answers.
  • Overwriting scores or labels during adjudication and losing which evaluator originally accepted the wrong answer.
3

Try it yourself

Closed-book, before checking anything

Closed-book, join six fixed synthetic trusted labels [1, 1, 0, 0, 0, 1] to judge labels [1, 0, 1, 0, 0, 1] by item ID, where 1 means correct. Agreement is four of six, false acceptance is one of three trusted-wrong items, and false rejection is one of three trusted-correct items. Shuffle record order and verify the same results. Delete one ID and duplicate another to make your join fail rather than silently scoring a different set. Then rebuild one real aggregate from saved harness or Inspect outputs.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Why is a hash insufficient to replay a result?Answer

    It can verify the identity of bytes you still have, but cannot recover missing prompts, outputs or code. Keep the artifacts and their hashes together.

  2. 2.What is the denominator of verifier false acceptance?Answer

    The independently known wrong items under the declared task contract, not every item and not only accepted items. Accepted-wrong among accepted is a different quantity.

  3. 3.Does model-judge agreement validate a whole evaluator stack?Answer

    Only on the audited population, labels and versions, within uncertainty. Unreviewed slices, shared reference mistakes and later grader changes remain outside that evidence.

5

Practice

  • ARENA 3.3: Extract data from log files

    Intro to Inspect's EvalLogs; Exercise (optional) - Extract data from log files

    Do this named extraction exercise on your local task logs, not the paid-model sweep. It has no supplied solution or public correctness tests. Add join, duplicate-ID and denominator tests yourself. The section mini-project covers the trusted-subset comparison and failure taxonomy.

You're done when

A fresh scoring process rebuilds the aggregate and confusion table from preserved records, rejects missing or duplicate identities, and traces each disputed grade to raw output and label provenance.

Only when you can do this without notes.

Leads to

Notes

Resources · 4 for this unit, 14 more in the section
  • 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.

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

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

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.

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

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

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