English

Differentiable Particle Filtering without Modifying the Forward Pass

Machine Learning 2021-10-20 v2 Machine Learning

Abstract

Particle filters are not compatible with automatic differentiation due to the presence of discrete resampling steps. While known estimators for the score function, based on Fisher's identity, can be computed using particle filters, up to this point they required manual implementation. In this paper we show that such estimators can be computed using automatic differentiation, after introducing a simple correction to the particle weights. This correction utilizes the stop-gradient operator and does not modify the particle filter operation on the forward pass, while also being cheap and easy to compute. Surprisingly, with the same correction automatic differentiation also produces good estimators for gradients of expectations under the posterior. We can therefore regard our method as a general recipe for making particle filters differentiable. We additionally show that it produces desired estimators for second-order derivatives and how to extend it to further reduce variance at the expense of additional computation.

Keywords

Cite

@article{arxiv.2106.10314,
  title  = {Differentiable Particle Filtering without Modifying the Forward Pass},
  author = {Adam Ścibior and Frank Wood},
  journal= {arXiv preprint arXiv:2106.10314},
  year   = {2021}
}

Comments

24 pages, 3 figures

R2 v1 2026-06-24T03:22:28.607Z