Learning differentiable particle filter on the fly

Jiaxi Li, Xiongjie Chen · DOI

TL;DR

This paper introduces a novel online learning framework for differentiable particle filters (DPFs) that allows model parameters to adapt in real-time as new data arrives, even without ground truth labels. This addresses the limitations of traditional offline training, making DPFs more robust to distribution shifts and enabling faster deployment in dynamic environments.

What Problem Does This Paper Address?

Sequential Bayesian filtering, particularly using particle filters, is crucial for tracking hidden states in dynamic systems. Differentiable particle filters (DPFs) leverage neural networks to learn components of these filters, offering flexibility. However, existing DPFs are typically trained offline using supervised methods. This approach has several drawbacks:

  • Deployment Delay: Models need to be retrained for new scenarios.
  • Distribution Shift Vulnerability: Performance degrades significantly when test-time data distributions differ from training data.
  • Ground Truth Requirement: Offline training often requires access to ground truth latent states, which are not always available or are expensive to obtain, especially in real-world applications.

This paper tackles the challenge of enabling DPFs to learn and adapt online without relying on ground truth data, making them more practical for real-world, dynamic scenarios.

Methods

The core contribution is an Online Learning Differentiable Particle Filter (OL-DPF) framework. Key aspects include:

  • Unsupervised Online Learning Objective: Instead of supervised losses, OL-DPFs use an unsupervised loss derived from the evidence lower bound (ELBO) of the marginal log-likelihood. This allows parameter updates using only observed data.
  • Sliding Window Approach: To make online learning computationally feasible, the framework processes data in sliding windows of length L. Model parameters ($\theta$) and proposal parameters ($\phi$) are updated every L time steps.
  • Leveraging Normalizing Flows: The DPFs themselves are built using normalising flows for the dynamic, proposal, and measurement models. This provides a flexible and expressive way to represent these components, as described in prior work [13, 18].
  • Parameter Updates: The OL-DPF simultaneously updates estimates of the latent posterior distribution and the model parameters ($\theta_s, \phi_s$) within each sliding window by maximizing the approximated ELBO using gradient descent.
  • Algorithm 2: A detailed pseudocode outlines the online learning process, including initialization, pre-training, sliding window updates, and particle resampling.

Datasets

The paper evaluates the proposed OL-DPFs on two simulated datasets:

  • Multivariate Linear Gaussian State-Space Model: This benchmark, adapted from existing literature [9, 24], involves tracking a hidden state in a linear system with Gaussian noise. The authors specifically create distribution shift by using different parameter values for pre-training and online learning stages.
  • Non-linear Object Tracking: This experiment uses a simulated object tracking scenario with a Markovian switching dynamic model [26]. Distribution shift is induced by altering the maneuvering acceleration parameter between pre-training and online learning.

No new datasets were introduced; existing simulated environments were adapted to specifically test the online learning and distribution shift capabilities.

Key Insights and Ideas

  • Online Adaptation is Crucial for Distribution Shift: The experiments clearly demonstrate that OL-DPFs can adapt to new data distributions much faster and more effectively than pre-trained DPFs that remain fixed during the online stage.
  • Unsupervised Learning Enables Real-World Applicability: By removing the need for ground truth labels during online inference, the framework significantly broadens the applicability of DPFs to scenarios where such labels are scarce or unavailable.
  • Sliding Window Trade-off: The sliding window approach is a practical necessity for computational tractability in online settings, balancing the need for recent data with the cost of processing long histories.
  • Normalizing Flows as Flexible Building Blocks: The use of normalizing flows continues to be a powerful tool for constructing flexible and differentiable components within particle filters, enabling end-to-end learning.

Key Results

  • Reduced RMSE: In both simulated experiments, OL-DPFs achieved significantly lower Root Mean Square Errors (RMSEs) compared to the pre-trained DPF baseline during the online learning stage.
  • Faster Convergence: OL-DPFs converged to stable RMSE values much faster than the pre-trained DPFs could adapt (or rather, failed to adapt) to distribution shifts. For instance, convergence was observed within 1,000-3,000 time steps in the Gaussian model and around 300 time steps in the non-linear tracking task.
  • Lower Variance: OL-DPFs also exhibited lower standard deviations in their RMSEs, indicating more consistent performance.
  • Near-Oracle Performance: While not matching the "oracle" DPF (trained with ground truth in the test stage), OL-DPFs performed considerably better than the fixed, pre-trained DPF, demonstrating the value of online adaptation. For example, in the Gaussian model (dx=2), OL-DPF RMSE was 1.83 ± 1.47, compared to 5.30 ± 3.51 for pre-trained DPF, and 1.00 ± 1.23 for the oracle.

Limitations and Future Work

  • Computational Cost: While the sliding window approach improves tractability, online learning still incurs computational overhead compared to static models.
  • Approximation in Loss Function: The paper uses an approximation for the conditional log-likelihood within the ELBO loss function (Eq. 23). The authors acknowledge this is a "coarse estimation" due to time-varying parameters and suggest further research into more theoretically justified and empirically effective loss functions.
  • Theoretical Guarantees: The paper focuses on empirical validation. Further theoretical analysis of the convergence properties and guarantees of the unsupervised online learning objective would be valuable.
  • More Realistic Simulations and Real-World Applications: The authors suggest exploring more complex, realistic simulation setups and applying the framework to real-world problems to further validate its effectiveness.
  • Hyperparameter Tuning: The performance of OL-DPFs will likely depend on hyperparameters like the sliding window length (L) and learning rate ($\alpha$), which require careful tuning.

Summary updated

BibTeX
@inproceedings{li2023learning,
  author = {Jiaxi Li and Xiongjie Chen},
  title = {{Learning differentiable particle filter on the fly}},
  booktitle = {Asilomar},
  year = {2023},
  doi = {10.1109/ieeeconf59524.2023.10476913},
}

Loading related content...

Figure