Manuscript Offprint
arXiv:2610.12094Differentiable Systematic Resampling for Variational Sequential Monte Carlo
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 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 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 . 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 .
• We demonstrate that DSR achieves competitive or superior state estimation and dynamics learning in VSMC while training more than faster than EROT.
2.1 State space models and particle filters
We consider state space models , where is the latent state and the observation. Particle filters approximate the filtering posterior using weighted particles at time . During inference, particles are propagated through the dynamics, reweighted by the observation likelihood, and resampled to avoid weight degeneracy. Resampling replaces the weighted particle set with an equal-weight set by sampling ancestor indices according to the weights.
Algorithm 1 Variational Sequential Monte Carlo (VSMC)
Require: Initial particles , observations
1: for to do
2: Sample for
3: Compute weights ; normalize
4: (discrete, non-differentiable)
5: end for
2.2 Variational Sequential Monte Carlo
Variational Sequential Monte Carlo (VSMC) [27] provides a framework for jointly learning a transition model and proposal distribution by maximizing the so-called surrogate evidence lower-bound (ELBO):
where the expectation is over all sampling and resampling operations in the particle filter. Algorithm 1 summarizes the VSMC recursion. The surrogate ELBO is a lower bound to the standard ELBO (as used for dynamical variational autoencoders, see e.g. [22]).
Optimizing requires differentiating through the entire filtering recursion. As shown by [27], the gradient decomposes into two terms:
where is the marginal distribution over the discrete ancestor variables given the reparameterized noise . The reparameterization term differentiates through the continuous particle propagation and weighting steps via the reparameterization trick [19]. The score-function term accounts for the discrete ancestor assignments introduced by resampling, which are not reparameterizable and can have high variance [27, cf. Fig. 3].
In practice, is dropped, yielding the biased gradient [27]. This treats ancestor indices as fixed during backpropagation: gradients flow through the surviving particle values, but not through the ancestor selection itself, a limitation that becomes severe when weights are concentrated and resampling decisions dominate filtering performance (see Appendix F.3). Differentiable resampling methods address this by replacing the discrete ancestor selection with a continuous relaxation, so that flows through the full resampling mechanism. This yields a relaxed objective in place of the surrogate ELBO. At finite temperature the relaxation does not preserve expected replication counts, so the resulting likelihood estimator is no longer unbiased and the relaxed objective is a differentiable surrogate rather than a lower bound on (see Section 3.1). The relaxed objectives have been shown to provide a richer learning signal for the transition model and proposal with improved state estimation and system identification across tasks [5, 32, 3, 21, 6].
3 Differentiable Systematic Resampling
Traditional resampling methods are discrete and non-differentiable, creating a bottleneck for gradient-based learning. We propose differentiable systematic resampling (DSR): a soft relaxation that converges to systematic resampling in the limit, while allowing gradients to flow through the resampling step. For ease of notation, we omit time subscripts in Sections 3 and 4; particle indices are instead denoted as subscripts.
3.1 DSR formulation
Recall that systematic resampling computes the CDF , draws a single offset , and assigns where . Equivalently, is the unique index for which , so the discrete assignment can be written as a matrix . This indicator is non-differentiable with respect to the weights, blocking gradient flow.
Consider particles with weights , giving the CDF and . Systematic resampling draws a single offset and places the comb . For the comb points are , , , and thresholding each against the CDF gives ancestors (since ), (since ), and (since ): the high-weight particle 2 is replicated, the low-weight particle 3 is dropped, and the assignment matrix is . The only randomness is the single draw ; given , the assignment is a deterministic thresholding of the comb against the CDF. The idea with DSR is to relax only this thresholding step and to leave the draw untouched.
Our strategy is to replace the indicator with a smooth surrogate that recovers it in a limiting sense, following the temperature-relaxation approach common for discrete operations in gradient-based learning [15, 25]. Writing the indicator as a telescoping difference,
reduces the problem to relaxing each step indicator separately. The sigmoid provides a natural smooth surrogate: pointwise as the temperature . Substituting into the telescoping identity with boundary conventions , gives the soft assignment:
Each is differentiable in , , and , and as . At finite , the sum is not necessarily one, so we normalize to obtain a proper convex combination. The transportation matrix and resampled particles are:
Each column of sums to one, so is a convex combination of the ancestor particles. The row sums, however, satisfy in general, so DSR does not preserve expected replication counts at finite . The temperature controls the relaxation between gradient flow and approximation fidelity: small gives a sharp transport plan close to systematic resampling but produces large gradient magnitudes, while large gives a diffuse transport plan with smoother gradients. We show in Section 4 that the approximation error decays exponentially in , and demonstrate in Section 5 that is a robust choice across all our experiments. Forming the full transport matrix makes DSR per resampling step, compared with for hard systematic resampling; the resulting overhead is nonetheless small in practice due to batch processing on GPU (Table 5). An algorithmic overview of DSR is given in Appendix A.
3.2 Particle ordering
Since DSR operates on the empirical CDF, the particle ordering determines which particles interact through the soft assignments: particles adjacent in the CDF share mass in the rows of . It is therefore desirable to order particles so that CDF neighbours are also spatial neighbours, which keeps the soft mixture more local. Thus, we sort particles along a Morton space-filling curve [26] before constructing the CDF; an algorithmic overview of this sorting is provided in Appendix A. Locality-preserving orderings have been shown to improve convergence properties of systematic resampling [11]; in DSR, they additionally ensure the soft mixture blends spatially nearby ancestors rather than distant particles (for an analysis of this, see Appendix E). The sorting costs per resampling step, negligible compared to the overall resampling cost of .
Remark 3.1 (Reducing the cost). The cost of forming can in principle be reduced to by computing, for each column , only the soft assignments in a band and setting the remainder to zero, at the cost of an additional bias that decreases with K. This is well-motivated under Morton sorting, where the soft assignments decay to near zero away from the diagonal (Fig. 5). In our implementation, however, is formed with batched matrix operations, so the wall-clock benefit of such truncation on GPU is modest; we therefore retain the full form.
Morton sorting significantly improves the approximation to systematic resampling: at N = 200, it reduces the L2 distance between DSR and hard systematic resampled particles by 35% compared to random ordering (Appendix E). For filtering and transition model quality, Morton sorting offers a modest advantage at low SNR (Appendix F.4).
4 Theoretical Analysis
We show that DSR is a consistent relaxation whose bias vanishes exponentially fast in . Let be particles with normalized weights , the empirical CDF, and , as defined in Eq. (5). The first result establishes that DSR recovers systematic resampling in the limit.
Proposition 4.1 (Asymptotic exactness). Fix and let denote the hard systematic resampling index. Then and almost surely.
The second result quantifies the approximation error for finite .
Proposition 4.2 (Exponential convergence rate). Let denote the particle diameter and
the margin between and the nearest CDF boundary. Then there exists such that for all ,
The proofs are in Appendix B.
Proposition 4.2 is primarily a qualitative guarantee: the bound depends on the particle diameter , the count , and the margin between and the nearest CDF boundary. The dominant term is , so concentrated weights (large ) yield fast convergence while near-uniform weights, where scales as , bound the worst-case rate. The bound holds pointwise in under the positive-margin event (which holds almost surely); it is not uniform over offsets, since can be made arbitrarily small by the weight and offset configuration, so no uniform exponential rate holds. Empirically, the per-particle L2 distance between DSR and hard systematic resampling decreases monotonically and accelerates as (Appendix E), consistent with the exponential rate.
5 Experiments
We evaluate DSR on synthetic and real-world state estimation and dynamics learning tasks. The experiments assess four aspects: (1) training-time filtering posterior quality ; (2) state estimation accuracy at inference time in standard SMC; (3) transition model quality ; and (4) computational efficiency.
5.1 Experimental Setup
We consider nonlinear state-space models where the transition and proposal models are parameterized by fully connected neural networks and learned jointly under the VSMC objective. All methods use particles unless stated otherwise (Appendix F.3 reports a sweep over ), the same Adam [18] configuration, identical network architectures, and gradient clipping at norm 5.0. We clip the estimated log-likelihood below to avoid extreme instability in training, see Appendix C. Results are averaged over 10 independent runs; we report mean ± standard deviation. Training configuration can be found in the Appendix C.
We evaluate on three settings: (1) a 4-dimensional Linear Gaussian SSM, where the Kalman filter gives the optimal posterior; (2) Lorenz-63, a 3D chaotic attractor with a nonlinear camera observation map; and (3) CharacterTrajectories, real-world handwriting dynamics with 3D position tracking. We use different signal-to-measurement noise (SMNR) ratios to experiment with different noise levels (definition of SMNR can be found in Appendix D.1).
We report NMSE (dB) for state estimation, one-step MSE and five-step MSE for transition model quality, log-likelihood (LL) and Kullback–Leibler divergence (KLD) for distribution matching, and wall-clock training time. Full definitions are in Appendix D.
We compare DSR to three resampling baselines: Hard, standard systematic resampling [16], which corresponds to estimating the ELBO gradient via in Eq. (2); Soft, relaxation of multinomial resampling with [17]; and EROT, entropy-regularized optimal-transport resampling with and 100 Sinkhorn iterations [5]. All methods produce biased estimates of the surrogate ELBO gradient. Our code is available at https://github.com/fcumlin/differentiable-systematic-resampling.git.
5.2 Linear Gaussian State Space Model
To evaluate DSR in a controlled setting where the ground truth is analytically available, we consider a 4-dimensional linear Gaussian state space model
with , , process noise at dB and observation noise set by the SMNR. The true transition matrix is a damped block-diagonal rotation blockdiag(, ) with , and the rotation matrix. Since the model is linear Gaussian, the Kalman filter gives the optimal posterior at each , which lets us compare the training-time particle distribution against a Bayesian oracle via KLD. We parameterize the transition model as with a learnable diagonal covariance, isolating the effect of resampling on parameter learning. We train with particles on 1000 trajectories of length at SMNR = 10 dB.
Table 1: Performance on the linear Gaussian SSM (, SMNR = 10 dB). KLD KF is the training-time divergence to the Kalman posterior; NMSE is evaluated with particles and hard systematic resampling; measures recovery of the true transition matrix. Results show mean std over 3 runs.
| Method | KLD KF | NMSE (dB) | |
|---|---|---|---|
| Hard | |||
| Soft | |||
| EROT | |||
| DSR |
This experiment surfaces a distinction that is difficult to see in the chaotic or real-world settings: Hard achieves the best training-time posterior (KLD 17.49 vs. 21.77 for DSR), yet DSR recovers the true transition matrix most accurately ( of 0.019 vs. 0.035). A better training-time posterior therefore does not imply a better gradient signal for parameter learning, which is consistent with the gradient-norm analysis on Lorenz-63 (Section 5.3.1), where DSR's smoother gradients lead to better downstream performance despite comparable point-wise posterior quality. Appendix H reports two further linear Gaussian studies: an evaluation-time decomposition of the marginal likelihood, and a comparison of the DSR gradient against an unbiased VSMC gradient.
5.3 Lorenz-63
We evaluate all methods on the Lorenz-63 attractor with a nonlinear camera measurement map, following [32]. The Lorenz-63 system is a 3-dimensional chaotic attractor given by the discretized dynamics
(a)

(b)
(c)

Figure 2: Lorenz-63 system with nonlinear camera measurement model. (a) Sample state trajectory of Lorenz-63. Colored points indicate three observation times that are shown in the right-most figure. (b) Camera projection geometry: the 3D state projects onto an pixel grid via a depth-dependent Gaussian point spread function (Eq. 10). The first two coordinates determine the 2D position, while the third coordinate (depth) controls the spread of the Gaussian. (c) Three sample camera observations at SMNR = 0 dB.
Table 2: Performance comparison on the Lorenz-63 system at SMNR = 10 and 0 dB. Results show mean ± std over 10 runs. Best in bold, second-best underlined.
| Method | State Estimation | Transition Model Quality | |||
|---|---|---|---|---|---|
| NMSE (dB) | MSE | MSE-5-step | LL | KLD | |
| SMNR = 10 dB | |||||
| Hard | |||||
| Soft | |||||
| EROT | |||||
| DSR | |||||
| SMNR = 0 dB | |||||
| Hard | |||||
| Soft | |||||
| EROT | |||||
| DSR | |||||
where , with and corresponding to dB process noise. The values follow [13, 12]. We use a 2D camera model with Gaussian point spread functions over an pixel grid, following [2, 32]. The grid points are uniformly distributed in the rectangle . The state is projected into the camera plane according to its first two coordinates, with the third coordinate representing depth. The measurement function is given by
where represents the intensity at pixel . The observations are given by with , where is determined by the signal-to-measurement noise ratio (SMNR). For training, we use 1000 trajectories of observations with ; we experiment with two SMNR levels: 10 dB and 0 dB. A visualization of the Lorenz-63 system under the camera mapping is shown in Fig. 2.
We evaluate both state estimation and transition model quality (Table 2). State estimation uses 10 held-out trajectories with and the systematic resampling at inference; the transition model is evaluated directly on held-out trajectories.

Figure 3: Gradient norm during training on Lorenz-63 (SMNR = 10 dB) for a representative run. The solid line shows the mean gradient norm per epoch across batches; the shaded region indicates the within-epoch standard deviation.
At 10 dB SMNR, DSR achieves the best NMSE (-29.94 dB) with low run-to-run variance, and the best MSE, LL, and KLD on the transition model, matching EROT on multi-step prediction. Hard and Soft struggle more on longer horizons.
The gap widens at 0 dB SMNR, where DSR improves NMSE by 5.7 dB over the second-best method (EROT at -12.57 dB). At low SNR, particle weights become highly concentrated and amplify noisy gradients; DSR's smoother optimization landscape (Table 3) yields more stable parameter learning. The resulting transition model is not best on every one-step metric (LL, KLD), but produces particles that filter more effectively at inference time, since one-step metrics from true states do not capture error compounding during sequential filtering.
The large MSE-5-step variance of EROT at 0 dB (57.60) raises the question of whether this reflects the method or the choice of . We therefore evaluate EROT at as well (Appendix F.5). Increasing stabilizes training (MSE-5-step std drops to 7.19) and improves NMSE to -13.47 dB, but DSR still outperforms EROT on every metric.
5.3.1 Gradient norm
To assess training stability, we study the gradient provided by each resampling method on Lorenz-63 at SMNR = 10 dB. Figure 3 shows the mean gradient norm per epoch. DSR maintains gradient norms around throughout training, whereas Hard and EROT exhibit norms in the range with substantially larger batch-to-batch fluctuations. Table 3 confirms this across runs: DSR produces gradient norms roughly lower than Hard and EROT, with within-epoch variance reduced by a similar factor. Lower gradient norms do not in themselves imply a better gradient signal, but combined with the improved performance of DSR, the pattern indicates more stable learning.
Table 3: Gradient norm statistics on Lorenz-63 (SMNR = 10 dB), averaged over runs.
| Method | Mean | Within-epoch std |
|---|---|---|
| Hard | 17399 | 17253 |
| Soft | 17013 | 8314 |
| EROT | 15771 | 6918 |
| DSR | 4504 | 2720 |
5.3.2 Scaling with particle count
To assess how each method scales with the number of particles, we train on Lorenz-63 at SMNR = 10 dB with , keeping all other hyperparameters fixed. DSR is the only method that trains stably at every tested N: its NMSE improves from -29.94 dB at N = 25 to -30.35 dB at N = 200 with run-to-run standard deviation below 0.3 dB throughout. Hard and Soft are competitive at but collapse at N = 200, with NMSE degrading to -20.42 and -21.52 dB and standard deviations above 7 and 12 dB, respectively, which is caused by training instability. EROT does not complete at N = 200: the transport matrix combined with 100


Figure 4: Handwriting dynamics from the CharacterTrajectories dataset. Sample trajectory of the letter ‘a’ captured at 200 Hz on a WACOM tablet. (a) state trajectory, with line thickness indicating pen pressure and colour gradient showing temporal progression from start (black dot) to finish. (b) noisy observations at SMNR = 10 dB.
Sinkhorn iterations per resampling step and the autodiff tape over time steps exceeds available GPU memory. Results and a discussion are reported in Appendix F.3.
5.4 Character typing
To demonstrate applicability to real-world data, we evaluate on the CharacterTrajectories dataset from the UEA multivariate time series archive [1], which consists of pen-tip motion measurements captured on a WACOM tablet at 200 Hz for 26 characters from the Latin alphabet.
The raw observations capture 3D pen-tip position. To give the learned dynamics room to encode temporal information not directly observed, we augment the state to with three 3D latent components, and observe only the first:
with set by the SMNR (10 dB or 0 dB). The remaining six dimensions are latent and learned end-to-end. The dataset contains 1,422 training and 1,436 test sequences of length 178; we use particles for training and for testing. A sample trajectory is shown in Fig. 4.
Table 4: Performance comparison of the estimated transition model on the CharacterTrajectories dataset. Results show mean std over 10 runs with different seeds.
| Method | NMSE (dB) | |
|---|---|---|
| SMNR = 10 dB | SMNR = 0 dB | |
| Hard | ||
| Soft | ||
| EROT | ||
| DSR | ||
The results can be found in Table 4. At 10 dB SMNR, all differentiable methods achieve comparable performance, with DSR obtaining marginally better NMSE (-15.21 dB) than EROT (-14.88 dB) and Soft (-14.69 dB). The non-differentiable Hard baseline (-14.65 dB) performs only marginally worse, but not significantly compared to Soft. This indicates that gradient flow through resampling aids in learning appropriate dynamics for this real-world task. However, we can observe a larger difference at 0 dB SMNR. DSR achieves -8.59 dB NMSE, which is a 0.82 dB improvement over EROT (-7.77 dB), which corresponds to a 21% reduction in MSE on average.
5.5 Training time comparison
Table 5 reports wall-clock training times on Lorenz-63, using NVIDIA T4 GPU. DSR adds only 9.6% overhead over Hard (2.55 h vs. 2.49 h), while EROT is more than 2× slower (5.96 h) due to the 100 Sinkhorn iterations per resampling step. Although
Table 5: Training time on Lorenz-63.
| Method | Total (h) | Time/epoch (s) |
|---|---|---|
| Hard | ||
| Soft | ||
| EROT | ||
| DSR |
DSR shares the transport matrix cost with EROT, it avoids the iterative solver: the soft assignment in Eq. (5) is a single pass of sigmoid evaluations, implemented as batched matrix operations, hence the nested loops in Algorithm 3 do not appear in practice. This brings DSR's per-resampling cost close to that of a discrete systematic resampling step.
The convex combination limitation. At any finite , DSR produces convex combinations of ancestor particles rather than exact copies, which may place mass between modes when the posterior is multimodal; the same property applies to EROT [5]. DSR's CDF-ordered structure partially mitigates this: Morton sorting ensures that soft assignments only mix spatially nearby particles, limiting cross-mode mixing when modes are well-separated. We quantify this on a static bimodal Gaussian in Appendix G: without Morton sorting every resampled particle lands between the modes, whereas with Morton sorting the inter-modal mass drops to and remains stable up to dimension 10, while EROT places all mass between the modes for . Nonetheless, multimodal posteriors remain challenging for particle filters in general [33, 31], and a fuller treatment of differentiable resampling under such posteriors is an interesting direction for future work.
6 Conclusion
In this paper we have introduced Differentiable Systematic Resampling (DSR), a principled and computationally efficient method for enabling gradient-based learning in particle filters. DSR is a soft relaxation of systematic resampling, where a parameter is introduced that controls the tradeoff between gradient flow and exactness of systematic resampling. Unlike existing differentiable resampling methods, DSR preserves the CDF-ordered, banded structure of systematic resampling while enabling full gradient flow through the particle filtering recursion. Our experimental results on both synthetic chaotic systems (Lorenz-63) and real-world handwriting dynamics (CharacterTrajectories) demonstrate that DSR consistently achieves higher state estimation accuracy and dynamics learning quality compared to existing methods, particularly in low signal-to-noise regimes.
7 Acknowledgments
The research is supported by funding and activities from Digital Futures Center, European Defence Fund REACT II project, Saab, Ericcson, VINNOVA and partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation. The computing resource is provided by Chalmers e-Commons at Chalmers.
References
[1] Anthony Bagnall, Hoang Anh Dau, Jason Lines, Michael Flynn, James Large, Aaron Bostrom, Paul Southam, and Eamonn Keogh. The uea multivariate time series classification archive, 2018, 2018.
[2] Itay Buchnik, Guy Revach, Damiano Steger, Ruud J. G. van Sloun, Tirza Routtenberg, and Nir Shlezinger. Latent-kalmannet: Learned kalman filtering for tracking from high-dimensional signals. Trans. Sig. Proc., 72:352–367, January 2024.
[3] Xiongjie Chen and Yunpeng Li. Normalizing flow-based differentiable particle filters. IEEE Transactions on Signal Processing, 73:493–507, 2025.
[4] Nicolas Chopin and Omiros Papaspiliopoulos. An Introduction to Sequential Monte Carlo. Springer Series in Statistics. Springer, 2020.
[5] Adrien Corenflos, James Thornton, George Deligiannidis, and Arnaud Doucet. Differentiable particle filtering via entropy-regularized optimal transport. In International Conference on Machine Learning, pages 2100–2111. PMLR, 2021.
[6] Domonkos Csuzdi, Olivér Törő, and Tamás Bécsi. Differentiable particle filtering using optimal placement resampling. In 2024 IEEE 18th International Symposium on Applied Computational Intelligence and Informatics (SACI), pages 000183–000188, 2024.
[7] Fredrik Cumlin, Anubhab Ghosh, and Saikat Chatterjee. Dns: Data-driven nonlinear smoother for complex model-free process. In ICASSP 2026 - 2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 356–360, 2026.
[8] Randal Douc and Olivier Cappé. Comparison of resampling schemes for particle filtering. In ISPA 2005. Proceedings of the 4th International Symposium on Image and Signal Processing and Analysis, pages 64–69. IEEE, 2005.
[9] Arnaud Doucet, Nando de Freitas, and Neil Gordon. An Introduction to Sequential Monte Carlo Methods, pages 3–14. Springer New York, New York, NY, 2001.
[10] Arnaud Doucet and Adam M. Johansen. A tutorial on particle filtering and smoothing: Fifteen years later. In Dan Crisan and Boris Rozovskii, editors, The Oxford handbook of nonlinear filtering, Oxford handbooks in mathematics, pages 656–705. Oxford University Press, Oxford ; N.Y., 2011.
[11] Mathieu Gerber, Nicolas Chopin, and Nick Whiteley. Negative association, ordering and convergence of resampling methods. The Annals of Statistics, 47(4):2236 – 2260, 2019.
[12] Anubhab Ghosh, Yonina C. Eldar, and Saikat Chatterjee. Particle-based data-driven nonlinear state estimation of model-free process from nonlinear measurements. In ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5, 2025.
[13] Anubhab Ghosh, Antoine Honoré, and Saikat Chatterjee. DANSE: Data-Driven Non-Linear State Estimation of Model-Free Process in Unsupervised Learning Setup. IEEE Transactions on Signal Processing, 72:1824–1838, 2024.
[14] N.J. Gordon, D.J. Salmond, and A.F.M. Smith. Novel approach to nonlinear/non-gaussian bayesian state estimation. IEE Proceedings F (Radar and Signal Processing), 140:107–113, 1993.
[15] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2017.
[16] Rico Jonschkowski, Divyam Rastogi, and Oliver Brock. Differentiable particle filters: End-to-end learning with algorithmic priors. Robotics: Science and Systems XIV, 2018.
[17] Peter Karkus, David Hsu, and Wee Sun Lee. Particle filter networks with application to visual localization. In Proceedings of The 2nd Conference on Robot Learning, pages 169–178. PMLR, 2018.
[18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
[19] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In 2nd International Conference on Learning Representations (ICLR), 2014.
[20] Genshiro Kitagawa. Monte carlo filter and smoother for non-gaussian nonlinear state space models. Journal of computational and graphical statistics, 5(1):1–25, 1996.
[21] Alina Kloss, Georg Martius, and Jeannette Bohg. How to train your differentiable filter. Autonomous Robots, 45:561–578, 2021.
[22] R. Krishnan, U. Shalit, and D. Sontag. Structured inference networks for nonlinear state space models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, 2017.
[23] Tuan Anh Le, Maximilian Igl, Tom Rainforth, Tom Jin, and Frank Wood. Auto-encoding sequential Monte Carlo. In International Conference on Learning Representations, 2018.
[24] Chris J. Maddison, Dieterich Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, and Yee Whye Teh. Filtering variational objectives. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 6576–6586, Red Hook, NY, USA, 2017. Curran Associates Inc.
[25] Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations, 2017.
[26] G. M. Morton. A computer oriented geodetic data base and a new technique in file sequencing. Technical report, International Business Machines Company, 1966.
[27] Christian Naesseth, Scott Linderman, Rajesh Ranganath, and David Blei. Variational sequential monte carlo. In International conference on artificial intelligence and statistics, pages 968–977. PMLR, 2018.
[28] Christian A. Naesseth, Fredrik Lindsten, and Thomas B. Schön. Elements of sequential monte carlo. Found. Trends Mach. Learn., 12(3):307–392, November 2019.
[29] Gustav Norén, Anubhab Ghosh, Fredrik Cumlin, and Saikat Chatterjee. Vse: Variational state estimation of complex model-free process. In ICASSP 2026 - 2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4921–4925, 2026.
[30] Simo Särkkä. Bayesian Filtering and Smoothing. Institute of Mathematical Statistics Textbooks. Cambridge University Press, 2013.
[31] Sebastian Thrun, Dieter Fox, Wolfram Burgard, and Frank Dellaert. Robust monte carlo localization for mobile robots. Artificial Intelligence, 128(1):99–141, 2001.
[32] Wessel L. van Nierop, Nir Shlezinger, and Ruud J.G. van Sloun. Deep variational sequential monte carlo for high-dimensional observations. In ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5, 2025.
[33] Vermaak, Doucet, and Perez. Maintaining multimodality through mixture tracking. In Proceedings Ninth IEEE International Conference on Computer Vision, pages 1110–1116 vol.2, 2003.
A Differentiable Systematic Sampling Algorithm
In this section, we explain the DSR algorithm. Note that MortonSort is used by default, but is typically optional when the filtering posterior is unimodal, as particle ordering has less effect on the soft assignments in this regime (see Appendix F.4). Also note that DSR in Alg. 3 can be implemented using batched matrix operations, hence avoiding explicit loops over particles.
Algorithm 2 MortonSort: Morton Space-Filling Curve Sort.
Require: Particles with , resolution bits
1: for to do
2: for to do
3: ▷ normalize to integer grid
4: end for
5: Write each in binary: with
6: ▷ interleave bits across dimensions
7: end for
8:
9: return
Algorithm 3 Differentiable Systematic Resampling (DSR). Equation marked in green is the DSR assignment step, and equation marked in red is the SR assignment step.
Require: Weights , particles , temperature , resolution
1: ; reorder accordingly
2: Compute CDF: , for
3: Draw
4: for to do
5:
6: for to do
7: ▷ systematic resampling
8:
9: end for
10:
11:
12: end for
13: return
B Proofs of propositions
Proof of Proposition 4.1. We prove both parts of the proposition.
Part 1: Convergence of the soft transport plan.
Fix a column index and define the hard systematic resampling index
By construction, we have
Since we can view as a realization from a continuous distribution, the event occurs with probability zero and is ignored in the almost sure sense.
Recall that
where .
We analyze the limit as .
Case 1: . Since and almost surely, we have
Therefore,
Case 2: . Then and , implying both arguments of tend to as . Hence,
Case 3: . Then , so both arguments tend to , yielding
Combining all cases, we obtain
Since almost surely, it follows that
Part 2: Convergence of the resampled particles.
Using the result above,
where the exchange of limit and summation is justified since the sum is finite and for all . This completes the proof.
Proof of Proposition 4.2. Recall that
Let
Since , we have . Thus
Taking norms and using the triangle inequality yields
where is the diameter, , and we have used the obvious equality .
It therefore suffices to bound .
Lower bound on the dominant term. Using the inequalities for and for , we obtain
Thus, for all ,
Upper bound on the remaining terms. Fix . If , then , so both arguments of the sigmoids are positive and
Using for , we obtain
If , then , so both arguments are negative and
where we used for .
In both cases, we obtain the uniform bound
Hence,
As , it follows that . Combining the bounds yields
Finally,
which establishes exponential convergence as .
C Architecture and training configuration
C.1 Network Architectures
All experiments use multilayer perceptrons (MLPs) with ReLU activations to parameterize the transition and proposal models. Both models predict Gaussian distributions with diagonal covariance matrices.
Transition Model. The transition model predicts and consists of:
• Shared trunk: Two fully-connected layers with hidden dimension h and ReLU activations
• Mean head: Linear layer mapping from hidden dimension to state dimension
• Covariance head: Linear layer mapping from hidden dimension to , followed by softplus activation to ensure positive diagonal entries
The model outputs where is a diagonal covariance matrix.
Proposal Model. For simplicity, the proposal model has the same architecture as the transition model, but takes concatenated inputs .
C.2 Hyperparameters
Linear Gaussian SSM. The transition model is parameterized as a learnable matrix with a learnable diagonal covariance, and no proposal model is used (i.e., the bootstrap proposal is used). The true transition matrix is with and , where is the rotation matrix. The process noise covariance is and observations are full-state with . Training uses the Adam optimizer with learning rate , batch size 64, weight decay 0, and gradient clipping at norm 5.0. We train with particles for 500 epochs on 1000 trajectories of length at SMNR = 10 dB. For DSR, we set . We clip the log-likelihood values below by -50 and -100 for 10 dB and 0 dB SMNR respectively. This avoids extreme instability during training; none of the methods converge without this.
Lorenz-63. We use for both models. The transition model has input dimension 3 (state dimension), while the proposal model has input dimension (state plus observation). Training uses the Adam optimizer with learning rate , batch size 64, weight decay 0, and gradient clipping at norm 5.0. We train with particles for 500 epochs on 1000 trajectories of length . For DSR, we set across all experiments, and use 20 bits for the Morton curves.
Character Typing. We use a hidden dimension of . The augmented state dimension is (three 3D components), with direct observations of the first 3 dimensions (). Training uses 25 particles, learning rate , and batch size 64 on 1400 training sequences of length . All other hyperparameters match Lorenz-63.
Evaluation. We evaluate the state estimation performance using the same training setup except for the resampling method, which uses hard systematic resampling (as this resampling method is typically used in practice). We use N = 1000 particles.
D SMNR and Evaluation Measures
D.1 SMNR
The signal-to-measurement noise ratio is given by
where is the noiseless observation, is the observation noise variance per dimension, is the observation dimension, and is the number of trajectories. A low SMNR corresponds to high measurement noise.
D.2 State Estimation
Normalized Mean Squared Error (NMSE). We evaluate state estimation accuracy using NMSE in dB:
where is the true state, is the estimated state (the posterior mean of the particle filter), and is the trajectory length. Lower values indicate better performance.
D.3 Transition Model Quality
One-step Mean Squared Error (MSE). Measures the quality of the learned dynamics by predicting one step ahead from true states:
Lower values indicate better transition model quality.
Multi-step Mean Squared Error (MSE-5-step). Evaluates prediction over a longer horizon by rolling out the learned dynamics for 5 steps:
where denotes 5 iterative applications of the learned dynamics. For each use of the transition model, the mean is used as input to the subsequent call of the model.
Log-Likelihood (LL). Evaluates the probabilistic quality of the learned transition model:
where is the learned transition distribution, where . Higher values indicate better probabilistic modeling.
KL Divergence (KLD). Measures the distributional mismatch between the learned dynamics and true dynamics:
Lower values indicate a closer match to the true transition distribution.
E Empirical Analysis of the DSR Relaxation
The theoretical results in Section 4 establish that DSR converges to systematic resampling as with exponential rates. In this section, we complement the theory with an empirical study of the DSR transport plan and the resampled particles. We use a sequential importance resampling (SIR) particle filter with systematic resampling [10] on the Lorenz-63 system with oracle (true) dynamics, at 10 dB SMNR with the Gaussian point spread observation map. This isolates the resampling relaxation from the dynamics learning, so we can study DSR as an approximation to systematic resampling directly. We vary and , and report results averaged over 10 sequences of length .
E.1 Transport Plan Visualization
Figure 5 shows the DSR transportation matrices for varying , alongside hard systematic resampling and EROT ( ), at a representative time step with particles. At , the DSR transport plan closely resembles the sparse, block-diagonal structure of hard systematic

Figure 5: Transportation maps for hard systematic resampling and DSR at varying temperatures , alongside EROT ( ), for a SIR particle filter of the Lorenz-63 system with particles.
resampling, with mass concentrated on a single ancestor per resampled particle. As grows, the plan becomes more diffuse and spreads mass across neighbouring ancestors. At , the plan becomes visibly banded: a high-weight ancestor contributes to many resampled particles, so DSR becomes less restrictive about spatial locality. This brings DSR qualitatively closer to EROT. A main difference is that DSR exhibits lower column-wise spread, which suggests each resampled particle is drawn from a larger set of ancestors. A lower column-wise spread implies that the resampling linear combination has more even weights, which in turn becomes less restrictive to spatial locality. On the other hand, EROT's transport plan bears little resemblance to systematic resampling overall, whereas DSR retains the CDF-ordered banded structure even at high .
E.2 Effective Number of Ancestors
To quantify the sharpness of the transport plan, we compute the effective number of ancestors for each resampled particle j:
averaged over particles and time steps. For hard systematic resampling, , as each resampled particle copies exactly one ancestor.
Figure 6a shows as a function of for different particle counts. At low temperatures, the DSR transport plan is sharply concentrated: at with , close to the hard SR limit. As grows, grows monotonically, and for fixed it scales with . This is consistent with the -dependent factor in Proposition 4.2: as grows, the CDF intervals become narrower, so more ancestors fall within the sigmoid bandwidth and contribute to each resampled particle.
For comparison, EROT ( ) yields of 9.83, 18.36, 36.41, and 71.77 for . At the operating temperature used in all VSMC experiments, DSR is substantially sparser than EROT across all particle counts (e.g., 6.54 vs. 9.83 for ; 23.11 vs. 36.41 for ).
E.3 Correlation Between DSR and Systematic Resampling
The DSR resampled particles are continuous mixtures of ancestors rather than discrete copies. To measure whether DSR picks the same ancestors as hard systematic resampling — that is, whether the two methods assign each column to the same region of the CDF — we compute the Pearson correlation between the DSR and hard SR particle sets, component-wise and averaged over dimensions, particles, and time steps. Note that a high correlation indicates agreement in which ancestor is selected per column; it does not imply that the resampled particles are numerically close, since a DSR particle can be a convex combination of several ancestors around the hard SR choice and still correlate strongly. The per-particle L2 distance, reported in the next subsection, measures that numerical closeness directly.
The correlation stays above 0.95 in every configuration. At , it reaches 0.965 for N = 25 and 0.961 for N = 200. Even at , the correlation stays above 0.956. So while the transport

(a) Effective number of ancestors as a function of temperature for varying particle counts N. The dashed line indicates hard systematic resampling ( ).

(b) Per-particle L2 distance between DSR and hard SR resampled particles. Solid lines use Morton sorting; dashed lines use random particle ordering.
Figure 6: Empirical analysis of the DSR relaxation on the Lorenz-63 system with oracle dynamics at SMNR = 10 dB. Error bars show standard deviation over 10 sequences.
plan becomes more diffuse at higher , DSR continues to select ancestors from the same CDF regions as hard systematic resampling, because the soft assignments still respect the CDF ordering.
E.4 L2 Distance and Effect of Morton Sorting
We measure the per-particle L2 distance between DSR and hard SR resampled particles:
where is the resampled particle by systematic resampling. This directly relates to the bound in Proposition 4.2. Further, to assess the role of particle ordering, we compare Morton space-filling curve sorting (used in all VSMC experiments) against random particle ordering.
Figure 6b shows the L2 distance as a function of for both orderings. As suggested in Proposition 4.2, the distance grows with under Morton sorting: for , it increases from 0.10 at to 0.51 at . Morton sorting consistently reduces the L2 distance relative to random ordering, and the gap is largest at low and high . At with , Morton sorting reduces the distance from 0.38 to 0.25, a 35% reduction. The reason is that at low , each resampled particle draws mass primarily from its CDF neighbours, and Morton sorting ensures those neighbours are also spatially close, keeping the mixture near the hard ancestor. At higher temperatures ( ), the plan is diffuse enough that ordering matters less.
E.5 Bias and Variance of DSR Estimates
Here we study the bias and variance of DSR. For resampling schemes, a typical study is the study of how ( is an arbitrary function) changes after resampling, in particular, studying how behaves after resampling. To quantify the effect, we measure the bias, variance, and MSE of a test-function estimate under each scheme. Fixing a particle set and weights, over 20000 seeds we compute with equal weights after resampling, and compare against the weighted estimate . We use particles with and the likelihood, and two test functions, and (elementwise). Hard systematic and multinomial resampling are unbiased, so their reported bias is Monte-Carlo error. Results are in Table 6.
For the linear function , DSR trades variance for bias at every : the variance is two to five orders of magnitude below hard systematic resampling, since a convex combination is an average,
Table 6: Bias, variance, and MSE of resampling estimates against the weighted estimate , over 20000 seeds with . Hard SR and multinomial are unbiased (their bias is Monte-Carlo error).
| Method | ||||||
|---|---|---|---|---|---|---|
| bias | var | MSE | bias | var | MSE | |
| Hard SR | ||||||
| Multinomial | ||||||
| DSR () | ||||||
| DSR () | ||||||
| DSR () | ||||||
| DSR () | ||||||
| DSR () | ||||||
and DSR attains lower MSE at every . Here the bias is non-monotone in , because both limits are favourable for a linear function: recovers systematic resampling, while large drives every output toward the weighted mean, which estimates a linear function exactly (here , so the contraction at is favourable and yields the lowest MSE). This should not be read as being preferable in general, since the same contraction degrades nonlinear functions: for the bias increases monotonically with . The variance reduction is structural, reflecting the CDF-ordered, banded transport of DSR (see also Section 3.1 on expected replication counts).
E.6 Discussion
The empirical analysis supports the theoretical predictions of Section 4. The DSR transport plan converges to the sparse structure of systematic resampling as , with at low temperatures. At the operating temperature , DSR is substantially sparser than EROT while staying highly correlated () with hard systematic resampling. Morton sorting reduces the approximation error, particularly at low and high , confirming that locality-preserving orderings complement the DSR relaxation. Together, these empirical results support that DSR soft relaxation of systematic resampling and highlights differences at different values of and .
F Ablation Studies
F.1 Dependence on
We study the effect of the temperature parameter on filtering performance in the Lorenz-63 dataset at SMNR = 10 dB. Table 7 reports NMSE results for different temperature values.
Table 7: Ablation study of the temperature parameter on Lorenz-63 (SMNR = 10 dB).
| Temperature | NMSE (dB) |
|---|---|
| 0.01 | |
| 0.05 | |
| 0.10 | |
| 0.50 | |
| 1.00 |
At , NMSE is notably worse ( dB) than at larger temperatures. This is consistent with the scaling of the sigmoid derivative,
which causes gradient magnitudes to explode during backpropagation at small , leading to unstable optimization. As grows, gradient magnitudes become more moderate and training stabilizes. Performance plateaus for , with NMSE varying by less than across this range and consistently low run-to-run variance. Based on these results, we fix for all experiments;
this is a conservative choice within the stable range that keeps the soft transport plan close to hard systematic resampling (see Appendix E).
Beyond NMSE, the temperature governs a bias–variance tradeoff in the gradient itself. Table 8 reports, for the same setup, the gradient-norm statistics and the per-particle distance of the DSR transport to hard systematic resampling (Appendix E) as a function of . The two quantities move in opposite directions: as shrinks, the approximation error decreases () while the median gradient norm and within-epoch standard deviation increase. The ratio of median within-epoch std to median gradient norm stays close to for , so gradients grow but remain comparably well behaved; at the ratio rises to , indicating larger variance relative to norm and less stable training, consistent with the degraded NMSE at . We read as a change of regime rather than of scale.
Table 8: Gradient behaviour and approximation error as a function of on Lorenz-63 (SMNR = 10 dB). The column is the per-particle distance of the DSR transport to hard systematic resampling from the same particle set and offset (Appendix E).
| NMSE (dB) | Gradient norm | Within-epoch std | to hard SR | |||
|---|---|---|---|---|---|---|
| Median | Mean | Median | Mean | |||
| 0.01 | 14842 | 8163 | ||||
| 0.05 | 6457 | 7228 | 3009 | 3676 | ||
| 0.10 | 4174 | 4504 | 1885 | 2634 | ||
| 0.50 | 2546 | 2951 | 1155 | 1985 | ||
| 1.00 | 2306 | 3041 | 1027 | 3453 | ||
F.2 Annealing during training
The temperature is fixed at in all main experiments. Here we test annealing over the course of training: starting at a larger for smoother gradients and decreasing it toward a sharper, more faithful assignment. We anneal linearly from 1.0 to 0.1 over 300 epochs (training is done for 500 epochs), and evaluate on Lorenz-63 at SMNR = 10 dB under the camera measurement map, with all other parameters at default. Table 9 compares the annealed schedule against the fixed setting.
Table 9: Fixed versus annealed on Lorenz-63 (SMNR = 10 dB). Results show mean std over 10 runs.
| Setting | State Est. | Transition Model Quality | |||
|---|---|---|---|---|---|
| NMSE (dB) | MSE | MSE-5-step | LL | KLD | |
| Fixed () | |||||
| Annealed | |||||
Annealing gives a small but consistent improvement over the fixed setting across all metrics, and notably reduces run-to-run variance (e.g. NMSE std 0.10 versus 0.28 for fixed ). This indicates that annealing can benefit learning; we leave a systematic study of annealing schedules for future work.
F.3 Dependence on
We study the effect of the number of particles on filtering and dynamics learning performance for all resampling methods on the Lorenz-63 system at SMNR = 10 dB using the Gaussian point spread observation map. All other hyperparameters are kept fixed. Results are shown in Table 10.
DSR is the only method that scales gracefully across all tested particle counts. Its NMSE improves from dB at to around dB from onwards and plateaus there, with consistently low variance ( dB std) across runs. The transition model metrics show the same trend: MSE, LL, and KLD all improve with and reach their best values at (except MSE-5-step, which generally has a high variance).
By comparison, the other methods either fail to train stably or run out of memory. Hard and Soft are competitive at , but at their performance collapses, with NMSE degrading to
Table 10: Effect of particle count on resampling methods for Lorenz-63 at SMNR = 10 dB. Results show mean std over 10 runs. OOM indicates that training exceeded available GPU memory.
| N | Method | State Est. | Transition Model Quality | |||
|---|---|---|---|---|---|---|
| NMSE (dB) | MSE | MSE-5-step | LL | KLD | ||
| 25 | Hard | |||||
| Soft | ||||||
| EROT | ||||||
| DSR | ||||||
| 50 | Hard | |||||
| Soft | ||||||
| EROT | ||||||
| DSR | ||||||
| 100 | Hard | |||||
| Soft | ||||||
| EROT | ||||||
| DSR | ||||||
| 200 | Hard | |||||
| Soft | ||||||
| EROT | OOM | OOM | OOM | OOM | OOM | |
| DSR | ||||||
and dB and standard deviations above 7 and 12 dB across runs. These large variances are the result of training instability; there is a large variance across runs; for example, one run for Soft achieved an NMSE of 0.23 dB. A likely cause is that, at large , the variance of the biased estimator (used by Hard) grows because more ancestor decisions are dropped from the gradient graph, and Soft's importance-weight correction becomes numerically less stable as the uniform component of its sampling distribution shrinks. EROT does not complete at because the transport matrix, combined with 100 Sinkhorn iterations per resampling step and the autodiff tape over time steps, exceeds the available GPU memory.
These results illustrate two distinct scaling properties of DSR. First, it provides a stable gradient signal across particle counts, whereas Hard and Soft degrade. Second, it avoids the memory overhead of iterative solvers, whereas EROT becomes infeasible. The relaxation parameter of DSR is kept fixed at 0.1 across all .
F.4 Dependence on spatial sorting of CDF
We now study the effect of Morton sorting on VSMC performance. As discussed, DSR operates on the empirical CDF, and the particle ordering determines which ancestors interact through the soft transport plan. Morton space-filling curve sorting places CDF neighbors close in state space, producing a transport plan that more closely approximates hard systematic resampling (Appendix E). The alternative is the default (random) particle ordering, which allows soft assignments to mix spatially distant particles. We compare the two orderings with DSR on Lorenz-63 under the Gaussian point spread observation map (10).
The results can be seen in Table 11. At 10 dB, the two orderings are essentially indistinguishable, with overlapping error bars on every metric. At 0 dB, the picture is mixed: Morton sorting gives a better transition model (MSE-5-step of 3.70 vs. 6.55), while random ordering gives marginally better state estimation (-18.43 vs. -18.27 dB NMSE), though this is within one standard deviation. A plausible reading is that the two orderings trade off along the dual role of the soft transport plan. Morton sorting produces a closer approximation to hard systematic resampling, preserving the spatial coherence that helps dynamics learning when weights become concentrated. Random ordering mixes more distant particles, which softens the relaxation further; this extra diversity may help state estimation through broader particle coverage, but at the cost of a less structured gradient signal for the transition model. Overall, DSR is relatively robust to the choice of ordering, with Morton sorting offering a modest advantage for transition model learning at low SNR. Studying the interaction between particle
Table 11: Effect of particle ordering on DSR performance for Lorenz-63 at SMNR = 10 and 0 dB. Results show mean std over 10 runs.
| Ordering | State Est. | Transition Model Quality | |||
|---|---|---|---|---|---|
| NMSE (dB) | MSE | MSE-5-step | LL | KLD | |
| SMNR = 10 dB | |||||
| Morton | |||||
| Random | |||||
| SMNR = 0 dB | |||||
| Morton | |||||
| Random | |||||
ordering and posterior geometry, for instance, under multimodal or heavy-tailed posteriors, is an interesting direction for future work.
F.5 EROT regularization sensitivity at low SNR
Table 12 reports EROT performance on Lorenz-63 at 0 dB SMNR for , alongside DSR for reference. The default , as used in [5, 32], exhibits severe training instability at this noise level, with MSE-5-step standard deviation exceeding the mean. Increasing to 1.0 stabilizes training and improves mean performance across all metrics, but DSR still outperforms EROT on every measure. Training time is essentially unchanged between the two settings, as EROT's cost is dominated by the fixed 100 Sinkhorn iterations; albeit a small improvement, which could be explained by faster convergence of the Sinkhorn algorithm.
Table 12: EROT regularization sensitivity on Lorenz-63 at SMNR = 0 dB. Results show mean std over 10 runs. DSR with is included for reference. Best in bold.
| Method | State Est. NMSE (dB) | Transition Model Quality | Time/epoch (s) | |||
|---|---|---|---|---|---|---|
| MSE | MSE-5-step | LL | KLD | |||
| EROT () | ||||||
| EROT () | ||||||
| DSR () | ||||||
G Multimodal Posteriors and Inter-modal Mass
At finite , DSR forms convex combinations of ancestors, which can place mass between well-separated modes of a multimodal posterior. To study this phenomenon, we study a static two-component Gaussian (i.e., a mixture of two Gaussians). We draw particles from this two-component Gaussian, perform resampling, and study the intermodal mass. The two-component Gaussian is given by
where is the mode separation, , is the dimension, and is a scalar for the covariance. The modes are separated along coordinate 0 only, while coordinates carry isotropic noise and no mode information. This single-coordinate separation is deliberate: a Morton code interleaves bits across coordinates, so as grows the informative bits of coordinate 0 are diluted among uninformative ones, which we interpret as the loss of locality expected of space-filling curves in higher dimensions. We use , , (a separation of within-mode standard deviations), and measure the resampled mass in the inter-modal region . Particles are randomly permuted before resampling, and we use the manuscript defaults (; ; with 100 Sinkhorn iterations). We report the inter-modal mass as mean std over simulations.
Any scheme that copies ancestors places zero mass in the region by construction, since no particle lies there; this holds for hard systematic and soft multinomial resampling. Any inter-modal mass under DSR or EROT is therefore attributable to the relaxation. Table 13 reports the results.
Table 13: Inter-modal mass (resampled mass in ) for a static two-component Gaussian as a function of dimension . Lower is better; 0 means no mass placed between the modes. Results show mean std over simulations.
| Method | |||||
|---|---|---|---|---|---|
| Hard SR | |||||
| Soft | |||||
| EROT | |||||
| DSR (Morton) | |||||
| DSR (w/o Morton) |
The results support the use of Morton sorting in this setting. Without Morton sorting, every resampled particle lands between the modes; with Morton sorting the inter-modal mass drops to , and it does not degrade over this range of . EROT, by contrast, is sensitive to dimension: for it places all resampled mass between the modes. Morton sorting thus substantially reduces inter-modal mass relative to no sorting for dimensions up to 10. Multimodal posteriors remain challenging for particle filters in general [33, 31], and investigating differentiable resampling under such posteriors is an interesting direction for future work.
H Additional Linear Gaussian Experiments
The linear Gaussian SSM of Section 5, as the state transition model is known, admits optimal filtering recursion via the Kalman filter, which lets us approach two questions not accessible in the chaotic or real-world settings: how the marginal likelihood at evaluation time decomposes across methods, and how the DSR gradient compares to an unbiased VSMC gradient.
H.1 Marginal likelihood at evaluation time
At evaluation time all methods use hard systematic resampling, so is directly comparable across methods, and on the linear Gaussian model the exact log-evidence is available from the Kalman filter. This yields the decomposition
where the model error measures how close the learned transition model is to the data-generating model, and the Jensen's gap measures how well an -particle filter approximates the evidence of that learned model. Using the trained models from Section 5 on the linear Gaussian SSM with default parameters (, SMNR = 10 dB, mean std over model seeds on 10 shared sequences), we obtain Table 14.
Table 14: Evaluation-time evidence decomposition on the linear Gaussian SSM (, SMNR = 10 dB). The true log-evidence is . Results show mean std over model seeds.
| Method | model error | Jensen's gap | ||
|---|---|---|---|---|
| DSR | ||||
| EROT | ||||
| Hard | ||||
| Soft |
All four methods are within 0.7 of the true evidence. Hard SR attains the smallest model error (0.428 versus 0.575 for DSR, a gap outside the spread over seeds), but the methods separate on the Jensen's gap, where DSR attains 2.196 against 3.352 for hard SR and with roughly a third of the spread ( versus ). The two columns measure different things: since the optimised quantity is
rather than , these results indicate that DSR learns parameters whose evidence the finite-particle filter approximates more accurately.
H.2 Comparison against unbiased VSMC gradients
We compare the DSR gradient against an unbiased VSMC gradient. This is to study the gradient bias induced by DSR. We follow the linear Gaussian experiment of [27] adapted to our setting. We use the linear Gaussian SSM introduced in Sec. 5.2, using SMNR = 10 dB with , , and additionally a two-dimensional version (a single rotation block) at the same and . For each we generate one observation sequence that every run below targets. Gradients are taken with respect to all entries of and the diagonal entries of , evaluated at the data-generating parameters. The unbiased gradient is estimated by averaging over 1000 bootstrap noise draws and exhaustively summing over ancestor vectors (the vectors are the systematic combs induced by a single uniform draw). Let denote an estimate obtained by averaging independent SMC runs, matching the number of observations consumed in our training configuration (Appendix C), each run random through its bootstrap noise and resampling offsets. We report
We estimate from the same 1000 bootstrap draws with 500 offset sequences ( runs), and the variance separately from 200 independent realisations of at . Results are in Table 15.
Table 15: Gradient bias, variance, and MSE against the unbiased VSMC gradient on the linear Gaussian SSM. Hard SR drops the score-function term. Results show mean standard errors.
| Method | Bias | Variance | MSE |
|---|---|---|---|
| (a) , , ; | |||
| Hard SR | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
| (b) , , ; | |||
| Hard SR | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
| DSR () | |||
DSR has a smaller gradient bias than hard SR (which drops ) at every temperature and in both settings, and the bias decreases as decreases: at the bias drops from 2.324 to 1.256 () and from 3.627 to 2.869 () with essentially unchanged variance. Decreasing further keeps reducing the bias but increases the variance sharply. At the operating temperature , DSR is competitive on MSE with hard SR and the other values, attaining the lowest MSE at and the second lowest at . This experiment makes the bias–variance tradeoff explicit and motivates the annealing strategy studied in Appendix F.2.