Reactive Message Passing for Scalable Bayesian Inference

Dmitry Bagaev, Bert de Vries
12/25/2021
cs.LGcs.AI
bayesian

Official code: ReactiveBayes/ReactiveMP.jl (120 stars, Julia, MIT, last commit 2026-11-18).

Abstract

We introduce Reactive Message Passing (RMP) as a framework for executing schedule-free, robust and scalable message passing-based inference in a factor graph representation of a probabilistic model. RMP is based on the reactive programming style that only describes how nodes in a factor graph react to changes in connected nodes.

Show full abstract

The absence of a fixed message passing schedule improves robustness, scalability and execution time of the inference procedure. We also present ReactiveMP.jl, which is a Julia package for realizing RMP through minimization of a constrained Bethe free energy. By user-defined specification of local form and factorization constraints on the variational posterior distribution, ReactiveMP.jl executes hybrid message passing algorithms including belief propagation, variational message passing, expectation propagation, and expectation maximisation update rules. Experimental results demonstrate the improved performance of ReactiveMP-based RMP in comparison to other Julia packages for Bayesian inference across a range of probabilistic models. In particular, we show that the RMP framework is able to run Bayesian inference for large-scale probabilistic state space models with hundreds of thousands of random variables on a standard laptop computer.

View on arXivView PDF

Code Implementations(1)

MIT

High-performance reactive message-passing based Bayesian inference engine

12018Julia, MakefileDec 23, 20191 weeks agoMIT
bayesian-inferenceinferencejuliamessage-passingprobabilistic-graphical-models+3 more

Similar Papers

Cite this paper

@article{bagaev2021reactive,
  title  = {Reactive Message Passing for Scalable Bayesian Inference},
  author = {Dmitry Bagaev and Bert de Vries},
  year   = {2021},
  eprint = {2112.13251},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.13251}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.13251.svg)](https://codeofpaper.com/paper/2112.13251)

Discussion