Unit 7 of 10 · about 4 hours · explain, measure
Contamination and memorization, benchmark saturation and capability versus elicitation
The LLM Foundations unit on contamination and memorization taught the risk. Here the evidence is a real search over a named corpus plus controls, not a harness flag or a score drop interpreted as proof of leakage.
You'll be able to
- Audit accessible training text for exact and near-overlap with evaluation items, preserving matched evidence and search limitations.
- Distinguish exposure, memorization, benchmark selection pressure and saturated measurement.
- Separate checkpoint changes from prompting and search gains with frozen evaluation and inference budgets.
Covers
Read
In this order, only the parts listed
0 of 3 done
- CS336 Spring 2026 Lecture 12: saturation and validityCS336 2026 - Evaluation
Trace functions
exam_benchmarks,validityandhow_to_think_about_evaluationUse the harder-benchmark and overlap examples as motivations, not evidence that a high score identifies memorization or that private tests stay private forever.
- Oren et al.: what an ordering test detectsProving Test Set Contamination in Black Box Language Models (Oren et al., 2023)
Section 2, Problem Setting; Sections 3.1 and 3.2, permutation and sharded likelihood tests; Section 6, Limitations
Explain the null and assumptions. Do not reproduce contaminated pretraining or require a black-box audit for a model without log-probability access.
- Tulu 3: overlap evidence and development versus unseen evaluationTulu 3, Sections 3.2 and 7 (decontamination and the evaluation framework)
Section 3.2, Prompt Decontamination; Sections 7.1 to 7.4, evaluation framework and development versus unseen suites
Read the matching rule and suite separation. Skim task inventories; do not reproduce the large-model benchmark matrix.
Focus on
- Record corpus revision, normalization, tokenization, window size, matching threshold and searched fields. Search prompts and available reference answers; report them separately. Preserve train-document and eval-item IDs plus matched spans.
- Tulu 3 flags a test prompt when more than half of its tokens have 8-gram matches in one training instance, not when a single 8-gram is shared. A smaller local any-8-word-match audit is a different, explicitly labeled screening rule and needs manual review for boilerplate false positives.
- No matches means no matches under this rule in this corpus. It does not cover inaccessible pretraining data, paraphrases, translations, later training stages or evaluator exposure.
should_decontaminatealone searches none of these. - Saturation reduces room to distinguish systems; it does not prove general capability. An unchanged checkpoint with better prompts or more search shows elicitation gains, not learning. Repeated hidden-test feedback can still guide selection.
Common mistakes · 3
- Calling a full-versus-clean score difference the causal benefit of contamination. Item difficulty and selection also change.
- Treating a nonsignificant ordering test as a clean-training certificate. It may have low power or fail to detect partial or reordered exposure.
- Claiming a capability ceiling from failure under one prompt, or claiming a training gain after changing elicitation.
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.When is a canonical-versus-shuffled ordering test justified?Answer
When examples are exchangeable under the stated null and sequence log probabilities are available. Sorting, duplicate structure or serialization effects can invalidate the intended inference.
2.Does a matching training passage prove the model memorized its answer?Answer
No. It establishes accessible-corpus exposure under the matching rule. Demonstrating memorization or attributing a score gain needs additional evidence and controls.
3.Why can a hidden test still become a development set?Answer
Repeated scores, pass/fail decisions or error feedback can influence prompt and checkpoint selection even when item text is never disclosed. Record access and selection history.
You're done when
You retrieve the planted overlap, report the real search boundary and false-positive review, and qualify both non-detection and elicitation gains without asserting unseen training data is clean.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 15 more in the 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.
- 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.
- 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.
Also in this section
- 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.
- 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.
- 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.
- 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.
- 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. - 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. - 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.