How would you fairly compare two hyperparameter optimisation algorithms on the same problem?

Quick Overview

Design a fair experiment to compare two hyperparameter optimisation algorithms on the same problem. Tests control of search space and budget units, repeated seeded runs, anytime performance curves, held-out test scoring, and statistical tests with effect sizes and a random search baseline.

How would you fairly compare two hyperparameter optimisation algorithms on the same problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How would you fairly compare two hyperparameter optimisation algorithms on the same problem? Describe the experimental setup, what you would measure, and how you would decide which one is better. ```hint List what could differ Write down every condition that could differ between the two runs besides the algorithm itself, including the unit in which the budget is counted. ``` ```hint One run is an anecdote Both optimisers are stochastic. Think about how many repetitions you need, and what a single final score hides about how each method performs as the budget grows. ``` ### Clarifying Questions to Ask - Is the budget measured in function evaluations, wall-clock time, or total compute such as GPU-hours? - Is the goal to pick an optimiser for this one problem, or to make a general claim about the two methods? - Does either method use partial evaluations (fewer epochs or a data subset) or run trials in parallel? ### What a Strong Answer Covers - Which conditions must be identical for both optimisers - How to define the budget and account for partial evaluations and optimiser overhead - How many repetitions to run and how to show performance across the whole budget - How to estimate the chosen configuration's performance without the bias of the validation score the optimiser chased - Which statistical tests, effect sizes and baselines make the conclusion credible ### Follow-up Questions - One optimiser runs 16 trials in parallel and the other is sequential. How do you keep the comparison fair? - How would you compare a multi-fidelity method such as Hyperband with a full-fidelity Bayesian optimiser? - Method A wins at small budgets and method B wins at large ones. What do you recommend? - Why is random search a strong baseline, and what would it mean if neither method beats it?

Overview: Design a fair experiment to compare two hyperparameter optimisation algorithms on the same problem. Tests control of search space and budget units, repeated seeded runs, anytime performance curves, held-out test scoring, and statistical tests with effect sizes and a random search baseline.

PracHub logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

How would you fairly compare two hyperparameter optimisation algorithms on the same problem? Describe the experimental setup, what you would measure, and how you would decide which one is better.

Clarifying Questions to Ask Guidance

  • Is the budget measured in function evaluations, wall-clock time, or total compute such as GPU-hours?
  • Is the goal to pick an optimiser for this one problem, or to make a general claim about the two methods?
  • Does either method use partial evaluations (fewer epochs or a data subset) or run trials in parallel?

What a Strong Answer Covers Guidance

  • Which conditions must be identical for both optimisers
  • How to define the budget and account for partial evaluations and optimiser overhead
  • How many repetitions to run and how to show performance across the whole budget
  • How to estimate the chosen configuration's performance without the bias of the validation score the optimiser chased
  • Which statistical tests, effect sizes and baselines make the conclusion credible

Follow-up Questions Guidance

  • One optimiser runs 16 trials in parallel and the other is sequential. How do you keep the comparison fair?
  • How would you compare a multi-fidelity method such as Hyperband with a full-fidelity Bayesian optimiser?
  • Method A wins at small budgets and method B wins at large ones. What do you recommend?
  • Why is random search a strong baseline, and what would it mean if neither method beats it?