Differentiable Particle Filtering using Optimal Placement Resampling
Domonkos Csuzdi, Olivér Törő, Tamás Bécsi
TL;DR
This work tackles the nondifferentiability of resampling in particle filters by introducing optimal placement resampling (OPR), a deterministic, gradient-friendly resampling scheme built from an empirically constructed CDF of the weighted particle set. By deterministically relocating particles to optimally spaced positions, OPR preserves particle diversity while concentrating mass in high-probability regions, enabling backpropagation through time for both state and parameter learning. Empirical results on a 1D linear Gaussian model, proposal learning, and a stochastic volatility model show that PF-OPR matches or surpasses traditional multinomial resampling in ELBO quality and gradient signal, with a manageable computational cost dominated by particle sorting. The approach demonstrates clear potential for differentiable PFs in real-world time-series applications, though it currently remains limited to one dimension, motivating future multidimensional extensions.
Abstract
Particle filters are a frequent choice for inference tasks in nonlinear and non-Gaussian state-space models. They can either be used for state inference by approximating the filtering distribution or for parameter inference by approximating the marginal data (observation) likelihood. A good proposal distribution and a good resampling scheme are crucial to obtain low variance estimates. However, traditional methods like multinomial resampling introduce nondifferentiability in PF-based loss functions for parameter estimation, prohibiting gradient-based learning tasks. This work proposes a differentiable resampling scheme by deterministic sampling from an empirical cumulative distribution function. We evaluate our method on parameter inference tasks and proposal learning.
