# Neural Galerkin Normalizing Flows for Bayesian Inference of Diffusions with Inaccessible Boundaries

*Riccardo Saporiti, Fabio Nobile*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155213) · [OpenReview](https://openreview.net/forum?id=7Qy5PJB1Db) · [alphaXiv](https://www.alphaxiv.org/abs/2606.04324) · [Open on the map](../papers.html#p155213)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Bayesian Inference and Sampling](../pgroup/379.md) · Type: new method · Keywords: Neural Galerkin Normalizing Flows, Bayesian inference, diffusion processes, Fokker-Planck equation, stochastic volatility, MCMC

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Density and Generative Architectures; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Flow Matching and Diffusion › Generative Flow Models; [AI for Science](../areas/ai-for-science.md) › Molecular Systems Modeling › Gaussian Processes

## Summary
Neural Galerkin Normalizing Flows is a new Normalizing Flow architecture that learns transition densities for diffusion processes with inaccessible boundaries, enabling efficient Bayesian inference without solving the Fokker-Planck equation in real time.

## Explained to a 5-year-old
We want to guess hidden rules that make things move randomly, like stock prices. We look at a few snapshots of the movement and try to understand how it changes between those snapshots. Instead of solving complicated math each time, we learn a quick trick that tells us how likely each change is. This trick helps us guess the hidden rules faster and with less computer power. It works especially well for situations where some parts of the movement are not visible.

## Explained to a 5-year-old, longer
Imagine a ball rolling around in a hidden way, like how the price of a stock changes over time. We only see the ball at a few moments, not all the time it moves. To understand what makes it move, we need to know how likely each tiny step is. Usually, figuring this out needs a lot of math and computer work every time we try a new guess. The paper creates a new way to learn those tiny steps quickly, so we don't have to do the heavy math each time. It works by solving a special equation that describes how the chances spread out, using a trick that looks like a puzzle. The trick starts with a simple guess that everything is equally likely at the beginning. It then learns how the chances change for different starting points and how the randomness works. The method pays special attention to cases where the randomness disappears in some hidden parts, like when the ball cannot go beyond a wall. After learning, we can multiply the chances of each step we see to get an overall guess of the hidden rules. This makes it possible to estimate the hidden rules much faster and using less computer power. It is especially useful for problems like modeling how stocks move when some market parts are not directly observable.

## For a technical reader
The paper introduces Neural Galerkin Normalizing Flows, a neural architecture that learns transition densities for diffusion processes without requiring analytical forms. It solves the associated Fokker-Planck equation in a Galerkin framework, using a Dirac mass initial condition and training over a distribution of initial states and diffusion coefficients. The learned flows enable fast likelihood approximation for Bayesian inference, allowing MCMC sampling to avoid repeated PDE solves or simulations. This results in significantly faster posterior sampling, especially for diffusion models with inaccessible boundaries such as stochastic volatility. The approach is offline-trained and can be integrated into existing inference pipelines as a drop-in likelihood surrogate.

## Problem
Bayesian inference of diffusion model parameters from discrete observations is hindered because the transition density between observation times lacks an analytical expression, making likelihood evaluation difficult.

## Method
The approach solves the associated Fokker-Planck equation in a Neural Galerkin framework with a Dirac mass initial condition, learning transition densities via a Normalizing Flow over a training distribution of initial conditions and diffusion coefficients, focusing on cases where the diffusion matrix vanishes at inaccessible boundaries.

## Results
The approach yields significantly faster posterior sampling compared to real-time FP solving or likelihood-free simulation methods.

## Contributions
It introduces a Neural Galerkin Normalizing Flow architecture to learn transition densities for diffusion processes with inaccessible boundaries, enabling cheap posterior sampling via MCMC without repeated simulations.

## Limitations and assumptions
The method focuses on diffusion processes where the diffusion matrix vanishes at inaccessible boundaries and assumes a known training distribution for initial conditions and coefficients.

## Practical relevance
This enables efficient Bayesian inference for stochastic volatility and related diffusion models, making parameter estimation feasible on modest computational resources.

## Research questions this paper is counted under

- [How can diffusion models be adapted to model discrete or structured data while enabling tractable likelihood evaluation or performance assessment?](../q/284.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155213)
