Neural Bayesian Networks for Modular and Scalable Decision-Making Under Uncertainty

Giovanni Briglia, Marco Lippi, Stefano Mariani, Franco Zambonelli
10/12/2026
cs.AIcs.LG
bayesian

Official code: Giovannibriglia/NeuralBayesianNetworks (0 stars, Python, Apache-2.0, PyTorch, last commit 2026-10-18).

Abstract

Bayesian Networks (BNs) are established tools for letting agents reason under uncertainty in sequential decision-making. They split a joint distribution into local conditional mechanisms arranged on a directed acyclic graph, which makes them modular, interpretable, and ready to perform probabilistic inference.

Show full abstract

Their classical formulation, however, has limitations in both expressiveness and scale: each conditional is usually stored as a table or a linear-Gaussian form, and inference evaluates the graph one node and one query at a time. In this paper we introduce Neural Bayesian Networks (NBNs), in which each conditional is a differentiable, tensor-valued mechanism, while the graph and its factorization are unchanged. NBNs retain the modularity and local mechanisms of BNs, can represent any learnable conditional distribution, and run natively on GPUs. We also release NBN, a PyTorch-based library for learning and inference in NBNs, together with a public benchmark. Our evaluation shows gains in both expressiveness and scale: NBNs fit distributions that classical BN libraries struggle to represent, and on large networks and large batches of queries they run two orders of magnitude faster thanks to GPU parallelization. NBN is available at https://github.com/Giovannibriglia/NeuralBayesianNetworks.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A PyTorch-native Bayesian network library where each mechanism is learnt by a neural network. Every node carries a learnable, batched, GPU-resident conditional distribution; every query is a batched tensor operation; inference and parameter learning both run end-to-end on gpu. https://nbn.readthedocs.io

00Python, TeXMay 2, 20261 months agoApache-2.0
bayesian-networkcausal-learningcounterfactualspytorchstructural-causal-models

Similar Papers

Cite this paper

@article{briglia2026neural,
  title  = {Neural Bayesian Networks for Modular and Scalable Decision-Making Under Uncertainty},
  author = {Giovanni Briglia and Marco Lippi and Stefano Mariani and Franco Zambonelli},
  year   = {2026},
  eprint = {2610.16902},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.16902v1}
}

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/2610.16902.svg)](https://codeofpaper.com/paper/2610.16902)

Discussion