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

Learning spectrograms with convolutional spectral kernels

Zheyang Shen, Markus Heinonen, Samuel Kaski

Introduction

Gaussian Processes (GPs) are powerful tools for Bayesian inference, offering principled uncertainty quantification. However, their performance is often limited by the choice of kernel. Standard stationary kernels, such as the Squared Exponential (SE), assume that the underlying data patterns remain constant across the input space. In contrast, real-world signals often exhibit non-stationary behavior, such as chirps or localized volatility. While Deep GPs (DGPs) attempt to address this by stacking layers, they frequently suffer from interpretability issues and pathologies like rank deficiency.

This paper introduces the Convolutional Spectral Kernel (CSK), a flexible non-stationary kernel designed to capture complex, varying patterns in both frequency and scale. By leveraging a novel spectrogram framework for kernel interpretation, the authors demonstrate that CSK provides a mathematically grounded and highly expressive alternative to traditional deep probabilistic models.

Methodology: The Convolutional Spectral Kernel

The CSK is constructed through the convolution of two complex-valued radial basis functions. This formulation allows the kernel to possess both spatially varying lengthscales (smoothness) and spatially varying frequencies (periodicity). Unlike previous non-stationary kernels that might only vary one of these properties, CSK unifies these capabilities into a single framework.

The construction of the Convolutional Spectral Kernel (CSK) showing basis functions, a resulting function sample, and the convolutional kernel matrix.

For inference, the authors employ Scalable Variational Inference to maintain computational efficiency on large datasets. This is combined with Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) to learn the functional hyperparameters that define the local behavior of the kernel.

Interpreting Kernels via Spectrograms

A key contribution of this work is the introduction of a spectrogram framework for interpreting GP kernels. By applying a linearized approximation of the Wigner transform, any kernel can be visualized as a joint distribution of input position and frequency. This "spectrogram lens" allows researchers to directly observe the local covariance patterns learned by the model.

Comparison of various kernels (SE, NSQ, SM, GSK, GSM, HM, CSK) across their sample paths, kernel matrices, and corresponding spectrograms.

As shown in the comparison above, CSK acts as a "super-kernel," unifying the strengths of the Non-Stationary Quadratic (NSQ) kernel—which varies only lengthscales—and the Spectral Mixture (SM) kernel—which handles stationary frequencies. Furthermore, the spectrogram analysis reveals that many compositional Deep GPs are functionally equivalent to GPs with NSQ kernels, explaining their difficulty in capturing evolving periodic patterns.

Experimental Results

The CSK was evaluated across several challenging benchmarks:

  • Solar Irradiance: CSK achieved a test log-likelihood of 0.48, significantly outperforming NSQ (0.01) and SM (0.11), demonstrating its ability to model complex, changing periodicities in real-world time series.
  • Air Temperature Anomaly: On a dataset of over 32,000 readings, CSK captured long-range spatiotemporal correlations that stationary kernels missed, such as the relationship between temperatures in distant geographical regions.
  • NY Yellow Taxi: In predicting trip durations, CSK outperformed seven competing models, including 4-layer compositional DGPs, achieving the lowest Mean Squared Error (0.294).
  • Signal Processing: The model successfully recovered the ground-truth instantaneous frequency of a synthetic chirp signal, confirming its utility for high-fidelity signal analysis.

Conclusion

The Convolutional Spectral Kernel represents a significant advancement in non-stationary modeling with Gaussian Processes. By providing an unbiased estimate of instantaneous frequency and avoiding the pathologies of standard Deep GPs, CSK offers a robust and interpretable solution for complex regression tasks. The accompanying spectrogram framework provides a powerful diagnostic tool, enabling a deeper understanding of what probabilistic models learn from data. Future work will focus on extending these visualizations to higher-dimensional inputs and exploring deeper hierarchical covariance structures.

Summary updated

BibTeX
@inproceedings{shen2020learning,
  author = {Zheyang Shen and Markus Heinonen and Samuel Kaski},
  title = {{Learning spectrograms with convolutional spectral kernels}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure