Variational Resampling

Oskar Kviman, Nicola Branchini, Víctor Elvira, Jens Lagergren

Introduction

Particle Filters (PFs) are essential tools for state estimation in non-linear, non-Gaussian dynamical systems, with applications ranging from robotics to financial modeling. These filters represent the posterior distribution of hidden states using a set of weighted "particles." However, PFs frequently suffer from particle degeneracy, where most particles drift into regions of low probability, leaving only a few to represent the distribution.

To combat this, PFs employ a resampling step: low-weight particles are discarded, and high-weight particles are replicated. Traditional methods, such as multinomial, systematic, or stratified resampling, are designed to be unbiased. While theoretically sound, these methods do not explicitly optimize for the quality of the resulting approximation. This paper introduces Variational Resampling, a framework that treats resampling as a deterministic optimization problem aimed at minimizing the divergence between the resampled and target distributions.

Methods: Resampling as Optimization

The core innovation is the Lower Bound (LB) resampler, which casts resampling as a Variational Inference (VI) task. Instead of random selection, the algorithm greedily assigns replication counts to particles to maximize a lower bound on the log-normalizing constant—a process mathematically equivalent to minimizing the Kullback-Leibler (KL) divergence to a target measure.

The authors propose two primary target measures:

  1. Importance Weighted Target ($\pi_w$): Targets the standard normalized weights of the current time step.
  2. Model Based Target ($\pi_\gamma$): Evaluates the unnormalized density of the entire particle trajectory. This "online smoothing" property allows the filter to favor particles that are globally consistent over time, rather than just locally optimal.
Comparison of resampling schemes on a 1D toy model. The LB resampler achieves significantly lower KL divergence by concentrating particles near the modes.

Key Results and Efficiency

The deterministic nature of Variational Resampling allows it to concentrate particles more effectively around the posterior modes. This leads to a dramatic increase in particle efficiency.

In experiments on Stochastic Volatility and Lorenz 63 models, the LB resampler using the $\pi_\gamma$ target achieved lower Mean Squared Error (MSE) with only 100 particles than classical methods achieved with 1,000 particles. This 10x efficiency gain is a significant advancement for computationally intensive tracking tasks.

Performance comparison across different resampling schemes. Note how the LB resampler with $\pi_\gamma$ at $N=100$ outperforms classical methods at $N=1000$.

Furthermore, the LB resampler with the $\pi_w$ target consistently yielded the lowest Total Variation (TV) distance to the true importance-weighted measure, outperforming state-of-the-art systematic resampling. On real-world S&P 500 data, the variational approach provided marginal log-likelihood estimates comparable to a standard PF using 50 times more particles.

Discussion and Future Directions

While Variational Resampling introduces a deterministic bias, the empirical results suggest that this trade-off is highly beneficial for accuracy and efficiency. The primary computational overhead is an $\mathcal{O}(N \log N)$ sorting step, which is easily offset by the ability to use an order of magnitude fewer particles.

Future research may explore the theoretical convergence properties of this biased estimator and its application to broader domains, such as adaptive importance sampling and black-box variational inference. By unifying particle filtering with the optimization principles of VI, Variational Resampling opens a new frontier for robust state estimation.

Summary updated

BibTeX
@inproceedings{kviman2024variational,
  author = {Oskar Kviman and Nicola Branchini and Víctor Elvira and Jens Lagergren},
  title = {{Variational Resampling}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure