NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Bayesian Filtering

Christopher Solinas, Radovan Haluska, David Sychrovsky, Finbarr Timbers, Nolan Bard, Michael Buro, Martin Schmid, Nathan R. Sturtevant, Michael Bowling

TL;DR

Neural Bayesian Filtering (NBF) is a novel algorithm that tracks complex, multimodal belief states in partially observable environments by combining deep generative models with particle filtering. By mapping belief distributions into a learned latent embedding space and performing particle updates directly within it, NBF achieves high tracking accuracy with orders of magnitude fewer particles than traditional methods. Crucially, it adapts seamlessly to changing agent policies and environment dynamics at test time without requiring costly gradient fine-tuning.

What Problem Does This Paper Address?

In partially observable systems—like a robot navigating a maze with imperfect sensors or a player tracking an opponent's hand in a card game—maintaining a probability distribution over hidden states (a "belief state") is essential for decision-making.

Historically, researchers have faced a difficult trilemma when modeling these beliefs:

  1. Classical analytical filters (like Kalman Filters) are highly efficient but assume distributions are unimodal and Gaussian, failing in complex or discrete spaces.
  2. Particle filters can represent arbitrary, multimodal distributions using weighted samples, but they suffer from particle impoverishment in high dimensions—where only a few particles end up carrying all the weight, causing the filter to lose track of the true state.
  3. Deep recurrent networks (LSTMs/GRUs) can learn complex representations but bake the environment's dynamics and agent policies directly into their weights. If the environment changes (e.g., a new obstacle appears) or the agent learns a new policy at test time, these models break down completely.

NBF addresses this gap by creating a framework that is highly expressive, robust against particle impoverishment, and capable of handling non-stationary (changing) environments and policies.

Methods

NBF splits the problem into two parts: representation learning (offline) and recursive filtering (online).

  • Belief State Embeddings: The authors train an embedding network ($\mathcal{E}_\phi$) that takes a set of samples from a belief state and compresses them into a fixed-length vector $\theta$. This vector acts as a parametric representation of the distribution, much like how mean and variance parameterize a Gaussian.
  • Conditional Generative Modeling: This embedding vector $\theta$ conditions a generative model—specifically a Conditional Normalizing Flow (or a Conditional Flow Matching model). Given $\theta$, the model can either sample new particles or evaluate the exact probability density of a state. For discrete domains, the authors use variational dequantization to smoothly map discrete states into a continuous space.
  • The Filtering Loop: During online tracking, NBF performs a particle-style update step:
  • Sample: Generate a fresh set of particles from the normalizing flow conditioned on the current embedding $\theta_t$.
  • Simulate & Weight: Simulate these particles one step forward using the known environment dynamics and policy, and weight them based on the likelihood of the new observation.
  • Re-embed: Pass these newly weighted particles back through the embedding network to compute the updated embedding $\theta_{t+1}$.
Figure 3: Neural Bayesian Filtering generates particles from a belief embedding, simulates them in the environment, and embeds them with a weight proportional to the probability of y.

Because NBF draws completely fresh samples from the continuous generative model at every single time step, it effectively eliminates the risk of particle impoverishment.

Datasets

The authors evaluated NBF across four distinct environments designed to test different challenges:

  • Donuts: A toy continuous 2D domain consisting of ring-shaped distributions to visually demonstrate NBF's capacity to embed and generate complex shapes.
  • Partially-Observable Gridworld: Grids of sizes 5x5 and 8x8 (in both 2D and 3D spaces) where an observer tracks an agent based only on whether it bumped into a wall. Tested under both fixed and randomized obstacle/policy configurations.
  • Partially-Observable Goofspiel: A classic card game benchmark for imperfect information games, scaled from 4 to 7 cards, where tracking the opponent's changing strategy is vital.
  • Triangulation: A continuous 2D localization task where an agent moves and queries noisy range sensors from rotating beacons.

Key Insights and Ideas

  • Decoupling Representation from Dynamics: By using the neural network purely to represent what a distribution looks like (via the embedding space) and relying on a simulator for the actual physics/policy transitions, NBF remains perfectly adaptable. If a policy changes mid-game, you simply plug the new policy into the simulation step; the neural embedding network requires zero retraining.
  • Continuous Resampling Cures Impoverishment: Traditional particle filters resample by duplicating existing particles, which collapses diversity. NBF uses the weighted particles to find a point in the latent embedding space, and then samples entirely new particles from the continuous distribution defined by that latent point.

Key Results

Performance was measured using Jensen-Shannon (JS) divergence against the ground-truth posterior (lower is better).

  • Robustness to Randomization: In the randomized Gridworld tasks, standard recurrent networks (LSTMs) degraded significantly because they couldn't adapt to changing obstacle layouts. NBF maintained low JS divergence, matching the performance ceiling of an ideal model.
  • Particle Efficiency: In the continuous Triangulation environment, NBF using just 16 particles achieved a significantly lower JS divergence ($0.459 \pm 0.002$) than a standard Particle Filter utilizing 256 particles ($0.513 \pm 0.001$).
  • Goofspiel Scalability: In the card game benchmark, NBF consistently outperformed standard particle filters across all game sizes while requiring an order of magnitude fewer particles (64 vs. 512).

Limitations and Future Work

  • Downstream Error Propagation: NBF's filtering accuracy is strictly bounded by the quality of its pre-trained embedding model. In the larger Goofspiel variants, inaccuracies in the embedding network caused noticeable downstream tracking errors.
  • Computational Overhead: While NBF requires far fewer particles, each step requires a forward pass through a deep generative model. In simple environments, this neural network inference can be slower than the simple math of a traditional particle filter, trading raw speed for representational capacity.
  • Future Directions: The authors point toward integrating NBF into online planning algorithms (like Monte Carlo Tree Search) and reinforcement learning frameworks, where tracking shifting opponent policies is a core challenge.

Summary updated

BibTeX
@misc{solinas2025neural,
  author = {Christopher Solinas and Radovan Haluska and David Sychrovsky and Finbarr Timbers and Nolan Bard and Michael Buro and Martin Schmid and Nathan R. Sturtevant and Michael Bowling},
  title = {{Neural Bayesian Filtering}},
  year = {2025},
  eprint = {2510.03614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.03614},
}
Figure