Language-Model Evaluation
Training research is only as trustworthy as its instruments. This stage builds an evaluator hierarchy, attacks its failure modes and fixes inference budgets before comparing checkpoints or methods.
Section 5 of 11 · 10 units · about 40 hours
By the end you can Compare two checkpoints under identical items, prompts, output budgets and evaluator versions; demonstrate three evaluator failures with mitigations; quantify agreement against a trusted subset; and state what the evidence cannot establish.
Units
- Construct validity and likelihood, multiple-choice and generation evaluation contracts4h
- Prompt, few-shot and chat-template versioning, answer extraction and denominator policy4h
- Exact, executable and structured verifiers with false-acceptance tests3h
- Model-judge rubrics and calibration, and position, length, style and self-preference bias5h
- Human pairwise evaluation, disagreement and Bradley-Terry and Elo summaries4h
- Pass-at-k, self-consistency and compute-normalized comparison4h
- Contamination and memorization, benchmark saturation and capability versus elicitation4h
- Prompt perturbations and failure slices, paired uncertainty and multiple comparisons5h
- Item-level output lineage and evaluator agreement against a trusted subset4h
- Release and regression gates, and tool-use and long-horizon agentic evaluation3h
Build it
Mini project · about 14 to 18 hours
Replayable evaluation with attacked instruments and release gates
Extend lmlab with a versioned evaluator in eval/ for the study's bounded behavior question. Separate checkpoint changes from prompting, sampling and scoring effects, then defend a release or hold decision using independent labels and replayable evidence on your machine without paid APIs.
- 1Build a file-backed JSON task in
eval/with likelihood, multiple-choice and generation contracts using pinned lm-eval. Check frozen logits against TensorTonic conditional-perplexity and continuation-scoring cases; retain token alignment, prompt snapshots, strict-versus-lenient parser replays and invalid-denominator regressions before model evaluation. - 2Implement exact, restricted structured and executable verifier adapters. Check independently labeled correct, wrong and malformed fixtures, including a constant-return counterexample; retain false-acceptance and false-rejection tables and repaired-loophole regressions. Keep any generated-code execution isolated from network access and secrets.
- 3Calibrate an anchored rubric with question-disjoint development and trusted audit subsets. Audit the section's pinned judge on your machine with content-matched order, length, style, identity and authorship probes against blinded labels; preserve invalid verdicts, delayed self-relabeling and pre-adjudication disagreements, without claiming inter-rater agreement.
- 4Search the versioned corpus for evaluation overlap using independently planted positive and negative controls. Preserve matched spans, source and item identities, manual false-positive review and search limits in
data/; separate development from held-out items and freeze the capability-versus-elicitation comparison. - 5Compute per-problem pass-at-k and self-consistency from immutable samples, checking the estimator against subset enumeration. Compare frozen checkpoints and prompting controls at matched inference budgets across seeds; keep invalid candidates and reconcile prefill, decode, selection, verifier calls, FLOPs and elapsed time.
- 6Run the predeclared format and slice sweep with practical margins and a comparison-family record. Check question-paired and source-cluster uncertainty against synthetic oracles; join raw outputs to
registry/identities, reject missing or duplicate IDs, and retain trusted-subset confusion tables and a disagreement taxonomy. - 7Apply predeclared primary, guardrail and completeness gates to the matched checkpoint evidence. In
reports/, retain manual review, parser, verifier and judge failures with before-and-after mitigations, negative findings, rollback ownership and a known-good checkpoint; reproduce the decision from saved records in a clean scoring process.
What you hand in
- Versioned
eval/tasks, prompts, parsers, verifiers, judge audit and independent regression tests. - Immutable item records, trusted labels, corpus-overlap evidence, inference ledger and paired robustness report linked through
registry/. - Reproducible release or hold record with evaluator-failure mitigations, manual review, scope limits and rollback conditions.
How to check it
- Self-grade with the rubric below
- TensorTonic: Compute Conditional Perplexity
Pass public reductions; add causal alignment, empty-status and denominator tests.
- TensorTonic: Score Multiple-Choice Continuations
Pass continuation cases; distinguish summed scoring, normalized scoring and generated answers.
- lm-eval file-backed task contract at pinned commit
Use the documented task interface; your own fixed-logit and replay tests establish correctness.
How it's graded
Instrument correctness
Pass: Frozen-logit, parser and independently labeled verifier tests validate alignment, semantics and denominators; held-out trusted labels anchor judge confusion tables and bias probes, with blinded delayed review and original disagreements retained.
Great: Planted defects fail before repair; authorship effects remain distinct from identity cues and answer quality, and unreliable judge slices defer to deterministic or manual decisions.
Comparison discipline
Pass: Subset enumeration validates pass-at-k; matched-budget comparisons retain invalid attempts, seed variation, overlap limits, format slices, paired and clustered uncertainty, and declared comparison families.
Great: Prompting, selection and evaluator alternatives bound the checkpoint claim, with unmatched cost dimensions and inconclusive slices made explicit.
Replayable decision
Pass: Identity-join regressions reject incomplete records; a clean scoring process rebuilds aggregates and the gate decision, including parser, verifier and judge mitigation evidence and rollback ownership.
Great: An independent reader reconstructs the decision without generation, and a simulated guardrail breach or missing artifact forces hold despite a primary gain.
Resources
- CS336 2026 - EvaluationStanford University
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
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
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
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.
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023)LMSYS
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.
- Holistic Evaluation of Language ModelsStanford CRFM
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.
- Evaluating Large Language Models Trained on Code, Section 2 (Chen et al., 2021)OpenAI
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
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
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
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
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
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
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
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.
- Modern LLM Notebook - EvaluationWalking Labs
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
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
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. - LLM Research Track CheckpointRoadmap-Final
Use the evaluation and compare sections as a closed-note audit after the harness exposes at least three instrument failures.