A general linear-time inference method for Gaussian Processes on one dimension

Jackson Loper, David M. Blei, John P. Cunningham, Liam Paninski

TL;DR

This paper introduces the Latent Exponentially Generated (LEG) family of state-space models, providing the first general proof that these models can approximate any one-dimensional Gaussian Process (GP) with a stationary kernel. This breakthrough enables linear-time inference for GPs, significantly overcoming computational bottlenecks and opening doors for GP applications on massive datasets.

What Problem Does This Paper Address?

Gaussian Processes (GPs) are powerful tools for modeling complex data, offering flexibility in interpolation, forecasting, and smoothing. However, their primary drawback is computational complexity, typically scaling cubically with the number of data points ($O(n^3)$). This makes them impractical for large datasets. While state-space models (SSMs) offer linear-time inference ($O(n)$) and are known to approximate GPs, a formal proof of their generality for one-dimensional, vector-valued GPs with arbitrary stationary kernels was missing. This paper bridges that gap, proving that SSMs are indeed general enough to approximate any such GP, and introduces a specific, advantageous family of SSMs (LEG) to achieve this.

Methods

The core of the paper is the introduction and analysis of the Latent Exponentially Generated (LEG) family of Gaussian hidden Markov models. LEG models are a specific type of state-space model designed for one-dimensional, vector-valued observations with stationary kernels. Key methodological contributions include:

  • General Proof of Generality: The authors provide the first formal proof that any stationary GP on one dimension with a Lebesgue-integrable continuous kernel can be uniformly approximated by an LEG model. This is achieved by establishing connections between LEG kernels and Spectral Mixture kernels.
  • LEG Model Formulation: The LEG model is constructed by defining a latent PEG (Purely Exponentially Generated) process and then specifying a conditional observation model. This formulation offers several advantages:
  • Stability: The model is always stable, avoiding unbounded growth.
  • Closed-form Covariance: The covariance can be computed analytically.
  • Unconstrained Parameter Space: This simplifies parameter estimation using gradient descent.
  • Efficient Inference Algorithms: The paper develops parallelized algorithms based on Cyclic Reduction (CR) for performing inference and learning within the LEG framework. CR is a technique for efficiently solving linear systems involving block-tridiagonal matrices, enabling linear-time computations even on modern parallel hardware.

Datasets

The paper uses both synthetic and real-world datasets for evaluation:

  • Synthetic Data: Used to test the approximation accuracy of LEG kernels against various popular one-dimensional kernels (e.g., Squared Exponential, Triangle, Rational Quadratic, Sinc, Matern).
  • Mauna Loa CO2 Dataset: A real-world dataset of monthly average atmospheric CO2 concentrations used to demonstrate the LEG model's ability to capture linear trends and periodic structures for interpolation and extrapolation.
  • Hippocampal Place-Cell Dataset: Irregularly spaced neural spiking data used to showcase the LEG model's capability in smoothing and estimating tuning curves.

Key Insights and Ideas

  • State-Space Models are Truly General for 1D GPs: The paper definitively proves the long-held conjecture that state-space models can approximate any one-dimensional stationary GP. This is a significant theoretical result with practical implications.
  • The LEG Family: A Sweet Spot: The LEG family is not just theoretically sound but also practically advantageous. Its closed-form covariance, stability, and unconstrained parameter space make it easier to work with and learn from data compared to general SSMs.
  • Cyclic Reduction for Scalability: The adoption of Cyclic Reduction for inference algorithms is crucial. It allows for efficient parallelization, enabling linear-time computations on massive datasets, which was previously a major hurdle for GPs.
  • Bridging Kernels and State-Space Models: The connection drawn between LEG kernels and Spectral Mixture kernels provides a deeper understanding of both model classes and is key to proving the generality result.

Key Results

  • Theoretical Generality: The paper provides the first general proof that any stationary GP on one dimension with a Lebesgue-integrable continuous kernel can be uniformly approximated by an LEG model.
  • Approximation Accuracy: Experiments show that popular one-dimensional kernels can be approximated to within 1% of their maximum value using LEG models with relatively low ranks (e.g., rank 7).
  • Efficient Parameter Estimation: The maximum-likelihood-based LEG estimator, using gradient descent, demonstrated accurate covariance estimation from simulated data, often outperforming other state-space model approaches.
  • Scalability: The developed algorithms, leveraging Cyclic Reduction, achieve linear scaling with the number of observations. For example, computing the likelihood for one billion observations with a rank-3 model took just 3.5 minutes on AWS.
  • Real-World Performance: The LEG model successfully interpolated and extrapolated the Mauna Loa CO2 data, capturing linear and periodic trends. It also effectively smoothed irregularly spaced neural data, revealing underlying tuning curves.

Limitations and Future Work

  • Convergence Rates: The authors acknowledge that they have not obtained tight convergence rates for the approximation error in Theorem 5, which would help in determining the optimal rank for a given approximation accuracy.
  • Non-Gaussian Observations: While the paper suggests that LEG models can be adapted for non-Gaussian observations, this is noted as an important direction for future work.
  • Long-Range Dependencies on GPUs: For processes with extremely long-range dependencies, current GPU-based batch processing might be insufficient. The authors suggest exploring techniques like breaking data into tiles for future work.
  • Non-Stationary Processes: The current work focuses on stationary GPs. Extensions to nonstationary processes are mentioned as a promising avenue, including time-warped models and switching linear dynamical systems.
  • Multidimensional Domains: Adapting state-space models for multidimensional GPs (d > 1) is discussed, with potential for efficient computation on grid-structured data.

Summary updated

BibTeX
@article{loper2021general,
  author = {Jackson Loper and David M. Blei and John P. Cunningham and Liam Paninski},
  title = {{A general linear-time inference method for Gaussian Processes on one dimension}},
  journal = {J. Mach. Learn. Res.},
  year = {2021},
  url = {https://openreview.net/forum?id=pVRDhMFzNq},
}
Figure