TactivergeLite

Lite / Intelligent Robotic Systems / Week 33

Give the baseline a fair fight

You spent three evenings tuning your new controller and three minutes on the old one. Your comparison is really measuring something else. What?

About 35 min · 2 goals · Checked by automated tests · Full interactive version

Why should I care?

An unfair baseline is the most common way honest people produce misleading results. Treating the baseline as a real competitor is what makes a win mean something.

Predict

Your new method was tuned with a 50-point grid search; the baseline used default gains. What does a win show?

  1. The new method is better
  2. Possibly only that tuning helps
  3. Nothing at all
Guess first, then reveal

Mostly that tuning helps. Give the baseline the same 50-point search, then compare. If the new method still wins, the win is about the method.

Discover

Treat P as the baseline and PI as the new method on the first-order plant with noise and a load disturbance. Spend the same number of tries (say eight) tuning each against the same metric, then compare their best results.

What the interactive shows (text version)

In the feedback lab, P and PI are each tuned with the same number of attempts on the same noisy, disturbed plant; their best results are then compared under identical settings.

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

Watch (optional)

Watch for: Notice that automatic tuning methods can be applied to any controller: a fair way to give the baseline equal effort.

Compares hand tuning with automatic methods, a useful reminder that a baseline deserves the same tuning effort as the method you favour.

“Manual and Automatic PID Tuning Methods | Understanding PID Control, Part 6” by MATLAB (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Equal effort

Tune the baseline with the same method and budget as your own: the same number of trials, the same search range, the same metric. If you use an automatic tuner for one, use it for both. Report how each was tuned.

Equal information and conditions

Both methods get the same sensors, the same data, the same seeds and the same limits (actuator saturation, computing time). A method that secretly sees ground truth, or a larger budget, is not comparable.

A strong, relevant baseline

Choose what a competent engineer would actually use: the standard method in the field, or the current system. A 'straw man' baseline nobody would choose makes any method look good. Including a trivial baseline as well is fine, as a sanity check.

Explain it another way

Intuitive

A race where one runner gets new spikes and three weeks of coaching tells you about coaching, not about the runner.

Technical

Unequal hyper-parameter tuning is a confound: tuning effort varies with the method. Matching tuning budgets removes it.

Applied

Benchmark studies increasingly publish tuning budgets and search spaces for every method, because unequal tuning has repeatedly been found to explain claimed improvements.

Worked example 1

Write one method sentence describing fair tuning for a P vs PI comparison.

'Both controllers were tuned by grid search over the same range (Kp 0.5–10, Ki 0–5 for PI) with 40 evaluations each, minimising mean IAE on seeds 101–110; final comparison used separate seeds 1–10.'

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 makes a baseline comparison unfair?
Practice 2. The new planner uses a perfect map; the baseline uses the noisy lidar map. Fair?
Practice 3. Why tune on seeds 101–110 and compare on seeds 1–10?

%

Apply it

Repeat your P vs PI comparison with equal tuning budgets and separate tuning and test seeds. Report how much the improvement changed compared with your first, unequal attempt.

Reflect

What would you have to admit in your report if the fair baseline won?

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

Go further

Research mode: limits and open questions

Some studies re-running published comparisons with equally tuned baselines have found the claimed advantages shrink or disappear; the lesson is general, whatever the field.

← Better than what?Take it apart to see what matters →