CatCMA with Margin: Stochastic Optimization for Continuous, Integer, and Categorical Variables

Ryoki Hamano, Masahiro Nomura, Shota Saito, Kento Uchida, Shinichi Shirakawa · DOI

Abstract

Mixed-Variable Black-Box Optimization (MV-BBO) involves the simultaneous optimization of continuous, integer, and categorical variables, a common requirement in fields like machine learning hyperparameter tuning and hardware design. Traditional methods often struggle with "fixation," where discrete variables converge prematurely. This paper presents CatCMAwM (CatCMA with Margin), an evolution strategy that introduces a novel margin mechanism to stabilize mutation rates. By enforcing both lower and upper bounds on mutation probabilities and employing integer centering, CatCMAwM prevents premature convergence and maintains search diversity. Experimental results on synthetic benchmarks demonstrate that CatCMAwM outperforms state-of-the-art Bayesian optimization methods in both accuracy and computational efficiency, often achieving up to 100x speedups in per-iteration time.

Introduction

Many real-world optimization problems are "black-box" in nature, where the underlying function is unknown and evaluations are expensive. These problems frequently involve a mix of variable types: continuous (real numbers), integer (ordered discrete values), and categorical (unordered choices). The primary challenge in MV-BBO is the interdependency between these variables. Existing tools often specialize in a subset of these types, leading to suboptimal performance when all three are present.

A significant issue in evolution strategies applied to mixed variables is the rapid shrinkage of the search distribution around a single discrete value, a phenomenon known as fixation. When the "step size" or variance becomes too small, the probability of exploring neighboring integer values drops to nearly zero, trapping the optimizer in local optima. CatCMAwM addresses this by decoupling the convergence of continuous variables from the mutation rates of discrete variables.

Methods

CatCMAwM builds upon the CatCMA framework, extending it to handle integer variables through a "Margin Correction" mechanism and integer centering.

The Margin Mechanism

In standard CMA-ES, the search variance decreases as the algorithm converges. For integer variables, this leads to a loss of exploration. CatCMAwM introduces a lower bound (margin) on the mutation probability to ensure the search remains active. Uniquely, it also introduces an upper bound on the mutation rate. This prevents the integer search from becoming unstable when the optimizer is fine-tuning continuous variables, effectively stabilizing the discrete search process.

Integer Centering and Discretization

To mitigate discretization errors that can bias the search, CatCMAwM employs "Integer Centering." When an integer variable is successfully mutated, the value is centered within its discrete interval to maintain a consistent search distribution.

Figure 1: Illustration of the integer centering and margin mechanism within the CatCMAwM framework. The top and bottom panels show how the search distribution is adjusted to maintain exploration across discrete intervals.

Multi-Objective Extension

The algorithm is further extended to multi-objective optimization using the Sofomore framework, resulting in COMO-CatCMAwM. This allows the algorithm to find a diverse Pareto front for problems with competing objectives.

Experimental Evaluation

The researchers evaluated CatCMAwM against several state-of-the-art optimizers, including SMAC3, TPE (Tree-structured Parzen Estimator), and CASMOPOLITAN, using a variety of synthetic benchmarks:

  • SphereIntCOM & EllipsoidIntCLO: Benchmarks for basic convergence and ill-conditioned landscapes.
  • MVProximity: Designed to test complex dependencies between all three variable types.
  • DSIntLFTL: A bi-objective benchmark for evaluating Pareto front diversity.

Results and Discussion

CatCMAwM demonstrated superior performance across single-objective benchmarks, particularly as the dimensionality of the problem increased. A key advantage of the evolution strategy approach over Bayesian Optimization (BO) is computational efficiency. While BO requires building complex surrogate models at each step, CatCMAwM maintains high accuracy with significantly lower overhead. In the SphereIntCOM test, CatCMAwM was approximately 100x faster per iteration than TPE or SMAC3.

In multi-objective scenarios, COMO-CatCMAwM achieved higher hypervolume scores compared to established methods like NSGA-II and MOTPE, indicating a better coverage of the optimal trade-off front.

Conclusion

CatCMAwM provides a robust and efficient solution for mixed-variable optimization by stabilizing discrete mutation rates through a novel margin mechanism. While Bayesian methods may still hold an advantage in extremely low-budget scenarios (under 100 evaluations), CatCMAwM offers a scalable and fast alternative for a wide range of MV-BBO problems. Future work will focus on integrating surrogate models to improve sample efficiency in low-budget settings and developing more complex real-world benchmarks for the MV-BBO community.

Summary updated

BibTeX
@inproceedings{hamano2025catcma,
  author = {Ryoki Hamano and Masahiro Nomura and Shota Saito and Kento Uchida and Shinichi Shirakawa},
  title = {{CatCMA with Margin: Stochastic Optimization for Continuous, Integer, and Categorical Variables}},
  booktitle = {GECCO},
  year = {2025},
  doi = {10.1145/3712256.3726471},
}
Figure