When would an evolutionary strategy like CMA-ES be chosen over Bayesian optimization?

Quick Overview

Asks when CMA-ES, an evolutionary strategy, is a better choice than Bayesian optimization for tuning black-box parameters. Tests whether you can weigh evaluation budget, cost per trial, parallelism, dimensionality, parameter scaling and categorical or conditional search spaces when picking an optimizer.

When would an evolutionary strategy like CMA-ES be chosen over Bayesian optimization?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

When would an evolutionary strategy like CMA-ES be chosen over Bayesian optimization? Assume you are tuning hyperparameters or other black-box parameters, and you can evaluate the objective but not its gradient. ```hint Count the evaluations Ask how many evaluations you can afford and how many can run at the same time, then compare the computation each method spends to propose a new point. ``` ```hint Look at the search space Consider which method assumes a continuous space, and what each one does with correlated parameters, very different scales, and categorical or conditional choices. ``` ### What a Strong Answer Covers - How the evaluation budget and the cost of one trial shift the choice. - How each method handles evaluating many points in parallel. - The effect of dimensionality, parameter correlations and scaling. - How categorical and conditional parameters are handled. - Practical hybrids or tooling, and the setup each method needs to work well. ### Follow-up Questions - You have 40 trials of a 6-hour training job and 8 GPUs. Which method would you use, and how would you propose 8 points at once? - Why does a monotone transform of the objective leave CMA-ES unchanged, and when does that help in practice? - How would you handle a learning rate that spans five orders of magnitude in CMA-ES? - When would a multi-fidelity method such as Hyperband beat both?

Overview: Asks when CMA-ES, an evolutionary strategy, is a better choice than Bayesian optimization for tuning black-box parameters. Tests whether you can weigh evaluation budget, cost per trial, parallelism, dimensionality, parameter scaling and categorical or conditional search spaces when picking an optimizer.

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

When would an evolutionary strategy like CMA-ES be chosen over Bayesian optimization? Assume you are tuning hyperparameters or other black-box parameters, and you can evaluate the objective but not its gradient.

What a Strong Answer Covers Guidance

  • How the evaluation budget and the cost of one trial shift the choice.
  • How each method handles evaluating many points in parallel.
  • The effect of dimensionality, parameter correlations and scaling.
  • How categorical and conditional parameters are handled.
  • Practical hybrids or tooling, and the setup each method needs to work well.

Follow-up Questions Guidance

  • You have 40 trials of a 6-hour training job and 8 GPUs. Which method would you use, and how would you propose 8 points at once?
  • Why does a monotone transform of the objective leave CMA-ES unchanged, and when does that help in practice?
  • How would you handle a learning rate that spans five orders of magnitude in CMA-ES?
  • When would a multi-fidelity method such as Hyperband beat both?