Optimizing complex systems often feels like trying to find the perfect recipe when some ingredients are "either-or" (discrete) and others are "how much" (continuous). Whether you are designing a new high-entropy alloy or tuning a neural network, you are working in a hybrid space. A new paper from ICML 2021 introduces HyBO, a framework designed to navigate these tricky landscapes more effectively than ever before.
TL;DR
The authors propose HyBO (Hybrid Bayesian Optimization), which uses a novel class of "additive hybrid diffusion kernels" to model complex interactions between discrete and continuous variables. By proving these kernels have the universal approximation property and demonstrating superior performance on real-world engineering benchmarks, they provide a principled way to optimize expensive black-box functions over mixed-input spaces.
What Problem Does This Paper Address?
Most Bayesian Optimization (BO) tools are specialized: they are great at continuous spaces (using Gaussian Processes with RBF kernels) or they handle discrete spaces (using random forests or specialized discrete kernels). However, many real-world problems are hybrid.
Take materials science: you might need to choose which elements to include (discrete) and what concentration each should have (continuous). The challenge lies in the "cross-talk" between these variables. A specific concentration might be great for Aluminum but terrible for Magnesium. Existing methods often struggle to capture these high-order interactions, either by treating discrete variables as continuous (sub-optimal) or using simple "sum kernels" that ignore complex interdependencies.
Methods
The core innovation of HyBO is the Additive Hybrid Diffusion Kernel. Here’s how it works:
- Diffusion Kernels: Inspired by physical processes like heat diffusion, these kernels are naturally defined for both continuous spaces (where they look like the familiar RBF kernel) and discrete spaces (defined over graphs). This provides a unified mathematical language for both input types.
- Additive Formulation: Instead of just adding a discrete kernel to a continuous one, HyBO uses an additive GP kernel formulation. This allows the model to account for interactions of all orders—from individual variables to complex combinations of multiple discrete and continuous inputs—in a computationally tractable way using the Newton-Girard formula.
- Data-Driven Specialization: The model uses a fully Bayesian approach (slice sampling) to learn the "strength" of different interaction orders from the data. If a problem only has pairwise interactions, the model learns to prioritize those.
- Universal Approximation: The authors provide a theoretical proof that their additive hybrid diffusion kernel can approximate any continuous function over a hybrid space, given enough data. This is a "gold standard" for kernel design that many previous hybrid methods lacked.
Datasets
The authors evaluated HyBO against four strong baselines (CoCaBO, SMAC, TPE, and standard BO) across several domains:
- Synthetic Benchmarks: The
bbox-mixintsuite, which contains mixed-integer problems of varying difficulty. - Real-World Engineering: Tasks including Pressure Vessel Design, Welded Beam Design, Speed Reducer Design, Robot Pushing, and Environmental Model Calibration.
- Machine Learning: Hyper-parameter optimization (HPO) for neural networks across six different datasets.
Key Insights and Ideas
- The "Interaction" Gap: The paper highlights that previous state-of-the-art methods like CoCaBO use a "sum kernel," which essentially assumes discrete and continuous variables don't interact much. HyBO’s additive kernel proves that capturing these interactions is the key to faster convergence.
- Unified Theory: By using diffusion kernels, the authors bridge the gap between discrete and continuous math. They show that a discrete random walk on a grid eventually "becomes" a continuous diffusion process as the grid gets finer, providing a beautiful theoretical symmetry to the framework.
- Surrogate Accuracy: Ablation studies showed that HyBO’s surrogate model (the Gaussian Process) consistently achieves lower Mean Absolute Error (MAE) than competitors, especially as more data is collected. This means the "brain" of the optimizer is simply more accurate.
Key Results
- Superior Performance: HyBO significantly outperformed baselines like SMAC and CoCaBO on nearly all benchmarks. In many cases, it found better solutions in fewer iterations.
- Faster Convergence: On engineering tasks like the "Speed Reducer Design" and "Push Robot" control problem, HyBO reached optimal or near-optimal values much faster than competitors.
- Robustness: Even a simplified version of the algorithm (HyBO without marginalization) outperformed existing methods, though the full Bayesian treatment provided the best results.
- Efficiency: While HyBO is more computationally expensive per iteration (taking seconds vs. milliseconds for TPE), the authors argue this is a negligible cost when the "black-box" function being evaluated is an expensive physical experiment or a day-long simulation.
Limitations and Future Work
- Computational Overhead: As noted in the paper’s cost analysis, HyBO is relatively slow per iteration due to the complexity of the additive kernel and the slice sampling required for hyperparameters. For extremely fast-to-evaluate functions, the overhead might not be worth it.
- Scalability: While the additive kernel is computed in polynomial time, very high-dimensional spaces (hundreds of variables) might still pose a challenge for standard Gaussian Processes.
- Future Directions: The authors suggest that reducing sampling time (perhaps through more efficient hyperparameter optimization) could make HyBO even more competitive for a broader range of applications.
Reference: Deshwal, A., Belakaria, S., & Doppa, J. R. (2021). Bayesian Optimization over Hybrid Spaces. Proceedings of the 38th International Conference on Machine Learning (ICML).
Summary updated