Computationally Efficient Bayesian Learning of Gaussian Process State Space Models

Andreas Svensson, Arno Solin, Simo Särkkä, Thomas B. Schön · DOI

Abstract

Gaussian processes allow for flexible specification of prior assumptions of unknown dynamics in state space models. We present a procedure for efficient Bayesian learning in Gaussian process state space models, where the representation is formed by projecting the problem onto a set of approximate eigenfunctions derived from the prior covariance structure. Learning under this family of models can be conducted using a carefully crafted particle MCMC algorithm. This scheme is computationally efficient and yet allows for a fully Bayesian treatment of the problem. Compared to conventional system identification tools or existing learning methods, we show competitive performance and reliable quantification of uncertainties in the model.

Introduction

Gaussian Processes (GPs) are powerful non-parametric tools for modeling uncertainty in nonlinear functions. However, their integration into State Space Models (SSMs)—where they describe the evolution of hidden states over time—has been limited by extreme computational demands. Standard GP methods scale at $O(T^3)$ relative to the number of time steps $T$, making them impractical for many real-world applications. This paper introduces a reduced-rank basis function expansion that transforms the heavy non-parametric GP-SSM into a linear-in-parameters model, enabling orders-of-magnitude faster inference via a specialized Particle MCMC algorithm.

Methodology: Hilbert Space Approximation

The authors bridge the gap between flexible GPs and efficient parametric models using a Hilbert space approximation. By projecting the GP onto a set of approximate eigenfunctions of the Laplace operator, the transition function is represented as a basis function expansion: $f(x) \approx \sum f^{(j)}\phi^{(j)}(x)$.

This transformation is the "secret sauce" of the method. It creates a model that is linear with respect to its weights, allowing for the use of conjugate priors (Matrix Normal Inverse Wishart). To learn the model, a blocked Gibbs sampler is employed:

  1. Particle Gibbs with Ancestor Sampling (PGAS): Used to sample the hidden state trajectories.
  2. Standard Gibbs Steps: Used to sample the weights and noise covariances.
  3. Metropolis-Hastings: Used to sample GP hyperparameters, which are now decoupled from the main weight matrix.
The learned model on a synthetic dataset. The plot shows the posterior mean and $2\sigma$ uncertainty bounds effectively capturing the true underlying function and the data distribution.

Key Insights and Scalability

A major advantage of this approach is the decoupling of the basis functions from the GP hyperparameters. The basis itself is independent of parameters like length-scales; only the spectral density (the weights) changes. This leads to a massive reduction in computational complexity from $O(T^3)$ to $O(m^2 T)$, where $m$ is the number of basis functions. Since $m \ll T$ in most cases, the speedup is significant. Furthermore, the model's accuracy can be tuned by adjusting $m$, as the approximation converges to the exact GP-SSM as $m$ increases.

Experimental Results

The method was tested on several benchmarks, demonstrating both speed and accuracy. In a standard synthetic benchmark, the proposed method achieved a ~780x speedup (0.7 minutes vs. 547 minutes) compared to previous state-of-the-art PMCMC methods, while actually improving predictive performance.

Real-world performance on the Magneto-Rheological (MR) Fluid Damper dataset. The model accurately simulates the force output distribution based on velocity inputs, capturing complex nonlinear physical dynamics.

On real-world data, such as the MR Fluid Damper (3,499 data points), the model performed on par with specialized system identification tools like NARX models. Unlike those tools, however, this Bayesian approach provides a full quantification of uncertainty, indicating exactly where the model is less confident about the system's dynamics.

Conclusion

By combining Hilbert space approximations with Particle MCMC, this work makes Bayesian GP-SSMs viable for practical engineering tasks. While the "curse of dimensionality" remains a challenge for very high-dimensional state spaces, the significant speedups and robust uncertainty quantification mark a major advancement in nonlinear time-series modeling.

Summary updated

BibTeX
@inproceedings{svensson2016computationally,
  author = {Andreas Svensson and Arno Solin and Simo Särkkä and Thomas B. Schön},
  title = {{Computationally Efficient Bayesian Learning of Gaussian Process State Space Models}},
  booktitle = {AISTATS},
  year = {2016},
  url = {https://openreview.net/forum?id=vOD17XxKpK},
}
Figure