Bayesian Optimization over High-Dimensional Combinatorial Spaces via Dictionary-based Embeddings

Aryan Deshwal, Sebastian Ament, Maximilian Balandat, Eytan Bakshy, Janardhan Rao Doppa, David Eriksson

Abstract: We consider the problem of optimizing expensive black-box functions over high-dimensional combinatorial spaces which arises in many science, engineering, and ML applications. We use Bayesian Optimization (BO) and propose a novel surrogate modeling approach for efficiently handling a large number of binary and categorical parameters. The key idea is to select a number of discrete structures from the input space (the dictionary) and use them to define an ordinal embedding for high-dimensional combinatorial structures. This allows us to use existing Gaussian process models for continuous spaces. We develop a principled approach based on binary wavelets to construct dictionaries for binary spaces, and propose a randomized construction method that generalizes to categorical spaces. We provide theoretical justification to support the effectiveness of the dictionary-based embeddings. Our experiments on diverse real-world benchmarks demonstrate the effectiveness of our proposed surrogate modeling approach over state-of-the-art BO methods.

Introduction

Optimizing expensive black-box functions in high-dimensional discrete spaces—such as binary or categorical sequences—is a fundamental challenge in machine learning and engineering. As the search space grows exponentially with the number of dimensions, traditional search methods often fail. Bayesian Optimization (BO) is typically the preferred approach for such "expensive" tasks, where each evaluation (e.g., a physical experiment or a long-running simulation) carries a high cost. However, standard BO machinery is designed for continuous domains and struggles with the "curse of dimensionality" in combinatorial spaces.

Existing combinatorial BO methods often rely on complex custom kernels that are difficult to tune or fail to scale. This paper introduces BODi (Bayesian Optimization with Dictionaries), a framework that bridges this gap by embedding discrete inputs into a continuous space using their relationship to a reference "dictionary."

The BODi Framework

The core innovation of BODi is Hamming Embedding via Dictionaries (HED). This approach transforms a high-dimensional combinatorial input $z$ into a continuous vector $\phi_A(z)$ based on its Hamming distance to a set of $m$ reference structures, known as the dictionary $A$.

Overview of the BODi framework: mapping combinatorial inputs to a continuous embedded space via a dictionary.

Methodology

  1. Dictionary Selection: The algorithm selects $m$ discrete structures from the input space. The authors propose two construction methods: Sub-sampled Binary Wavelets (a deterministic approach for binary spaces) and Diverse Random (a robust randomized procedure for categorical data).
  2. Embedding: Any input $z$ is mapped to a vector where each element represents the Hamming distance between $z$ and a dictionary entry.
  3. Surrogate Modeling: These distances are treated as continuous inputs for a standard Gaussian Process (GP). By employing a Matérn kernel with Automatic Relevance Determination (ARD), the model can automatically identify and prioritize the most relevant dictionary elements.

This transformation drastically reduces the cardinality of the search space, making the optimization problem more tractable while allowing the use of powerful, standard continuous GP tools.

Experimental Evaluation

The authors evaluated BODi against state-of-the-art baselines, including CASMOPOLITAN, COMBO, and SMAC, across several challenging benchmarks:

  • LABS (Low Auto-correlation Binary Sequences): A 50-dimensional physics problem.
  • Weighted MaxSAT: A 60-dimensional logic satisfaction problem.
  • Pest Control: A categorical problem with $5^{25}$ possible configurations.
  • SVM Feature Selection: A real-world task involving 50 binary features and 3 continuous hyperparameters.

Results and Discussion

BODi consistently outperformed competitive baselines across nearly all benchmarks, demonstrating both superior solution quality and efficiency. In high-dimensional problems like MaxSAT and LABS, BODi reached significantly better objective values within a standard budget of 200 iterations.

Optimization performance of BODi compared to state-of-the-art baselines on a high-dimensional benchmark.

Key Insights

  • Efficiency of ARD: Experiments showed that even with a large dictionary (e.g., 128 elements), the GP often found that only a handful of elements were truly relevant for prediction. This suggests that a few well-chosen "anchor points" can effectively map out complex discrete landscapes.
  • Computational Speed: BODi is significantly faster than graph-based methods like COMBO, typically requiring less than 10 seconds per iteration to suggest a new point.
  • Predictive Accuracy: The use of structured dictionaries, particularly wavelets in binary spaces, provided markedly better predictive accuracy than naive random sampling.

Conclusion

BODi offers a principled and efficient way to apply Bayesian Optimization to high-dimensional combinatorial problems. By leveraging dictionary-based embeddings and standard Gaussian Processes, it avoids the complexity of custom discrete kernels while maintaining high performance. Future work may explore the dynamic optimization of dictionaries during the BO process and extending the framework to multi-objective and constrained optimization settings.

Summary updated

BibTeX
@inproceedings{deshwal2023bayesian,
  author = {Aryan Deshwal and Sebastian Ament and Maximilian Balandat and Eytan Bakshy and Janardhan Rao Doppa and David Eriksson},
  title = {{Bayesian Optimization over High-Dimensional Combinatorial Spaces via Dictionary-based Embeddings}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=NIkjN2msy0},
}
Figure