How does CMA-ES search a continuous hyperparameter space?

Quick Overview

Asks how CMA-ES explores a continuous hyperparameter space without gradients. Tests understanding of Gaussian sampling, rank-based selection, covariance and step-size adaptation, practical handling of parameter scales and types, and when other tuning methods fit better.

How does CMA-ES search a continuous hyperparameter space?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How does CMA-ES search a continuous hyperparameter space? CMA-ES (covariance matrix adaptation evolution strategy) is a derivative-free optimizer that several hyperparameter tuning libraries offer as a search strategy. ```hint What is being sampled Think of the search state as a probability distribution over configurations. Which parameters does that distribution have, and how could the best samples of one round update each of them? ``` ```hint What the algorithm reads Ask what CMA-ES uses from each evaluation, the raw objective values or only their order, and what that implies for objectives with odd scales or outliers. ``` ### What a Strong Answer Covers - The sampling distribution and what one generation does, from sampling to update - How the covariance and the step size are adapted, and what each adaptation buys - Why rank-based selection and a learned covariance suit hyperparameter landscapes - Practical handling of scale-type, bounded, integer and categorical hyperparameters - When CMA-ES is a poor choice compared with other tuning methods ### Follow-up Questions - How would you choose the population size and the initial step size, and what do restarts with a growing population (IPOP-CMA-ES) fix? - How does CMA-ES compare with Bayesian optimization when each training run takes hours? - What happens to CMA-ES when the objective is noisy, such as validation accuracy that varies across random seeds? - How do you run CMA-ES when some hyperparameters are categorical or conditional?

Overview: Asks how CMA-ES explores a continuous hyperparameter space without gradients. Tests understanding of Gaussian sampling, rank-based selection, covariance and step-size adaptation, practical handling of parameter scales and types, and when other tuning methods fit better.

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

How does CMA-ES search a continuous hyperparameter space?

CMA-ES (covariance matrix adaptation evolution strategy) is a derivative-free optimizer that several hyperparameter tuning libraries offer as a search strategy.

What a Strong Answer Covers Guidance

  • The sampling distribution and what one generation does, from sampling to update
  • How the covariance and the step size are adapted, and what each adaptation buys
  • Why rank-based selection and a learned covariance suit hyperparameter landscapes
  • Practical handling of scale-type, bounded, integer and categorical hyperparameters
  • When CMA-ES is a poor choice compared with other tuning methods

Follow-up Questions Guidance

  • How would you choose the population size and the initial step size, and what do restarts with a growing population (IPOP-CMA-ES) fix?
  • How does CMA-ES compare with Bayesian optimization when each training run takes hours?
  • What happens to CMA-ES when the objective is noisy, such as validation accuracy that varies across random seeds?
  • How do you run CMA-ES when some hyperparameters are categorical or conditional?