Baseline equivalence and tuning fairness
Compare complete systems under equivalent correctness and resource contracts while accounting for search effort and tuning selection.
On this page
The question for today
What you’ll understand
- Define equivalence in outputs, service constraints, and measured boundaries.
- Account for tuning resources in units appropriate to the search.
- Separate tuned-system comparisons from evidence about one internal mechanism.
A new system can appear faster because it does less work, receives more hardware, or benefits from a larger search over configurations. A fair comparison therefore begins with a contract for both arms, not a promise to run their default commands. The strongest relevant baseline may need expert tuning and a recent compatible implementation. Report that work so a reader can distinguish a systems advance from an advantage in experimental preparation.
Match the task and the service boundary
Check that both configurations produce equivalent accepted outputs at the required accuracy, consistency, and failure semantics. A database that omits durability or a model server that reduces output length performs a different task unless the study explicitly treats that tradeoff. Match data preprocessing, request definitions, timeouts, warmup policy, and accounting of compilation or maintenance. If a feature is unsupported, report the limitation rather than silently removing those requests from only one arm. Correctness guardrails remain part of every timed configuration.
Resource parity depends on the question. Equal accelerator count, equal rented cost, and equal power cap define different studies. State hardware models, usable memory, host resources, network placement, and concurrent tenants. Software defaults are not necessarily comparable because libraries choose different thread counts, batching policies, and precision. A tuned baseline should be a credible implementation of the same task under the declared budget. Also report absolute outcomes, since a large ratio against a slow baseline may say little about an achievable deployment.
Give tuning a measurable budget and a separate evaluation set
A fixed number of trials does not imply equal effort when trial durations or machine sizes differ. Sum the relevant resource consumption, such as accelerator-hours, and separately report wall-clock deadlines or human intervention when those matter. Include failed and interrupted tuning trials according to a declared policy. Equal budgets are a transparent experimental choice rather than proof that two search spaces are equally difficult. Publish search ranges, algorithms, seeds, stopping rules, and the selected configurations so the comparison can be challenged.
Choose configurations on development workloads and evaluate them on held-out workloads or fresh runs. Selecting the fastest noisy trial and then reporting that same measurement creates selection optimism. Re-evaluate the selected baseline and candidate with a comparable protocol. If a candidate received months of developer specialization while a baseline received one afternoon, disclose the asymmetry and seek expert feedback where feasible. A fair end-to-end tuned-system comparison still bundles many differences; it does not isolate which algorithmic component caused the gain.
Report fairness decisions so the comparison can be repeated
Keep a configuration table containing revisions, flags, compilation options, dataset preparation, search budget, and measured execution boundary for each arm. Explain why the baseline is relevant and whether a newer implementation changes the conclusion. Present quality-resource curves when no single setting makes every constraint equal. An equal-cost result can be useful even if absolute latency differs, provided the claim names that decision. Distinguish a study of attainable deployed performance from a controlled experiment that intentionally freezes most implementation choices.
The optimization instrument illustrates an equal-update comparison without implying equal real compute. Reset, set both η=0.5 and x₀=2, predict x=0.25 after three Steps, then Step three times. Separately Reset, set both η=0.25 and x₀=2, predict x=0.84375 after three Steps, then Step three times. The exact recurrence is x_n=x₀(1−η)^n on one quadratic. Equal iterations are visible here, but this toy supplies no training-time, quality, tuning-search, or hardware evidence for an actual optimizer baseline.
Work it through
Account for the search before interpreting the ratio
Each tuning trial uses one identical accelerator for fifteen minutes. A baseline receives 32 trials and a candidate receives 64. Fresh evaluation later measures 120 s and 100 s respectively under otherwise compatible service constraints.
Each trial consumes 0.25 accelerator-hours. The baseline search therefore uses 32×0.25=8 accelerator-hours, while the candidate search uses 64×0.25=16.
The measured evaluation ratio is 120/100=1.2, and the candidate time is 20/120≈16.67% lower. Those observed outcomes do not erase the twofold tuning-resource difference.
To study equal eight-hour tuning budgets, cap both searches at that resource budget and freshly evaluate their selected configurations. The existing result may still describe the two deployed configurations, but it does not establish the same gain under equal search effort.
Match the claim to the comparison actually performed, and expose the preparation budget as well as execution resources.
The living notebook
Explore the model
Interactive lab · optimization
Equal update count is one narrow comparison budget
Reset, set both η=0.5 and x₀=2, predict x=0.25 after three Steps, then Step three times. Separately Reset, set both η=0.25 and x₀=2, predict x=0.84375 after three Steps, then Step three times. This fixed quadratic recurrence is not an optimizer benchmark.
- Position x0
- 2
- Objective x²/2
- 2
- Iteration behavior
- Stable step
Gradient descent on f(x) = x²/2: xₙ = (1 − η)ⁿx₀. Playback advances two discrete iterations per second. Values outside |x| ≤ 4 are explicitly reported. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forName the budget that is equal and the evidence that remains unmeasured.
Pause & reason
Check your understanding
Your turn
Try it yourself
One search uses 24 trials of twenty minutes on one declared accelerator. Another uses sixteen trials of thirty minutes on the same device. Compare accelerator-hours and explain whether that establishes all aspects of fairness.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Convert each duration to hours before multiplying by the number of trials.
Compare with the solution
Both consume eight accelerator-hours: 24×(20/60)=8 and 16×(30/60)=8. This matches that resource budget, but not necessarily wall-clock limits, search quality, human effort, task equivalence, or evaluation independence. Those conditions still need explicit reporting.
Keep the idea
Take it with you
- Equivalent correctness and service boundaries precede a useful speed comparison.
- Report search resources and freshly evaluate configurations selected by tuning.
- Budget parity makes a contract transparent; it does not isolate every mechanism.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.