Skip to content
@ReactiveBayes

ReactiveBayes

Open source software for reactive, efficient and scalable Bayesian inference

Reactive Bayes

Open source software for reactive, efficient and scalable Bayesian inference.

Welcome to the Reactive Bayes organization! We develop and maintain a suite of Julia packages for probabilistic programming and Bayesian inference with a focus on reactive and message-passing based inference algorithms.

ChatGPT Image Apr 22, 2026, 09_02_34 AM
graph TD
    %% Node definitions
    RxInfer["RxInfer.jl"]
    RxInferExamples["RxInferExamples.jl"]
    GraphPPL["GraphPPL.jl"]
    ReactiveMP["ReactiveMP.jl"]
    Rocket["Rocket.jl"]
    RxEnvironments["RxEnvironments.jl"]
    ExponentialFamily["ExponentialFamily.jl"]
    ExponentialFamilyProjection["ExponentialFamilyProjection.jl"]
    ExponentialFamilyManifolds["ExponentialFamilyManifolds.jl"]
    BayesBase["BayesBase.jl"]
    ExpectationApproximations["ExpectationApproximations.jl"]
    ClosedFormExpectations["ClosedFormExpectations.jl"]
    MessagePassingRulesBase["MessagePassingRulesBase.jl"]
    StandardMessagePassingRules["StandardMessagePassingRules.jl"]
    NodeRules["Node rule packages<br/>Delta, Autoregressive, GCV, …"]
    MessagePassingRulesApproximations["MessagePassingRulesApproximations.jl"]
    MessagePassingRulesTestUtils["MessagePassingRulesTestUtils.jl"]
    MessagePassingRulesTemplate["MessagePassingRulesTemplate.jl"]
    RxGP["RxGP.jl"]
    RxInferBenchmarks["RxInferBenchmarks.jl"]

    %% Connections
    RxInfer --> GraphPPL
    RxInfer --> ReactiveMP
    RxInfer --> Rocket
    RxInfer --> StandardMessagePassingRules
    RxInfer --> NodeRules

    RxEnvironments --> Rocket

    RxInferExamples --> RxInfer
    RxGP --> RxInfer
    RxInferBenchmarks --> RxInfer
    
    ReactiveMP --> MessagePassingRulesBase
    ReactiveMP --> Rocket
    ReactiveMP --> BayesBase

    StandardMessagePassingRules --> MessagePassingRulesBase
    StandardMessagePassingRules --> ExponentialFamily
    NodeRules --> MessagePassingRulesBase
    NodeRules --> MessagePassingRulesApproximations
    NodeRules --> ExponentialFamilyProjection
    NodeRules --> ExpectationApproximations
    NodeRules --> ClosedFormExpectations
    MessagePassingRulesTestUtils --> MessagePassingRulesBase
    MessagePassingRulesTemplate --> MessagePassingRulesBase
    MessagePassingRulesBase --> BayesBase
    
    ExponentialFamilyProjection --> ExponentialFamilyManifolds
    ExponentialFamilyProjection --> ExponentialFamily
    ExponentialFamilyProjection --> ExpectationApproximations
    ExpectationApproximations --> BayesBase
    ClosedFormExpectations --> BayesBase
    ClosedFormExpectations --> ExponentialFamily
    ExponentialFamilyManifolds --> ExponentialFamily

    ExponentialFamily --> BayesBase
    ExponentialFamilyManifolds --> BayesBase
    ExponentialFamilyProjection --> BayesBase

    %% Node styling
    classDef default fill:#f0f4f8,stroke:#a0aec0,stroke-width:2px,rx:5px,text-decoration:none,color:#000;
    classDef rxi fill:#e6f0ff,stroke:#4a90e2,stroke-width:2px,rx:5px,text-decoration:none,color:#000;
    classDef core fill:#e3f2fd,stroke:#2196f3,stroke-width:2px,rx:5px,text-decoration:none,color:#000;
    
    %% Apply core styling to main packages
    class ReactiveMP,GraphPPL,Rocket,ExponentialFamily,MessagePassingRulesBase core;
    class RxInfer rxi;
Loading

Key Packages

  • RxInfer The central high-level probabilistic programming framework that enables reactive Bayesian inference on factor graphs through reactive message passing. It integrates tools including probabilistic graphical model definition and reactive message-based Bayesian inference, loads the rule packages most models use, runs models with nodes that have no hand-derived rules through infer(...; fallback = ...) (universal inference: LocalLaplace(), LaplacePropagation(), ExpectationPropagation() and NaturalGradientPropagation(), with a report of what was approximated), and supports compiling inference with Reactant.jl (partially, see the example).
  • ReactiveMP An efficient message passing-based Bayesian inference engine that implements the core algorithms for performing high-performance, reactive message passing on factor graphs. It holds no rules of its own: it runs the rules of the rule packages below.
  • GraphPPL A probabilistic programming language for specifying probabilistic graphical models as factor graphs. It provides a high-level domain-specific language for model creation and works seamlessly with RxInfer for inference.
  • ExponentialFamily Extends Distributions.jl with comprehensive implementations of a collection of exponential family distributions.
  • Rocket A reactive programming framework providing core primitives for event handling and streaming for Julia, inspired by RxJS. It forms the backbone for reactive computations in the ecosystem.

Message Passing Rules

Nodes and their message passing rules are declared with MessagePassingRulesBase and live in registered packages of their own:

Expectations and Approximations

Universal inference computes the expectations and Gaussian approximations that have no closed form through a protocol that BayesBase declares, expectation(backend, f, q), and that these packages implement:

  • ExpectationApproximations Numerical expectations and Gaussian approximations: quadrature, cubature and sampling backends, a default that picks one for each distribution, and the Laplace, moment-matching and variational Gaussian projections, also on constrained domains.
  • ClosedFormExpectations Closed-form expectations and their gradients for pairs of functions and distributions, used first wherever one exists.

Supporting Packages

  • ExponentialFamilyManifolds Provides manifold representations of exponential family distributions, enabling advanced optimization workflows with Manopt.jl. It facilitates efficient parameter tuning in natural parameter spaces.

  • ExponentialFamilyProjection Enables projection of (un-normalized) log probability density functions onto exponential family distributions. It uses optimization techniques from Manopt.jl and leverages ExponentialFamilyManifolds.jl.

  • BayesBase Defines and re-exports core methods and utilities for Bayesian computation. It provides a shared foundation for the Reactive Bayes ecosystem.

Application specific packages

  • RxInferExamples Contains example applications using RxInfer.
  • RxEnvironments Provides reactive environments for agents.
  • RxGP Sparse Gaussian process factor nodes and variational message passing update rules for Sparse Variational Gaussian Process (VSGP) models within the RxInfer ecosystem. It enables embedding sparse GP computations directly into Forney-style factor graphs, with automatic inference over inducing variables, noise precisions, hyperparameters, and uncertain inputs.

Development and Tooling

Our packages are designed to work together seamlessly to provide:

  • Reactive Inference: Real-time updates as new data arrives
  • Message Passing: Efficient inference through local computations
  • Scalability: Handle large models and datasets
  • Flexibility: Mix and match components for your specific needs

We welcome contributions from the community! Check out our individual package repositories for more details on how to get involved.

Popular repositories Loading

  1. RxInfer.jl RxInfer.jl Public

    Julia package for automated Bayesian inference on a factor graph with reactive message passing

    Jupyter Notebook 426 40

  2. Rocket.jl Rocket.jl Public

    Functional reactive programming extensions library for Julia

    Julia 224 23

  3. ReactiveMP.jl ReactiveMP.jl Public

    High-performance reactive message-passing based Bayesian inference engine

    Julia 119 18

  4. GraphPPL.jl GraphPPL.jl Public

    DSL for probabilistic models specification and probabilistic programming.

    Julia 47 8

  5. RxInferExamples.jl RxInferExamples.jl Public

    This repository contains examples for RxInfer.jl

    Jupyter Notebook 29 14

  6. RxEnvironments.jl RxEnvironments.jl Public

    Reactive environments for self-learning agents

    Julia 25

Repositories

Showing 10 of 39 repositories
  • DeltaMessagePassingRules.jl Public

    The Delta node for message passing: a deterministic function of its inputs, under linearisation, the unscented transform or CVI projection

    ReactiveBayes/DeltaMessagePassingRules.jl's past year of commit activity
    Julia 1 MIT 0 0 1 Updated Dec 1, 2026
  • .github Public
    ReactiveBayes/.github's past year of commit activity
    0 0 0 0 Updated Dec 1, 2026
  • RxInferExamples.jl Public

    This repository contains examples for RxInfer.jl

    ReactiveBayes/RxInferExamples.jl's past year of commit activity
    Jupyter Notebook 29 MIT 14 2 2 Updated Dec 1, 2026
  • RxInfer.jl Public

    Julia package for automated Bayesian inference on a factor graph with reactive message passing

    ReactiveBayes/RxInfer.jl's past year of commit activity
    Jupyter Notebook 426 MIT 40 20 (1 issue needs help) 1 Updated Dec 1, 2026
  • StandardMessagePassingRules.jl Public

    The message passing rules of the standard factor nodes: the distributions, arithmetic, logic, the mixtures and Probit

    ReactiveBayes/StandardMessagePassingRules.jl's past year of commit activity
    Julia 1 MIT 0 0 0 Updated Nov 30, 2026
  • RxInferBenchmarks.jl Public

    A dashboard of rxinfer performance metrics over time

    ReactiveBayes/RxInferBenchmarks.jl's past year of commit activity
    TypeScript 1 MIT 0 7 0 Updated Nov 30, 2026
  • ReactiveMP.jl Public

    High-performance reactive message-passing based Bayesian inference engine

    ReactiveBayes/ReactiveMP.jl's past year of commit activity
    Julia 119 MIT 18 5 1 Updated Nov 30, 2026
  • ClosedFormExpectations.jl Public

    Julia package that provides closed-form expressions for computing the expectation of a function

    ReactiveBayes/ClosedFormExpectations.jl's past year of commit activity
    Julia 1 MIT 0 0 1 Updated Nov 30, 2026
  • ExponentialFamilyProjection.jl Public

    A library to project an arbitrary function to an exponential family member distribution with the manifold optimization

    ReactiveBayes/ExponentialFamilyProjection.jl's past year of commit activity
    Julia 12 MIT 0 15 (2 issues need help) 3 Updated Nov 30, 2026
  • ExponentialFamily.jl Public

    ExponentialFamily.jl is a Julia package that extends the functionality of Distributions.jl by providing a collection of exponential family distributions and customized implementations.

    ReactiveBayes/ExponentialFamily.jl's past year of commit activity
    Julia 16 MIT 4 4 3 Updated Nov 30, 2026