Skip to content

Ablations, matched compute and the quality–cost frontier

A comparison should say why a change helps. Change one part at a time against a credible baseline, keep data and tuning effort comparable, say which budget you matched, and show score against cost instead of crowning one model.

Advanced ~13 min7 steps

You will be able to

  • Design an ablation that isolates one component
  • Name which compute budget a comparison matched and why the choice matters
  • Read a Pareto front of score against cost
  • Report the hardware and settings a timing depends on

Read first

01

One change at a time

Read

"The new model scores higher" doesn't say why. An ablationAblationRefitting without one part (a feature set, a step, a loss term) with everything else fixed, to see what that part contributes. answers that by removing one part and refitting, with everything else held fixed: drop the retrieval step, change one loss term, freeze the encoder, turn off augmentation.

Start from a credible simple baseline. Keep the data, the evaluation and the tuning effort comparable across variants: a component tuned for a week against a baseline tuned for an hour measures effort, not the component.

If removing a part also changes the parameter count or the training cost, say so. Some of the gain may belong to the extra capacity, not to the named idea.

02

Which budget did you match?

Read

"Matched computeMatched computeComparing models at the same budget. Say which budget (training FLOPs, hours, latency, memory or energy): they aren't interchangeable." can mean equal training FLOPs, accelerator hours, scoring latency, memory, energy or the total development budget. They aren't interchangeable:

  • a mixture-of-experts model has many parameters but uses few per token;
  • a retrieval system adds index storage and search latency;
  • a long-context model saves retrieval calls but pays in attention and cache memory.

Name the budget the decision cares about, and show the others if they differ.

03

Measure, don't estimate

Read

Report the hardware, numerical precision, batch size, sequence length or resolution, software versions and compilation settings. Say whether a timing includes preprocessing, data transfer, retrieval and synchronization.

Measure peak memory rather than computing it from the parameter count. Training memory holds the weights, gradients, optimizer state, activations and temporary buffers; generating text also grows a key–value cache. Theoretical operation counts are useful, but the kernels and hardware decide what you actually wait for.

04

Score against cost

Read

Rather than declaring a winner, plot every candidate's score against its cost. The Pareto front is the set of runs that no other run beats on both. Every run off the front has a rival that is at least as good and cheaper.

Which point to pick depends on the task contract: a model scored once a night can afford a slower fit than one that answers in 50 milliseconds. A small gain that doubles the cost, or that is unstable across seeds, may not be worth having.

05

Ablate and compare cost in Predict

In the app

On a finished model run, Ablate re-fits on the same folds without what you choose to leave out:

  • Each feature in turn (one run per feature);
  • These features together (one run without all of them);
  • A preprocessing step (Imputation, Scaling, Missing-value indicators, Class weights or Resampling turned off).

The group appears under Seed and ablation groups in the Leaderboard step, with each variant's score and its Contribution against the full model.

Score against cost draws the Pareto front of the experiment's runs, by Fit time, Model size or Scoring latency. The same pareto-frontier chart is in Charts, in the Machine learning family and on the Model evaluation shelf.

06

Check: ablations and cost

Checkpoint

Check yourself

You want to know whether a retrieval step helps a model. Which comparison isolates it?

Show the answer

Answer: b

Change one thing and hold the rest fixed. Any other difference (size, tuning effort, data) mixes into the gap.

Check yourself

Removing a new attention block lowers the score, and it also removes a fifth of the parameters. What can you claim?

Show the answer

Answer: b

A capacity-matched control separates "this mechanism" from "more parameters".

Check yourself

Two systems are "compute-matched" on training FLOPs. One adds a retrieval index. What may the comparison still hide?

Show the answer

Answer: b

Matching one budget leaves the others free to differ. Report the dimensions the application pays for.

Check yourself

Run A scores higher than run B and fits in half the time. Where is B relative to the Pareto front?

Show the answer

Answer: b

A run is on the front when no other run is at least as good on both. A dominates B.

Check yourself

Why measure peak training memory instead of computing it from the parameter count?

Show the answer

Answer: b

Weights are only part of it. Activations grow with batch and sequence length; Adam keeps two extra numbers per parameter.

Check yourself

In Predict's Ablate dialog, what does "A preprocessing step" do?

Show the answer

Answer: a

The variant differs from the original in one step only, so its score change is that step's contribution on these folds.

07

Recap

Recap
  • Ablate one part at a time against a credible baseline, with data, evaluation and tuning effort held fixed.
  • Say which budget you matched (FLOPs, hours, latency, memory, energy) and report the others.
  • Measure peak memory and timings, with the hardware and settings they depend on.
  • Show score against cost; pick a point on the Pareto front from the task contract.

Concepts in this lesson