Harmonizable mixture kernels with variational Fourier features

Zheyang Shen, Markus Heinonen, Samuel Kaski

Abstract

The expressive power of Gaussian processes depends heavily on the choice of kernel. In this work we propose the novel harmonizable mixture kernel (HMK), a family of expressive, interpretable, non-stationary kernels. By leveraging the concept of harmonizability and a novel Variational Fourier Features (VFF) framework, we enable scalable and theoretically grounded GP inference that captures complex, shifting patterns in data.

Introduction

Gaussian Processes (GPs) are a cornerstone of Bayesian nonparametrics, yet their utility is often constrained by the choice of covariance function, or kernel. Most standard applications rely on stationary kernels, such as the Squared Exponential (SE), which assume that the correlation between two points depends solely on their relative distance. However, real-world phenomena—ranging from fluctuating sensor signals to heterogeneous spatial data—frequently exhibit non-stationary behavior where patterns evolve across the input domain.

Existing non-stationary kernels often suffer from a "trilemma": they may lack a rigorous mathematical foundation, rely on ad-hoc constructions that generalize poorly, or face prohibitive computational costs ($O(N^3)$ scaling). This work introduces the Harmonizable Mixture Kernel (HMK) to address these challenges, providing a dense, interpretable, and computationally efficient framework for non-stationary GP modeling.

Methodology

Harmonizability and the HMK

To move beyond the limitations of Bochner’s Theorem, which characterizes stationary kernels, we utilize the broader framework of harmonizability. A harmonizable kernel is defined through a generalized Fourier transform, allowing for a spectral density that varies across the input space.

The proposed Harmonizable Mixture Kernel (HMK) is constructed as a mixture of locally stationary components. Each component is centered at a specific location with unique spectral properties. We prove that the HMK family is "dense," meaning it can approximate any continuous harmonizable covariance function to arbitrary precision.

Visualization of various kernels and their Wigner distributions.

To enhance interpretability, we employ the Wigner distribution. This transform allows us to visualize kernels as "spectrograms," explicitly showing how the frequency content of the GP shifts over time or space (as seen in Figure 1, rows 2 and 3).

Scalable Inference via Variational Fourier Features (VFF)

Standard sparse GP approximations use "inducing points" in the spatial domain. In contrast, we introduce Variational Fourier Features (VFF), which utilize inducing frequencies in the spectral domain. This inter-domain approach results in a block-diagonal structure for the covariance matrices, significantly accelerating matrix operations and enabling the model to scale to large datasets.

Experimental Results

Kernel Recovery and Classification

The HMK demonstrates exceptional expressiveness, recovering complex non-stationary kernels like the Generalized Spectral Mixture (GSM) and Inverted Fractional Brownian Motion (IFBM) with minimal Mean Squared Error (0.0008 and 0.0033, respectively). On the 2D "Banana" classification benchmark, the VFF method achieved faster convergence and required fewer parameters than traditional spatial inducing point methods.

Non-Stationary Time-Series Modeling

We evaluated the HMK on a solar irradiance dataset characterized by fluctuating periodicity and smoothness. While stationary kernels like the SE and Spectral Mixture (SM) failed to adapt to frequency shifts in test intervals, the HMK successfully captured these transitions.

Comparison of SE, SM, and HM kernels on non-stationary data, including inducing frequency visualization.

As shown in Figure 3, the HMK (c) provides a superior fit to the non-stationary data compared to the SE (a) and SM (b) kernels. The Wigner distribution with inducing frequencies (d) highlights how the model identifies and tracks the evolving spectral content of the signal.

Conclusion and Future Work

The Harmonizable Mixture Kernel, paired with Variational Fourier Features, offers a robust and scalable solution for non-stationary Gaussian Process modeling. While currently parametric in its number of mixture components, future research aims to develop a fully Bayesian HMK. By placing a nonparametric prior (e.g., a Dirichlet Process) over the mixture components, the model could automatically infer the optimal level of complexity for any given dataset.

Summary updated

BibTeX
@inproceedings{shen2019harmonizable,
  author = {Zheyang Shen and Markus Heinonen and Samuel Kaski},
  title = {{Harmonizable mixture kernels with variational Fourier features}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=ky2Sa944zG},
}
Figure