TactivergeLite

Lite / Engineering Complex Systems / Week 34

Which part made it better? Baselines and ablations

You changed three things and the greenhouse used 12% less energy. Which change earned the saving?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Optimisation projects usually change several things at once. Without an ablation you can't say which change mattered, so you can't explain the result, keep the useful part, or drop the useless complexity.

Predict

Full design: −12% energy. Remove change X: −11%. Remove change Y: −3%. Which change matters most?

  1. X
  2. Y
  3. Equal
  4. Can't tell from this
Guess first, then reveal

Removing Y loses 9 percentage points of saving; removing X loses only 1. Y does most of the work. (If X and Y interact, their individual contributions may not add to the total; a full factorial test would show that.)

Discover

Do Level 4: compare P control with PI control at the same setpoint. Treat the integral term as one 'component'. Record energy, time outside the comfort band and the 03:00 temperature for both. That pair of runs is an ablation of integral action.

What the interactive shows (text version)

In the greenhouse Build's Level 4 the learner compares proportional control with proportional-integral control at matched settings. P control at an 18 °C setpoint with Kp = 400 W/°C settles at about 14.6 °C at 03:00 and fails comfort; PI at 17 °C holds 17.0 °C with about 20.1 kWh. Comparing the two isolates the contribution of the integral term.

You can also open the interactive on the full site when you have a faster connection.

Understand

Fair baselines

A baseline is what you compare against. A strong one is the best simple alternative a competent engineer would use (a tuned thermostat, not a broken one), run on the same workload with the same effort spent tuning. Beating a weak baseline proves little. Say how the baseline was chosen and tuned.

Ablation: take it away and measure

Start from the full design. Remove (or replace with the simplest alternative) one component at a time, holding everything else fixed, and measure the change on the same pre-defined metrics. The drop when a component is removed is its contribution in the context of the rest of the design.

Interactions

Components can depend on each other: a better sensor filter might only help when integral action is present. Then one-at-a-time ablation underestimates or overestimates contributions. A full factorial test (all 2^k on/off combinations for k components) reveals interactions, at a cost that grows quickly with k.

Uncertainty still applies

Each ablation result is a difference with an uncertainty. A component whose removal changes the metric by less than about two standard errors of the difference hasn't been shown to matter. Report every row with its interval, including the ones that show nothing.

Explain it another way

Intuitive

A cake recipe changed three ingredients and tastes better. Bake it three more times, each with one change undone, to find out which one made the difference.

Technical

One-factor-at-a-time ablation measures conditional contributions Δᵢ = f(full) − f(full minus i). Factorial designs estimate main effects and interactions; fractional factorials trade some interaction information for fewer runs.

Mathematical

Two components X, Y with on/off levels: four runs f(00), f(10), f(01), f(11). Main effect of X ≈ ½[(f(10) − f(00)) + (f(11) − f(01))]; interaction = ½[(f(11) − f(01)) − (f(10) − f(00))].

Applied

Machine-learning papers are routinely expected to include ablation tables showing how much each proposed component contributes, because a complex model whose gains come from one small trick is misleading.

Worked example 1

Energy (kWh): baseline 24.0; full design 21.0; full without integral 23.5; full without filtering 21.2. Interpret.

Full saves 3.0 kWh. Removing integral loses 2.5 of that; removing filtering loses 0.2. Integral action carries most of the gain; filtering's 0.2 kWh needs its uncertainty before you claim it matters.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which baseline is most convincing for a new greenhouse controller?

points

Practice 3. Removing X alone costs 1 point and removing Y alone costs 1 point, but removing both costs 8 points. What does this suggest?

×

Apply it

Plan the ablation table for your term project: list each component of your optimised design, what replaces it when ablated, the metric, and the number of repeats per row.

Reflect

Have you ever kept a change in a project without knowing whether it helped? How would you find out now?

Write your answer on paper or in your own notes. Lite never stores what you write.

← A speed-up is a ratio: give it an intervalAnatomy of a technical manuscript →