Meta Particle Flow for Sequential Bayesian Inference

Xinshi Chen, Hanjun Dai, Le Song

Abstract

We present a particle flow realization of Bayes' rule, where an ODE-based neural operator is used to transport particles from a prior to its posterior after a new observation. We prove that such an ODE operator exists. Its neural parameterization can be trained in a meta-learning framework, allowing this operator to reason about the effect of an individual observation on the posterior, and thus generalize across different priors, observations and to sequential Bayesian inference. We demonstrated the generalization ability of our particle flow Bayes operator in several canonical and high dimensional examples.

Introduction

Bayesian inference—the process of updating a prior belief with new data to obtain a posterior—is a cornerstone of probabilistic machine learning. However, practical implementation faces several hurdles: intractability for complex models, computational inefficiency for online data streams, particle degeneracy in high-dimensional spaces for Sequential Monte Carlo (SMC), and the lack of generalization in Variational Inference (VI), which often requires re-optimization for every new observation.

This paper introduces Particle Flow Bayes’ Rule (PFBR), a method that treats Bayesian inference as a learnable transport problem. By training a neural operator to move particles from a prior to a posterior via an Ordinary Differential Equation (ODE), the authors create a "Bayes' Rule operator" capable of performing instant, sequential updates without expensive re-optimization or MCMC sampling.

Methodology

The core innovation of PFBR is representing the Bayesian update as a deterministic flow of particles.

The Particle Flow Operator

Instead of sampling, a distribution is represented as a set of $N$ particles. An ODE is defined where the velocity of each particle is determined by a neural network. This network takes the current particle set and a new observation as input, "pushing" the particles toward the new posterior.

Sequential particle flow updates from prior to posterior across multiple observations.

Theoretical Existence and Meta-Learning

The authors provide a theoretical proof that such a unified operator exists by connecting Langevin dynamics and the Fokker-Planck equation. To make this practical, they employ a meta-learning framework. During training, the model is exposed to diverse Bayesian tasks, learning to minimize the Evidence Lower Bound (ELBO). Once trained, the operator generalizes to unseen data, enabling rapid inference.

Parametrization

The flow velocity is parameterized using DeepSets, ensuring the operator is invariant to the order of particles. Gradients are computed efficiently using the adjoint method, allowing backpropagation through ODE solvers with minimal memory overhead.

Experimental Evaluation

PFBR was evaluated on synthetic and real-world benchmarks, including Multivariate Gaussian Models (up to 8 dimensions), Gaussian Mixture Models (GMM) for multi-modality, Linear Dynamical Systems (LDS) for sequential filtering, and Bayesian Logistic Regression on MNIST8M.

Key Results

PFBR demonstrates significant advantages over traditional methods:

  • High-Dimensional Superiority: In Gaussian experiments, PFBR significantly outperformed one-pass SMC as dimensionality increased, avoiding the particle degeneracy that plagued SMC.
  • Capturing Multi-modality: In GMM experiments, PFBR successfully captured multiple posterior modes, whereas standard VI methods often collapsed to a single mode.
  • Sequential Stability: In LDS, PFBR remained stable over 100+ observations, even when trained on sequences of only 10.
Performance comparison (cross-entropy and MMD) between PFBR and One-Pass SMC across different dimensions.

Conclusion

PFBR shifts the paradigm from "inference as optimization" to "inference as a learned operator," amortizing the cost of Bayesian updates. While training complexity and architecture stability remain areas for future work, the method shows great promise for efficient, high-dimensional sequential inference.

Summary updated

BibTeX
@inproceedings{chen2019meta,
  author = {Xinshi Chen and Hanjun Dai and Le Song},
  title = {{Meta Particle Flow for Sequential Bayesian Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=rybfN3W_ZB},
}
Figure