Universal Learning of Stochastic Dynamics for Exact Belief Propagation Using Bernstein Normalizing Flows

Peter Amorese, Morteza Lahijanian

TL;DR

This paper introduces Bernstein Normalizing Flows (BNFs), a novel class of models that can learn complex, nonlinear stochastic systems and perform exact belief propagation. By combining the expressive power of normalizing flows with the analytical tractability of Bernstein polynomials, BNFs offer a way to achieve accurate predictions in uncertain, dynamic environments without resorting to approximations during propagation.

What Problem Does This Paper Address?

Predicting future states in systems with uncertain and nonlinear dynamics, a task known as belief propagation, is crucial for many real-world applications. However, when the system's underlying model is unknown and must be learned from data, existing methods often struggle. They either rely on approximations that introduce errors during propagation, or they require models that are too complex to handle efficiently. The core challenge this paper addresses is: can we learn a model that is both universally capable of approximating general nonlinear stochastic dynamics and also supports exact, analytical belief propagation? This would eliminate approximation errors during the prediction phase, leaving only the inherent learning errors.

Methods

The authors propose Bernstein Normalizing Flows (BNFs), a hybrid approach that leverages two key concepts:

  • Normalizing Flows: These are powerful deep learning models used for density estimation. They work by transforming a simple probability distribution (like a Gaussian) into a complex one through a series of invertible functions (diffeomorphisms). This allows them to model arbitrary probability distributions.
  • Bernstein Polynomials: These are a specific type of polynomial basis that offer favorable analytical properties, particularly for bounding functions and ensuring closure under operations like multiplication and integration.

The core idea is to use Bernstein polynomials to represent the probability density functions (PDFs) within a normalizing flow architecture. Specifically, they map the potentially unbounded state space of the system to a bounded unit hypercube. Within this unit hypercube, they model the PDFs using Bernstein polynomials. The normalizing flow structure ensures that these polynomial densities can represent arbitrary distributions, while the Bernstein basis guarantees that operations like multiplication and integration (fundamental to belief propagation) remain exact and analytically tractable. This means that once the model is learned, predicting future states doesn't involve approximations, only direct computation.

Datasets

The paper uses synthetic datasets generated from two highly nonlinear stochastic systems:

  • Van der Pol system: This system exhibits nonlinear dynamics with additive Gaussian noise.
  • Stable oscillator system: This system features nonlinear dynamics with multiplicative non-Gaussian noise.

The datasets consist of initial state samples and state transition samples, used for training and evaluating the learned models. No new benchmarks are introduced; instead, existing systems are used to compare against established methods.

Key Insights and Ideas

  • Bridging Expressiveness and Tractability: The most significant insight is the successful combination of normalizing flows (for expressiveness) and Bernstein polynomials (for analytical tractability). This addresses a long-standing trade-off in probabilistic modeling.
  • Exact Belief Propagation: By ensuring that the learned model's components are polynomials, the paper achieves exact belief propagation. This means that any error in prediction is solely due to the learning process, not the propagation mechanism itself.
  • Universal Approximation for Stochastic Dynamics: The proposed BNF framework is theoretically shown to be a universal approximator for both the initial state distribution and the state transition dynamics.
  • Polynomials for Bayesian Reasoning: The work highlights that polynomials, often overlooked for complex density estimation due to their limitations on unbounded domains, can be effectively utilized for Bayesian reasoning when combined with techniques like normalizing flows and appropriate transformations.
  • Tightening Bernstein Relaxation: The paper proposes a method to improve the expressiveness of Bernstein polynomials by "tightening the relaxation" during training, allowing for more accurate modeling without increasing the polynomial degree.

Key Results

  • Superior Performance in Non-Gaussian Settings: BNFs significantly outperform state-of-the-art methods (EKF, WSASOS, GridGMM) in highly nonlinear systems with non-additive, non-Gaussian noise.
  • Comparable Performance in Additive Gaussian Noise: In additive Gaussian noise scenarios, BNFs perform comparably to the best baseline methods, demonstrating their robustness.
  • Improved Accuracy with Higher Degree: The empirical results show that increasing the degree of the Bernstein polynomials in the BNF leads to improved prediction accuracy, as the model can better capture complex dynamics.
  • Efficient Propagation: Unlike some GMM-based methods that suffer from component explosion, BNFs maintain a fixed model complexity, leading to efficient long-horizon predictions.

Limitations and Future Work

  • Computational Cost of High Degrees: While increasing polynomial degree improves accuracy, it also increases computational cost and memory requirements. The paper notes that this is a trade-off to be managed.
  • Training Complexity: Training BNFs involves optimizing a non-convex objective with constraints, which is handled using stochastic gradient descent. While effective, this can still be computationally intensive.
  • Choice of State Space Transformation: The paper acknowledges that the choice of the mapping function $\Omega$ from the original state space to the unit hypercube can impact the model's ability to learn accurate representations. Further research into optimal $\Omega$ selection for different problem types is suggested.
  • Future Work: The authors suggest extending BNFs to more complex scenarios, such as systems with non-Markovian dynamics or incorporating more sophisticated learning strategies to further mitigate learning errors. The potential for BNFs in other areas like Bayesian belief updating is also highlighted.

Summary updated

BibTeX
@misc{amorese2025universal,
  author = {Peter Amorese and Morteza Lahijanian},
  title = {{Universal Learning of Stochastic Dynamics for Exact Belief Propagation Using Bernstein Normalizing Flows}},
  year = {2025},
  eprint = {2509.15533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.15533},
}
Figure