Stein particle filtering

Jiaojiao Fan, Amirhossein Taghvaei, Yongxin ChenarXiv 2021

Abstract

We present a new particle filtering algorithm for nonlinear systems in the discrete-time setting. Our algorithm is based on the Stein variational gradient descent (SVGD) framework, which is a general approach to sample from a target distribution. We merge the standard two-step paradigm in particle filtering into one step so that SVGD can be used. A distinguishing feature of the proposed algorithm is that, unlike most particle filtering methods, all the particles at any time step are equally weighted and thus no update on the weights is needed. We further extended our algorithm to allow for updating previous particles within a sliding window. This strategy may improve the reliability of the algorithm with respect to unexpected disturbance in the dynamics or outlier-measurements. The efficacy of the proposed algorithms is illustrated through several numerical examples in comparison with a standard particle filtering method.

Introduction

In the field of signal processing and robotics, nonlinear filtering is a fundamental task: estimating the hidden state of a dynamic system based on a sequence of noisy observations. Standard approaches like the Kalman Filter work perfectly for linear Gaussian systems, but real-world problems are often nonlinear and non-Gaussian. Particle Filters (PF) emerged as a powerful tool for these scenarios, using a set of discrete "particles" to represent the posterior distribution of the state.

However, traditional PFs rely on Importance Sampling, which leads to a notorious issue known as "particle degeneracy." Over time, the weights of most particles vanish, leaving only a few (or even one) with significant weight. While resampling techniques exist to mitigate this, they often fail in high-dimensional spaces or require a massive number of particles to remain effective. This paper introduces a framework that bypasses reweighting entirely.

The Stein Variational Approach

To overcome the limitations of weight-based filtering, we introduce the Stein Particle Filter (SPF). This framework replaces the traditional "predict-then-weight" cycle with a variational inference step powered by Stein Variational Gradient Descent (SVGD).

Instead of assigning weights to particles, SPF treats the posterior distribution at each time step as a target density. SVGD then performs a deterministic update, "pushing" the particles toward high-probability regions of the posterior. This is achieved through a kernel-based gradient descent where a positive definite kernel (typically Gaussian) serves two purposes:

  1. Attraction: Pulling particles toward the modes of the target distribution.
  2. Repulsion: Preventing particles from collapsing into a single point, thereby maintaining a diverse representation of the distribution.

Because the particles are physically moved to represent the density rather than being reweighted, they remain uniformly weighted ($1/n$) throughout the entire process. This ensures that the "effective sample size" is always at its maximum, avoiding the curse of dimensionality associated with importance sampling.

Sequential and Sliding Window SPF

We propose two variants of the algorithm:

  • Sequential SPF: Updates the particles at each discrete time step based on the latest observation. A key implementation detail is the initialization strategy: sampling initial particles from the Markov transition probability (the system's dynamics) is more effective than starting from the previous step's locations.
  • Sliding Window SPF: Adopts a "receding horizon" strategy. Instead of updating only the current state, the filter optimizes a trajectory of states over a fixed-size window. This allows the algorithm to re-evaluate past states in light of new evidence, significantly increasing robustness against measurement outliers or sudden shifts in system dynamics.

Experimental Evaluation

The SPF was tested against the standard Sampling Importance Resampling (SIR) filter using two classic benchmarks:

1. Linear Gaussian System

In this scenario, the exact solution is known via the Kalman-Bucy filter. This allows for a direct comparison of the Mean Square Error (MSE). As shown in the results, the Stein method (both $T=1$ and $T=3$) achieved significantly lower MSE for both the mean and the covariance compared to the SIR filter.

Mean square error (MSE) for mean and covariance in a linear Gaussian system. SPF variants show significantly lower and more stable error compared to the SIR filter.

2. Benes Filtering Problem

The Benes problem is a challenging nonlinear filtering task with a known closed-form solution that often results in non-Gaussian, multi-modal posteriors.

Posterior density estimation for the Benes filtering problem at different time steps. The Stein T=3 variant (green) closely tracks the exact solution (black), while the SIR filter (purple) struggles to capture the peak and spread.

The visual results demonstrate that the sliding window SPF ($T=3$) captures the complex posterior distribution with much higher fidelity than the SIR filter. The SIR filter often underestimates the peak density and fails to match the exact distribution's shape as time progresses.

Discussion and Future Directions

The primary advantage of the Stein Particle Filter is its immunity to weight degeneracy, making it a robust choice for high-dimensional or highly nonlinear systems. The sliding window variant further enhances this by providing a mechanism for "hindsight" correction.

However, these benefits come with a computational trade-off. SVGD is an iterative optimization process, requiring multiple gradient evaluations per time step. In our experiments, we used 100 iterations, which is significantly more demanding than the simple weighting and resampling steps of an SIR filter. Future work will focus on optimizing the convergence speed of SVGD and exploring adaptive window sizes to balance accuracy and real-time performance.

Summary updated

BibTeX
@misc{fan2021stein,
  author = {Jiaojiao Fan and Amirhossein Taghvaei and Yongxin Chen},
  title = {{Stein particle filtering}},
  year = {2021},
  eprint = {2106.10568},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.10568},
}
Figure