TL;DR
Tracking hidden states over time—like locating moving targets with noisy sensors—usually forces a painful choice: use fast Gaussian filters that fail on complex, multi-peaked probabilities, or use particle filters that collapse as dimensions grow. Neural Bayesian Filtering (NBF) escapes this trap by compressing complex probability distributions into compact neural embeddings, generating fresh particles at every time step to simulate physics without losing track of possibilities. Because the neural network only learns how to represent beliefs rather than memorizing the system's physics, it adapts zero-shot to brand-new dynamics at test time.
What Problem Does This Paper Address?
Imagine tracking an evader in a dark room using only a single distance sensor. Knowing they are five meters away doesn't give you a single point; it gives you a ring of possibilities. Add obstacles and multiple evaders, and your "belief" (the probability distribution over where everyone is) becomes high-dimensional, non-Gaussian, and multimodal (multi-peaked).
Classical Bayesian filtering gives us two imperfect tools for this:
- Parametric filters (like Kalman filters) scale gracefully to high dimensions, but force beliefs into neat Gaussian bell curves—putting probability mass right in the empty center of our ring.
- Particle filters represent arbitrary shapes using clouds of weighted hypotheses ("particles"). However, in high dimensions, weights rapidly concentrate onto just a few particles. Repeated resampling duplicates the winners and kills diversity—a pathology called impoverishment—causing the filter to collapse unless you use an exponentially massive particle budget.
Meanwhile, learned recurrent models can track complex states, but they bake the environment's rules into their weights. Change the physics slightly, and you have to retrain. How do we get rich, high-dimensional representations without sacrificing classical zero-shot adaptability?
Methods
The authors build upon Generative Distribution Embeddings (GDEs)—neural pairs consisting of a permutation-invariant encoder (here, a Set Transformer) and a conditional generator (Flow Matching) that compress probability distributions into fixed-size vectors ($\theta$). Static GDEs have no concept of time, so NBF embeds them inside a classical particle-filtering loop:
At each step, NBF:
- Generates $n$ fresh particles from the current belief embedding $\theta$ using the Flow Matching generator.
- Propagates each particle forward using the known system dynamics $T$ and weights them by how well they match the new sensor observation $y$.
- Embeds the weighted particle cloud back into an updated vector $\theta'$ via the Set Transformer.
What's new is how NBF trains this loop: you don't need access to the intractable "true" belief distribution. Instead, NBF rolls out episodes, embeds its own noisy particle sets, and trains the generator to maximize the likelihood of the single ground-truth state that actually occurred.
Datasets
Rather than static datasets, NBF is trained and evaluated on two simulated environments:
- Lorenz-96: A classic, chaotic geophysical benchmark on a ring of $K \in \{20, 40\}$ variables with partial, noisy observations. It produces non-Gaussian posteriors and tests dimensional scaling and zero-shot adaptation to held-out chaotic forcing ($F$) and noise levels.
- Pursuit–evasion: A custom 2D arena with obstacles where a single stationary range sensor tracks $k \in \{1, 3, 5\}$ evaders. Sensor readings are randomly shuffled—creating $k!$ possible assignments—inducing fiercely multimodal beliefs. Four evader movement policies are used for training, while four distinct policies (like wall hugger) are held out for zero-shot evaluation.
Key Insights and Ideas
- Regeneration defeats impoverishment: Instead of resampling a dwindling pool of surviving ancestors like a standard particle filter, NBF compresses the weighted set into a continuous embedding and draws brand new particles at the next step. Sample diversity cannot decay across an episode.
- Decoupling representation from physics: System dynamics and observation models are never learned; they are evaluated explicitly during step 2. Consequently, NBF generalizes zero-shot to new policies, chaotic regimes, or sensor noises, so long as the shapes of the resulting beliefs resemble those seen during training.
- Native density estimation: Because the generator uses Flow Matching, NBF can directly evaluate the exact probability density of any state—something standard particle clouds cannot do without clunky kernel approximations.
Key Results
Across both domains, NBF scales smoothly where particle filters collapse, and captures multimodal shapes where Gaussian filters fail:
- High-dimensional scaling: On Lorenz-96 (at a held-out chaotic forcing $F=8$), going from $K=20$ to $K=40$ dimensions causes a regularized particle filter with 131,072 particles to collapse (RMSE jumps from 0.877 to 4.332). NBF with just 4,096 particles barely flinches, moving from 0.943 to 1.029 RMSE—beating the Ensemble Kalman Filter (1.506 RMSE) in 11.8 ms per step.
- Multimodal tracking: In pursuit–evasion, NBF achieves the best Negative Log-Likelihood (NLL) across the board. For $k=1$ evader (annular ring belief), NBF(2048) scores -0.07 nats, whereas EnKF scores 5.25 and Gaussian Mixture Filters score 26.8.
- Zero-shot generalization: NBF smoothly interpolates across unseen chaotic forcing ($F=8$) and generalizes across held-out observation noise and evader policies, outperforming collapsed particle filters in 10D ($k=5$) pursuit–evasion even on out-of-distribution behaviors.
Limitations and Future Work
- Training coverage: Zero-shot generalization breaks down if new dynamics push beliefs or particle weight distributions outside the family seen during training (e.g., very low sensor noise on Lorenz-96, or the wall hugger policy that hugs arena boundaries rarely visited during training).
- Compute cost & known physics: NBF takes milliseconds per step—two to three orders of magnitude slower than an EnKF (~0.01 ms)—making it overkill for simple unimodal problems. It also assumes known system dynamics and observation models.
- Future directions: Known physics models could be swapped out for learned transition models (like those in differentiable particle filters) without altering the NBF update. Furthermore, because NBF summarizes beliefs into fixed-size, differentiable vectors with tractable densities, AI planners could condition on them directly for information-seeking exploration under uncertainty.
Summary updated