Unit 9 · Research methods · Lesson 4 of 12
Experimental design: controls, baselines and ablations
Step 1: Learn the ideas
- Factors, levels and response variables
- Controls: held-fixed conditions, positive and negative controls, A/A runs
- Simple, strong and oracle baselines
- Equal tuning budgets and fair configuration
- Ablations and attribution
- One-factor-at-a-time versus factorial designs
- Sensitivity analysis
- Error analysis by slice
- Threats to validity
- Writing the analysis plan first
Why it matters
"How would you evaluate that?" follows almost every research idea in an interview, and a weak evaluation is a frequent reason good ideas are not believed. The same discipline governs A/B tests, performance-regression hunts and model comparisons in industry.
Core ideas
Name the variables. Factors are what you vary deliberately (system variant, load level, model size). Levels are the values you try. Response variables are the metrics (p99 latency, throughput per core, accuracy, cost per task). Everything else is held fixed and recorded, or randomized when it cannot be fixed (run order, placement, seeds). Le Boudec's methodology chapter shows how a hidden factor that varies along with your treatment can reverse a conclusion, as in Simpson's paradox.
Controls. A negative control is a change that should have no effect, such as comparing a configuration with itself ("A versus A"); a visible difference means the harness or environment is noisy or biased. A positive control is a known effect that should reappear, such as reproducing a published baseline result on your setup before measuring your variant.
Baselines. Include at least three kinds where possible: a simple baseline (default configuration, a bigger cache, a longer timeout, plain keyword retrieval), the strongest published alternative, and a bound such as an oracle or a theoretical limit. Fairness means the same hardware, software versions, data, workload and, crucially, the same tuning budget. If your method received fifty hyperparameter trials, so does the baseline, or you report results as a function of budget as Dodge et al. propose. Melis et al. found that carefully re-tuned standard language-model baselines compared favourably with newer architectures, the classic warning on this point.
Ablations. Remove one component at a time and measure the drop; adding components one at a time shows cumulative effects. If two components only help together, a small factorial design (two levels per factor, all combinations) quantifies the interaction. Without ablations you cannot say which part of the design earns its complexity, one of the failures Lipton and Steinhardt describe in ML papers.
Sensitivity analysis. Every design has parameters you picked (thresholds, window sizes, timeouts, learning rates, prompt templates) and workload assumptions (key skew, request sizes, burstiness). Sweep them and report where the method stops winning. A method that wins only near its defaults is fragile, and reviewers know it.
Error analysis. Aggregates hide structure. Group failures, slowest requests or misclassified examples by cause, input size, tenant, query type or tool, and report per-slice results. This prevents claiming an average gain that hides a regression for an important slice, and it often suggests the next hypothesis.
Plan before running. Write the hypothesis, metrics, comparisons, number of runs and analysis in a short plan. Hoefler and Belli's rules for reporting performance (state the base case, summarize appropriately, give intervals for nondeterministic data, document every factor) double as a checklist.
Common misconceptions
- "Quoting the paper's numbers is a baseline." Numbers from another machine, version or data split are not a controlled comparison; re-run the baseline in your setup.
- "An untuned baseline is conservative." It inflates your gain. Equal tuning effort, or results reported against budget, is the fair comparison.
- "Ablations are optional if the full system wins." Without them you cannot claim that any specific component matters.
- "One factor at a time is always correct." It misses interactions; use a small factorial design when components may depend on each other.
- "Averages are enough." Means over mixed workloads hide regressions on slices that matter; report distributions and per-slice results.
How to approach it
Write a one-page evaluation plan for one of your hypotheses: factors and levels, baselines with tuning budgets, ablations, sensitivity sweeps, controls and the summary statistic for each metric. Then write down which result would make you abandon the idea. Graduates should propose a fair baseline and an ablation without prompting; senior candidates should name threats to validity and say which experiments they would cut first when compute is limited.
Suggested order
- 1Read Le Boudec Ch. 1 (Methodology), especially factors, the hidden factor paradox and Simpson's paradox.
- 2Read Hoefler and Belli's twelve rules and turn them into a personal checklist for evaluation plans.
- 3Read Melis et al., then the introduction and method of Dodge et al. ("Show Your Work"), on baseline tuning and budget-aware reporting.
- 4Read the section of Lipton and Steinhardt on failing to identify the sources of empirical gains, to see what missing ablations look like in published work.
- 5Do the "One-page evaluation plan" exercise for one hypothesis: factors, levels, equal-budget baselines, ablations, sensitivity sweeps and controls.
- 6Run an A/A negative control on a small benchmark you can execute locally and record how large a difference noise alone produces.
Step 2: Check off what you can do
Tap each one you can genuinely do or explain. Each earns 10 XP.
Step 3: Go deeper
Scientific Benchmarking of Parallel Computing Systems: Twelve Ways to Tell the Masses when Reporting Performance ResultsStart here
ETH Zürich SPCL (author copy)Twelve concrete rules for designing and reporting performance experiments; use them as an evaluation checklist.
Open(opens in a new tab)Link responded, 5 Oct 2026Performance Evaluation of Computer and Communication SystemsStart here
EPFL (free online edition by the author)Section: Ch. 1: Methodology
Factors, metrics, the hidden factor paradox and Simpson's paradox, from an EPFL performance-evaluation course.
Open(opens in a new tab)Link responded, 5 Oct 2026On the State of the Art of Evaluation in Neural Language Models
arXivCase study of how re-tuning standard baselines changes conclusions about newer models.
Open(opens in a new tab)Link responded, 5 Oct 2026Show Your Work: Improved Reporting of Experimental Results
arXivReporting results as a function of hyperparameter-search budget so comparisons are fair.
Open(opens in a new tab)Link responded, 5 Oct 2026Troubling Trends in Machine Learning Scholarship
arXivExamples of gains attributed to the wrong component and of missing ablations.
Open(opens in a new tab)Link responded, 5 Oct 2026
Step 4: Practice
Write the plan before running anything, then run the A/A control and the repeated-runs exercise on a benchmark you can execute locally (for example a small key-value or HTTP server under a load generator, or a short fine-tuning run). Record which baseline settings you tuned and for how long, and keep the plan next to the results so deviations are visible.
- One-page evaluation plan with baselines, ablations and controlsOpen(opens in a new tab)Not attemptedSelf-directed (checklist from Hoefler and Belli)
- Repeat one benchmark ten times and report a paired confidence intervalOpen(opens in a new tab)Not attemptedSelf-directed (reporting rules from Hoefler and Belli)
Record attempts on each problem’s page (+15 XP, +10 more when solved on your own).
Step 5: Test yourself
Answer each one out loud or on paper before you finish the lesson.
- Question 1Which factors vary along with your treatment that you have not controlled?
- Question 2Did every baseline get the same tuning budget, hardware and software versions?
- Question 3What would a positive control and a negative control look like for your experiment?
- Question 4Which component would you remove first in an ablation, and why?
- Question 5Over which parameter range does your method stop winning?
- Question 6Which slice of the workload could be getting worse while the average improves?
You’re done when you can
- Write a one-page evaluation plan with factors, equal-budget baselines, ablations, sensitivity sweeps and controls for one idea.
- Explain in under two minutes, with a concrete example, why an untuned baseline overstates a gain.
- Design an ablation for a three-component system and state what each possible outcome would mean.
- Run an A/A comparison and report the noise floor of your setup.
Finish the lesson
Unlocks next: Congestion-control research and its evaluation dependencies, Query optimization research and learned components, Statistical uncertainty, seeds and paired comparisons, Reproducibility, provenance and artifacts, Benchmark realism and external validity, Experimental controls for ML research


