TrackDiffuser: Nearly Model-Free Bayesian Filtering with Diffusion Model

Yangguang He, Wenhao Li, Minzhe Li, Juan Zhang, Xiangfeng Wang, Bo JinarXiv 2025

Abstract

State estimation remains a fundamental challenge across numerous domains, from autonomous driving and aircraft tracking to quantum system control. Although Bayesian filtering has been the cornerstone solution, its classical model-based paradigm faces two major limitations: it struggles with inaccurate state space models (SSM) and requires extensive prior knowledge of noise characteristics. We present TrackDiffuser, a generative framework addressing both challenges by reformulating Bayesian filtering as a conditional diffusion model. Our approach implicitly learns system dynamics from data to mitigate the effects of inaccurate SSM, while simultaneously circumventing the need for explicit measurement models and noise priors by establishing a direct relationship between measurements and states. Through an implicit predict-and-update mechanism, TrackDiffuser preserves the interpretability advantage of traditional model-based filtering methods. Extensive experiments demonstrate that our framework substantially outperforms both classical and contemporary hybrid methods, especially in challenging non-linear scenarios involving non-Gaussian noises. Notably, TrackDiffuser exhibits remarkable robustness to SSM inaccuracies, offering a practical solution for real-world state estimation problems where perfect models and prior knowledge are unavailable.

Introduction

State estimation—the process of inferring the hidden state of a system from noisy observations—is a cornerstone of modern engineering and robotics. Traditionally, this task is handled by Bayesian filtering techniques such as the Kalman Filter (KF) and its variants (EKF, UKF). However, these classical methods rely heavily on two assumptions: an accurate mathematical model of the system's physics (State Space Model) and well-defined noise characteristics (typically Gaussian). In real-world applications, these assumptions are often violated, leading to suboptimal performance or filter divergence.

While purely data-driven approaches like Recurrent Neural Networks (RNNs) have emerged to bypass these modeling requirements, they often function as "black boxes," ignoring known physical constraints and requiring vast amounts of training data. TrackDiffuser bridges this gap by introducing a "nearly model-free" generative framework that maintains the structural logic of Bayesian filtering while leveraging the expressive power of diffusion models.

Methodology

TrackDiffuser treats state estimation as a measurement-conditional generative modeling problem. Instead of analytically calculating a posterior distribution, it uses a diffusion model to iteratively denoise a trajectory toward the true state, guided by sensor measurements.

The TrackDiffuser architecture: The top panel illustrates the training phase using a physics-guided loss, while the bottom panel details the testing phase, highlighting the recursive predict-and-update mechanism.

Measurement-Conditional Denoising

The framework utilizes current and historical measurements ($z_{1:t}$) as conditioning information. A Condition Encoder processes these measurements into a latent representation that guides the TrackDiffuser (a temporal U-Net architecture) during the reverse diffusion process.

Implicit Predict-and-Update

To maintain the interpretability of classical filters, TrackDiffuser implements an implicit recursive structure:

  1. Predict Step: The model uses the previous state estimate and an approximate system dynamics model ($f$) to generate a prior. This prior sets the mean of the initial noise in the diffusion process, embedding physical constraints into the generative starting point.
  2. Update Step: The diffusion model then applies measurement-conditional guidance to refine this prior into a final state estimate ($\hat{x}_t$).

Physics-Guided Learning

During training, the model is optimized using a multi-task loss function. In addition to the standard diffusion loss, a "dynamic loss" ($L_{dynamic}$) penalizes trajectories that deviate from known physical laws. This ensures that the generated states are not only statistically likely given the measurements but also physically plausible.

Experimental Evaluation

The authors evaluated TrackDiffuser against classical filters (EKF, UKF, PF) and modern hybrid methods (KalmanNet) on two distinct benchmarks:

  1. Lorenz Attractor: A chaotic, highly non-linear system used to test performance under complex dynamics and non-Gaussian noise (e.g., Gaussian Mixture Models).
  2. Michigan NCLT Dataset: A real-world dataset featuring a Segway robot. This benchmark provides challenging real-world sensor data, including noisy GPS and odometry, to test the framework's practical robustness.

Key Results and Insights

TrackDiffuser consistently outperformed existing methods across all benchmarks. In the Lorenz attractor tests with non-linear measurements, TrackDiffuser achieved a Mean Squared Error (MSE) of -23.93 dB, significantly surpassing KalmanNet (-21.65 dB) and the EKF (-15.17 dB). On the real-world NCLT dataset, it maintained its lead with an MSE of 13.94 dB compared to KalmanNet's 16.01 dB.

Robustness to Model Mismatch

A critical advantage of TrackDiffuser is its resilience to inaccurate system models. Even when trained on perfect simulations but tested on systems where the physics are only approximated (e.g., using low-order Taylor expansions), the framework maintains high accuracy. This suggests that the diffusion process effectively "learns away" the errors in the provided dynamics model.

Handling Non-Gaussian Noise

Unlike traditional filters that struggle with multi-modal or heavy-tailed noise, the generative nature of TrackDiffuser allows it to naturally sample from complex posterior distributions. This makes it particularly effective in environments where sensor noise does not follow a simple Gaussian distribution.

Conclusion

TrackDiffuser represents a significant step forward in state estimation by combining the strengths of generative AI with the structural rigor of Bayesian filtering. By reformulating the problem as a conditional diffusion process, it achieves state-of-the-art accuracy and remarkable robustness to model inaccuracies. While the iterative nature of diffusion models presents challenges for real-time high-frequency applications, TrackDiffuser provides a powerful new paradigm for complex, non-linear state estimation in the real world.

Summary updated

BibTeX
@misc{he2025trackdiffuser,
  author = {Yangguang He and Wenhao Li and Minzhe Li and Juan Zhang and Xiangfeng Wang and Bo Jin},
  title = {{TrackDiffuser: Nearly Model-Free Bayesian Filtering with Diffusion Model}},
  year = {2025},
  eprint = {2502.05629},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05629},
}
Figure