Structure Discovery in Nonparametric Regression through Compositional Kernel Search

David Duvenaud, James Robert Lloyd, Roger B. Grosse, Joshua B. Tenenbaum, Zoubin Ghahramani

Introduction

In nonparametric regression, particularly within the framework of Gaussian Processes (GPs), the choice of the covariance function—or "kernel"—is the primary determinant of the model's inductive bias. The kernel defines the notion of similarity between data points and dictates the functional forms the model can represent. Traditionally, selecting an appropriate kernel has been viewed as a "black art," requiring significant domain expertise and manual trial-and-error. Most practitioners default to standard kernels like the Squared Exponential (RBF), which, while flexible for smooth data, fail to capture complex structural patterns such as periodicity, linear trends, or non-stationary noise.

This paper presents a method to automate this selection process, moving beyond simple hyperparameter tuning to full structural discovery. By treating kernel construction as a search over a compositional grammar, the proposed algorithm automatically identifies interpretable patterns in data, significantly enhancing long-range extrapolation capabilities.

Methodology: A Grammar for Kernels

The core innovation lies in the conceptualization of kernels as a formal language. Complex kernels are constructed by combining a small set of base primitives through algebraic operations.

Base Kernels and Compositional Rules

The system utilizes four fundamental primitives: Squared Exponential (SE) for smooth local variation, Periodic (PER) for repeating structures, Linear (LIN) for trends, and Rational Quadratic (RQ) for multi-scale variation. These primitives are combined using two primary operations:

  1. Addition ($k_1 + k_2$): Models the data as a superposition of independent processes, such as a global trend plus seasonal fluctuations.
  2. Multiplication ($k_1 \times k_2$): Models interactions between structures. For instance, $LIN \times SE$ can represent a "growing amplitude" effect, while $PER \times SE$ creates "locally periodic" structures that evolve over time.
Figure 1: Examples of composite kernels formed by adding and multiplying base kernels, illustrating the expressive power of the compositional grammar.

Greedy Search and Scoring

To navigate the vast space of possible compositions, the algorithm employs a greedy search strategy. Starting from a simple base kernel, it iteratively proposes expansions by applying addition, multiplication, or replacement rules. To balance model fit with complexity and prevent overfitting, the search is guided by the Bayesian Information Criterion (BIC), which approximates the marginal likelihood while penalizing the number of parameters.

Interpretability and Decomposition

A significant advantage of this compositional approach is the inherent interpretability of the resulting models. Because the final kernel is a sum of identifiable components, the GP posterior can be decomposed into individual additive parts. This allows researchers to visualize and analyze specific data components—such as a long-term trend versus a yearly cycle—separately, providing a level of transparency often missing in "black-box" nonparametric methods.

Empirical Results and Extrapolation

The method was evaluated on several benchmark time-series and high-dimensional regression tasks. A standout result was achieved on the Mauna Loa $CO_2$ dataset, a standard benchmark for GP regression. The automated search discovered a kernel structure almost identical to the one manually crafted by human experts in landmark literature, demonstrating "human-level" engineering capability.

Figure 5: The final composite model discovered for the Mauna Loa CO2 dataset, showing high-fidelity extrapolation beyond the training data.

Furthermore, the compositional models demonstrated superior extrapolation power. On the International Airline Passengers dataset, which features both a linear trend and increasing seasonal variance, the structure search maintained low error rates far into the future. In contrast, standard GP models and linear regression failed significantly as the prediction horizon increased. In high-dimensional UCI benchmarks, the method matched or outperformed state-of-the-art techniques like Hierarchical Kernel Learning (HKL), proving its scalability and robustness.

Conclusion

By automating the construction of kernels through a compositional grammar, this framework transforms Gaussian Process regression from a manual tuning exercise into a powerful tool for automated structure discovery. The resulting models are not only highly accurate for long-range forecasting but also provide human-readable decompositions of complex datasets. Future work may extend this approach to classification and automated scientific discovery, potentially enabling machines to describe the underlying laws of a dataset in interpretable terms.

Summary updated

BibTeX
@inproceedings{duvenaud2013structure,
  author = {David Duvenaud and James Robert Lloyd and Roger B. Grosse and Joshua B. Tenenbaum and Zoubin Ghahramani},
  title = {{Structure Discovery in Nonparametric Regression through Compositional Kernel Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
  url = {https://openreview.net/forum?id=ryWXHnWdZH},
}
Figure