Black-Box Autoregressive Density Estimation for State-Space Models

Tom Ryder, Andrew Golightly, A. Stephen McGough, Dennis PranglearXiv 2018

Introduction

State-Space Models (SSMs) are fundamental tools in time-series analysis, used to model systems where hidden "latent" variables evolve over time and are observed through noisy data. Applications range from tracking epidemic outbreaks to financial forecasting. While Bayesian inference provides a robust framework for estimating both hidden states and system parameters, traditional methods like Markov Chain Monte Carlo (MCMC) and Particle Filtering are often computationally prohibitive, especially for large datasets or sparse observations.

This paper introduces a high-speed, "black-box" method for Bayesian inference on SSMs. By combining Variational Inference (VI) with a novel "local" version of Inverse Autoregressive Flows (IAFs), the authors achieve results comparable to traditional methods but with a massive speedup—reducing computation time from hours to minutes.

Methodology: Local Inverse Autoregressive Flows

The core innovation of this work is the Local IAF. Standard IAFs are powerful density estimators but do not scale well to high-dimensional time series because every time step depends on all previous ones. To address this, the authors leverage the concept of "short-range dependence" found in many physical systems.

  • 1D Convolutions: Inspired by the WaveNet architecture, the Local IAF uses a 1D convolutional neural network with a fixed "receptive field." This assumes that a hidden state at time $t$ primarily depends on a local window of recent states, significantly reducing complexity.
  • Amortized Inference: This structure allows the model to learn how to perform inference across the entire time series simultaneously, taking full advantage of GPU acceleration.
  • Joint Posterior Estimation: Unlike methods that separate parameter estimation from state estimation, this approach simultaneously approximates the global parameters ($\theta$) and the hidden path ($x$).

Experimental Evaluation

The researchers evaluated their method on two primary benchmarks:

  1. Ornstein-Uhlenbeck (OU) Process: A synthetic, univariate mean-reverting process used as a "sanity check" because its exact posterior is mathematically tractable.
  2. SIR Epidemic Model: A complex, non-linear stochastic differential equation model applied to real-world data from a 1978 influenza outbreak.
Comprehensive results for the OU process (top) and SIR model (bottom), showing both path estimation and parameter density distributions.

Key Results and Insights

As shown in the figures, the variational posterior provides a very close match to the exact marginals and observed data points.

  • Accuracy: In the OU test, the approximation was nearly indistinguishable from the exact filtering results. For the SIR model, the estimated path of infectives closely tracked the outbreak data.
  • Speed: The SIR model converged in just 20 minutes, a significant improvement over the several hours required by previous state-of-the-art variational methods. The simpler OU model converged in only 5 minutes on a single GPU.
  • Flexibility: Because the method relies on automatic differentiation, it can be applied to a wide variety of SSMs without manual mathematical derivations for each new model.
Detailed view of the SIR model's estimated path of infectives (gray band) compared to observed data points (red crosses).

Limitations and Future Work

While highly effective, the "Local IAF" relies on a fixed receptive field. If a system exhibits very long-term dependencies that fall outside this window, the approximation may lose accuracy. Additionally, like most VI methods, it may tend to underestimate uncertainty (overconcentration) if the approximating family is not sufficiently flexible. Future work may explore tighter evidence bounds or alternative neural architectures to further refine these local flows.

Summary updated

BibTeX
@misc{ryder2018black,
  author = {Tom Ryder and Andrew Golightly and A. Stephen McGough and Dennis Prangle},
  title = {{Black-Box Autoregressive Density Estimation for State-Space Models}},
  year = {2018},
  eprint = {1811.08337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.08337},
}
Figure