State Space Expectation Propagation: Efficient Inference Schemes for Temporal Gaussian Processes

William J. Wilkinson, Paul E. Chang, Michael Riis Andersen, Arno Solin

TL;DR

This paper introduces "State Space Expectation Propagation" (EEP), a unified framework for approximate Bayesian inference in temporal Gaussian Processes (GPs). By reformulating inference as a parameter update within a Kalman smoother, EEP efficiently handles non-Gaussian likelihoods and spatio-temporal data, outperforming existing methods in challenging scenarios.

What Problem Does This Paper Address?

Gaussian Processes (GPs) are powerful probabilistic models, but they face two major limitations: (i) cubic scaling with data size, and (ii) intractability with non-Gaussian observation models. While sparse GP methods address the first, and various approximate inference techniques (like Expectation Propagation - EP) tackle the second, temporal and spatio-temporal GPs have not fully leveraged their inherent sequential structure. Existing methods often struggle with complex likelihoods or don't efficiently exploit the temporal ordering. This paper aims to bridge this gap by developing a unified, efficient inference framework for temporal GPs that handles non-Gaussian likelihoods and scales well to spatio-temporal data.

Methods

The core contribution is framing approximate Bayesian inference for temporal GPs as a parameter update rule within a Kalman smoother. This approach unifies several existing inference schemes, including:

  • Kalman Filters/Smoothers: Extended Kalman Filter (EKF), Unscented Kalman Filter (UKF), Gauss-Hermite Kalman Filter (GHKF).
  • Expectation Propagation (EP): The paper shows how replacing the moment-matching step in EP with a linearization technique recovers classical Kalman smoothers.
  • Power EP (PEP): The authors extend EP by incorporating a "power" parameter, allowing for a trade-off between accuracy and computational cost. This is particularly useful for handling non-Gaussian likelihoods.

The key idea is to rewrite GP models with non-conjugate likelihoods into a state-space form, allowing for efficient sequential updates. The framework allows for iterated updates, where the linearization is refined over multiple passes, leading to improved accuracy. They also provide a fast implementation in JAX.

Datasets

The paper evaluates their methods on several benchmark datasets:

  • Motorcycle: A heteroscedastic noise modeling task.
  • Coal: A log-Gaussian Cox process dataset.
  • Banana: A 2D classification task.
  • Binary: A 1D classification task.
  • Audio: A product-of-GPs model for speech analysis.
  • Airline: A log-Gaussian Cox process dataset.
  • Rainforest: A 2D log-Gaussian Cox process dataset.

These datasets vary in size, input dimensionality, and likelihood complexity, allowing for a comprehensive evaluation of the proposed methods.

Key Insights and Ideas

  • Unifying Framework: The paper elegantly unifies diverse inference methods (EP, Kalman filters, etc.) under a single state-space smoothing framework, revealing their underlying connections.
  • EP as a Smoother: By viewing EP as a Kalman smoother, the authors unlock computational efficiencies and a more structured way to handle temporal dependencies.
  • Power EP for Non-Conjugacy: The introduction of Power EP (PEP) with a tunable parameter a provides a flexible way to balance accuracy and computational cost when dealing with non-Gaussian likelihoods, outperforming standard EP in challenging cases.
  • Leveraging Temporal Structure: The state-space formulation effectively exploits the sequential nature of temporal data, leading to scalable inference for long time series.
  • Spatio-Temporal Extension: The framework naturally extends to spatio-temporal problems by treating one spatial dimension as sequential, enabling efficient inference on gridded data.

Key Results

  • State-of-the-Art Performance: The proposed methods, particularly EEP, achieve competitive or superior performance (measured by Normalized Log Predictive Density - NLPD) compared to existing baselines on various tasks, including challenging non-conjugate and spatio-temporal problems.
  • Efficiency: The state-space approach offers significant computational advantages, scaling linearly with the number of data points and cubically with the state dimension (which is often much smaller than the number of data points). Table 2 shows competitive runtimes, with EEP being faster than cubature methods for high-dimensional sites.
  • Handling Non-Gaussian Likelihoods: EEP demonstrates superior performance in tasks with complex, non-Gaussian likelihoods (e.g., heteroscedastic noise, audio) where linearization-based methods struggle.
  • Scalability: The methods are shown to scale to large datasets (e.g., 10K+ data points) and higher-dimensional latent spaces.

Limitations and Future Work

  • Linearization Limitations: The paper acknowledges that linearization-based methods (like EKF, EKS, UEP, GHEP) can struggle when the cavities (approximations of the posterior) are diffuse (high variance) and the likelihood is highly nonlinear. In such cases, cubature methods or full EP might be more accurate but less scalable.
  • Numerical Stability: While the paper mentions strategies to avoid numerical issues when computing the cavity (e.g., discarding cross-covariances), it notes that these can lead to a loss of accuracy. An alternative approach using two-filter smoothing is mentioned but not implemented.
  • Hyperparameter Optimization: The paper uses a separate optimization of hyperparameters via marginal likelihood, which can be computationally intensive. Future work could explore more integrated approaches.
  • Non-Separable Spatio-Temporal Models: The current framework primarily focuses on separable spatio-temporal kernels. Extending it to non-separable kernels would be a valuable future direction.

Summary updated

BibTeX
@inproceedings{wilkinson2020state,
  author = {William J. Wilkinson and Paul E. Chang and Michael Riis Andersen and Arno Solin},
  title = {{State Space Expectation Propagation: Efficient Inference Schemes for Temporal Gaussian Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure