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:
- $\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.
- 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.
- 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.
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.
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