Abstract
This paper presents a new type of hybrid model for Bayesian optimization (BO) adept at managing mixed variables, encompassing both quantitative (continuous and integer) and qualitative (categorical) types. Our proposed new hybrid models (named hybridM) merge the Monte Carlo Tree Search structure (MCTS) for categorical variables with Gaussian Processes (GP) for continuous ones. hybridM leverages the upper confidence bound tree search (UCTS) for MCTS strategy, showcasing the tree architecture's integration into Bayesian optimization. Our innovations, including dynamic online kernel selection in the surrogate modeling phase and a unique UCTS search strategy, position our hybrid models as an advancement in mixed-variable surrogate models. Numerical experiments underscore the superiority of hybrid models, highlighting their potential in Bayesian optimization.
Introduction
In many scientific and engineering domains, optimization problems involve "mixed" variables: a combination of continuous, integer, and categorical types. For instance, tuning a neural network requires selecting continuous learning rates, integer layer counts, and categorical activation functions. While Bayesian Optimization (BO) using Gaussian Processes (GP) is highly effective for continuous spaces, categorical variables present significant hurdles. They lack inherent ordering or distance metrics, and common workarounds like one-hot encoding often create discontinuous surfaces that degrade GP performance.
To address these challenges, researchers have explored various hybrid and non-hybrid architectures. The landscape of these models is summarized below, highlighting how hybridM fits into the current research ecosystem:
The hybridM Framework
The proposed hybridM framework introduces a "tree-and-GP" architecture designed to handle the complexities of mixed-variable spaces efficiently by decoupling the search strategies for different variable types while maintaining a shared surrogate model.
1. Categorical Search via MCTS
For categorical variables, hybridM employs a Monte Carlo Tree Search (MCTS) structure. Each level of the tree corresponds to a categorical variable. The algorithm navigates this tree using the Upper Confidence Bound Tree Search (UCTS) strategy, which effectively balances exploration of new category combinations with the exploitation of known high-performing branches.
2. Surrogate Modeling with Dependent GPs
Unlike approaches that maintain independent GPs for each categorical leaf—which can be computationally prohibitive—hybridM utilizes a single, shared GP. This "dependent" GP models the interactions between categorical and continuous variables, allowing the system to share information across different categories and significantly improving sample efficiency.
3. Dynamic Kernel Selection
A core innovation of hybridM is its ability to perform dynamic, online kernel selection. Since no single kernel is optimal for all objective functions, hybridM maintains a library of candidate kernels. At each iteration, it selects the most appropriate kernel using a novel rank-based criterion, $R_{1/2}$. This criterion combines model likelihood (fit) with acquisition value (potential), ensuring the surrogate model remains both accurate and exploratory.
Experimental Evaluation and Results
The performance of hybridM was evaluated against several state-of-the-art baselines across synthetic benchmarks and real-world applications.
Synthetic Benchmarks
On the Friedman-8C benchmark, which features over 11,000 possible categorical combinations, hybridM demonstrated superior scalability and convergence compared to established methods like SMAC and TPE. The dynamic kernel selection allowed the model to adapt to non-stationary regions of the search space that typically baffle standard stationary kernels.
High-Performance Computing (HPC)
In optimizing the STRUMPACK parallel sparse linear solver for a 3D Poisson problem, hybridM reached the optimal configuration four times faster than competing models. It showed a remarkable ability to concentrate its search within the top 10% of the configuration space early in the process.
Neural Network Hyperparameter Tuning
When tuning regression models across diverse datasets (e.g., Galaxy redshift, Boston housing), hybridM proved to be exceptionally robust. While some methods occasionally found good points quickly but exhibited high variance, hybridM consistently converged to high-quality solutions across multiple runs.
Conclusion
The hybridM framework represents a significant advancement in mixed-variable Bayesian optimization. By combining the structural strengths of MCTS for categorical variables with the predictive power of GPs for continuous variables—augmented by dynamic kernel selection—it offers a robust and efficient solution for complex black-box optimization tasks. Future work will focus on incorporating formal Bayesian priors into the MCTS phase and extending the framework to multi-objective optimization and constrained search spaces.
Reference: Luo, H., Cho, Y., Demmel, J. W., Li, X. S., & Liu, Y. (2024). Hybrid Parameter Search and Dynamic Model Selection for Mixed-Variable Bayesian Optimization. arXiv:2206.01409v4.
Summary updated