Selecting the right kernel for a Gaussian Process (GP) has long been considered a "black art" requiring expert intuition. This paper introduces BOMS (Bayesian Optimization for Model Search), a method that treats model selection as an optimization problem. By using a novel "kernel kernel," BOMS navigates an infinite space of potential models to find the best fit for a dataset with minimal human intervention.
The Challenge of Kernel Selection
In kernel-based machine learning, the choice of kernel—the function defining similarity between data points—is paramount. A poor choice leads to bad predictions. However, the space of possible kernels, formed by adding and multiplying base functions like "linear," "periodic," or "squared exponential," is both infinite and discrete.
Previously, researchers relied on "greedy" searches, such as Compositional Kernel Search (CKS), which step through a grammar of kernels one by one. These methods are "blind" to the underlying functional similarities between different kernel structures. Furthermore, they require many expensive computations of "model evidence" (marginal likelihood), scaling cubically ($O(N^3)$) with the number of data points. BOMS aims to make this search more efficient and intelligent using Bayesian Optimization (BO).
Methodology: The "Kernel Kernel"
The core innovation of BOMS is viewing the search for a model as a BO task. To achieve this, the authors had to solve a unique problem: how do you define a covariance function that describes how similar two models are to each other?
- Hellinger Distance: The authors propose using the Hellinger distance between the prior predictive distributions of two models. If two different kernels produce similar "explanations" (distributions) for the same set of data points, they are considered close in model space.
- Computational Shortcuts: Calculating the full Hellinger distance is computationally expensive. The authors approximate this similarity by evaluating just a small, random subset of 20 data points using quasi-Monte Carlo sampling.
- Acquisition Function: BOMS uses Expected Improvement (EI) to decide which model to evaluate next. For large datasets, it optimizes "EI per second" to account for the longer computation times of complex kernels.
- Active Set Management: Because the model space is infinite, BOMS maintains a "candidate set" of models. This set is updated each round by adding neighbors of the current best model (exploitation) and performing random walks through the kernel grammar (exploration).
Key Insights and Results
The authors evaluated BOMS on several real-world regression benchmarks, including 1D time series (AIRLINE, MAUNA LOA, METHANE, SOLAR) and multi-dimensional datasets (CONCRETE, HOUSING).
A key insight from the research is that similarity is data-dependent. Two kernels that look structurally different (e.g., a complex product vs. a simple sum) might behave very similarly on a specific dataset. The Hellinger-based "kernel kernel" captures this functional similarity, which structural distances miss. By placing a GP prior on the model evidence itself, the algorithm can "predict" how well an untested kernel might perform, allowing it to skip unpromising regions entirely.
When compared to the state-of-the-art CKS greedy search, BOMS demonstrated significant advantages:
- Search Performance: BOMS found models with higher log-evidence in 4 out of 6 datasets within a budget of 50 evaluations.
- Speed and Efficiency: On datasets like MAUNA LOA, BOMS found a high-quality model much earlier in the search process. Its global view of the model space allows it to jump to promising candidates rather than just checking immediate neighbors.
- Predictive Accuracy: In a regression task predicting the evidence of 1,000 different models, the GP with the Hellinger kernel significantly outperformed k-Nearest Neighbors and mean-prediction baselines.
Limitations and Future Work
While highly effective, BOMS does have limitations. On the METHANE dataset, it initially lagged behind the greedy search, suggesting that the initial candidate set or random walk heuristic might occasionally lead the optimizer into suboptimal regions before recovering (a "cold start" problem). Additionally, the search relies on its own set of hyperparameters, though these are mitigated by learning them during the search process.
Currently, the specific "kernel kernel" implementation is tailored for Gaussian Processes. Future work could extend this meta-learning approach to broader classes of models, moving closer to fully automating the machine learning model selection pipeline.
Summary updated