Skip to main content
QUICK REVIEW

[Paper Review] Black box variational inference for state space models

Evan Archer, Il Memming Park|arXiv (Cornell University)|Nov 23, 2015
Gaussian Processes and Bayesian InferenceComputer Science24 references114 citations
TL;DR

This paper introduces a black-box variational inference method for state space models using a structured Gaussian approximate posterior with block tri-diagonal inverse covariance, enabling efficient, linear-time inference across long time series. It outperforms specialized methods in both accuracy and speed, recovering nonlinear dynamics and smoothing trajectories even in non-conjugate models.

ABSTRACT

Latent variable time-series models are among the most heavily used tools from machine learning and applied statistics. These models have the advantage of learning latent structure both from noisy observations and from the temporal ordering in the data, where it is assumed that meaningful correlation structure exists across time. A few highly-structured models, such as the linear dynamical system with linear-Gaussian observations, have closed-form inference procedures (e.g. the Kalman Filter), but this case is an exception to the general rule that exact posterior inference in more complex generative models is intractable. Consequently, much work in time-series modeling focuses on approximate inference procedures for one particular class of models. Here, we extend recent developments in stochastic variational inference to develop a `black-box' approximate inference technique for latent variable models with latent dynamical structure. We propose a structured Gaussian variational approximate posterior that carries the same intuition as the standard Kalman filter-smoother but, importantly, permits us to use the same inference approach to approximate the posterior of much more general, nonlinear latent variable generative models. We show that our approach recovers accurate estimates in the case of basic models with closed-form posteriors, and more interestingly performs well in comparison to variational approaches that were designed in a bespoke fashion for specific non-conjugate models.

Motivation & Objective

  • To develop a scalable, general-purpose inference method for latent variable time-series models where exact posterior inference is intractable.
  • To enable efficient posterior approximation in complex, nonlinear, and non-Gaussian state space models without requiring model-specific derivations.
  • To design a variational posterior that captures temporal dependencies akin to Kalman smoothing but applicable beyond conjugate models.
  • To achieve fast convergence and high-quality posterior estimates using stochastic gradient variational Bayes (SGVB).
  • To demonstrate the method’s effectiveness on both linear and nonlinear dynamical systems, including the Poisson linear dynamical system (PLDS).

Proposed method

  • Proposes a structured Gaussian variational posterior with block tri-diagonal inverse covariance matrix to model temporal dependencies in latent state trajectories.
  • Employs a deep neural network (NN) to parameterize the mean and precision matrix of the approximate posterior, enabling flexible, observation-dependent inference.
  • Uses stochastic gradient variational Bayes (SGVB) to jointly optimize generative model parameters and variational parameters via mini-batch updates.
  • Leverages the block tri-diagonal structure to enable linear-time inference (O(T)) in both time and space complexity, scaling efficiently to long sequences.
  • Applies the recognition model (NN) to map observations directly to smoothed posterior distributions, emulating Kalman smoother behavior in non-conjugate settings.
  • Implements the method using Theano and Lasagne, with a dual-optimization framework that alternates between updating the recognition model and the generative model.

Experimental results

Research questions

  • RQ1Can a general-purpose, black-box variational inference method achieve accurate posterior approximation in nonlinear and non-Gaussian state space models?
  • RQ2Does a structured Gaussian posterior with block tri-diagonal precision matrix outperform mean-field and unstructured approximations in capturing temporal dynamics?
  • RQ3How does the proposed method compare in convergence speed and ELBO performance to specialized variational inference methods like VBEM for PLDS?
  • RQ4Can the method recover nonlinear state transitions in a dynamical system when the true posterior is non-Gaussian?
  • RQ5To what extent does the inference algorithm scale linearly with sequence length in both time and memory?

Key findings

  • The VILDS method achieves a higher evidence lower bound (ELBO) than both mean-field and VBDual baselines, converging faster and reaching better performance.
  • VILDS reaches comparable ELBO values to a specialized VBEM approach for PLDS before VBEM completes a single EM iteration, demonstrating superior convergence speed.
  • Posterior mean trajectories learned by VILDS are visibly smoother than those from mean-field approximation, indicating better capture of temporal structure.
  • In a nonlinear one-dimensional dynamical system, VILDS successfully recovers the true nonlinear relationship between consecutive states, as shown in posterior mean plots.
  • The method scales linearly in time and space complexity with sequence length, enabling efficient inference on long time series.
  • The structured posterior with neural network parameterization enables accurate inference even in non-conjugate models, validating the black-box nature of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.