Structural Kernel Search via Bayesian Optimization and Symbolical Optimal Transport

Matthias Bitzer, Mona Meister, Christoph ZimmerNeurIPS 2022

Introduction

Selecting the right kernel for a Gaussian Process (GP) is often considered a manual "black art." GPs are powerful tools for regression and uncertainty estimation, but their performance depends entirely on the kernel—the function that defines how "similar" two data points are. While simple kernels like the Squared Exponential (SE) are common, real-world data often requires complex, "structural" kernels (e.g., a linear trend plus a periodic component multiplied by a smooth noise kernel).

Manually designing these is difficult, and automatically searching for them is even harder because the space of possible kernels is discrete and infinite. Previous automated methods used Bayesian Optimization (BO) to navigate this space, but they relied on measuring the distance between kernels in "function space." This requires expensive integrals and scales poorly with data size, often making the search itself more time-consuming than just training the models.

This paper introduces a way to automate this search using Bayesian Optimization by treating kernels as symbolic trees and comparing them via Optimal Transport. The result is a search method that is significantly faster and more sample-efficient than previous techniques.

Methods: Symbolical-Optimal-Transport (SOT)

The authors propose a novel Symbolical-Optimal-Transport (SOT) approach. Instead of looking at what a kernel does to data, they look at what the kernel is symbolically.

  1. Kernel Grammar: They represent kernels as trees based on a formal grammar. For example, an expression like LIN + ((SE + PER) × SE) is mapped to a tree where operators (+, ×) are internal nodes and base kernels (Linear, Squared Exponential, Periodic) are leaves.
Mapping a kernel mathematical expression to a symbolic tree structure.
  1. Symbolic Features: They extract three types of features from these trees:
  2. Base Kernels: Which building blocks are used?
  3. Paths: How are those blocks reached from the root?
  4. Subtrees: What are the internal structural components?
  5. Optimal Transport (OT) Distance: They treat these features as discrete probability distributions. To compare two kernels, they calculate the "cost" of transforming one kernel's distribution into the other's using Optimal Transport principles.
  6. The Kernel-Kernel: They use this symbolic distance to build a "meta-GP" (a GP that predicts how well another GP will perform). This meta-model guides the Bayesian Optimization search, using an evolutionary algorithm to suggest the next best kernel to try.

Key Insights

  • Symbolic "DNA" is Enough: The most striking insight is that the symbolic structure of a kernel contains sufficient information to predict its performance. You don't need to project kernels into function space to know if they are "similar."
  • Efficiency through Closed-Form OT: By choosing a specific ground metric for their Optimal Transport calculation, the authors derived a closed-form solution (Total Variation distance). This makes comparing two kernels nearly instantaneous, whereas previous methods required expensive sampling or approximations.
  • Structural Awareness: Unlike simple string-matching, the tree-based OT approach understands that (A+B)×C is structurally different from A+(B×C), even if they contain the exact same components.

Results and Performance

The method was evaluated on five diverse, publicly available datasets: Airline (1D time-series), LGBB (2D low noise), and Airfoil, Powerplant, and Concrete (multi-dimensional datasets with varying noise).

Optimization performance across datasets, comparing Log-Evidence against Iterations (top) and CPU-Time (bottom).
  • Superior Accuracy: In a meta-regression task (predicting the performance of a kernel before running it), the SOT model achieved significantly lower Root Mean Squared Error (RMSE) than Hellinger distance or k-Nearest Neighbor baselines.
  • Search Speed: On datasets like "Airfoil," the SOT method found high-performing kernels much faster than the previous state-of-the-art (Hellinger BO). In previous methods, the time spent deciding which kernel to try was sometimes 50 times longer than actually evaluating the kernel. SOT flips this, making the overhead negligible.
  • Sample Efficiency: SOT consistently found better models with fewer total evaluations compared to greedy searches or genetic algorithms.

Limitations and Future Work

While highly efficient, the method has a few limitations. If a dataset is extremely small, the computational overhead of setting up the BO loop and optimizing the acquisition function might still be larger than a simple greedy search. Additionally, as the search progresses, the algorithm might find very deep, complex kernels that perform well but are difficult for a human to interpret. The authors suggest that future work could include "parsimony pressures" to favor smaller, simpler trees. Finally, the search space is currently tied to the specific kernel grammar defined; expanding this to include more exotic operators or non-stationary kernels is a potential next step.

Summary updated

BibTeX
@inproceedings{bitzer2022structural,
  author = {Matthias Bitzer and Mona Meister and Christoph Zimmer},
  title = {{Structural Kernel Search via Bayesian Optimization and Symbolical Optimal Transport}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure