NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Warm Starting CMA-ES for Hyperparameter Optimization

Masahiro Nomura, Shuhei Watanabe, Youhei Akimoto, Yoshihiko Ozaki, Masaki Onishi

Abstract

Hyperparameter Optimization (HPO) is critical for machine learning performance but often computationally prohibitive. While Covariance Matrix Adaptation Evolution Strategy (CMA-ES) is robust for complex landscapes, its lengthy adaptation phase limits its utility in low-budget HPO scenarios. We present WS-CMA-ES, a method that warm-starts CMA-ES by transferring knowledge from prior tasks. By initializing the search distribution using a Gaussian Mixture Model (GMM) derived from source task data and defining a formal $\gamma$-similarity metric, WS-CMA-ES significantly accelerates convergence, outperforming Bayesian Optimization in limited-evaluation regimes.

Introduction

Hyperparameter Optimization (HPO) is essential for peak model performance but faces significant computational hurdles. CMA-ES is a premier evolutionary algorithm for non-separable and rugged optimization landscapes. However, in HPO, evaluation budgets are often extremely tight (e.g., 30–50 evaluations). Standard CMA-ES typically requires a long adaptation phase to learn the search space's covariance matrix, often exhausting the budget before finding optimal regions. Consequently, practitioners frequently default to Bayesian Optimization (BO).

This paper addresses this gap by introducing a framework to "warm start" CMA-ES using data from related source tasks, such as HPO runs on smaller data subsets or similar datasets. This allows CMA-ES to bypass the slow initial learning phase.

Methods

The WS-CMA-ES framework leverages prior knowledge through three main components:

  1. $\gamma$-Promising Distributions: Instead of simple point-based transfer, the authors define a $\gamma$-promising distribution representing regions likely to contain high-performing hyperparameters. This is modeled using a smoothed Gaussian Mixture Model (GMM) to maintain search flexibility.
  2. Task Similarity: A formal $\gamma$-similarity metric is introduced, based on the Kullback–Leibler (KL) divergence between promising distributions of two tasks. This provides a theoretical foundation for transferability.
  3. Initialization: For a new task, WS-CMA-ES selects top solutions from a source task, estimates the GMM, and initializes the CMA-ES mean ($m$) and covariance matrix ($\Sigma$) by minimizing the KL divergence between the internal model and the source GMM.
Correlation between task similarity and performance gain on synthetic functions.

Results and Discussion

The authors evaluated WS-CMA-ES on synthetic benchmarks (Sphere, Rotated Ellipsoid) and real-world HPO tasks (LightGBM, MLPs on MNIST/Fashion-MNIST, and CNNs on CIFAR/SVHN).

Performance on Synthetic Benchmarks

Experiments on shifted synthetic functions demonstrate that WS-CMA-ES is robust to task dissimilarity. As shown in the performance benchmarks, even when the target task is shifted (offset $b$), WS-CMA-ES variants maintain competitive performance compared to standard CMA-ES and other baselines.

Best evaluation values across different task offsets for Sphere and Rotated Ellipsoid functions.

Real-World HPO Efficiency

In CNN experiments on CIFAR-10 using knowledge transferred from SVHN, WS-CMA-ES identified superior hyperparameters within approximately 40 evaluations. This performance surpassed both standard Gaussian Process Expected Improvement (GP-EI) and Multi-Task Bayesian Optimization (MTBO). Unlike MTBO, which requires expensive model rebuilding, WS-CMA-ES only processes source data once at initialization, offering significant computational efficiency.

Conclusion

WS-CMA-ES effectively bridges the gap between evolutionary strategies and low-budget HPO. By mathematically grounding task similarity and utilizing smoothed GMMs for initialization, the method achieves rapid convergence while remaining robust to slight task shifts. Future work includes automated source task selection and dynamic dissimilarity detection to further enhance search reliability.

Summary updated

BibTeX
@inproceedings{nomura2021warm,
  author = {Masahiro Nomura and Shuhei Watanabe and Youhei Akimoto and Yoshihiko Ozaki and Masaki Onishi},
  title = {{Warm Starting CMA-ES for Hyperparameter Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i10.17109},
}
Figure