arXiv:2610.12094stat.MLOct 2026

Manuscript Offprint

arXiv:2610.12094

Differentiable Systematic Resampling for Variational Sequential Monte Carlo

Fredrik Cumlin, Saikat Chatterjee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Particle filters are a standard tool for nonlinear state estimation, but their resampling step is discrete, preventing gradient-based learning in variational sequential Monte Carlo. We introduce Differentiable Systematic Resampling (DSR), a temperature-controlled relaxation of systematic resampling, that preserves the CDF-ordered, banded structure of systematic resampling while enabling full gradient flow. DSR converges to exact systematic resampling as the temperature vanishes, and we prove a pointwise exponential convergence rate for the induced bias. Compared to optimal-transport-based differentiable resampling, DSR avoids iterative solvers and has substantially lower computational overhead. Experiments on stochastic dynamical systems and real-world handwriting data show that DSR achieves comparable or superior filtering and dynamics learning performance.

1 Introduction

Sequential Monte Carlo (SMC) methods, commonly known as particle filters (PFs) [14, 9], are standard tools for Bayesian state estimation in nonlinear and non-Gaussian dynamical systems, with applications in robotics, econometrics, computer vision, and epidemiology [30, 28, 4]. Particle filters approximate the filtering posterior by propagating and reweighting a set of particles using the system dynamics and incoming observations. In many applications, however, the state dynamics are unknown or only partially specified; that is, the transition model (system dynamics) is not available to the practitioner. One line of work addresses this by learning a state estimator directly from observations without an explicit particle representation [13, 12, 29, 7]; here we instead focus on variational sequential Monte Carlo (VSMC) [27, 24, 23], which jointly learns a parameterized transition model and proposal model by maximizing a variational lower bound on the marginal likelihood using gradient-based optimization. Importantly, VSMC requires the entire filtering recursion to be differentiable.

An essential component of SMC, and hence of VSMC, is resampling. During filtering, particle weights tend to degenerate, meaning that only one or a few particles carry most of the weight [10]. Resampling mitigates this by replacing low-weight particles with copies of high-weight ones [8, 20]. Among standard resampling schemes, systematic resampling is widely adopted due to its provably lower variance [8, 20, 10]. However, resampling relies on discrete ancestor assignments and is therefore inherently non-differentiable. While particle propagation and importance weighting can be differentiated via the reparameterization trick [19], the resampling step blocks gradient flow and produces biased or high-variance gradient estimators [27]. This makes differentiable resampling a central challenge in VSMC. A standard approach for discrete operations in gradient-based learning is to replace them with temperature-controlled continuous relaxations that recover the discrete operation in the zero-temperature limit [15, 25]. We take this approach for the resampling step of VSMC, but rather than relaxing the ancestor categorical directly, we relax the assignment of systematic

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Transportation maps for systematic resampling (left), DSR (middle), and EROT (right), for a sequential important resampling PF of the Lorenz-63 system. The transportation maps are calculated at step 150 using N = 25 particles, and DSR and EROT uses training relaxation parameters.

resampling, based on the cumulative distribution function (CDF) of the weights, hence preserving its CDF-ordered, banded structure.

Several differentiable relaxations of resampling have been proposed. Soft multinomial resampling [17] keeps ancestor sampling discrete but draws ancestors from a smoothed distribution that mixes the importance weights with a uniform distribution, and propagates gradients through the corresponding importance-weight correction. A drawback is that the underlying scheme is multinomial resampling, which has provably higher variance than systematic resampling [8], so the method inherits an inferior starting point. Entropy-regularized optimal transport (EROT) [5] instead formulates resampling as an optimal transport problem. However, EROT relies on recursive Sinkhorn updates that scale as O(N2)\mathcal{O}(N^{2}) per iteration, is sensitive to the choice of regularization parameter, and, at the regularization levels needed for stable training, produces diffuse transport plans that bear little resemblance to the sparse, CDF-ordered structure of systematic resampling (see Fig. 1). Crucially, neither approach preserves the structure of systematic resampling, which is the de facto standard at inference time due to its favorable variance properties [10].

In this paper, we introduce Differentiable Systematic Resampling (DSR), a temperature-controlled relaxation that directly softens the CDF-level ancestor assignment of systematic resampling using sigmoid functions. To further ensure that neighbours in the CDF correspond to spatially nearby particles, we equip DSR with Morton space-filling curve sorting, which reduces approximation error to systematic resampling. The relaxation introduces a bias that we prove vanishes exponentially as the temperature τ→0+\tau \to 0^{+}. Our main contributions are as follows:

• We propose DSR, a differentiable relaxation that preserves the CDF-ordered, banded structure of systematic resampling while enabling full gradient flow.

• We establish theoretical guarantees showing that DSR converges to exact systematic resampling, with a pointwise exponential rate under a positive-margin condition, as τ→0+\tau \to 0^{+}.

• We demonstrate that DSR achieves competitive or superior state estimation and dynamics learning in VSMC while training more than 2×2 \times faster than EROT.

References (29)