Variational Gaussian Process State-Space Models

Roger Frigola, Yutian Chen, Carl E. Rasmussen

State-space models (SSMs) are the workhorse of time-series analysis, used in everything from tracking robots to modeling financial markets. However, practitioners often face a dilemma: parametric models (like linear systems) are fast but too rigid to capture complex, non-linear behaviors, while non-parametric models (like Gaussian Processes) are incredibly flexible but suffer from cubic computational scaling ($O(T^3)$), making them unusable for long sequences.

This paper presents a scalable way to learn nonlinear dynamical systems, bridging the gap between the flexibility of non-parametric Bayesian models and the computational requirements of real-world time-series data. The authors introduce a variational framework for learning Gaussian Process State-Space Models (GP-SSMs) that scales linearly with the length of the time series, providing a way to learn complex dynamics with well-calibrated uncertainty without the prohibitive cost of traditional MCMC methods.

Diverse nonlinear dynamics

Core Methodology

The core contribution is a variational inference approach for GP-SSMs. Previous attempts to use GPs in SSMs often relied on MAP (Maximum A Posteriori) estimation, which risks overfitting, or Particle MCMC, which is computationally exhausting. This paper seeks a fully Bayesian treatment that is computationally efficient.

Key technical components include:

  • Sparse GPs & Inducing Variables: To avoid the $O(T^3)$ bottleneck, the authors use a set of $M$ "inducing points." This reduces the complexity of the GP part to depend on $M$ (a user-defined capacity) rather than the total number of time steps $T$.
  • The Variational Evidence Lower Bound (ELBO): They derive a lower bound on the marginal likelihood. Maximizing this bound minimizes the divergence between their approximate posterior and the true, intractable posterior.
  • Hybrid Inference: The authors recognize that the optimal distribution for the GP function is a multivariate Gaussian, but the distribution for the latent states is much harder to compute. They use Sequential Monte Carlo (SMC)—specifically particle filters/smoothers—to approximate the state trajectory while using standard variational updates for the GP parameters.
  • Stochastic Variational Inference (SVI): For very long time series, they show how to train on "mini-batches" of the sequence, allowing the model to scale to datasets that would be impossible to process all at once.

Key Insights

The variational formulation effectively turns a complex GP-SSM into a simpler auxiliary parametric SSM for the purpose of state smoothing. This allows the use of standard smoothing techniques within the broader GP framework. Furthermore, by choosing the number of inducing points ($M$), researchers can explicitly trade off model expressivity against computational budget.

Unlike some previous GP-SSM methods, this approach can also learn latent states that have a higher dimensionality than the observations. This is crucial for modeling systems with "hidden" internal variables, such as momentum or internal biological states.

Experimental Results

The authors evaluated their model on a synthetic 1D nonlinear system with a "kinked" transition function (a stress test for non-smooth transitions) and real-world neural spike train recordings from a rat's hippocampus (requiring a Poisson likelihood).

  • Accuracy vs. Speed: On the 1D system, the Variational GP-SSM outperformed GP-NARX and linear models. While slightly less accurate than the gold-standard PMCMC method, it was orders of magnitude faster (minutes versus hours).
  • Scalability: Using SVI, the model handled a sequence of $T=10,000$ points with ease. Interestingly, the SVI version achieved a better Root Mean Square Error (1.07) than the batch version (1.15) on the test set.
  • Capturing Complex Dynamics: In the neural data, the model successfully captured limit cycles (oscillatory patterns). It learned that the system naturally gravitates toward a specific repeating loop in the latent space, a feat that linear models are mathematically incapable of achieving.
Predictive performance on oscillatory data

Limitations and Future Work

While highly effective, the authors acknowledge that standard SMC can introduce biased gradients during optimization. Although it didn't hinder these specific experiments, more advanced techniques like Particle MCMC could be used as a drop-in replacement if bias becomes an issue.

Additionally, the current method relies on SMC to handle the latent states. Future work could explore "structured" variational distributions to eliminate the need for sampling entirely, potentially making the algorithm even faster and more deterministic. Finally, while the model learns dynamics well, characterizing the theoretical stability of GP-SSM priors—ensuring simulations don't "explode" far into the future—remains an open challenge.

Summary updated

BibTeX
@inproceedings{frigola2014variational,
  author = {Roger Frigola and Yutian Chen and Carl E. Rasmussen},
  title = {{Variational Gaussian Process State-Space Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
  url = {https://openreview.net/forum?id=Bk-NH_bdZr},
}
Figure