Skip to content

Influences

The approach in this repository builds on Chip Huyen's books — AI Engineering: Building Applications with Foundation Models (O'Reilly, 2025) and Designing Machine Learning Systems (O'Reilly, 2022). Their framing — that evaluation is engineering work on your data, that a model is chosen on a private leaderboard rather than a public one, that the dataset is a design decision, and that every experiment must be tracked and versioned — is the foundation this harness was built on. If the method here is useful to you, read them.

Below, each idea this project relies on, where her books set it out, and what this repository added. The book references are to her own published chapter summaries (AI Engineering, Designing ML Systems), so each line can be checked.

Idea in this project In her books What this repository adds
Build your own evaluation, on your own data — the reason the harness exists, and the message of Use it AI Engineering ch. 4: public benchmarks rarely identify the best model for a specific application, and are likely contaminated; choosing a model is building a private leaderboard; the lack of a reliable evaluation pipeline is one of the biggest blockers to adoption A drop-in harness for that private leaderboard, and six worked examples showing what a public leaderboard would have hidden
Silver is not gold — model-written references rank, person-written ones judge AI Engineering ch. 3: AI-as-a-judge evaluation is subjective, depends on the judge, is not comparable across judges, and should be supplemented with exact or human evaluation Reference tiers recorded on every run; gold preferred automatically; silver-calibrate; rescore --reference-id to move runs onto gold for $0; and SummEval, which measures 24 AI judges against expert judgement directly
Temperature 0 is not deterministic — measure the noise before the difference AI Engineering ch. 2: sampling makes models probabilistic, which causes inconsistency; the aim is AI engineering that is "if not deterministic, at least systematic" Every arm can be repeated and its own spread measured (REPEAT=3); in an earlier 20-article sweep at temperature 0, 9.8% of hosted-model outputs (47 of 480) were byte-identical across three repeats (REPORT_SUMMARIZATION)
No single score — combine methods AI Engineering ch. 4: no perfect evaluation method exists; combining methods mitigates their limits Quality, billed cost and latency side by side in every comparison; standard metrics reported beside this repo's own
The dataset is a design decision — small, high-quality gold; size measured, not assumed AI Engineering ch. 8: quality, coverage and quantity; a small amount of high-quality data can beat a large amount of noisy data; annotation guidelines are hard; performance-gain curves across dataset sizes Datasets frozen by content hash and re-checked on every use; rank-stability to measure how many items a ranking needs
Sampling, and the population a sample claims to represent Designing ML Systems ch. 4 (sampling methods) and ch. 8 (data distribution shifts) Calibration rows against published values, which check a sample, and a seeded DailyMail slice that tests whether findings travel beyond the all-CNN first 200
Labels are expensive — start without perfect ones Designing ML Systems ch. 4: hand labels are expensive and slow; alternatives to them Silver references by default, gold where a person has checked, and the tier stated wherever a number is published
Baselines Designing ML Systems ch. 6: evaluation metrics don't mean much without a baseline to compare them to Floor arms in every eval (lead-3, keyword rules, a constant, random rankings); promoted baselines recorded with their reason
Track and version every experiment Designing ML Systems ch. 6: intensive tracking and versioning of experiments, automated by tooling A fingerprint per run — data, prompt, scorer, upstream model, libraries, commit — and refusals when it cannot be trusted (dirty tree, unknown build, two runs of one system)

Other foundations

  • Testing differences for significance, not reading rank order — the statistics are older than any of this: Holm (1979) for multiple comparisons, Demšar (2006) for comparing systems over many items, Dror et al. (2018) for significance testing in NLP. Full references in REFERENCE and papers.
  • Calibrating an instrument against published results — standard reproduction practice; each benchmark's original paper is the published value (PROTOCOL).
  • Production rules — Martin Zinkevich, Rules of Machine Learning (Google): design and implement your metrics first. Breck et al., The ML Test Score (2017): tests for data, models and infrastructure.
  • Offline gains are not real gains — Bernardi et al., 150 Successful Machine Learning Models (KDD 2019, Booking.com).
  • Error bars on evals — Evan Miller, Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations (2024, arXiv:2411.00640): paired differences, clustered errors when items share a source, repeats reduced per item, a failure counted as a failure. The source of --cluster, the paired tests' framing and how a failed item scores.
  • People disagree, and that is data — Barbara Plank, The "Problem" of Human Label Variation (EMNLP 2022): label variation is signal, not only noise. Why a label can accept several answers, why agreement is reported over every label set, and why contested items are listed rather than voted away.
  • "No worse than" is its own test — Daniël Lakens, Equivalence Tests: A Practical Primer (Social Psychological and Personality Science, 2017): absence of a significant difference is not equivalence; test against a margin. The source of contenders by non-inferiority (ADR-0026).
  • Judges need validating, and criteria drift — Shankar et al., Who Validates the Validators? (UIST 2024, arXiv:2404.12272): an LLM judge is graded against people, and the criteria change as people read outputs. Why a judge is validated before its scores count, and why a changed rubric names the one it supersedes.
  • Error analysis before metrics — Hamel Husain's writing on evals (hamel.dev): read outputs, write open notes, then name the failure modes and count them. The source of failure modes and tags (evh failure-modes-list, evh tag-set-list).
  • Datasets are documented — Gebru et al., Datasheets for Datasets (CACM 2021), Pushkarna et al., Data Cards (FAccT 2022), and MLCommons' Croissant 1.1 with its RAI vocabulary: what a dataset is for, how it was collected and labelled, its limits. The card asks those questions in Croissant's words, and a dataset exports as Croissant.

Two choices that differ from those sources, on purpose:

  • The checksum proves the selection, not a file. A dataset's identity is each item's id and the sha256 of its bytes, not a hash of an archive: the same items fetched again, from any mirror, prove to be the same selection, and a changed item is named, where a file hash only says something differs.
  • One reference is scored at a time. A run is scored against one reference set (gold preferred over silver) or one label set it names (--labels), never a blend: numbers from two references are two measurements, and the goal page never ranks them together. Several right answers live inside one reference (accept), not across several.

More, curated by Chip Huyen: huyenchip.com/mlops.