NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Function-Space Distributions over Kernels.

Gregory W. Benton, Wesley J. Maddox, Jayson P. Salkey, Julio Albinati, Andrew Gordon WilsonarXiv 2019

Abstract

Gaussian processes are flexible function approximators, with inductive biases controlled by a covariance kernel. Learning the kernel is the key to representation learning and strong predictive performance. In this paper, we develop functional kernel learning (FKL) to directly infer functional posteriors over kernels. In particular, we place a transformed Gaussian process over a spectral density, to induce a non-parametric distribution over kernel functions. The resulting approach enables learning of rich representations, with support for any stationary kernel, uncertainty over the values of the kernel, and an interpretable specification of a prior directly over kernels, without requiring sophisticated initialization or manual intervention. We perform inference through elliptical slice sampling, which is especially well suited to marginalizing posteriors with the strongly correlated priors typical to function space modelling. We develop our approach for non-uniform, large-scale, multi-task, and multidimensional data, and show promising performance in a wide range of settings, including interpolation, extrapolation, and kernel recovery experiments.

Introduction

Gaussian Processes (GPs) are a cornerstone of Bayesian machine learning, offering a principled way to reason about distributions over functions. However, their flexibility is often constrained by the choice of a fixed, parametric covariance kernel—such as the Radial Basis Function (RBF) or Matérn—which defines the model's inductive bias. While these standard kernels are robust, they often fail to capture the complex, non-stationary, or periodic patterns found in real-world data.

Existing attempts to increase expressivity, such as Spectral Mixture kernels, introduce difficult optimization landscapes with "bumpy" loss surfaces, requiring meticulous manual initialization. This paper introduces Functional Kernel Learning (FKL), a framework that applies the GP philosophy to the kernel itself. By placing a distribution over the kernel's spectral density, FKL enables the automatic discovery of complex data representations without the need for manual "kernel engineering."

Methodology: Functional Kernel Learning

The core of FKL is rooted in Bochner’s Theorem, which establishes a duality between stationary kernels and their spectral densities (Fourier transforms). By modeling the spectrum as a function, we can induce a distribution over the entire space of stationary kernels.

Hierarchical Model

FKL is structured as a hierarchical Bayesian model:

  1. Latent GP: A latent Gaussian process generates a function $g(\omega)$ in the spectral domain.
  2. Spectral Transformation: This function is transformed into a positive spectral density $S(\omega) = \exp(g(\omega))$.
  3. Kernel Induction: Numerical integration (via the trapezoid rule) converts the spectral density back into a kernel function $k(\tau)$.
  4. Data Likelihood: This induced kernel is then used within a standard GP to model the observed data $y_n$ at locations $x_n$.
Hierarchical graphical model of Functional Kernel Learning (FKL).

To perform inference in this "GP within a GP" structure, the authors utilize Elliptical Slice Sampling (ESS). ESS is particularly effective for marginalizing posteriors with strongly correlated priors, allowing the model to naturally capture uncertainty regarding the kernel's shape.

Key Insights and Results

FKL shifts the focus from parametric tuning to function-space modeling. A significant advantage is the ability to specify priors directly over inductive biases. For instance, setting the mean of the latent GP to a negative quadratic expresses a prior belief in RBF-like smoothness while allowing the model to adapt if the data suggests more complex structures.

Comparison of prior and posterior distributions for both data samples and kernel functions.

The empirical evaluation across synthetic, UCI benchmark, and large-scale image datasets demonstrates several key strengths:

  • Extrapolation Mastery: On datasets like the Airline Passenger series, FKL significantly outperforms standard kernels by successfully capturing and extending periodic trends.
  • Robustness: Unlike Spectral Mixture models, FKL does not require the user to pre-specify the number of mixture components or provide precise frequency initializations.
  • Uncertainty Quantification: As a fully Bayesian approach, FKL provides a distribution over kernels, leading to more realistic and reliable predictive confidence intervals.

Conclusion and Future Work

Functional Kernel Learning provides a powerful, non-parametric approach to kernel learning that mirrors the flexibility of GPs in data space. While currently limited to stationary kernels due to its reliance on Bochner’s Theorem, FKL offers a robust alternative to manual kernel selection. Future research directions include extending the framework to non-stationary kernels and exploring deep hierarchical variants where multiple layers of functional distributions could further enhance representation learning.

Summary updated

BibTeX
@misc{benton2019function,
  author = {Gregory W. Benton and Wesley J. Maddox and Jayson P. Salkey and Julio Albinati and Andrew Gordon Wilson},
  title = {{Function-Space Distributions over Kernels.}},
  year = {2019},
  eprint = {1910.13565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.13565},
}
Figure