Learning state and proposal dynamics in state-space models using differentiable particle filters and neural networks

Benjamin Cox, Santiago Segarra, Víctor Elvira · DOI

TL;DR

This paper introduces StateMixNN, a novel method that uses neural networks to learn both the transition and proposal dynamics of particle filters for state-space models. By learning these crucial components, StateMixNN can infer hidden states from observations alone, significantly improving performance, especially in complex, non-linear scenarios, compared to existing methods.

What Problem Does This Paper Address?

State-space models (SSMs) are powerful tools for analyzing sequential data from dynamic systems. However, for non-linear and non-Gaussian SSMs, traditional methods like the Kalman filter fail. Particle filters (PFs) offer a flexible alternative by approximating the state distribution with a set of samples. The performance of PFs heavily relies on two key components: the transition kernel (how the state evolves) and the proposal distribution (how new samples are generated). When these components are unknown or complex, estimating the hidden state accurately becomes challenging. Existing methods often require prior knowledge of the transition kernel or struggle to learn both components effectively, especially when only observations are available. This paper addresses the challenge of learning both the transition and proposal distributions simultaneously from observed data, enabling robust state inference in complex, unknown SSMs.

Methods

The core of StateMixNN lies in using neural networks to learn the transition kernel and the proposal distribution. Both are modeled as multivariate Gaussian mixtures.

  • Neural Network Architecture: Two separate neural networks are employed: one for the transition kernel (dependent only on the previous state) and one for the proposal distribution (dependent on the previous state and the current observation). These networks output the parameters (mean and diagonal covariance) for each component of the Gaussian mixture.
  • Gaussian Mixtures: Using Gaussian mixtures allows for flexible approximation of complex distributions. The paper uses equal mixture weights and diagonal covariances for computational efficiency and to simplify the learning process.
  • Differentiable Particle Filters (DPFs): To enable gradient-based learning of the neural networks, the authors leverage a differentiable particle filter, specifically the "stop-gradient DPF" approach. This allows gradients to propagate through the particle filter's resampling step, making the entire system trainable end-to-end.
  • Training Objective: StateMixNN is trained by maximizing the log-likelihood of the observed data. This is a significant advantage as it only requires the sequence of observations, not the true hidden states, making it suitable for real-world scenarios where ground truth states are unavailable.
  • Alternating Conditional Updates: The learning process involves an alternating scheme where the parameters for the transition network are optimized while conditioning on the proposal network's parameters, and vice-versa. This stabilizes the learning process.

Datasets

The paper does not introduce new datasets. Instead, it uses synthetic data generated from two well-known dynamical systems for evaluation:

  • Lorenz 96 model: A chaotic oscillator used to test the method on a non-linear, chaotic system.
  • Kuramoto oscillator: A system of phase-coupled oscillators used to test the method on a non-linear, non-polynomial system.

Key Insights and Ideas

  • Learning Both Transition and Proposal is Crucial: The paper demonstrates that learning both the state transition dynamics and the optimal proposal distribution simultaneously leads to superior performance compared to methods that only learn one or rely on fixed, less optimal proposals.
  • Observation-Only Learning is Powerful: By training on the log-likelihood of observations, StateMixNN can infer hidden states without needing ground truth state trajectories, a significant practical advantage for real-world applications.
  • Gaussian Mixtures Offer Flexibility and Interpretability: The use of Gaussian mixtures provides a good balance between the flexibility to approximate complex distributions and the interpretability and computational efficiency of Gaussian models.
  • Differentiable Particle Filters Unlock End-to-End Learning: The integration of DPFs is key to enabling gradient-based optimization of neural networks that learn the PF components, bridging the gap between deep learning and particle filtering.
  • Alternating Updates Stabilize Learning: The alternating conditional update strategy helps to manage the interdependence between the transition and proposal distributions, leading to more stable and effective training.

Key Results

StateMixNN consistently outperforms baseline methods like the Bootstrap Particle Filter (BPF) and the Improved Auxiliary Particle Filter (IAPF) across various scenarios.

  • Improved State Estimation: StateMixNN achieves significantly lower Mean Squared Error (MSE) compared to the BPF and IAPF, especially in highly non-linear and chaotic systems. For instance, it achieves at most 0.9 times the MSE of the BPF and typically less than 0.75 times the MSE.
  • Robustness to System Complexity: The method shows strong performance across different numbers of particles, series lengths, state noise magnitudes, and system dimensions.
  • Comparison to Prior Work: StateMixNN performs comparably to PropMixNN (which learns only the proposal distribution but requires a known transition model), but StateMixNN's ability to learn both components without prior knowledge of the transition model makes it more broadly applicable.
  • Effect of Mixture Components: Using more components in the Gaussian mixture generally leads to better performance, highlighting the benefit of richer distribution approximations.

Limitations and Future Work

  • Computational Cost: While StateMixNN offers significant advantages, the training process involves running the particle filter multiple times per update step, which can be computationally intensive.
  • Mixture Weight Learning: The paper restricts mixture weights to be uniform for simplicity and training stability. Learning these weights is noted as a difficult task that could be addressed with more complex training schemes or additional networks.
  • Network Architecture: The current implementation uses simple multilayer perceptrons. The authors suggest that extending to other network architectures like graph neural networks or recurrent neural networks could further enhance performance for specific types of systems.
  • Generalization to Other DPFs: While the stop-gradient DPF is used, exploring other DPF techniques could be a direction for future work.

Summary updated

BibTeX
@misc{cox2024learning,
  author = {Benjamin Cox and Santiago Segarra and Víctor Elvira},
  title = {{Learning state and proposal dynamics in state-space models using differentiable particle filters and neural networks}},
  year = {2024},
  eprint = {2411.15638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15638},
}
Figure