Non-Stationary Spectral Kernels

Sami Remes, Markus Heinonen, Samuel Kaski

Abstract

Gaussian Processes (GPs) are powerful tools for Bayesian regression, yet their performance is often constrained by the choice of kernel. Traditional stationary kernels, such as the Radial Basis Function (RBF), assume that data patterns remain invariant across the input space. This paper introduces the Generalized Spectral Mixture (GSM) kernel, a novel family of non-stationary kernels derived from the Generalized Fourier Transform. By parameterizing spectral components as Gaussian Processes, the GSM kernel can adapt to changing frequencies and scales within a dataset. Experimental results on texture synthesis and large-scale climate data demonstrate that the GSM kernel significantly outperforms stationary alternatives in capturing complex, evolving correlations.

Introduction

In Gaussian Process modeling, the kernel function defines the prior assumptions about the data's covariance structure. Standard kernels are typically stationary, meaning the covariance between two points depends only on their relative displacement. While mathematically convenient, stationarity is a poor assumption for many real-world signals. For instance, a musical piece may change tempo, or a physical texture like wood grain may exhibit varying density and curvature.

To address these limitations, researchers have sought kernels that are both non-stationary (patterns change over the input space) and non-monotonic (capable of capturing long-range periodicities). This work bridges the gap between spectral analysis and spatial modeling to create a flexible, scalable class of non-stationary kernels.

Methodology

The authors develop their framework by extending spectral mixture kernels through the Generalized Fourier Transform.

Bivariate Spectral Mixture (BSM)

The first step involves modeling the spectral density—the frequency-domain representation of the signal—as a mixture of bivariate Gaussians. This leads to the Bivariate Spectral Mixture (BSM) kernel. While it provides a principled way to link spectral surfaces to spatial kernels, the BSM kernel suffers from a "vanishing" effect, where its modeling power is concentrated near the origin.

The Bivariate Spectral Mixture (BSM) spectral surface (a) and its corresponding kernel (b).

Generalized Spectral Mixture (GSM)

To resolve the limitations of the BSM, the authors introduce the Generalized Spectral Mixture (GSM) kernel. The key innovation is to treat the kernel's internal parameters—weights ($w$), frequencies ($\mu$), and length-scales ($\ell$)—not as constants, but as functions of the input, modeled themselves as Gaussian Processes. This creates a dynamic "spectrogram" surface that allows the model to "shift gears" and adapt its behavior locally.

Notably, the popular Spectral Mixture (SM) kernel is a special case of the GSM where these internal GPs are restricted to constant functions. The GSM kernel can be expressed in a closed-form equation involving a signal variance term, a Gibbs kernel for non-stationary smoothing, and a non-stationary cosine term.

Scalable Inference

To ensure the model remains computationally tractable for large datasets, the authors employ Kronecker algebra. This technique exploits grid-structured data to accelerate matrix operations, enabling the model to handle hundreds of thousands of observations. Additionally, a "whitening" transformation is used to improve the convergence of the optimization process.

Experimental Evaluation

The GSM kernel was tested across diverse domains to evaluate its ability to model non-stationarity.

  • Texture Inpainting and Extrapolation: The model was applied to images of metal and wood grain. While stationary kernels failed to capture the curving, non-uniform nature of wood grain during extrapolation, the GSM kernel produced realistic, continuous patterns.
  • Climate Modeling: Using a NASA dataset of over 400,000 spatio-temporal points representing North American land surface temperatures, the GSM kernel successfully modeled non-symmetric spatial covariances. It learned that temperature correlations are influenced by specific geographic features rather than just Euclidean distance.
  • Simulated 1D Signals: In tests with signals featuring deterministically changing frequencies, the GSM kernel accurately tracked the evolving spectral content, whereas stationary models could only fit a single "average" frequency.

Conclusion and Future Work

The Generalized Spectral Mixture kernel provides a robust framework for modeling non-stationary data within the Gaussian Process paradigm. By leveraging spectral surfaces, it captures complex correlations that traditional kernels miss.

A current limitation is the requirement for grid-structured data to utilize Kronecker-based acceleration. Furthermore, while the kernel itself has a closed-form solution, the exact mapping of the spectral surface remains analytically elusive and is currently handled via numerical methods. Future research will focus on extending these non-stationary spectral kernels to unstructured data using scalable GP techniques such as inducing points and variational inference.

Summary updated

BibTeX
@inproceedings{remes2017non,
  author = {Sami Remes and Markus Heinonen and Samuel Kaski},
  title = {{Non-Stationary Spectral Kernels}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=B1N1QFWOZH},
}
Figure