Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.What carries the gain
A new method is usually several changes at once: an architecture tweak, a loss term, an augmentation, a training trick. A good experiment compares the whole method with strong baselines given the same budget, and then takes it apart to see which changes matter. How it is taken apart matters too: removing one component at a time, adding one at a time, or trying combinations each answer slightly different questions.
Components A to D; B helps mainly with A (synergy), C and D do the same job (redundancy). Contributions estimated from about 30 runs, against the Shapley values:
leave-one-out: error 0.421 points; C judged useless in 72.8% of repetitions.
In Exercise 2, with about 30 runs each, leave-one-out ablation judged the redundant component C useless in 72.8% of repetitions, while a factorial design estimated every component’s Shapley value with error 0.166 points, against 0.42 for the other designs.
- 1. An ablation study…
- 2. A fair baseline gets…
- 3. Two components that do the same job are…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.By hand
- Baselines: the strongest existing methods and simple ones (a linear model, the previous version), tuned with the same budget.
- Controls: the same data, preprocessing, training steps, compute and evaluation for every method.
- Ablation: add-one (each component alone on the baseline), leave-one-out (each removed from the full method), or factorial (all combinations).
- Synergy and redundancy: components whose effects add up to more, or less, than their separate effects (an interaction).
- Shapley value: a component’s marginal gain averaged over every order of adding the components; the values add up to the full gain.
- Fractional factorial: a chosen subset of combinations that estimates main effects with fewer runs, at the price of confounding some interactions.
- Paired design: both methods run with the same seeds, so shared randomness cancels in the difference.
- 1. Shapley values add up to…
- 2. A fractional factorial design…
- 3. In a paired design both methods use…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.Taking a method apart
Exercise 1.
- A baseline scores 70. Component A adds 1.0. B adds 0.3 alone and 0.8 more with A (synergy). C and D each add 0.6 but do the same job: together they add only 0.6 (redundancy).
- Each run adds seed noise with standard deviation 0.4.
- The Shapley values are A 1.4, B 0.7, C 0.3 and D 0.3, adding up to the full gain of 2.7.
Practice.
- Give baselines the same tuning budget and compute as the new method; report both at matched compute.
- Ablate with combinations, not only one component at a time, when components may interact.
- Run several seeds per configuration, paired across methods.
- Sweep the key hyperparameters for every method, and show the sweep.
- Pre-specify the comparisons you will report (topic O2-3).
for cfg in all 16 combinations of (A, B, C, D):
means[cfg] = mean(run(cfg, seeds=2))
phi = shapley(lambda cfg: means[cfg]) # each component's share
loo = [means[full] - means[full without i] for i in components]
add = [means[only i] - means[baseline] for i in components]- 1. Leave-one-out estimated C's contribution as about…
- 2. Add-one estimated B's contribution as about…
- 3. Training the new method twice as long as the baseline in Practice 1 inflated a true 0.3 gain to…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
Shapley values add up. For any order of adding the components, the marginal gains telescope to score(full) − score(baseline). Averaging over all 24 orders keeps the sum, so the Shapley values divide the full gain among the components, giving each interaction’s credit equally to the components involved.
Leave-one-out and redundancy. If C and D do the same job (score depends on max(C, D)), removing either one from the full method leaves the other doing the job, so both leave-one-out estimates are zero, although removing both costs 0.6. Add-one has the mirror problem: B alone adds 0.3, missing the 0.8 it adds with A.
Confounding in a half fraction. In plus-or-minus-one coding, the half fraction with x_D = x_A x_B x_C satisfies x_C x_D = x_C² x_A x_B = x_A x_B on every run. The A·B and C·D interactions are then the same contrast, and the design estimates only their sum.
Pairing. If run noise has a part s shared by both methods under the same seed and a part o of their own, the gain from n seeds has variance 2(s² + o²)/n with independent seeds and 2o²/n with paired seeds.
- 1. Why does leave-one-out miss redundant components?
- 2. In the half fraction with D = A·B·C, A·B is confounded with…
- 3. Pairing seeds removes from the variance of the gain…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.With the same number of runs, which ablation design recovers each component’s contribution when components interact?
History.
- R. A. Fisher’s factorial experiments at Rothamsted (1920s) and “The Design of Experiments” (1935) showed that varying several factors together is more efficient than one at a time; fractional factorials followed (D. Finney 1945; G. Box and colleagues).
- L. Shapley (1953) defined the value that now apportions credit among features and components.
- The term ablation comes from neuroscience, where parts of a brain were removed to learn their function; it became standard in machine-learning papers.
- J. Dodge and colleagues (2019) asked papers to report performance against tuning budget; X. Bouthillier and colleagues (2021) recommended paired and repeated runs.
Exercise 2.
- 2,000 repetitions; each design uses about 30 runs: add-one (baseline and each component alone, 6 seeds each), leave-one-out (full method and each component removed, 6 seeds each), factorial (all 16 configurations, 2 seeds each, then Shapley values of the means).
- Truth: Shapley values A 1.4, B 0.7, C 0.3, D 0.3.
Seed 0:
| design | A | B | C | D | error against Shapley | C judged useless |
|---|---|---|---|---|---|---|
| add-one | 1.00 | 0.30 | 0.59 | 0.60 | 0.423 | 2.4% |
| leave-one-out | 1.80 | 1.10 | 0.00 | 0.01 | 0.421 | 72.8% |
| factorial | 1.41 | 0.70 | 0.30 | 0.30 | 0.166 | 18.6% |
“Judged useless” means an estimated contribution below 0.15.
Seeds 1 and 2: errors 0.420 and 0.424 (add-one), 0.420 and 0.422 (leave-one-out), 0.165 and 0.164 (factorial); C judged useless by leave-one-out in 75.5% and 72.4%.
Findings.
- Leave-one-out judged the redundant components useless in about three quarters of repetitions, and over-credited the synergistic pair (A 1.80 and B 1.10 against 1.4 and 0.7).
- Add-one gave the redundant components full credit and missed most of B’s value.
- The factorial design, with the same runs, had about 40% of their error, in all seeds.
Experiment design in practice
- Baselines are rerun with the same tuning budget rather than copied from papers; matched-compute comparisons are reported when methods train for different lengths.
- Ablation tables with combinations of components, not only one at a time, reveal synergy and redundancy; with many components, fractional designs or Shapley estimates by sampling keep the cost down.
- Seeds are paired across methods, and several per configuration are reported (topic O2-5).
- Remote-sensing papers often ablate input bands, augmentations and pretraining together; bands that carry the same information are a typical case of redundancy.
References
- R. A. Fisher (1935). The Design of Experiments. Oliver and Boyd.
- G. E. P. Box, J. S. Hunter and W. G. Hunter (2005). Statistics for Experimenters, second edition. Wiley.
- L. S. Shapley (1953). “A value for n-person games.” Contributions to the Theory of Games II.
- J. Dodge, S. Gururangan, D. Card, R. Schwartz and N. A. Smith (2019). “Show your work: improved reporting of experimental results.” EMNLP.
- X. Bouthillier and colleagues (2021). “Accounting for variance in machine learning benchmarks.” MLSys.