Bayesian Optimization in a Billion Dimensions via Random Embeddings

Ziyu Wang, Frank Hutter, Masrour Zoghi, David Matheson, Nando de Freitas

Abstract

Bayesian Optimization (BO) is a premier framework for optimizing expensive black-box functions. However, its performance typically degrades rapidly as the number of input variables exceeds twenty, a phenomenon known as the "curse of dimensionality." This paper presents REMBO (Random EMbedding Bayesian Optimization), an algorithm designed to scale BO to billions of dimensions. REMBO leverages the observation that many high-dimensional optimization problems possess a low "effective dimensionality." By performing optimization within a random low-dimensional subspace, REMBO effectively bypasses the volume explosion of high-dimensional spaces while maintaining theoretical guarantees for finding the global optimum.

Introduction: The Dimensionality Wall

In diverse fields such as robotics, hyperparameter tuning, and algorithm configuration, practitioners often face the challenge of optimizing functions where evaluations are costly and derivatives are unavailable. Bayesian Optimization addresses this by building a probabilistic surrogate model (typically a Gaussian Process) to guide the search.

Standard BO techniques rely on covering the search space to find the optimum. As the dimensionality $D$ increases, the volume of the search space grows exponentially, requiring an impractical number of samples to achieve coverage. Consequently, BO has traditionally been limited to problems with fewer than 20 dimensions. REMBO breaks this barrier by focusing on problems where the function $f$ only changes significantly along a small number of dimensions $d_e$, where $d_e \ll D$.

Methodology: Random Embeddings (REMBO)

Effective Dimensionality

The foundational assumption of REMBO is that the objective function has a low effective dimensionality. This means that although the function is defined in a high-dimensional space $\mathbb{R}^D$, there exists a linear subspace of dimension $d_e$ such that the function remains constant along any direction orthogonal to this subspace.

A function with low effective dimensionality, where the output varies only along a specific subspace (here, the $x_1$ axis) despite being defined in a higher-dimensional space.

The Embedding Process

Instead of searching the original $D$-dimensional space, REMBO defines a random embedding. It generates a random matrix $A \in \mathbb{R}^{D \times d}$ (where $d \ge d_e$) and optimizes a lower-dimensional function $g(y) = f(Ay)$, where $y \in \mathbb{R}^d$. The authors prove that with probability 1, a random linear embedding will contain the optimum of the original function within its range, provided the embedding dimension $d$ is at least as large as the effective dimension $d_e$.

Illustration of a random embedding. By searching along a random line (the embedding) in a 2D space, the algorithm can find the optimum of a function that only depends on the "Important" dimension.

Constraints and Kernels

Real-world optimization often involves "box constraints" (e.g., variables must stay within $[0, 1]$). When a point $y$ in the low-dimensional space maps to a point $Ay$ outside the high-dimensional box, REMBO employs a convex projection to map it back to the nearest point on the boundary. This projection has the added benefit of increasing sample density at the boundaries, where optima often reside. Furthermore, the authors introduce specialized kernels that compute distances in the high-dimensional space after projection, ensuring the Gaussian Process correctly identifies when different low-dimensional points correspond to the same physical configuration.

Experimental Evaluation

The effectiveness of REMBO was demonstrated across three distinct problem domains:

  1. Synthetic Benchmarks: The algorithm was tested on the Branin function embedded into spaces with up to one billion dimensions. REMBO's performance remained invariant to the extrinsic dimensionality, finding the optimum as efficiently in a billion-dimensional space as in a 25-dimensional one.
  2. Algorithm Configuration: REMBO optimized 47 discrete parameters of the lpsolve Mixed Integer Linear Programming solver. It outperformed standard BO and random search, matching the performance of state-of-the-art specialized tools like SMAC.
  3. Computer Vision: In tuning 14 parameters for a Kinect-style body-part classifier, REMBO proved robust. Even when the low-effective-dimensionality assumption was less pronounced, the algorithm provided competitive results.

Discussion and Conclusion

REMBO represents a significant leap for Bayesian Optimization, extending its reach from dozens to billions of dimensions. Its key strengths lie in its rotational invariance and its ability to exploit sparsity without needing to know which specific dimensions are important.

However, the method's success is tied to the existence of a low-dimensional structure. If a problem truly requires the simultaneous tuning of many independent, equally important variables, the random embedding approach will face limitations. Future work may explore adaptive methods for choosing the embedding dimension $d$ and reducing the $O(n^3)$ computational complexity associated with Gaussian Process regression to allow for even more iterations.

Summary updated

BibTeX
@article{wang2016bayesian,
  author = {Ziyu Wang and Frank Hutter and Masrour Zoghi and David Matheson and Nando de Freitas},
  title = {{Bayesian Optimization in a Billion Dimensions via Random Embeddings}},
  journal = {J. Artif. Intell. Res.},
  year = {2016},
  doi = {10.1613/jair.4806},
}
Figure