[Paper Review] Bayesian Optimisation over Multiple Continuous and Categorical Inputs
This paper proposes Continuous and Categorical Bayesian Optimisation (CoCaBO), a novel method that combines multi-armed bandits and Gaussian process regression to efficiently optimise black-box functions with mixed continuous and categorical inputs. By introducing a new kernel that enables information sharing across categories without one-hot encoding, CoCaBO achieves superior sample efficiency and performance over existing methods on both synthetic and real-world tasks, especially with multiple categorical variables.
Efficient optimisation of black-box problems that comprise both continuous and categorical inputs is important, yet poses significant challenges. We propose a new approach, Continuous and Categorical Bayesian Optimisation (CoCaBO), which combines the strengths of multi-armed bandits and Bayesian optimisation to select values for both categorical and continuous inputs. We model this mixed-type space using a Gaussian Process kernel, designed to allow sharing of information across multiple categorical variables, each with multiple possible values; this allows CoCaBO to leverage all available data efficiently. We extend our method to the batch setting and propose an efficient selection procedure that dynamically balances exploration and exploitation whilst encouraging batch diversity. We demonstrate empirically that our method outperforms existing approaches on both synthetic and real-world optimisation tasks with continuous and categorical inputs.
Motivation & Objective
- To address the challenge of Bayesian optimisation over functions with both continuous and categorical inputs, which existing methods struggle with due to dimensionality or sample inefficiency.
- To overcome the limitations of one-hot encoding, which inflates the input space and hinders scalability with multiple categorical variables.
- To develop a unified, sample-efficient surrogate model that captures interactions across both input types without separate modelling per category.
- To extend the method to the batch setting, enabling parallel evaluation while maintaining exploration-exploitation balance and diversity.
- To demonstrate superior performance on real-world and synthetic benchmarks involving multiple categorical variables with many values.
Proposed method
- Proposes CoCaBO, a hybrid framework integrating multi-armed bandits for categorical selection with Gaussian process-based Bayesian optimisation for continuous variables.
- Introduces a novel kernel function that combines sum and product structures to model interactions between continuous and categorical inputs, enabling cross-category information sharing.
- Uses a kernel decomposition that avoids one-hot encoding by treating categorical variables as discrete inputs with structured covariance, improving data efficiency.
- Employs a dynamic acquisition function that balances exploration and exploitation in the mixed input space, with a batch selection procedure that promotes diversity.
- Applies a hybrid kernel: a sum of a continuous-only kernel and a product kernel that models cross-type interactions, with learnable hyperparameters.
- Extends the method to the batch setting by selecting multiple points simultaneously, using a diversity-aware selection strategy that maintains exploration.
Experimental results
Research questions
- RQ1Can a unified Bayesian optimisation framework effectively handle mixed continuous and categorical inputs without resorting to one-hot encoding?
- RQ2How can information be efficiently shared across different categorical values to improve sample efficiency in high-dimensional categorical spaces?
- RQ3Can a kernel-based approach outperform hierarchical or one-hot encoded models in terms of predictive accuracy and optimisation convergence?
- RQ4How does the proposed method scale with increasing numbers of categorical variables and categories?
- RQ5Can the batch version of the method maintain performance while enabling parallel evaluations and diversity in selected points?
Key findings
- CoCaBO with the proposed kernel achieves significantly better out-of-sample predictive log-likelihood than one-hot encoded GP models, especially as the number of categorical inputs increases.
- In the sequential setting, CoCaBO-0.5 and CoCaBO-auto outperform competing methods on all synthetic and real-world problems, including NAS-CIFAR10 and Ackley-5C with high categorical complexity.
- CoCaBO consistently outperforms EXP3BO on problems with many categorical combinations (e.g., 17^5 for Ackley-5C), where EXP3BO fails due to the need for excessive surrogate models.
- TPE performs well only when the number of categorical combinations is small (e.g., 15 or 16), but degrades significantly on larger problems like NAS-CIFAR10 (243 combinations), where CoCaBO excels.
- In the batch setting with b=4, CoCaBO-0.5 and CoCaBO-auto again achieve the best performance, with CoCaBO-1.0 (product kernel only) performing competitively on problems with few category choices due to increased data overlap.
- The recommended default settings are λ=0.5 or λ=auto, as the hybrid kernel structure provides the best balance of expressiveness and generalisation across mixed-type input spaces.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.