Backward Importance Sampling for Online Estimation of State Space Models

Alice Martin, Marie-Pierre Étienne, Pierre Gloaguen, Sylvain Le Corff, Jimmy Olsson

Introduction

State Space Models (SSMs) provide a robust framework for analyzing time-series data across diverse fields, including ecology, finance, and engineering. A critical task in SSMs is online smoothing: the recursive estimation of hidden states based on a continuous stream of noisy observations. While Sequential Monte Carlo (SMC) methods like the Particle-based Rapid Incremental Smoother (PaRIS) have advanced this field, they face significant computational bottlenecks when applied to complex models where transition densities are intractable.

The Computational Bottleneck in Online Smoothing

The efficiency of the PaRIS algorithm traditionally stems from its backward sampling step. However, standard implementations rely on acceptance-rejection (AR) sampling. AR sampling requires the ability to calculate a tight upper bound on the transition density—the probability of moving from one hidden state to the next. In many sophisticated models, such as those governed by multivariate stochastic differential equations (SDEs), these densities cannot be expressed analytically, making it impossible to find the necessary upper bounds. This limitation often restricts researchers to simpler, less accurate models.

Backward Importance Sampling (BIS)

This paper introduces a novel SMC framework that replaces the AR step with Backward Importance Sampling (BIS). This shift offers several transformative advantages:

  1. Predictable Computation and Parallelization: Unlike AR sampling, which draws a random number of candidates until one is accepted, BIS uses a fixed number of samples. This makes the computational workload predictable and highly suitable for parallel processing on modern GPU and CPU architectures.
  2. Pseudo-Marginal Integration: The BIS approach is compatible with the pseudo-marginal framework. It functions effectively even when only a noisy, unbiased estimate of the transition density is available, rather than the exact value.
  3. Ensuring Positivity via Wald’s Trick: To handle complex models where unbiased density estimators might occasionally yield negative values—a phenomenon that typically destabilizes particle filters—the authors employ "Wald’s trick." This simulation technique ensures estimators remain positive without introducing bias.
  4. Recursive MLE: The framework is extended to perform online Maximum Likelihood Estimation (MLE), allowing the model to learn its own parameters (such as growth rates in population models) in real-time as data arrives.

Experimental Validation

The authors evaluated the BIS-PaRIS algorithm across several challenging benchmarks:

  • Stochastic RNNs: Using a vanilla RNN architecture with latent hidden states pre-trained on weather time-series data, the BIS smoother demonstrated significantly lower Mean Squared Error (MSE) compared to traditional path-space smoothers.
  • SDE Benchmarks: In the Sine model (a 1D diffusion process) and the Stochastic Lotka-Volterra model (a 2D predator-prey system), the algorithm enabled estimation in scenarios where transition densities are typically considered intractable.
  • Historical Ecology: The method was applied to the Hudson Bay Company dataset, successfully reconstructing the cyclical population dynamics of lynx and hares. The resulting trajectories were smoother and more physically plausible than those produced by simpler estimation methods.

Key Results and Discussion

The BIS approach achieved a 10x reduction in computational time compared to AR-based PaRIS in Sine model experiments while maintaining comparable performance. Furthermore, the algorithm demonstrates long-term stability; unlike "Poor Man’s" smoothers that suffer from path degeneracy, BIS-PaRIS maintains stable variance for state estimates far in the past.

While the method shows a small bias at very low sample sizes (e.g., fewer than 10 backward samples), this bias diminishes rapidly as the number of samples increases. Future work will focus on formalizing the asymptotic normality of the BIS-PaRIS hybrid and optimizing its performance for higher-dimensional systems beyond the 64-dimensional RNNs tested.

Conclusion

By removing the requirement for transition density upper bounds, Backward Importance Sampling significantly expands the applicability of online smoothing. This advancement is particularly impactful for researchers utilizing multivariate SDEs in ecological and financial modeling, providing a faster, more flexible, and parallelizable alternative to existing state estimation techniques.

Summary updated

BibTeX
@article{martin2023backward,
  author = {Alice Martin and Marie-Pierre Étienne and Pierre Gloaguen and Sylvain Le Corff and Jimmy Olsson},
  title = {{Backward Importance Sampling for Online Estimation of State Space Models}},
  journal = {J. Comput. Graph. Stat.},
  year = {2023},
  doi = {10.1080/10618600.2023.2174125},
}
Figure