betaFeedback

WorksComputer Science

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

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. 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.

Introduction

An agent that acts under uncertainty would benefit from a model of how its environment responds to its actions to reason about probabilistic outcomes reliably. Model-based reinforcement learning, planning, and diagnosis all can leverage a transition model that can be learned from data and queried under evidence [20, 29, 37]. If the dynamics of the environment are known, at least in the sense of which variables influence which, the decision-making problem can be written as a factored Markov decision process (F-MDP) [10, 19, 30], whose transition model is a Bayesian network (BN) over the state variables. The BN is then the tool that lets the agent reason under uncertainty: it can predict the next state, and it can explain an observation in terms of the state that produced it. This matters most when the state is high-dimensional, because the factored model stays compact where a flat one does not.

Classical BNs, however, were mostly designed for discrete variables and small graphs [33, 44]. A conditional probability table grows combinatorially with the parents and is undefined when a parent is continuous. Additionally, both exact and approximate inference evaluate the conditionals one node and one sample at a time. These limitations stem from representing each conditional as a scalar function and from evaluating the graph sequentially. They are thus inherited by mainstream BN softwares (Table 4).

We propose Neural Bayesian Network (NBN) as a new tool for autonomous agents when dealing with decision-making under uncertainty. NBNs keep the structural properties of BNs (i.e., the graph) while changing the conditionals to leverage more expressive and scalable representations based on neural networks. In an NBN each local conditional p(xi∣xpa(i))p(x_i \mid x_{\mathrm{pa}(i)}) is a differentiable, tensor-valued mechanism that takes a batch of parent configurations and returns the full conditional distribution for each row (Figure 1). The graph and the factorization are exactly those of a BN. What changes is their computational representation: the mechanisms can be tabular, parametric, neural or non-parametric; every one of them exposes density, sampling, and gradients through one unified interface; and a whole layer of the graph is evaluated in one tensor operation on a GPU, for thousands of samples and evidence rows at once.

This advancement enables BNs to be used efficiently where they were not practical before: on continuous and non-Gaussian variables without reasonable discretization available, on networks of thousands of nodes, and for thousands of queries answered in one call. As such, NBNs make BNs seamless to integrate with learning-based agent architectures (e.g., reinforcement learning and cognitive architectures) and, more generally, with any machine learning toolchain: the NBN model is a differentiable module that is trained by gradient descent and runs on the same computational accelerators as a neural network (e.g., a GPU), while keeping the explicit graph, modular representation, and local mechanisms factorisation of the BNs’ symbolic model.

Our contributions are:

  1. Representation. We define NBNs (Section 2) and show that they are semantically equivalent to classical BNs, end-to-end differentiable, and whose inference scales with the number of active nodes instead of samples or queries.

  1. Library. We release NBN, a PyTorch implementation with tabular, linear-Gaussian, neural and non-parametric mechanisms

and with exact, sampling-based and amortized inference engines, all batched on the GPU. Learning fits the mechanisms to data and inference runs them along the graph, both on batches, as in a neural network.

(3) Benchmark. We release a benchmark for BN learning and inference and compare NBN with state-of-the-art BN frameworks on discrete, Gaussian, and non-Gaussian networks of different dimensions (§ 3).

Although NBNs do not yet win all comparisons, the benchmark confirms their potential with regards to scalability and expressiveness, while also pointing to further assessment and development.

The paper is organised as follows. Section 2 introduces NBNs, contrasts them with BNs, and define their properties. Section 3 presents the design of the benchmark and Section 4 its results. Section 5 reviews related works, and Section 6 concludes.

Neural Bayesian Networks

A Neural Bayesian Network (NBN) is a BN whose conditional distributions are learnable modules. The graph acts as the architecture of the model: each node hosts one module, its mechanism, which receives the values of the node’s parents and returns the distribution of the node (Figure 1). Learning fits the mechanisms to data and inference runs them along the graph, both on batches, as in a neural network.

From a classical BN to an NBN

Figure 1. From a classical BN to an NBN. Left: each node stores a scalar conditional, evaluated one node and one configuration at a time. Right: each node stores a tensor-valued differentiable mechanism MiM_i that maps a batch of BB parent configurations to a batch of conditional distributions. The DAG and the factorization are unchanged.

Similarly to a BN, an NBN over variables X=(X1,…,Xd)X = (X_1, \ldots, X_d) is a directed acyclic graph (DAG) G=(V,E)\mathcal{G} = (V, E) with V={1,…,d}V = \{1, \ldots, d\} and one conditional distribution pi(xi∣xPa⁡(i))p_i(x_i \mid x_{\operatorname{Pa}(i)}) per node, where Pa⁡(i)\operatorname{Pa}(i) are the parents of ii in G\mathcal{G} [33, 44]. The joint distribution is the product of the conditionals,

p(x1,…,xd)=∏i=1dpi(xi∣xPa⁡(i)),(1)p(x_1, \ldots, x_d) = \prod_{i=1}^{d} p_i(x_i \mid x_{\operatorname{Pa}(i)}), \tag*{(1)}

so each variable is independent of its non-descendants given its parents. Differently from a BN, where a conditional is a conditional probability table (CPT) or a linear-Gaussian form, an NBN admits arbitrary representations of a conditional distribution: tabular entries, parametric and non-parametric expressions, and neural network based approximations, possibly mixed in the same graph.

Additionally, in a BN, parameter learning estimates the conditionals one at a time using the log-likelihood ∑n∑ilog⁡pi(xi(n)∣xPa⁡(i)(n))\sum_n \sum_i \log p_i(x_i^{(n)} \mid x_{\operatorname{Pa}(i)}^{(n)}) based on counting for a CPT and on the least squares method for a linear-Gaussian form [22]. In an NBN, instead, every conditional is differentiable, so the same log-likelihood can also be maximized by gradient descent on batches of data—for all the conditionals at once, and for those that admit no closed-form estimate, too. Also inference proceeds one variable at a time in a BN, by computing the posterior p(xQ∣xE)p(x_Q \mid x_E) of query variables QQ given observed evidence xEx_E using variable elimination at a cost exponential in the treewidth of the graph [13]. In an NBN, instead, each conditional is evaluated once for a whole batch of samples and evidence assignments, so that many queries are answered in a single pass over the graph, by exact elimination where the treewidth allows it and by sampling elsewhere. As we will show in the following, BNs are special case of NBNs when the closed-form methods are feasible.

NBN is written in PyTorch [42]. The network is an nn.Module. A user builds it from a DAG and a per-node mechanism assignment, calls fit once, and then query. The benchmark, its configuration, and the complete results are released with the library.1

Motivation

BNs are a common “world model” for agents that decide under uncertainty: they are the transition models of factored Markov decision processes in planning and reinforcement learning [10, 19, 30], and the diagnostic models used in troubleshooting, risk analysis, and healthcare [11, 34, 55].

Consider a decision-making agent that has to deal with a Markov decision process (MDP) formalised as (S,A,P,R,γ)(\mathcal{S}, \mathcal{A}, P, R, \gamma) with state s∈Ss \in\mathcal{S}, action a∈Aa \in\mathcal{A} and transition kernel P(s′∣s,a)P(s' \mid s, a). The MDP treats the state as a single object, so PP is one distribution over the joint next state for every pair (s,a)(s, a), and its size grows exponentially with the number of state variables. If we know which current variables each next-state variable depends on, we can move to a factored MDP [10, 30], which is much lighter (Figure 2):

From an MDP to a factored MDP

Figure 2. From an MDP to a factored MDP. When it is known which variables influence which, the transition kernel over the joint state becomes a two-slice BN with one conditional per next-state variable.

P(s′∣s,a)=∏j=1np(sj′∣Pa⁡(sj′)),(2)P(s' \mid s, a) = \prod_{j=1}^{n} p(s'_j \mid\operatorname{Pa}(s'_j)), \tag*{(2)}

where the parents Pa⁡(sj′)\operatorname{Pa}(s'_j) of each next-state variable are a few of the current state and action variables. This is a two-slice BN over X=(s,a,s′)X = (s, a, s'). The same formulation applies to agents that face non-sequential scenarios, such as while doing diagnosis, where the BN has a single slice.

The agent has to deal with two problems:

P1 Learning. Given G\mathcal{G} and a dataset D\mathcal{D} of NN samples, estimate every conditional of Eq. (1), for discrete and for continuous variables, without fixing the shape of the conditional in advance.

P2 Inference. Given the learned model, compute p(xQ∣xE)p(x_Q \mid x_E) for query variables QQ and evidence xEx_E, for many evidence assignments at once.

In this work we assume that the structure is given and focus on parameter learning and inference, while leaving structure learning and the sampling of trajectories for planning to future work. More precisely, we make the standard assumptions of parameter learning in BNs. (A1) The graph G\mathcal{G} is given and the data distribution factorizes according to it. (A2) The data are complete, so every variable is observed in every sample, and the samples are independent and identically distributed. (A3) Each variable is a discrete variable with finitely many values or a real-valued scalar. All statements below are for a BN over dd variables and cover both cases.

Classical BNs solve P1 and P2 only in part, because of three limitations of scalar conditionals evaluated one at a time. (L1) Representation, which limits P1. A CPT for XiX_i has Ki∏j∈Pa⁡(i)KjK_i \prod_{j \in\operatorname{Pa}(i)} K_j entries, with KjK_j the number of values of XjX_j, and is undefined for a continuous parent. Discretizing a parent introduces a binning parameter and loses information, and the linear-Gaussian alternative cannot represent multi-modal or heteroscedastic conditionals. Both fix the shape of the outcome uncertainty before seeing the data: a table needs the continuous outcome discretized, a Gaussian has one mode and a spread that does not depend on the parents. (L2) Sequential evaluation, which limits P1 and P2. A likelihood evaluation on one sample visits the dd nodes in order, and each visit is a scalar lookup or a scalar density. Nothing is shared across samples or across queries, so SS samples for BB evidence assignments cost Θ(d⋅S⋅B)\Theta(d \cdot S \cdot B) scalar operations. (L3) Exact inference, which limits P2. Variable elimination on a network of treewidth ww costs O(d cw)O(d\,c^w) with cc being the maximum cardinality [13], and it exists only for discrete and linear-Gaussian networks. Sampling avoids the exponent but inherits (L2).

A solution to P1 therefore needs conditionals that are not restricted to tables and linear-Gaussian forms (L1) and that are fit on batches of data (L2). A solution to P2 needs an evaluation whose cost does not grow with S⋅BS \cdot B (L2), with exact inference where the treewidth allows it and batched sampling elsewhere (L3). As described in § 2.2, NBNs provide all of these properties.

Formal definition and Properties

Let G\mathcal{G} be a DAG over X1,…,XdX_1,\ldots,X_d with Xi∈XiX_i \in\mathcal{X}_i. An NBN replaces each conditional by a reparameterised mapping

pϕi(xi∣xPa⁡(i))=Mi(xPa⁡(i);ϕi),(3)p_{\phi_i}(x_i \mid x_{\operatorname{Pa}(i)}) = \mathcal{M}_i(x_{\operatorname{Pa}(i)};\phi_i), \tag*{(3)}

where Mi\mathcal{M}_i takes a batch XPa⁡(i)∈RB×∣Pa⁡(i)∣X_{\operatorname{Pa}(i)} \in\mathbb{R}^{B \times|\operatorname{Pa}(i)|} of parent configurations and returns, for every row, a distribution over XiX_i with a density log⁡pϕi\log p_{\phi_i}, a sampler, and where it exists a reparameterised sampler. The joint is still Eq. 1:

pϕ(X)=∏i=1dpϕi(Xi∣XPa⁡(i)).(4)p_{\phi}(X) = \prod_{i=1}^{d} p_{\phi_i}(X_i \mid X_{\operatorname{Pa}(i)}). \tag*{(4)}

Two design choices are worth emphasising here. First, Mi\mathcal{M}_i returns the full conditional, not a sample or a point estimate, so learning and inference reach every mechanism through one interface. Second, ϕi\phi_i are tensors on which autograd works, so a table, a linear-Gaussian form and a neural network are instances of the same class and can be mixed in one graph. All nodes at the same depth of G\mathcal{G} are evaluated in one batched call.

With this representation, NBNs support the following properties.

Proposition 2.1 (Semantic equivalence). Let pp be a BN on G\mathcal{G} and pϕp_{\phi} an NBN on G\mathcal{G} with pϕi(xi∣xPa⁡(i))=pi(xi∣xPa⁡(i))p_{\phi_i}(x_i \mid x_{\operatorname{Pa}(i)}) = p_i(x_i \mid x_{\operatorname{Pa}(i)}) for all ii and all arguments. Then pϕ=pp_{\phi}=p, and pϕp_{\phi} satisfies the global Markov property of G\mathcal{G}.

Proof. Both joints are the product in Eq. (1) of the same factors. The Markov property depends only on the factorization [33]. □

Every classical BN is an NBN with tabular or linear-Gaussian mechanisms, and everything that follows from the factorization (e.g., conditional independences) holds for NBNs.

Proposition 2.2 (Differentiability). If every log⁡pϕi\log p_{\phi_i} is differentiable in ϕi\phi_i, the log-likelihood ℓ(ϕ;x)=∑ilog⁡pϕi(xi∣xPa⁡(i))\ell(\phi;x)=\sum_i \log p_{\phi_i}(x_i \mid x_{\operatorname{Pa}(i)}) is differentiable in ϕ\phi, ∇ϕiℓ\nabla_{\phi_i}\ell depends only on the term of node ii, and the whole gradient is one backward pass.

Proof. ℓ\ell is a sum of terms depending on one ϕi\phi_i; reverse-mode differentiation of the sum evaluates all terms in a single pass. □

Parameter learning (P1) is therefore gradient descent on −ℓ-\ell, per node since the terms are independent (closed form where the family admits it), or jointly when a downstream differentiable objective couples the nodes.

Proposition 2.3 (Cost of inference). Consider a query pϕ(xQ∣xE)p_{\phi}(x_Q \mid x_E) answered by ancestral simulation with SS samples and BB evidence assignments, and let A=Anc⁡(Q∪E)A=\operatorname{Anc}(Q \cup E) be the active nodes. An NBN issues O(depth⁡(G[A]))O(\operatorname{depth}(\mathcal{G}[A])) sequential tensor operations, each of cost c(M,B⋅S)c(\mathcal{M},B \cdot S), so the wall-clock time is O(depth⁡(G[A])⋅c(M,BS))O(\operatorname{depth}(\mathcal{G}[A]) \cdot c(\mathcal{M},BS)); a classical implementation issues Θ(∣A∣⋅B⋅S)\Theta(|A| \cdot B \cdot S) scalar operations. For a fixed family, c(M,BS)c(\mathcal{M},BS) is sublinear in BSBS until the device saturates.

Proof. Nodes outside AA are barren and pruned. Within AA, all nodes at the same depth have their parents available and are evaluated in one call over the B⋅SB \cdot S rows; there are depth⁡(G[A])\operatorname{depth}(\mathcal{G}[A]) such levels. The scalar count is the number of (node, sample, row) triplets. □

The claim is not that NBNs change the dependence on the graph, but that for inference (P2) they remove dependence on SS and BB up to device saturation, so one or a thousand queries cost the same—on a GPU the saturation point is far, on a CPU it is near.

These gains do not come at the cost of sacrificing the usual BN properties that are behind their adoption: modularity is preserved since each mechanism has its own parameters and can be inspected, refit, or replaced without touching the others; the explicit structure stands still (in the DAG), which a designer can read and edit; and the “one model for every query” workflow is also there, since a fitted NBN answers p(xQ∣xE)p(x_Q \mid x_E) for any QQ and EE just like BNs.

Other routes to expressive and scalable probabilistic models give up at least one of them: see § 5.

Learning and Inference Methods

Learning mechanisms differ in how much of the conditional is fixed in advance. Parametric mechanisms fix its form and have a closed-form fit: a probability table for a discrete child, by counting under a Dirichlet prior [22], and the linear-Gaussian form N(Wx+b,σ2)\mathcal{N}(W x+b,\sigma^2) for a continuous one [35], by ridge regression [23]. The neural mechanism fixes the output form but not its dependence on the parents: a Mixture Density Network (MDN) [8] maps the parents with a multilayer perceptron to the parameters of a Gaussian mixture, fit by gradient descent on −ℓ-\ell. It is still parametric, but linear in the number of parents and multi-modal. Non-parametric mechanisms fix no form and grow with the data: KNN is a local mixture over the k=⌈N⌉k=\lceil\sqrt{N}\rceil training rows with the closest parents [53], and FlexCode [25] expands the conditional density in a cosine basis, one regression per coefficient.

Three inference engines answer pϕ(xQ∣xE)p_\phi(x_Q \mid x_E). Variable Elimination (VE) [40, 57] is exact and discrete-only: it drops the nodes that cannot affect the query and sums out the others by multiplying their tables in one batched tensor contraction, so BB evidence rows cost one pass. Being exponential in the induced width, it is our exact reference, not a scalable method. Likelihood Weighting (LW) [15, 51] simulates SS samples with the evidence clamped and averages the query node, each sample weighted by the probability of the evidence; it needs only a sampler and a density per mechanism, so it works with every family. Amortized Variational Inference (AVI) [18, 36] avoids the samples LW wastes when the evidence is unlikely: a recognition network qψ(x−E∣xE)q_\psi(x_{-E}\mid x_E), trained once per model on the evidence lower bound [32], proposes samples close to the posterior for every query at constant cost; it falls back to LW when the proposal is worse than LW’s own Monte-Carlo noise.

Benchmark Design

To the best of our knowledge, a fully reproducible benchmark for BNs has not been provided so far. The bnlearn repository [50] offers domains and their structures, and it is the usual source of test networks, but the benchmark configuration is unspecified: which queries to ask, how to obtain the ground truth, which metrics to report, or how to count a method that fails or does not finish is not established. In this way, results are hardly comparable thus advancements difficult to identify. Hence, we built one and release it with NBN. A benchmark is a configuration file that fixes the problems, the queries, the methods and the budgets, and the harness writes one row per problem, seed, method, query, and metric, failures included. Its problems come from two sources: (i) the real domains of bnlearn, and (ii) synthetic domains that we generate. Synthetic networks are needed to define whatever network structure (varying nodes and edges configuration) with whatever underlying conditional probabilities (discrete, continuous gaussian and continuous non-gaussian), and evaluate sample efficiency, scalability and accuracy across whatever BN.

We use the benchmark on NBNto answer three research questions:

RQ1. Where the classical BN assumptions hold, does NBN match the classical BN libraries?

RQ2. Where they do not hold, how much accuracy is gained?

RQ3. Does the cost model of Proposition 2.3 show up as wall-clock time when many queries are answered at once?

The numerical settings that follow are fields of the configuration file. We report here those needed to read the results, and all the others in Appendix A.

Problems. A problem is a triplet of family, number of nodes nn, and seed. The family is the type of the conditionals of the true model: discrete, where every conditional is a CPT; linear-Gaussian; or non-Gaussian, where every conditional is a set of components forming a Gaussian mixture (that a linear-Gaussian model cannot represent correctly). The seed draws a sparse random DAG over the nn nodes and then the parameters of every conditional. From the true model we draw a training set (20 480 rows), a test set that supplies the evidence values of the queries, and a reference set that supplies the ground truth. Every problem is repeated over 5 seeds. The real networks are the 13 networks of Section 4. We define a cell as the combination of one method on one problem.

Queries. A query has two components: a target variable, and an evidence set, which pairs each observed variable with its value. The evidence values are always copied from a row of the test set, so the evidence is a conditioning that the true model produces. Three selectors choose targets and evidence variables, one per purpose:

  1. Random (accuracy): the target and the evidence variables are drawn uniformly for the problem, and the query is asked for the evidence values of 128 test rows; it measures the typical error over evidence values.

  2. Topological (real networks): targets are chosen by their role in the graph, among the most connected nodes (hubs), the nodes whose removal disconnects the graph (cut nodes), and the deep nodes with few descendants (terminals). Each target is asked in the prediction direction, with evidence among its ancestors, or in the diagnosis direction, with evidence among its descendants.

  3. Heaviest (scalability and speed): only the top-ranked hubs, cut nodes, and terminals are queried, each in both directions, once with the evidence observed (full) and once with it marginalized (empty).

Reference and metrics. For a discrete target the reference posterior p^\hat{p} is its empirical distribution among the reference samples that agree with the evidence, and the metric is the total variation (TV) between p^\hat{p} and the answer qq, TV⁡(p^,q)=12∑x∣p^(xQ)−q(xQ)∣\operatorname{TV}(\hat{p},q)=\frac{1}{2}\sum_x\lvert\hat{p}(x_Q)-q(x_Q)\rvert [54]. For a continuous target the reference posterior is a sample from p(xQ∣xE)p(x_Q\mid x_E) obtained by likelihood weighting on the true model, and the metric is the 1-Wasserstein distance (W1) between the empirical distribution μ^\hat{\mu} of this sample and the empirical distribution ν\nu of the samples returned by the method, W1(μ^,ν)=inf⁡γ∈Π(μ^,ν)E(x,x′)∼γ∣x−x′∣W_1(\hat{\mu},\nu)=\inf_{\gamma\in\Pi(\hat{\mu},\nu)}\mathbb{E}_{(x,x')\sim\gamma}|x-x'|, where Π(μ^,ν)\Pi(\hat{\mu},\nu) is the set of couplings of μ^\hat{\mu} and ν\nu [16]. In both cases the reference is a finite sample and not the exact posterior, so the measured accuracy has a floor that all methods share. On the discrete networks of the accuracy scenario it is a TV of about 0.06 at 10 nodes and 0.08 from 50 nodes on, which are the values exact engines reach in Figure 3. We use a sampled reference because an exact one is not available for every family and size: variable elimination on the true model is exponential in the treewidth, and non-Gaussian conditionals have no closed-form posterior. Computing exact references when tractable is left for future work. The main text reports this accuracy metric (TV or W1) for the accuracy, scalability, and real-network scenarios, and the time per query for the speed batching scenario, measured as the wall-clock time of one call divided by the number of answered queries. Complete fit and query times are in Appendix § 9.

Figure 3. Inference accuracy against network size on synthetic networks (TV for discrete, W1 for continuous, lower is better). All applicable external baselines are shown, plus the selected NBN methods per family. A missing bar is a method that failed on every seed, with its status printed; f/nf/n marks ff failed seeds out of nn.

Budgets and failures. Every cell has a budget of 1200 s for the fit, a separate budget of 1200 s for its queries, and a memory cap: 80% of RAM (∼\sim 100GB on our server, that is a more favourable scenarios for cpu-based libraries e.g. pgmpy.), and the 12 GB of the GPU. It ends with a status: ok, timeout, oom or not_supported. In the figures a bar is the interquartile mean (IQM) over the seeds a method solved, as [2] suggests; f/nf/n is printed when ff of nn seeds failed, and a missing bar indicates the failure status.

Scenarios. Each scenario is one configuration. Accuracy fixes the query load (128 random queries) and varies the family and the size, n∈{10,50,100,500,1000}n\in\{10,50,100,500,1000\}: on the discrete and the linear-Gaussian family the classical model is correct, which isolates RQ1, and on the non-Gaussian family it is misspecified, which isolates RQ2. Scalability pushes the network size to n∈{10,102,103,104}n\in\{10,10^2,10^3,10^4\} on the heaviest queries and records where each method stops. Batching fixes the network size (n=50n=50) and varies only the number B∈{1,128,512,1024}B\in\{1,128,512,1024\} of queries answered in one call, which is the variable of Proposition 2.3 (RQ3). Real networks repeat the accuracy scenario on published structures with topological queries. Learning scores the fitted conditionals without any query and addresses P1.

Methods and hardware. The comparison baselines are pgmpy with maximum-likelihood and with Bayesian CPTs, both queried by its variable elimination; pgmpy linear-Gaussian, which conditions the joint Gaussian in closed form; pomegranate, which is discrete only and uses its built-in loopy belief propagation; and Pyro, where the BN is written as a program with smoothed tables or linear-Gaussian conditionals and queried by importance sampling from the prior with 50 particles (the largest number its sequential sampler affords within the budgets). On continuous networks pgmpy and Pyro always fit linear-Gaussian conditionals, so on the non-Gaussian family they are the misspecified classical model.

NBN runs every applicable pair of a mechanism and an engine, with 2048 particles for the sampling engines (16 in the batching scenario, which measures time only). To keep the figures readable, each panel shows all applicable external baselines plus the best NBN methods of the family, selected by accuracy. Appendix § 9 reports every method on every scenario. All runs use one server with a 20-core CPU, 126 GB of RAM and one GPU with 12 GB of memory; NBN and pomegranate run on the GPU, pgmpy on the CPU, and Pyro on the CPU except in the batching scenario.

Experimental Results

Section 2 makes two claims: as NBN keeps what a BN offers, while enhancing expressiveness of conditionals and scaling up inference performance. The results support both, within limits that the benchmark makes visible. In terms of our research questions:

RQ1. No loss where the classical model is right (Proposition 2.1). On discrete networks, exact inference in NBN returns the same TV as pgmpy at every size, and on real networks it matches or improves on it even seven out of eight; learning is identical as well. The exception is inference on linear-Gaussian networks, where the closed form of pgmpy is more accurate than our sampled posterior (W1 0.039 against 0.074 at 1000 nodes).

RQ2. Expressiveness pays where it is wrong. On non-Gaussian networks the MDN has between one third and 60% of the W1 of a linear-Gaussian model, and achieves better held-out likelihood: where the outcome has several modes or a state-dependent spread, the linear-Gaussian family misstates the uncertainty while the MDN learns its shape.

RQ3. The cost model holds on the GPU (Proposition 2.3). With the sampling engines the time per query falls by two orders of magnitude between one query and a batch of 1024, down to tens of microseconds.

While pgmpy achieves top accuracy wherever one of its two families is the right model, it cannot represent non-Gaussian conditionals and answers one query at a time. pomegranate leverages the GPU, but its loopy belief propagation returns undefined posteriors or exceeds budget on all networks but the smallest. Pyro runs a generic sequential importance sampler, which the budget limits to 50 particles: it has the highest error on all synthetic families and times out from 500 nodes onwards. The performance of NBN can still be improved, and the benchmark shows where. The sampling engines pay a Monte-Carlo error where a closed form exists, the MDN exceeds the fit budget between 100 and 500 nodes, and the nearest-neighbour mechanism exhausts the GPU memory at 500.

Below, NBN methods are named by their mechanisms and engines: cat+VE is categorical table queried by variable elimination; likewise for linear-Gaussian (LG) and MDN mechanisms, and for likelihood weighting (LW) and amortized variational inference (AVI).

Inference accuracy (RQ1, RQ2)

Figure 3 shows the accuracy of the 128 queries for each family.

Discrete. cat+VE and pgmpy return the same TV at every size because they run exact inference on the same maximum-likelihood tables: this is Proposition 2.1, measured. Their common value is the floor of the reference (Section 3). The sampling engines of NBN stay within 0.01 of it, so on discrete networks approximation costs little.

Linear-Gaussian. This is the one family where a baseline is ahead: pgmpy conditions the joint Gaussian in closed form, while NBN samples. The gap grows with the size because, in deeper networks, fewer prior samples agree with the evidence: the median effective sample size falls from all 2048 particles at 10 nodes to 13% of them at 1000. The error is due to the engine, not the model, and a closed-form engine for all-Gaussian networks would remove it.

Non-Gaussian. Here the model is decisive: every linear-Gaussian method has the same error, in NBN or in pgmpy and whatever the engine, because the family cannot represent the data. The MDN has one third to 60% of that error and kNN one half to three quarters. The price is paid at fit time (Table 13 in Appendix § 9.§ 1): the MDN exceeds the fit budget at 500 nodes, where kNN runs out of memory, so beyond 100 nodes only the misspecified models remain.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict1.92±0.00212.07±0.0272.11±0.0252.98±0.0633.75±0.021
pyro-empirical-importance0.131±0.00250.162±0.000450.204±0.0004timeouttimeout
nbn-flexcode-lw51.2±15433±15932±24timeouttimeout
nbn-flow-ais10.2±0.7115±2.7166±3timeouttimeout
nbn-flow-avi111±1.2142±2.1166±2.1timeouttimeout
nbn-flow-lw207±43588±441.11e+03±15timeouttimeout
nbn-kde-lw2.31±0.11 (1/5)oomoomoomoom
nbn-knn-lw1.32±0.00524.74±0.00959.02±0.015oomoom
nbn-lg-ais8.35±0.14140±0.58202±24525±73606±0.84
nbn-lg-avi14.7±1.2123±0.025125±0.73136±1143±1.3
nbn-lg-lw0.383±0.00550.495±0.00220.627±0.00541.73±0.0322.79±0.068
nbn-mdn-ais15.8±3.2288±0.45339±45timeouttimeout
nbn-mdn-avi29.1±2.6126±0.64100±5.4timeouttimeout
nbn-mdn-lw50.1±16431±16920±19timeouttimeout

Table 13. Inference accuracy, non-Gaussian networks: fit time in seconds, against network size.

Scalability

Table 1 pushes the heaviest queries to 10 000 nodes. Accuracy stays in the same range at every size; what this scenario reveals is why each method stops and how long a query takes. Exact inference is bounded by the elimination itself. pgmpy completes every seed but needs tens of seconds per query from 1000 nodes; cat+VE answers in 0.2 to 0.4 s, two orders of magnitude faster, and exceeds the 12 GB of the GPU on two of five seeds at 10 000 nodes. The sampling engines have no such wall: cat+LW and LG+LW finish every seed at 10 000 nodes, where LG+LW is also faster than the closed form of pgmpy (2.6 s against 17.5 s per query), being the fastest up to 1000 nodes. The flexible mechanisms stop earlier due to the cost of learning: at 1000 nodes the MDN exceeds the fit budget and kNN the memory.

Methodn=10n=10n=100n=100n=1000n=1000n=10000n=10000
Discrete, TV
pgmpy Bayes+VE0.04910.05780.06450.0323 (1/5)
pgmpy MLE+VE0.04380.04060.05820.0484
pomegranate0.0276 (2/5)nannannannantimeout
Pyro IS0.1200.1880.1510.141 (1/5)
NBN cat+VE0.04350.04760.05160.0376 (2/5)
NBN cat+LW0.04950.06000.06190.0586
Linear-Gaussian, W1
pgmpy LG0.03030.05530.03780.0466
Pyro IS0.1380.3300.3380.226 (1/5)
NBN LG+LW0.02910.05260.06520.0560
NBN MDN+LW0.03260.0534timeouttimeout
kNN+LW0.05570.102oomoom
Non-Gaussian, W1
pgmpy LG0.1150.1420.08300.101
Pyro IS0.2320.1930.1750.209 (1/5)
NBN LG+LW0.1250.1370.09170.0992
NBN MDN+LW0.05040.0414 (1/5)timeouttimeout
NBN kNN+LW0.07550.0779oomoom

Table 1. Accuracy on the heaviest queries with full evidence against network size, up to 10 000 nodes (IQM over seeds, lower is better). (f/nf/n) marks ff failed seeds out of nn. Bold: fewest failed seeds, then best value. Times in Appendix § 9.§ 2.

Batched queries (RQ3)

Proposition 2.3 postulates that the cost of a batch does not grow with its size until the device saturates, so the time per query should fall as 1/B1/B. We fix 50-node networks and ask each heaviest query for the evidence values of BB different rows (Figure 4). The sampling engines follow the prediction closely up to B=128B=128, where a query costs about one hundredth of a single one, and then flattens as the GPU saturates: at B=1024B=1024 the gain is 456× for cat+AVI and 227× for LG+AVI, down to 0.09 and 0.05 ms per query. Exact cat+VE is the fastest method on one query (2.8 ms) but gains only 4×: every factor of the elimination carries the batch axis, so its work grows with BB and batching removes only the per-call overhead. Among the baselines only pomegranate batches, and at B=1024B=1024 it is 60 times slower than cat+AVI; pgmpy answers one query at a time. The gain is in the batch, not in the latency of one query: on a single continuous query the closed form of pgmpy takes 2.6 ms and NBN 12 ms. An agent that asks one question at a time is better served by the classical code; one that scores many candidate actions or particles at once is the case NBNs are built for.

Figure 4. Time per query vs. batch size BB (log scale) on 50-node networks, full evidence. Non-batching methods are at B=1B=1 only.

Real networks

Table 2 repeats the accuracy comparison on thirteen bnlearn networks: eight discrete ones, from 8 to 1041 nodes, two Gaussian ones, and three conditional linear-Gaussian (CLG) ones, which mix discrete and continuous variables.

Network (nn)pgmpypomegr.PyroNBNNBN
Discrete, TVMLE+VEBPIScat+VEcat+AVI
asia (8)0.003430.003800.03360.003540.00478
sachs (11)0.01280.01220.08180.01200.0162
mildew (35)0.0325nan0.2870.04650.0703
barley (48)0.0275nan0.2150.02400.0401
hailfinder (56)0.02030.02080.1360.02060.0266
diabetes (413)0.0393 (1/5)nantimeout0.03430.128
link (724)0.00197timeouttimeout0.001740.00612
munin (1041)0.00464timeouttimeout0.004010.0105
Gaussian, W1LG–ISLG+AVIkNN+LW
ecoli70 (46)0.0418–0.2450.05410.111
arth150 (107)0.0210–0.1070.02120.0418
CLG, W1––ISMDN+LWkNN+LW
healthcare (7)––10662523.4
sangiovese (15)––0.05830.02420.0280
mehra (24)––3.74⋅1073.74 \cdot10^{7}1.89⋅1061.89 \cdot10^{6}2.41⋅1062.41 \cdot10^{6}

Table 2. Accuracy on bnlearn networks, grouped by kind and ordered by node count nn (IQM over seeds; TV for discrete, W1 for Gaussian and CLG, lower is better). Each block names the method of each library; – denotes no applicable engine. pgmpy with Bayesian estimates and the other NBN engines are in Appendix § 9.§ 4.

The conclusions of the synthetic scenarios carry over. On the discrete networks cat+VE has the lowest TV on five, including the two largest, and is within 0.001 of the best on two more; pgmpy is better on mildew only. Amortized inference suffers more here than on synthetic networks (up to four times the TV of exact inference), so the exact engine is the one to use whenever the treewidth allows it. On the Gaussian networks NBN is again close to the closed form of pgmpy. The CLG networks are where coverage matters: pgmpy and

pomegranate have no applicable engine, and the best NBN mechanism is below Pyro on all three. Which mechanism is best, however, depends on the network: the MDN wins on sangiovese and mehra and has six times the error of Pyro on healthcare, where kNN wins. The choice of the mechanism is a modelling decision, and the benchmark is the tool to make it.

Parameter learning and sample efficiency

The learning scenarios score the fitted conditionals with no query: by the parameter-recovery TV on discrete networks, the distance between learned and true rows of CPTs, and by held-out negative log-likelihood (NLL) per node on continuous ones (Appendix § 8).

When the model is correct, NBN learns what competitors do, as the estimator is the same: the tabular mechanism equals the max-likelihood tables of pgmpy and pomegranate at all sizes, its smoothed variant equals the tables of Pyro, and the linear-Gaussian mechanism equals the least squares of pgmpy (Table 3; Appendix § 9.§ 5). It is also faster: a 1000-node network is fitted in 2.1 s (tables) and 2.6 s (linear-Gaussian), against 9.8 s and 4.0 s for pgmpy. The accuracy drop when data is Gaussian is negligible: the NLL of the MDN is within 0.004 of the exact estimator.

Methodntr=4096n_{\mathrm{tr}}=4096ntr=16384n_{\mathrm{tr}}=16384ntr=32768n_{\mathrm{tr}}=32768ntr=65536n_{\mathrm{tr}}=65536
Discrete, parameter-recovery TV
pgmpy Bayes0.09770.04740.03350.0236
pgmpy MLE0.09790.04740.03360.0236
pomegranate0.09790.04740.03360.0236
Pyro0.08470.04530.03280.0233
NBN cat0.09790.04740.03360.0236
NBN cat (Bayes)0.08470.04530.03280.0233
Gaussian, NLL per node
pgmpy LG0.9430.9420.9440.945
NBN LG0.935 (1/5)0.9420.9440.945
NBN MDN0.9530.9460.958 (1/5)timeout
NBN kNN1.010.9880.9810.966 (1/5)
Non-Gaussian, NLL per node
pgmpy LG1.261.271.271.27
NBN LG1.261.271.271.27
NBN MDN1.201.191.19timeout
NBN kNN1.251.231.221.21

Table 3. Sample efficiency on 50-node networks against the number of training rows ntrn_{\mathrm{tr}} (IQM over seeds, lower is better): parameter-recovery TV on discrete networks, held-out NLL per node on continuous ones. timeout: the 1200 s fit budget was exceeded on every seed. Fit times and the network-size sweep are in Appendices § 9.§ 5 and § 9.§ 6.

When the model is wrong, more data does not repair it (Table 3). On 50-node non-Gaussian networks the NLL of the linear-Gaussian models stays at 1.26–1.27 from 4096 to 65 536 rows, while the MDN is at 1.20 with 4096 rows already and kNN improves steadily to 1.21. Flexibility is thus sample-efficient but not compute-efficient: the fit time of the MDN grows linearly with the rows and nodes, exceeding the budget at 65 536 rows and from 100 nodes (Appendix § 9.§ 6).

Related Works

NBNs extend classical BNs in two directions, the expressiveness of the conditionals and the efficiency and scale of learning and inference; we review the works that pursue each of them.

Expressiveness. Kernel density estimation was used for continuous conditionals in Bayesian classifiers [28], and non-parametric BNs based on kernels or copulas followed [21, 24, 38]. Semiparametric BNs [4, 5] mix linear-Gaussian and kernel conditionals in one network; surveys of inference with continuous variables are [39, 48]. Neural structural causal models replace each structural equation with a neural density, typically a normalizing flow [17, 26, 31, 43, 56]. Closest to ours in name, the Neural Bayesian Network Understudy [46] trains a single Neural network to approximate the conditional probabilities of a given BN, with its independences encoded through training. These works fix one family of conditionals and one inference procedure. At the other extreme, deep generative models such as normalizing flows [41, 47] and neural world models [20] are expressive but hide the dependencies in the weights of one network: there is no local conditional to inspect or replace, and the posterior given arbitrary evidence is not directly available. An NBN changes the representation rather than adding a family. With tensor-valued mechanisms the BN is kept exactly (Proposition 2.1); tabular, linear-Gaussian, neural and non-parametric [25] mechanisms can be mixed in one graph and trained by gradient, also jointly with a downstream objective (Proposition 2.2); and any mechanism that can sample and evaluate a density is queried by the same batched engine, with no family-specific algorithm (Proposition 2.3).

Efficiency and scalability. Exact inference has been parallelized on multi-core CPUs [27] and on GPUs [58], and written as tensor contractions [40], but only for discrete networks and at a cost that stays exponential in the treewidth. Probabilistic circuits [12, 45] keep inference tractable and batched, but trade the per-variable conditionals for latent sum and product units. When exact inference is too expensive, a BN is queried by sampling. Likelihood weighting (Section 2.3) is simple and general, but its samples are drawn without looking at the evidence, so most of them are wasted when the evidence is unlikely. Amortized inference [18, 36] trains a neural network to propose samples that already agree with the evidence and reuses it for every later query. We do not propose a new estimator: NBNs change how these estimators are executed. All the nodes at the same depth of the graph are evaluated in one tensor operation over every particle and every evidence assignment, so the cost of a query stops growing with the number of samples and of queries (Proposition 2.3).

Libraries. Table 4 summarizes NBNs competitors. Classical BN libraries (pgmpy [3], pyAgrum [14], bnlearn [50], CausalNex [6]) implement tabular or linear-Gaussian conditionals with exact inference; they run on the CPU and accept several queries in one call but execute them one by one, which are the limitations (L1) and (L2) of Section 2.1. pomegranate [49] is PyTorch-based and runs on the GPU, but its BN inference is limited to discrete networks and to loopy belief propagation, which is not guaranteed to converge on graphs with loops. Probabilistic programming systems (Pyro [7], PyMC [1]) support any distribution and GPU execution, but they do not expose the BN as an object: the graph, the per-node conditionals, and the inference procedure over them have to be written by hand for every model, and a generic sampler cannot eliminate variables exactly, prune the nodes that a query does not need, or evaluate a level of the graph at once. DoWhy [9, 52] estimates the causal effect of a treatment on an outcome and does not answer posterior queries over arbitrary variables.

LibraryFamilies Disc.Families LGFamilies NGCompute BatchCompute GPUCapabilities Diff.Capabilities do
pgmpy [3]✓✓×✓××●
pyAgrum [14]✓××✓×××
bnlearn [50]✓✓×✓××✓
CausalNex [6]✓××✓×××
pomegranate [49]✓✓●✓●××
PyMC [1]✓✓✓●✓●✓
Pyro [7]✓✓✓✓✓✓●
DoWhy [52]✓✓●×✓×✓
NBN (ours)✓✓✓✓✓✓✓

Table 4. Bayesian-network and probabilistic-modeling libraries. Disc.: discrete; LG: linear-Gaussian; NG: continuous non-Gaussian. Batch: the API accepts many queries in one call. GPU: BN queries run in parallel on the accelerator. Diff.: differentiable conditionals. do: native interventions. ✓ supported, ● partial, × absent.

To the best of our knowledge, no existing library combines an explicit DAG with differentiable conditionals of arbitrary family and GPU-batched learning and inference, which is the gap NBN fills. Our benchmark compares against one representative per class: pgmpy for the classical libraries, pomegranate as the PyTorch-based one, and Pyro as the probabilistic programming system.

Conclusions and Future Works

Neural Bayesian Networks (NBNs) are an extension to Bayesian networks that combine explicit graphical structure with learnable, tensor-valued conditional mechanisms. NBNs preserve the probabilistic factorization and modularity of BNs while bringing heterogeneous conditional models into a common framework for learning and GPU-batched inference. The accompanying PyTorch library and reproducible benchmark provide a basis for evaluating the trade-offs between expressiveness, accuracy, and computational cost. NBNs provide to autonomous agents a tool for decision-making under uncertainty that combines structured world models with the flexibility and computational tools of modern machine learning. Explicit dependencies and separately replaceable mechanisms support adaptation of individual model components, while batched inference serve agents that evaluate many candidate actions or hypotheses. Evaluation of NBNs within agent decision making tasks (e.g. causal reinforcement learning), removing the assumption of having the graph available, evaluating sampling, and considering CPU execution along GPU are amongst the future works we are considering.

References

Benchmark Design – Extended Version

This appendix gives the settings of the benchmark that Section 3 leaves out. All of them are fields of the released configuration files or defaults of the released code, and can be changed.

  • Synthetic generator. The seed draws a DAG over nn ordered nodes, where each earlier node becomes a parent of a later one with probability 0.2 and a node keeps at most four parents. The cap bounds the size of a conditional as nn grows: with four values per variable, a CPT has at most 45=10244^5 = 1024 entries. In the discrete family every variable has four values and every row of a CPT is the softmax of standard-normal logits. In the linear-Gaussian family every node has weights of variance 1/∣Pa∣1/|\mathrm{Pa}|, a standard-normal bias and a noise scale drawn uniformly in [0.3,1][0.3, 1]. In the non-Gaussian family every node is a three-component Gaussian mixture: the component means are linear in the parents, with weights of standard deviation 0.3/∣Pa∣0.3/\sqrt{|\mathrm{Pa}|} and offsets 0.3(z1+0.7∣z2∣)0.3\left(z_1 + 0.7|z_2|\right) for standard-normal z1,z2z_1,z_2, which are skewed; the component scales are uniform in [0.3,0.7][0.3, 0.7]; and the mixing weights are drawn from a flat Dirichlet distribution and do not depend on the parents.

  • Data. The training set has 20 480 rows in the accuracy, scalability and learning scenarios and 4096 rows in the batching scenario; the sample-efficiency study uses 4096, 16 384, 32 768 and 65 536 rows. On real networks it has 10 240, 20 480, 40 960 or 81 920 rows, for networks with up to 10310^3, 10410^4, 10510^5 or more parameters. The test set has 4096 rows (1024 in the batching scenario and on real networks). The five seeds are 0 to 4.

  • Query selectors. Random: one target and its evidence variables are drawn uniformly for the problem, and the query is asked for the evidence values of 128 test rows. Topological (128 queries per cell): targets are allocated by structural role, 30% to hubs, 30% to cut nodes, 30% to terminals and 10% at random. Hubs are ranked by the size of their Markov blanket, that is, the set of their parents, their children and the other parents of their children. Cut nodes are the articulation points of the moral graph: the undirected graph obtained by linking the parents of every node and dropping the direction of the edges, which a cut node disconnects when it is removed. Terminals are ranked by their depth minus their number of descendants. Hubs, cut nodes and random targets are asked in the prediction or in the diagnosis direction with equal probability, and terminals in the prediction direction only. The evidence is taken along the longest path (40% of the queries), inside the Markov blanket (40%) or at random (20%). Heaviest: the top-ranked hub, cut node and terminal, each in the prediction and in the diagnosis direction and with full and with empty evidence, for at most twelve queries per cell (eight when the graph has no cut node); the evidence is taken along the longest path for hubs and terminals and inside the Markov blanket for cut nodes. In the batching scenario each of these queries is asked for the evidence values of 1024 rows.

  • Reference. For a discrete target the reference set has 5000 samples on synthetic networks and as many samples as the training set on real ones; a query whose evidence agrees with fewer than ten reference samples is not scored. For a continuous target the reference is a sample of 2000 draws from p(xQ∣xE)p(x_Q \mid x_E), obtained by likelihood weighting on the true model. Both references are finite samples, which gives the floor of Section 3. For a discrete target it comes from the few reference samples that agree with the evidence, so it varies with the network and with the query. The floor is the average error of an exact answer against the sampled reference and not a bound: an approximate method can fall slightly below the exact engines.

  • Learning metrics. The learning scenarios score the fitted conditionals directly, without queries. On discrete networks the metric is the parameter-recovery TV: the total variation between a learned and a true row of a CPT, averaged over the parent configurations with their true probabilities and then over the nodes. Continuous families have no common parameters to compare, since a linear-Gaussian model, an MDN and a kNN estimator do not share a parameter space, so we score the fitted density itself with the held-out negative log-likelihood (NLL) per node: minus the log-density of a test row under the fitted network, averaged over the test rows and divided by nn. The NLL is a strictly proper scoring rule. Its expectation is the entropy of the true conditionals plus the Kullback–Leibler divergence from the true to the fitted model, so on the same problem the difference between two methods is a difference in divergence from the truth, and it applies to every mechanism that exposes a density. We prefer it to two alternatives. W1, the metric of the inference scenarios, compares samples of a posterior and therefore needs a query and an engine, which would mix the error of learning with the error of inference. The calibration error PIT-KS (the Kolmogorov–Smirnov distance between the probability integral transform of held-out values and the uniform distribution) needs no query, but calibration is necessary and not sufficient: a model that ignores the parents and returns the marginal of each node is perfectly calibrated. Our runs show the difference: on 50-node non-Gaussian networks with 4096 rows FlexCode has less than half the PIT-KS of the linear-Gaussian model (0.028 against 0.065, close to the 0.023 of the MDN) and the worst NLL of the three (1.42 against 1.26 and 1.20). PIT-KS is reported for every method in Appendix B.5.

  • Batches with empty evidence. With empty evidence (Appendix B.3) the BB queries of a batch are the same marginal query, so NBN answers it once and the time per query is the time of one query divided by BB; we do not count this as a batching gain.

  • Particles. The sampling engines of NBN use 2048 particles in the accuracy, scalability and real-network scenarios and 16 in the batching scenario, which measures time only. Pyro uses 50 particles in every scenario.

  • Budgets and execution. The fit budget and the query budget are 1200 s each; the query budget is 600 s in the batching scenario. The memory cap of a cell is 80% of the memory that is free on the machine when the cell starts. Each cell runs in its own process, so that a timeout or an out-of-memory failure ends that cell only.

Reporting. In the figures the error bar of a method spans the smallest and the largest value that enters its interquartile mean, and the value axes are logarithmic. Each panel has its own legend; a method has the same colour in every figure, and for NBN the colour is the mechanism and the hatch is the engine. Each panel of the main text shows all applicable external baselines plus two NBN methods, the best parametric or neural one and the best non-parametric one (the two best on discrete networks), selected once per family on the accuracy metric of the scenario. On the continuous families of the accuracy and scalability scenarios the linear-Gaussian mechanism is shown as well, so that the NBN method that reaches the largest networks is always visible. The tables of Appendix B report the IQM ±12\pm\frac{1}{2} of the interquartile range.

Hardware. All runs use one server with an Intel Xeon E5-2640 v4 CPU at 2.40 GHz (20 cores), 126 GB of RAM and an NVIDIA Titan X (Pascal) GPU with 12 GB of memory.

Complete results

This appendix reports every method on every scenario of § 3, including the mechanisms and engines that the main text does not discuss (normalizing-flow, kernel-density and neural categorical conditionals, and the amortized importance-sampling engine AIS), and the fit and query times of the scenarios where the main text reports accuracy only. Methods carry the names of the configuration files, library–model–engine; for NBN the model is the mechanism of the conditionals. In the figures a bar is the interquartile mean (IQM) over the seeds a method solved and the error bar spans the smallest and the largest value that enters that mean; f/nf/n above a bar means that ff of nn seeds failed, and a missing bar carries the failure status. The value axes are logarithmic. Each panel has its own legend; a method has the same colour in every figure, and for NBN the colour is the mechanism and the hatch is the engine. In the tables a cell is IQM ±\pm half the interquartile range, followed by (f/nf/n) when ff of the nn seeds failed for any reason (time budget, memory, NaN output, error); a status alone (timeout, oom, nan) means that no seed was solved, and – that the method was not run in that configuration. In each column the best method is in bold: the one with the fewest failed seeds and, among those, the best IQM. In the learning scenarios the negative log-likelihood is the mean over the held-out rows, divided by the number of nodes.

Inference accuracy

Figure 5. Inference accuracy, all methods: accuracy (TV on discrete targets, W1 on continuous ones) against network size.

Figure 6. Inference accuracy, all methods: total query time (s) against network size.

Three-panel bar charts showing fit time against network size for discrete, continuous (Gaussian), and continuous (non-Gaussian) methods. The horizontal axis is $n$ (nodes), and the vertical axis is Fit time (s).

Figure 7. Inference accuracy, all methods: fit time (s) against network size.

Complete results

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-bayes-ve0.061±0.00830.0766±0.00590.0783±0.00310.0783±0.00350.078±0.0014 (1/5)
pgmpy-mle-ve0.061±0.00830.0766±0.00590.0783±0.00310.0783±0.00350.0782±0.00035
pomegranate-discrete-ve0.0678±0.0054 (2/5)nannantimeouttimeout
pyro-empirical-importance0.151±0.0130.201±0.0130.215±0.0054timeouttimeout
nbn-cat-ais0.0625±0.00850.0812±0.00520.0836±0.00320.0838±0.00180.0845±0.0014
nbn-cat-avi0.0534±0.00260.0845±0.00510.086±0.00120.082±0.00710.0875±0.0043
nbn-cat-lw0.0624±0.00820.0799±0.00530.0842±0.0030.0825±0.00270.0831±0.0024
nbn-cat-ve0.061±0.00830.0766±0.00590.0783±0.00310.0783±0.00350.0782±0.00035

Table 5. Inference accuracy, discrete networks: TV (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-bayes-ve0.0893±0.00180.504±0.273.33±3.31.85±1.742.9±39 (1/5)
pgmpy-mle-ve0.0882±0.00280.43±0.166.63±8.11.05±0.642.5±19
pomegranate-discrete-ve10.8±11289±16711±24timeouttimeout
pyro-empirical-importance43.1±0.81243±0.31490±3.4timeouttimeout
nbn-cat-ais1.81±0.0815.27±0.02611.1±0.1354.2±0.54109±1.7
nbn-cat-avi1.36±0.0316.78±0.05513.6±0.07569.3±1.8140±0.92
nbn-cat-lw1.31±0.0465.59±0.06611±0.1854.2±0.57108±0.79
nbn-cat-ve0.193±0.00650.48±0.0580.594±0.0590.578±0.0830.747±0.067

Table 6. Inference accuracy, discrete networks: total query time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-bayes-ve1.77±0.0122.09±0.00732.53±0.025.91±0.1610.5±0.33 (1/5)
pgmpy-mle-ve1.77±0.00692.04±0.00442.4±0.0265.41±0.0529.17±0.053
pomegranate-discrete-ve3.23±0.0243.34±0.0263.56±0.042timeouttimeout
pyro-empirical-importance0.116±0.0010.137±0.00110.17±0.0055timeouttimeout
nbn-cat-ais5.93±2.124.6±1020.8±0.022153±0.59187±2.5
nbn-cat-avi27.1±4.379.1±5127±0.29156±1.6193±3.1
nbn-cat-lw0.151±0.00150.177±0.000270.209±0.00140.556±0.00320.907±0.0044
nbn-cat-ve0.324±0.00120.41±0.00180.521±0.00621.46±0.0132.44±0.017

Table 7. Inference accuracy, discrete networks: fit time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict0.0359±0.00530.0495±0.00510.0617±0.0110.0676±0.00430.0394±0.01
pyro-empirical-importance0.17±0.0290.321±0.0710.449±0.027timeouttimeout
nbn-flexcode-lw0.0489±0.0150.104±0.0130.129±0.018timeouttimeout
nbn-flow-ais0.0534±0.010.0763±0.0093timeouttimeouttimeout
nbn-flow-avi0.048±0.0010.0729±0.011timeouttimeouttimeout
nbn-flow-lw0.0485±0.00330.0712±0.011timeouttimeouttimeout
nbn-kde-lw0.0408±0.0087 (1/5)oomoomoomoom
nbn-knn-lw0.0506±0.00590.0864±0.0040.096±0.0058oomoom
nbn-lg-ais0.0384±0.00730.0699±0.00820.0947±0.00850.117±0.0180.0723±0.012
nbn-lg-avi0.0477±0.0160.0659±0.010.0983±0.00930.121±0.0210.0703±0.015
nbn-lg-lw0.0353±0.00530.0659±0.00920.0937±0.00540.116±0.0150.0744±0.018
nbn-mdn-ais0.037±0.00510.0665±0.0110.0981±0.0029timeouttimeout
nbn-mdn-avi0.0481±0.0160.0643±0.010.099±0.0073timeouttimeout
nbn-mdn-lw0.0376±0.00460.0661±0.0130.0971±0.00068timeouttimeout

Table 8. Inference accuracy, linear-Gaussian networks: W1 (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict0.0963±0.00320.399±0.0190.676±0.0353.98±0.2410.1±0.25
pyro-empirical-importance32.1±0.98179±5.5367±2timeouttimeout
nbn-flexcode-lw2.15±0.228.69±0.417.4±0.25timeouttimeout
nbn-flow-ais14.2±0.21117±4.7timeouttimeouttimeout
nbn-flow-avi11±0.455.3±1.7timeouttimeouttimeout
nbn-flow-lw11.3±0.3254.3±1.5timeouttimeouttimeout
nbn-kde-lw17.2±2.2 (1/5)oomoomoomoom
nbn-knn-lw10±257.2±1.1122±1.8oomoom
nbn-lg-ais2.92±0.06415.1±0.3931.7±0.3115.6±0.232.2±0.23
nbn-lg-avi0.495±0.00751.76±0.0573.26±0.02416.2±0.2331.7±0.36
nbn-lg-lw0.675±0.0511.88±0.023.46±0.06316.2±0.2531.3±0.16
nbn-mdn-ais5.75±0.1636.1±1.376.1±0.71timeouttimeout
nbn-mdn-avi1.92±0.168.74±0.117.5±0.062timeouttimeout
nbn-mdn-lw2.15±0.0348.64±0.1117.4±0.16timeouttimeout

Table 9. Inference accuracy, linear-Gaussian networks: total query time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict1.95±0.0282±0.00942.12±0.0163.18±0.0264.34±0.04
pyro-empirical-importance0.12±0.0120.164±0.00470.205±0.00058timeouttimeout
nbn-flexcode-lw54.4±16437±17928±18timeouttimeout
nbn-flow-ais14.6±1.9196±26timeouttimeouttimeout
nbn-flow-avi122±3.1141±1.4timeouttimeouttimeout
nbn-flow-lw189±15678±36timeouttimeouttimeout
nbn-kde-lw2.45±0.12 (1/5)oomoomoomoom
nbn-knn-lw1.37±0.00974.73±0.0139.06±0.022oomoom
nbn-lg-ais18±3.1238±5.1305±27207±1.1212±1.2
nbn-lg-avi18±0.19123±0.055125±0.69142±3.7162±9.7
nbn-lg-lw0.377±0.00720.496±0.00130.644±0.00671.84±0.0153.24±0.012
nbn-mdn-ais25.4±3.2322±21479±73timeouttimeout
nbn-mdn-avi34.6±0.76125±0.35129±0.072timeouttimeout
nbn-mdn-lw55.3±15441±28930±11timeouttimeout

Table 10. Inference accuracy, linear-Gaussian networks: fit time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict0.131±0.070.223±0.0360.0901±0.020.0982±0.0490.156±0.012
pyro-empirical-importance0.228±0.0580.343±0.040.228±0.016timeouttimeout
nbn-flexcode-lw0.068±0.0370.175±0.0830.131±0.071timeouttimeout
nbn-flow-ais0.0599±0.0190.0801±0.0220.0516±0.0028timeouttimeout
nbn-flow-avi0.0517±0.00560.083±0.0230.0539±0.002timeouttimeout
nbn-flow-lw0.051±0.00260.0809±0.0240.0508±0.0043timeouttimeout
nbn-kde-lw0.0454±0.0079 (1/5)oomoomoomoom
nbn-knn-lw0.068±0.0280.11±0.0120.0681±0.0079oomoom
nbn-lg-ais0.13±0.070.224±0.0350.0917±0.0170.0998±0.0510.155±0.013
nbn-lg-avi0.131±0.070.232±0.0240.0903±0.0190.0991±0.050.155±0.012
nbn-lg-lw0.129±0.070.226±0.0360.0878±0.0160.102±0.0550.155±0.011
nbn-mdn-ais0.0483±0.0070.0791±0.0170.0627±0.0054timeouttimeout
nbn-mdn-avi0.0499±0.00840.0707±0.0150.0513±0.0053timeouttimeout
nbn-mdn-lw0.0475±0.0080.0715±0.0160.0522±0.007timeouttimeout

Table 11. Inference accuracy, non-Gaussian networks: W1 (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg-predict0.105±0.0120.416±0.0310.7±0.0133.79±0.0619.92±0.14
pyro-empirical-importance30.7±0.55180±6358±3.2timeouttimeout
nbn-flexcode-lw1.93±0.198.72±0.3717.4±0.33timeouttimeout
nbn-flow-ais13.5±0.14126±2.6110±2.1timeouttimeout
nbn-flow-avi10.6±0.3456±2.9110±1.6timeouttimeout
nbn-flow-lw10.6±0.2254.8±0.25111±1.5timeouttimeout
nbn-kde-lw16±2.1 (1/5)oomoomoomoom
nbn-knn-lw9.07±1.757.4±1.4121±1.5oomoom
nbn-lg-ais2.44±0.02914.1±0.02730.5±1.4153±7.7220±3.1
nbn-lg-avi0.391±0.0441.73±0.00973.27±0.02215.7±0.231.5±0.28
nbn-lg-lw0.612±0.00931.88±0.0333.48±0.06316±0.1431.1±0.0079
nbn-mdn-ais4.82±0.2428.6±0.2267±8.1timeouttimeout
nbn-mdn-avi1.71±0.148.61±0.03217.5±0.22timeouttimeout
nbn-mdn-lw1.84±0.0988.69±0.09917.4±0.23timeouttimeout

Table 12. Inference accuracy, non-Gaussian networks: total query time in seconds, against network size.

Scalability

Figure 8. Scalability, all methods: accuracy (TV on discrete targets, W1 on continuous ones) against network size.

Figure 9. Scalability, all methods: accuracy with full evidence against network size.

Scalability plots for discrete, continuous Gaussian, and continuous non-Gaussian methods

Figure 10. Scalability, all methods: time per query (s), both evidence modes against network size.

Three-panel bar charts showing scalability for discrete, continuous Gaussian, and continuous non-Gaussian Bayesian networks. The horizontal axis is $n$ (nodes), with values 10, 100, 1000, and 10000; the vertical axis is Time per query (s). Legends list the methods evaluated, and bars are marked with timeout or oom where applicable.

Figure 11. Scalability, all methods: time per query (s), full evidence against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-bayes-ve0.0284±0.00410.0343±0.00760.037±0.00130.0212±0.0029 (1/5)
pgmpy-mle-ve0.0258±0.0080.0256±0.00740.0343±0.00570.0291±0.0026
pomegranate-discrete-ve0.0159±0.0034 (2/5)nannantimeout
pyro-empirical-importance0.123±0.0150.164±0.00870.146±0.022timeout
nbn-cat-ais0.0317±0.0040.0392±0.00340.0303±0.01oom
nbn-cat-avi0.0337±0.00710.0394±0.00460.0351±0.0010.0847±0.079
nbn-cat-lw0.0326±0.00370.0387±0.0020.0409±0.00260.0389±0.0067
nbn-cat-ve0.0256±0.00830.03±0.00180.0306±0.00290.0225±0.0028 (2/5)

Table 14. Scalability, discrete networks: TV (lower is better), both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-bayes-ve0.0491±0.00550.0578±0.010.0645±0.00260.0323±0.0082 (1/5)
pgmpy-mle-ve0.0438±0.0130.0406±0.0180.0582±0.0110.0484±0.0051
pomegranate-discrete-ve0.0276±0.0087 (2/5)nannantimeout
pyro-empirical-importance0.12±0.0120.188±0.0240.151±0.0190.141±0.046 (1/5)
nbn-cat-ais0.046±0.00820.0595±0.0110.0498±0.019oom
nbn-cat-avi0.049±0.0160.0583±0.00930.0551±0.00660.102±0.078
nbn-cat-lw0.0495±0.00650.06±0.00220.0619±0.00460.0586±0.012
nbn-cat-ve0.0435±0.0140.0476±0.00350.0516±0.00810.0376±0.0067 (2/5)

Table 15. Scalability, discrete networks: TV (lower is better), full evidence, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-bayes-ve0.000709±7e-054.54±6.323.6±104.96±20 (1/5)
pgmpy-mle-ve0.000689±9.3e-052.43±2.218.9±1123.8±13
pomegranate-discrete-ve0.094±0.0875.87±0.23124±3.9timeout
pyro-empirical-importance0.359±0.00584.01±0.1240.4±0.34timeout
nbn-cat-ais0.0146±0.00040.08±0.000990.808±0.019oom
nbn-cat-avi0.00704±0.000360.0806±0.00180.782±0.0186.73±5.1
nbn-cat-lw0.0435±0.000270.131±0.00950.831±0.01510.1±0.035
nbn-cat-ve0.0104±0.000120.0296±0.00590.113±0.0160.212±0.024 (2/5)

Table 16. Scalability, discrete networks: time per query in seconds, both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-bayes-ve0.000942±7e-059.05±1346.8±219.78±41 (1/5)
pgmpy-mle-ve0.000912±0.000134.83±4.334.5±2647.5±26
pomegranate-discrete-ve0.107±0.0875.88±0.21125±4.3timeout
pyro-empirical-importance0.344±0.00563.98±0.1540.4±0.4461±10 (1/5)
nbn-cat-ais0.0145±0.000590.0802±0.00130.807±0.022oom
nbn-cat-avi0.00697±0.000310.0805±0.00160.782±0.0226.72±5
nbn-cat-lw0.0796±0.00110.183±0.0150.884±0.02710.1±0.052
nbn-cat-ve0.0201±0.000210.047±0.0250.189±0.0380.404±0.051 (2/5)

Table 17. Scalability, discrete networks: time per query in seconds, full evidence, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.0353±0.00870.0515±0.00280.0455±0.00890.0482±0.013
pyro-empirical-importance0.178±0.0320.3±0.0340.309±0.0370.218±0.031 (1/5)
nbn-flexible-lw0.0462±0.0120.101±0.026timeouttimeout
nbn-flow-ais0.0494±0.0095timeouttimeouttimeout
nbn-flow-avi0.0932±0.073timeouttimeouttimeout
nbn-flow-lw0.0436±0.0035timeouttimeouttimeout
nbn-kde-lw0.0473±0.0058 (1/5)oomoomoom
nbn-knn-lw0.0513±0.0080.0813±0.018oomoom
nbn-lg-ais0.032±0.00450.0594±0.00450.0584±0.0190.0475±0.004
nbn-lg-avi0.0378±0.00380.0578±0.00910.0546±0.0140.0478±0.013
nbn-lg-lw0.0348±0.00790.059±0.00650.0556±0.00810.0537±0.0037
nbn-mdn-ais0.0488±0.0140.0636±0.019timeouttimeout
nbn-mdn-avi0.0395±0.0140.0585±0.016timeouttimeout
nbn-mdn-lw0.034±0.00720.0539±0.0047timeouttimeout

Table 18. Scalability, linear-Gaussian networks: W1 (lower is better), both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.0303±0.0130.0553±0.00760.0378±0.00540.0466±0.0056
pyro-empirical-importance0.138±0.050.33±0.0510.338±0.0380.226±0.022 (1/5)
nbn-flexcode-lw0.0524±0.0190.113±0.024timeouttimeout
nbn-flow-ais0.0435±0.013timeouttimeouttimeout
nbn-flow-avi0.104±0.084timeouttimeouttimeout
nbn-flow-lw0.0467±0.0098timeouttimeouttimeout
nbn-kde-lw0.0656±0.011 (1/5)oomoomoom
nbn-knn-lw0.0557±0.0170.102±0.033oomoom
nbn-lg-ais0.028±0.00470.0637±0.0120.0726±0.0240.0454±0.0038
nbn-lg-avi0.0331±0.00870.0654±0.00370.0603±0.0130.0493±0.0077
nbn-lg-lw0.0291±0.00770.0526±0.00140.0652±0.0120.056±0.0094
nbn-mdn-ais0.0399±0.00570.0694±0.019timeouttimeout
nbn-mdn-avi0.035±0.0110.0558±0.018timeouttimeout
nbn-mdn-lw0.0326±0.00840.0534±0.0077timeouttimeout

Table 19. Scalability, linear-Gaussian networks: W1 (lower is better), full evidence, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.000719±1.3e-050.00648±0.00140.0803±0.001917.3±0.16
pyro-empirical-importance0.237±0.00362.86±0.1130±0.29324±5.4 (1/5)
nbn-flexcode-lw0.0146±0.00240.135±0.002timeouttimeout
nbn-flow-ais0.0989±0.0055timeouttimeouttimeout
nbn-flow-avi0.0793±0.00092timeouttimeouttimeout
nbn-flow-lw0.0728±0.00074timeouttimeouttimeout
nbn-kde-lw0.0893±0.011 (1/5)oomoomoom
nbn-knn-lw0.0457±0.00910.788±0.011oomoom
nbn-lg-ais0.0132±0.000290.202±0.0150.264±0.012.56±0.0042
nbn-lg-avi0.00272±4.5e-050.025±0.000180.26±0.00512.64±0.04
nbn-lg-lw0.0103±0.00120.0357±0.000720.26±0.00222.57±0.014
nbn-mdn-ais0.0272±0.000960.519±0.039timeouttimeout
nbn-mdn-avi0.00938±0.000790.126±0.0073timeouttimeout
nbn-mdn-lw0.0172±0.00240.134±0.0027timeouttimeout

Table 20. Scalability, linear-Gaussian networks: time per query in seconds, both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.000936±1.7e-050.0071±0.00180.0812±0.00217.5±0.27
pyro-empirical-importance0.228±0.00472.88±0.1130±0.26324±5.5 (1/5)
nbn-flexcode-lw0.0187±0.00260.143±0.0028timeouttimeout
nbn-flow-ais0.0987±0.0057timeouttimeouttimeout
nbn-flow-avi0.0816±0.0016timeouttimeouttimeout
nbn-flow-lw0.075±0.0012timeouttimeouttimeout
nbn-kde-lw0.109±0.0095 (1/5)oomoomoom
nbn-knn-lw0.0568±0.00850.798±0.0098oomoom
nbn-lg-ais0.013±0.000130.204±0.0160.268±0.0122.57±0.0098
nbn-lg-avi0.00323±6.9e-050.0259±0.000270.262±0.0052.61±0.059
nbn-lg-lw0.018±0.00250.0457±0.00150.271±0.00312.59±0.025
nbn-mdn-ais0.0279±0.00130.519±0.004timeouttimeout
nbn-mdn-avi0.00972±0.000740.127±0.0072timeouttimeout
nbn-mdn-lw0.024±0.00450.143±0.0048timeouttimeout

Table 21. Scalability, linear-Gaussian networks: time per query in seconds, full evidence, against network size.

Complete results

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.111±0.0540.136±0.0490.0891±0.0140.101±0.048
pyro-empirical-importance0.228±0.0760.22±0.0320.203±0.0290.24±0.046 (1/5)
nbn-flexcode-lw0.0687±0.0290.0981±0.034timeouttimeout
nbn-flow-ais0.054±0.0130.0694±0.0084 (3/5)timeouttimeout
nbn-flow-avi0.0613±0.0060.0682±0.0039 (3/5)timeouttimeout
nbn-flow-lw0.0627±0.0160.0576±0.0028 (3/5)timeouttimeout
nbn-kde-lw0.0478±0.012 (1/5)oomoomoom
nbn-knn-lw0.0691±0.0190.0783±0.013oomoom
nbn-lg-ais0.11±0.0480.131±0.0430.0899±0.0180.0908±0.056
nbn-lg-avi0.115±0.0570.135±0.0440.0942±0.00870.102±0.06
nbn-lg-lw0.113±0.060.13±0.0470.0934±0.00590.0999±0.05
nbn-mdn-ais0.0458±0.0060.0564±0.016 (1/5)timeouttimeout
nbn-mdn-avi0.0487±0.00710.0453±0.006 (1/5)timeouttimeout
nbn-mdn-lw0.0484±0.00920.0453±0.004 (1/5)timeouttimeout

Table 22. Scalability, non-Gaussian networks: W1 (lower is better), both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.115±0.0610.142±0.0470.083±0.00880.101±0.044
pyro-empirical-importance0.232±0.0590.193±0.0170.175±0.0240.209±0.036 (1/5)
nbn-flexcode-lw0.0714±0.0260.0956±0.044timeouttimeout
nbn-flow-ais0.0517±0.00820.0853±0.012 (3/5)timeouttimeout
nbn-flow-avi0.0578±0.0090.0729±0.0081 (3/5)timeouttimeout
nbn-flow-lw0.0596±0.0110.0641±0.0042 (3/5)timeouttimeout
nbn-kde-lw0.0516±0.0076 (1/5)oomoomoom
nbn-knn-lw0.0755±0.0190.0779±0.009oomoom
nbn-lg-ais0.123±0.0540.138±0.0430.0864±0.0180.0944±0.058
nbn-lg-avi0.129±0.0650.146±0.0440.0923±0.00970.106±0.053
nbn-lg-lw0.125±0.0640.137±0.0450.0917±0.00990.0992±0.041
nbn-mdn-ais0.049±0.00480.0446±0.014 (1/5)timeouttimeout
nbn-mdn-avi0.0575±0.0130.0487±0.0053 (1/5)timeouttimeout
nbn-mdn-lw0.0504±0.0120.0414±0.0046 (1/5)timeouttimeout

Table 23. Scalability, non-Gaussian networks: W1 (lower is better), full evidence, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.00076±4.5e-050.00659±0.00180.0954±0.0118.6±0.13
pyro-empirical-importance0.258±0.00392.97±0.03133.1±0.39334±5.7 (1/5)
nbn-flexcode-lw0.0158±0.00230.154±0.0053timeouttimeout
nbn-flow-ais0.106±0.000860.835±0.0039 (3/5)timeouttimeout
nbn-flow-avi0.0806±0.00330.895±0.00 (3/5)timeouttimeout
nbn-flow-lw0.0818±0.00440.87±0.0025 (3/5)timeouttimeout
nbn-kde-lw0.107±0.014 (1/5)oomoomoom
nbn-knn-lw0.0584±0.0111.03±0.091oomoom
nbn-lg-ais0.0232±0.000290.292±0.0642.66±1.82.69±0.097
nbn-lg-avi0.00319±0.000290.0257±0.000280.26±0.00532.67±0.033
nbn-lg-lw0.0126±0.00180.0387±0.00160.277±0.00392.87±0.11
nbn-mdn-ais0.045±0.00180.602±0.057 (1/5)timeouttimeout
nbn-mdn-avi0.0117±0.00580.135±0.013 (1/5)timeouttimeout
nbn-mdn-lw0.0198±0.00120.144±0.0046 (1/5)timeouttimeout

Table 24. Scalability, non-Gaussian networks: time per query in seconds, both evidence modes, against network size.

Methodn=10n = 10n=100n = 100n=1000n = 1000n=10000n = 10000
pgmpy-lg-predict0.000981±8.2e−050.000981 \pm8.2\mathrm{e}{-05}0.00693±0.00190.00693 \pm0.00190.0935±0.00780.0935 \pm0.007818.5±0.218.5 \pm0.2
pyro-empirical-importance0.248±0.00220.248 \pm0.00222.93±0.0632.93 \pm0.06332.8±0.02632.8 \pm0.026334±5.7334 \pm5.7 (1/5)
nbn-flexcode-lw0.022±0.00390.022 \pm0.00390.164±0.00520.164 \pm0.0052timeouttimeout
nbn-flow-ais0.107±0.000530.107 \pm0.000530.831±0.00180.831 \pm0.0018 (3/5)timeouttimeout
nbn-flow-avi0.083±0.00410.083 \pm0.00410.901±0.0110.901 \pm0.011 (3/5)timeouttimeout
nbn-flow-lw0.0847±0.00470.0847 \pm0.00470.873±0.00480.873 \pm0.0048 (3/5)timeouttimeout
nbn-kde-lw0.127±0.0140.127 \pm0.014 (1/5)oomoomoom
nbn-knn-lw0.0707±0.00910.0707 \pm0.00911.02±0.0891.02 \pm0.089oomoom
nbn-lg-ais0.0236±0.000150.0236 \pm0.000150.291±0.0640.291 \pm0.0642.67±1.82.67 \pm1.82.68±0.0242.68 \pm0.024
nbn-lg-avi0.00389±0.000340.00389 \pm0.000340.027±0.000290.027 \pm0.000290.264±0.0110.264 \pm0.0112.7±0.0592.7 \pm0.059
nbn-lg-lw0.0218±0.00310.0218 \pm0.00310.0521±0.00230.0521 \pm0.00230.287±0.00950.287 \pm0.00952.94±0.0532.94 \pm0.053
nbn-mdn-ais0.0437±0.00180.0437 \pm0.00180.613±0.0660.613 \pm0.066 (1/5)timeouttimeout
nbn-mdn-avi0.0126±0.000520.0126 \pm0.000520.137±0.0140.137 \pm0.014 (1/5)timeouttimeout
nbn-mdn-lw0.0269±0.00140.0269 \pm0.00140.154±0.00710.154 \pm0.0071 (1/5)timeouttimeout

Table 25. Scalability, non-Gaussian networks: time per query in seconds, full evidence, against network size.

Batched queries

Three-panel bar charts showing batched-query time per query for discrete, continuous Gaussian, and continuous non-Gaussian methods

Figure 12. Batched queries, all methods: time per query (s), full evidence against query batch size BB.

Three stacked bar charts showing time per query versus query batch size for discrete, continuous (Gaussian), and continuous (non-Gaussian) methods

Figure 13. Batched queries, all methods: time per query (s), empty evidence against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-bayes-ve0.0346±0 (4/5)–––
pgmpy-mle-ve0.0671±0.025 (1/5)–––
pomegranate-discrete-vetimeout0.0216±0.000120.00829±0.00140.0058±0.0016
pyro-empirical-importancetimeout–––
nbn-cat-ais0.0425±0.00190.000431±4.3e-060.000187±2.4e-050.000154±1.6e-05
nbn-cat-avi0.0417±0.00170.000394±1.2e-050.00012±4.5e-069.14e-05±1.9e-05
nbn-cat-lw0.0425±0.00070.000446±9.4e-060.0002±1.2e-060.000146±6.4e-06
nbn-cat-ve0.00278±0.000160.000688±0.000310.000681±0.000310.000679±0.00031

Table 26. Batched queries, discrete networks: time per query in seconds, full evidence, against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-bayes-ve0.00281±0 (4/5)–––
pgmpy-mle-ve0.00381±0.0012 (1/5)–––
pomegranate-discrete-vetimeout0.0206±0.000260.00802±0.00150.00535±0.0014
pyro-empirical-importancetimeout–––
nbn-cat-ais0.0437±0.00120.000341±9.6e-068.5e-05±4.7e-064.49e-05±5e-06
nbn-cat-avi0.0413±0.00070.000316±9e-067.87e-05±1.8e-064.02e-05±7.7e-07
nbn-cat-lw0.0436±0.00110.000343±9.5e-068.5e-05±4.6e-064.42e-05±6.7e-07
nbn-cat-ve0.00138±0.000131.25e-05±5.3e-073.94e-06±1.8e-072.66e-06±6e-07

Table 27. Batched queries, discrete networks: time per query in seconds, empty evidence, against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-lg-predict0.00262±0.00011–––
pyro-empirical-importancetimeout–––
nbn-flexcode-lw0.0341±0.000830.000569±3.4e-050.000425±8.9e-060.000428±2.1e-05
nbn-flow-aistimeout0.00324±2.5e-050.000894±9.4e-060.000625±1.5e-05
nbn-flow-avitimeout0.00325±5.4e-050.000867±3e-050.000593±2e-05
nbn-flow-lwtimeout0.00326±6.9e-050.000896±2.2e-050.000627±1e-05
nbn-kde-lw0.0428±0.000680.0022±4.9e-050.00217±6.7e-050.00217±5.4e-05
nbn-knn-lw0.0459±0.000360.000792±2.1e-050.000682±2.6e-050.000649±1.7e-05
nbn-lg-ais0.0631±0.000750.00071±6.8e-060.000244±3.4e-060.000217±2.6e-06
nbn-lg-avi0.0119±0.000250.000136±2.1e-066.51e-05±1.8e-065.25e-05±1.2e-06
nbn-lg-lw0.0123±0.00030.000199±7.8e-070.000142±1.5e-050.000111±4.6e-07
nbn-mdn-aistimeout0.00118±3.7e-050.000416±1.6e-050.000258±2.3e-05
nbn-mdn-avi0.052±0.00150.000467±1.6e-050.000148±1.7e-069.37e-05±1.5e-06
nbn-mdn-lw0.052±0.00150.000515±3.6e-050.000197±4.5e-060.000172±2.1e-05

Table 28. Batched queries, linear-Gaussian networks: time per query in seconds, full evidence, against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-lg-predict0.00236±0.00013–––
pyro-empirical-importancetimeout–––
nbn-flexcode-lw0.033±0.000710.000257±1.5e-066.6e-05±5.6e-073.27e-05±4.3e-07
nbn-flow-aistimeout0.00309±3.8e-050.000773±1.3e-050.000388±6.6e-06
nbn-flow-avitimeout0.00313±4.1e-050.000784±4.1e-050.00039±3.6e-06
nbn-flow-lwtimeout0.00308±6.7e-050.000773±2e-050.000393±1.2e-05
nbn-kde-lw0.0419±0.000650.000336±9.2e-068.42e-05±1.7e-064.21e-05±1.1e-06
nbn-knn-lw0.0439±0.000450.000324±4.1e-068.01e-05±5.9e-074.03e-05±1.1e-06
nbn-lg-ais0.0654±0.00110.000515±6.7e-060.000126±8.5e-076.42e-05±5.6e-07
nbn-lg-avi0.0114±0.000218.98e-05±5.8e-072.33e-05±5.4e-071.19e-05±4.7e-08
nbn-lg-lw0.0118±0.000299.4e-05±1.1e-062.46e-05±2.8e-071.26e-05±1.5e-07
nbn-mdn-aistimeout0.00105±2.3e-050.000266±3.7e-060.000133±2.3e-06
nbn-mdn-avi0.052±0.00140.000414±1.2e-050.000104±1.2e-065.25e-05±1.6e-06
nbn-mdn-lw0.0517±0.00190.000402±1.3e-050.000101±3.3e-065.12e-05±1.6e-06

Table 29. Batched queries, linear-Gaussian networks: time per query in seconds, empty evidence, against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-lg-predict0.0031±6.8e-05–––
pyro-empirical-importancetimeout–––
nbn-flexcode-lw0.0344±0.000790.000556±3.4e-050.000432±9.1e-060.000452±9.4e-06
nbn-flow-aistimeout0.00324±6.6e-060.000911±2.3e-050.000629±8.9e-06
nbn-flow-avitimeout0.00324±4.9e-060.000846±1.4e-050.000579±9.9e-06
nbn-flow-lwtimeout0.00328±9e-050.000908±1.3e-050.000629±8.9e-06
nbn-kde-lw0.0426±0.00150.00222±5.9e-050.00219±6.6e-050.0022±7.7e-05
nbn-knn-lw0.0466±0.00110.0008±3e-050.000684±1.3e-050.000653±1.9e-05
nbn-lg-ais0.0625±0.000570.000625±1.1e-050.00024±1.6e-050.000197±1.7e-05
nbn-lg-avi0.012±0.000120.000141±3.7e-067.99e-05±1.9e-055.34e-05±2e-07
nbn-lg-lw0.0121±0.000260.000196±1.2e-060.000129±1.4e-050.00011±1.6e-06
nbn-mdn-aistimeout0.00115±1.3e-050.000392±9.5e-060.000239±1.1e-05
nbn-mdn-avi0.0515±0.000440.000444±5.3e-060.000144±5.8e-069.06e-05±1.9e-06
nbn-mdn-lw0.0523±0.000560.000541±2.6e-050.000203±1.3e-060.000151±2.3e-06

Table 30. Batched queries, non-Gaussian networks: time per query in seconds, full evidence, against query batch size BB.

MethodB=1B = 1B=128B = 128B=512B = 512B=1024B = 1024
pgmpy-lg-predict0.00278±4.3e-05–––
pyro-empirical-importancetimeout–––
nbn-flexcode-lw0.0332±0.000530.000261±4.1e-066.67e-05±2.2e-063.38e-05±6.7e-07
nbn-flow-aistimeout0.0031±9.2e-060.000775±9.2e-060.000387±4.8e-07
nbn-flow-avitimeout0.00307±8.2e-060.000775±4e-060.000383±1e-06
nbn-flow-lwtimeout0.00311±8.4e-050.000785±1.7e-050.000385±1.5e-05
nbn-kde-lw0.0421±0.00150.000338±2.4e-058.64e-05±5.3e-064.41e-05±1.2e-06
nbn-knn-lw0.0446±0.000780.000336±2.2e-058.36e-05±4.3e-064.26e-05±1.9e-06
nbn-lg-ais0.0647±0.000640.000512±1e-050.00013±5e-076.52e-05±1.1e-06
nbn-lg-avi0.0116±0.000259.3e-05±1.1e-062.38e-05±6.9e-071.2e-05±1.8e-07
nbn-lg-lw0.0116±0.00029.22e-05±1.7e-062.41e-05±5e-071.23e-05±2.8e-07
nbn-mdn-aistimeout0.00104±2.1e-050.00026±9.3e-070.00013±2.7e-06
nbn-mdn-avi0.0515±0.000460.000397±5.5e-060.000102±3.6e-065.05e-05±2e-06
nbn-mdn-lw0.0521±0.000170.000409±4.6e-060.000103±2.6e-065.22e-05±5.6e-07

Table 31. Batched queries, non-Gaussian networks: time per query in seconds, empty evidence, against query batch size BB.

Real networks

Figure 14. Real networks, all methods: accuracy (TV on discrete targets, W1 on continuous ones) against network.

Figure 15. Real networks, all methods: total query time (s) against network.

Complete results

Methodasiasachsmildewbarleyhailfinderdiabeteslinkmunin
pgmpy-bayes-ve0.00383±0.000740.00383\pm0.000740.0124±0.00180.0124\pm0.00180.033±0.00240.033\pm0.00240.0241±0.00130.0241\pm0.00130.0198±0.000920.0198\pm0.000920.0407±0.00490.0407\pm0.0049 (1/5)0.00183±0.000140.00183\pm0.000140.00488±0.000330.00488\pm0.00033
pgmpy-mle-ve0.00343±0.00110.00343\pm0.00110.0128±0.00160.0128\pm0.00160.0325±0.00320.0325\pm0.00320.0275±0.000510.0275\pm0.000510.0203±0.00150.0203\pm0.00150.0393±0.00110.0393\pm0.0011 (1/5)0.00197±0.000240.00197\pm0.000240.00464±9.7e−050.00464\pm9.7\mathrm{e}{-05}
pomegranate-discrete-ve0.0038±0.00140.0038\pm0.00140.0122±0.00440.0122\pm0.0044nannan0.0208±0.00120.0208\pm0.0012nantimeouttimeout
pyro-empirical-importance0.0336±0.000690.0336\pm0.000690.0818±0.00910.0818\pm0.00910.287±0.00410.287\pm0.00410.215±0.0140.215\pm0.0140.136±0.00550.136\pm0.0055timeouttimeouttimeout
nbn-cat-ais0.00524±0.00110.00524\pm0.00110.0168±0.00240.0168\pm0.00240.072±0.00270.072\pm0.00270.0459±0.00360.0459\pm0.00360.0333±0.00250.0333\pm0.00250.118±0.0110.118\pm0.0110.00604±0.00110.00604\pm0.00110.0105±0.00120.0105\pm0.0012
nbn-cat-avi0.00478±0.000760.00478\pm0.000760.0162±0.00150.0162\pm0.00150.0703±0.00480.0703\pm0.00480.0401±0.000640.0401\pm0.000640.0266±0.000540.0266\pm0.000540.128±0.0080.128\pm0.0080.00612±0.00210.00612\pm0.00210.0105±0.000930.0105\pm0.00093
nbn-cat-lw0.00424±0.000960.00424\pm0.000960.0159±0.00220.0159\pm0.00220.0709±0.00160.0709\pm0.00160.0474±0.00190.0474\pm0.00190.0281±0.000520.0281\pm0.000520.129±0.00990.129\pm0.00990.00496±0.000320.00496\pm0.000320.00929±0.000560.00929\pm0.00056
nbn-cat-ve0.00354±0.00120.00354\pm0.00120.012±0.00110.012\pm0.00110.0465±0.00270.0465\pm0.00270.024±0.00130.024\pm0.00130.0206±0.000870.0206\pm0.000870.0343±0.00160.0343\pm0.00160.00174±0.000330.00174\pm0.000330.00401±0.00030.00401\pm0.0003

Table 32. Real networks, discrete networks: TV (lower is better), against network.

Methodasiasachsmildewbarleyhailfinderdiabeteslinkmunin
pgmpy-bayes-ve0.0165±0.00180.0165\pm0.00180.0183±8.6e−050.0183\pm8.6\mathrm{e}{-05}0.331±0.050.331\pm0.051.82±0.0271.82\pm0.0270.229±0.0150.229\pm0.01513.6±1.313.6\pm1.3 (1/5)0.9±0.050.9\pm0.050.804±0.0560.804\pm0.056
pgmpy-mle-ve0.0171±0.00140.0171\pm0.00140.0183±0.000510.0183\pm0.000510.269±0.0410.269\pm0.0411.88±0.11.88\pm0.10.232±0.0160.232\pm0.01660.8±1.1e+0260.8\pm1.1\mathrm{e}{+02} (1/5)0.965±0.040.965\pm0.040.763±0.020.763\pm0.02
pomegranate-discrete-ve0.785±0.0220.785\pm0.0227.47±0.0367.47\pm0.03667.5±0.3267.5\pm0.32146±0.85146\pm0.8560.9±2.360.9\pm2.31.14e+03±8.41.14\mathrm{e}{+03}\pm8.4timeouttimeout
pyro-empirical-importance6.15±0.186.15\pm0.1811.6±0.4111.6\pm0.41117±0.47117\pm0.47217±4.8217\pm4.8240±5240\pm5timeouttimeouttimeout
nbn-cat-ais0.328±0.0120.328\pm0.0120.602±0.0110.602\pm0.0113.12±0.033.12\pm0.035.13±0.0335.13\pm0.03312.5±0.5812.5\pm0.5845.2±0.6845.2\pm0.68255±0.64255\pm0.64360±1.6360\pm1.6
nbn-cat-avi0.116±0.00330.116\pm0.00330.219±0.00250.219\pm0.00252.25±0.0152.25\pm0.0154.13±0.024.13\pm0.024.39±0.0654.39\pm0.06538.7±1.738.7\pm1.765.6±1.165.6\pm1.194.7±0.5594.7\pm0.55
nbn-cat-lw0.482±0.0140.482\pm0.0140.614±0.00710.614\pm0.00713.39±0.023.39\pm0.025.35±0.0155.35\pm0.0155.74±0.15.74\pm0.144.8±1.144.8\pm1.179.8±1.179.8\pm1.1111±0.29111\pm0.29
nbn-cat-ve0.113±0.00210.113\pm0.00210.115±0.00130.115\pm0.00130.531±0.0230.531\pm0.0231.01±0.021.01\pm0.020.733±0.0580.733\pm0.05855.9±5.255.9\pm5.24.09±0.64.09\pm0.61.8±0.051.8\pm0.05

Table 33. Real networks, discrete networks: total query time in seconds, against network.

Methodecoli70arth150
pgmpy-lg-predict0.0418±0.0020.0418\pm0.0020.021±7.5e−050.021\pm7.5\mathrm{e}{-05}
pyro-empirical-importance0.245±0.00290.245\pm0.00290.107±0.00310.107\pm0.0031
nbn-flexcode-lw0.148±0.00770.148\pm0.00770.0389±0.00190.0389\pm0.0019
nbn-flow-ais0.0923±0.00730.0923\pm0.00733.94±0.0623.94\pm0.062
nbn-flow-avi0.0942±0.00250.0942\pm0.00253.91±0.0733.91\pm0.073
nbn-flow-lw0.0942±0.00870.0942\pm0.00873.92±0.0753.92\pm0.075
nbn-kde-lw0.111±0.00180.111\pm0.00180.0297±0.00020.0297\pm0.0002
nbn-knn-lw0.111±0.00520.111\pm0.00520.0418±0.000830.0418\pm0.00083
nbn-lg-ais0.0603±0.00120.0603\pm0.00120.0218±0.000340.0218\pm0.00034
nbn-lg-avi0.0541±0.00620.0541\pm0.00620.0212±1.1e−050.0212\pm1.1\mathrm{e}{-05}
nbn-lg-lw0.0547±0.00120.0547\pm0.00120.0219±0.00030.0219\pm0.0003
nbn-mdn-ais0.059±0.0020.059\pm0.0020.0498±0.00210.0498\pm0.0021
nbn-mdn-avi0.0615±0.000740.0615\pm0.000740.0503±0.00110.0503\pm0.0011
nbn-mdn-lw0.0586±0.00290.0586\pm0.00290.0471±0.00040.0471\pm0.0004

Table 34. Real networks, Gaussian networks: W1 (lower is better), against network.

Methodecoli70arth150
pgmpy-lg-predict0.314±0.020.314\pm0.020.425±0.0210.425\pm0.021
pyro-empirical-importance141±0.82141\pm0.82317±4.6317\pm4.6
nbn-flexcode-lw8.58±0.0478.58\pm0.04713.9±0.1113.9\pm0.11
nbn-flow-ais106±4.2106\pm4.2102±1.9102\pm1.9
nbn-flow-avi47±0.5847\pm0.58101±0.25101\pm0.25
nbn-flow-lw45.9±1.145.9\pm1.199±0.599\pm0.5
nbn-kde-lw76±0.6676\pm0.66115±8.3115\pm8.3
nbn-knn-lw39.7±0.2239.7\pm0.2245.2±3.345.2\pm3.3
nbn-lg-ais18.6±0.2618.6\pm0.262.98±0.142.98\pm0.14
nbn-lg-avi1.49±0.0451.49\pm0.0452.97±0.052.97\pm0.05
nbn-lg-lw1.64±0.0181.64\pm0.0183.11±0.13.11\pm0.1
nbn-mdn-ais42.4±0.442.4\pm0.413.5±0.8513.5\pm0.85
nbn-mdn-avi8.6±0.238.6\pm0.2313.5±0.4113.5\pm0.41
nbn-mdn-lw8.55±0.378.55\pm0.3713.6±0.613.6\pm0.6

Table 35. Real networks, Gaussian networks: total query time in seconds, against network.

Methodhealthcaresangiovesemehra
pyro-empirical-importance106±15106 \pm150.0583±0.00270.0583 \pm0.00273.74e+07±1.9e+063.74\mathrm{e}{+07} \pm1.9\mathrm{e}{+06}
nbn-flexcode-lw221±21221 \pm210.0344±0.00270.0344 \pm0.00272.03e+08±1.9e+072.03\mathrm{e}{+08} \pm1.9\mathrm{e}{+07}
nbn-flow-ais572±1.3e+02572 \pm1.3\mathrm{e}{+02}0.0412±0.0040.0412 \pm0.0042.21e+06±1.6e+052.21\mathrm{e}{+06} \pm1.6\mathrm{e}{+05}
nbn-flow-avi543±39543 \pm390.042±0.0050.042 \pm0.0053.56e+06±2.8e+063.56\mathrm{e}{+06} \pm2.8\mathrm{e}{+06}
nbn-flow-lw581±1.1e+02581 \pm1.1\mathrm{e}{+02}0.0412±0.00840.0412 \pm0.00841.97e+06±5.7e+051.97\mathrm{e}{+06} \pm5.7\mathrm{e}{+05}
nbn-kde-lw16.6±116.6 \pm10.0252±0.00170.0252 \pm0.0017oom
nbn-knn-lw23.4±1123.4 \pm110.028±0.00190.028 \pm0.00192.41e+06±7.1e+052.41\mathrm{e}{+06} \pm7.1\mathrm{e}{+05}
nbn-mdn-ais461±2.3e+02461 \pm2.3\mathrm{e}{+02}0.0271±0.00440.0271 \pm0.00442.17e+06±4.1e+052.17\mathrm{e}{+06} \pm4.1\mathrm{e}{+05}
nbn-mdn-avi576±1.9e+02576 \pm1.9\mathrm{e}{+02}0.022±0.00290.022 \pm0.00292.97e+06±6.8e+052.97\mathrm{e}{+06} \pm6.8\mathrm{e}{+05}
nbn-mdn-lw625±90625 \pm900.0242±0.00320.0242 \pm0.00321.89e+06±2e+051.89\mathrm{e}{+06} \pm2\mathrm{e}{+05}

Table 36. Real networks, CLG networks: W1 (lower is better), against network.

Methodhealthcaresangiovesemehra
pyro-empirical-importance4.03±0.194.03 \pm0.1917.8±0.617.8 \pm0.642.2±1.942.2 \pm1.9
nbn-flexcode-lw0.199±0.0110.199 \pm0.0110.873±0.00920.873 \pm0.00921.3±0.0371.3 \pm0.037
nbn-flow-ais0.688±0.0320.688 \pm0.0328.52±2.68.52 \pm2.67.12±0.0237.12 \pm0.023
nbn-flow-avi0.688±0.0460.688 \pm0.0465.16±0.155.16 \pm0.157.71±0.517.71 \pm0.51
nbn-flow-lw0.771±0.0480.771 \pm0.0485.24±0.115.24 \pm0.117.24±0.267.24 \pm0.26
nbn-kde-lw0.827±0.0370.827 \pm0.0379.78±0.239.78 \pm0.23oom
nbn-knn-lw0.345±0.0210.345 \pm0.0212.25±0.0522.25 \pm0.0522.98±0.0982.98 \pm0.098
nbn-mdn-ais0.152±0.00770.152 \pm0.00771.67±0.0471.67 \pm0.0471.2±0.0411.2 \pm0.041
nbn-mdn-avi0.126±0.00560.126 \pm0.00560.705±0.020.705 \pm0.021.18±0.0551.18 \pm0.055
nbn-mdn-lw0.166±0.00640.166 \pm0.00640.747±0.0230.747 \pm0.0231.19±0.0421.19 \pm0.042

Table 37. Real networks, CLG networks: total query time in seconds, against network.

Parameter learning

Bar chart showing parameter-recovery TV against network size for discrete parameter learning using pgmpy Bayes, pgmpy MLE, pomegranate, pyro, NBN cat, and NBN cat-Bayes

Figure 16. Parameter learning, all methods: parameter-recovery TV against network size.

Bar charts showing parameter learning calibration error for continuous Gaussian and non-Gaussian distributions across network sizes

Figure 17. Parameter learning, all methods: calibration error (PIT-KS) against network size.

Three-panel bar charts showing held-out negative log-likelihood per node against network size for discrete, continuous (Gaussian), and continuous (non-Gaussian) data, comparing parameter-learning methods

Figure 18. Parameter learning, all methods: held-out negative log-likelihood per node against network size.

Figure 19. Parameter learning, all methods: fit time (s) against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-bayes0.00907±0.00230.00907 \pm0.00230.0423±0.0020.0423 \pm0.0020.0484±0.00150.0484 \pm0.00150.0585±0.00180.0585 \pm0.00180.0592±0.000630.0592 \pm0.00063
pgmpy-mle0.00908±0.00230.00908 \pm0.00230.0423±0.0020.0423 \pm0.0020.0484±0.00150.0484 \pm0.00150.0585±0.00180.0585 \pm0.00180.0592±0.000630.0592 \pm0.00063
pomegranate-discrete-ve0.00908±0.00230.00908 \pm0.00230.0423±0.0020.0423 \pm0.0020.0484±0.00150.0484 \pm0.00150.0585±0.00180.0585 \pm0.00180.0592±0.000630.0592 \pm0.00063
pyro-empirical0.00897±0.00210.00897 \pm0.00210.0408±0.00170.0408 \pm0.00170.0463±0.00160.0463 \pm0.00160.0561±0.0020.0561 \pm0.0020.0567±0.000660.0567 \pm0.00066
nbn-cat0.00908±0.00230.00908 \pm0.00230.0423±0.0020.0423 \pm0.0020.0484±0.00150.0484 \pm0.00150.0585±0.00180.0585 \pm0.00180.0592±0.000630.0592 \pm0.00063
nbn-cat-bayes0.00897±0.00210.00897 \pm0.00210.0408±0.00170.0408 \pm0.00170.0463±0.00160.0463 \pm0.00160.0561±0.0020.0561 \pm0.0020.0567±0.000660.0567 \pm0.00066

Table 38. Parameter learning, discrete networks: parameter-recovery TV (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
nbn-cat1.12±0.0171.12 \pm0.0171.18±0.0031.18 \pm0.0031.19±0.00691.19 \pm0.00691.21±0.0111.21 \pm0.0111.21±0.00421.21 \pm0.0042
nbn-cat-bayes1.12±0.0171.12 \pm0.0171.13±0.00121.13 \pm0.00121.12±0.00261.12 \pm0.00261.13±0.000931.13 \pm0.000931.13±0.000591.13 \pm0.00059

Table 39. Parameter learning, discrete networks: held-out negative log-likelihood per node (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-bayes1.83±0.0151.83 \pm0.0152.18±0.00912.18 \pm0.00912.72±0.0922.72 \pm0.0926.26±0.186.26 \pm0.1811±0.1611 \pm0.16
pgmpy-mle1.85±0.0371.85 \pm0.0372.09±0.00582.09 \pm0.00582.54±0.0162.54 \pm0.0165.73±0.0235.73 \pm0.0239.75±0.0799.75 \pm0.079
pomegranate-discrete-ve3.31±0.00113.31 \pm0.00113.44±0.0253.44 \pm0.0253.66±0.00333.66 \pm0.00334.63±0.0164.63 \pm0.0166.26±0.0116.26 \pm0.011
pyro-empirical0.12±0.00110.12 \pm0.00110.14±0.00240.14 \pm0.00240.182±0.00120.182 \pm0.00120.469±0.00740.469 \pm0.00740.711±0.0320.711 \pm0.032
nbn-cat0.336±0.00240.336 \pm0.00240.401±0.00460.401 \pm0.00460.495±0.00390.495 \pm0.00391.3±0.031.3 \pm0.032.13±0.022.13 \pm0.02
nbn-cat-bayes0.311±0.00560.311 \pm0.00560.391±0.00550.391 \pm0.00550.473±0.00410.473 \pm0.00411.27±0.00831.27 \pm0.00832.11±0.0112.11 \pm0.011

Table 40. Parameter learning, discrete networks: fit time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg0.0299±0.00560.0299 \pm0.00560.0181±0.00130.0181 \pm0.00130.0165±0.000670.0165 \pm0.000670.0151±2.8e−050.0151 \pm2.8\mathrm{e}{-05}0.0148±2.9e−050.0148 \pm2.9\mathrm{e}{-05}
nbn-flexcode0.0358±0.000890.0358 \pm0.000890.0241±0.000340.0241 \pm0.000340.0237±0.00040.0237 \pm0.0004timeouttimeout
nbn-flow0.0413±0.00450.0413 \pm0.00450.026±0.000340.026 \pm0.000340.0249±0.000220.0249 \pm0.00022 (3/5)timeouttimeout
nbn-kde0.0397±0.00180.0397 \pm0.0018 (1/5)0.0272±0.000220.0272 \pm0.00022 (2/5)0.0289±0.00190.0289 \pm0.0019 (2/5)0.0285±0.00430.0285 \pm0.0043 (1/5)oom
nbn-knn0.0366±0.00380.0366 \pm0.00380.0346±0.000490.0346 \pm0.000490.0394±0.00170.0394 \pm0.0017oomoom
nbn-lg0.032±0.00580.032 \pm0.00580.0189±0.00120.0189 \pm0.00120.0171±0.000560.0171 \pm0.000560.0152±7.5e−050.0152 \pm7.5\mathrm{e}{-05}0.0149±6.4e−050.0149 \pm6.4\mathrm{e}{-05}
nbn-mdn0.0315±0.00540.0315 \pm0.00540.0203±0.000480.0203 \pm0.00048timeouttimeouttimeout

Table 41. Parameter learning, linear-Gaussian networks: PIT-KS (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg0.919±0.0780.919 \pm0.0780.943±0.0180.943 \pm0.0180.924±0.040.924 \pm0.040.937±0.00760.937 \pm0.00760.931±0.00410.931 \pm0.0041
nbn-flexcode0.948±0.0610.948 \pm0.0611.04±0.0141.04 \pm0.0141.04±0.0351.04 \pm0.035timeouttimeout
nbn-flow0.968±0.020.968 \pm0.021±0.0061 \pm0.0060.968±0.0130.968 \pm0.013 (3/5)timeouttimeout
nbn-kde0.971±0.0390.971 \pm0.039 (1/5)1.02±0.0181.02 \pm0.018 (2/5)0.973±0.0130.973 \pm0.013 (2/5)1.05±0.0241.05 \pm0.024 (1/5)oom
nbn-knn0.933±0.0270.933 \pm0.0270.985±0.0120.985 \pm0.0120.984±0.0340.984 \pm0.034oomoom
nbn-lg0.919±0.0780.919 \pm0.0780.943±0.0180.943 \pm0.0180.924±0.040.924 \pm0.040.937±0.00760.937 \pm0.00760.931±0.00410.931 \pm0.0041
nbn-mdn0.921±0.0780.921 \pm0.0780.947±0.0170.947 \pm0.017timeouttimeouttimeout

Table 42. Parameter learning, linear-Gaussian networks: held-out negative log-likelihood per node (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg1.83±0.061.83 \pm0.062.14±0.0252.14 \pm0.0252.16±0.0952.16 \pm0.0953.44±0.043.44 \pm0.044.02±0.254.02 \pm0.25
nbn-flexcode47±1447 \pm14400±10400 \pm10852±19852 \pm19timeouttimeout
nbn-flow182±5.5182 \pm5.5605±16605 \pm161.16e+03±161.16\mathrm{e}{+03} \pm16 (3/5)timeouttimeout
nbn-kde1.96±0.0951.96 \pm0.095 (1/5)15.2±0.2315.2 \pm0.23 (2/5)34±0.7734 \pm0.77 (2/5)172±1.3172 \pm1.3 (1/5)oom
nbn-knn1.08±0.0131.08 \pm0.0133.76±0.0283.76 \pm0.0287.11±0.167.11 \pm0.16oomoom
nbn-lg0.37±0.00490.37 \pm0.00490.449±0.00220.449 \pm0.00220.547±0.00730.547 \pm0.00731.45±0.00141.45 \pm0.00142.57±0.0182.57 \pm0.018
nbn-mdn77.8±2377.8 \pm23674±27674 \pm27timeouttimeouttimeout

Table 43. Parameter learning, linear-Gaussian networks: fit time in seconds, against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg0.0603±0.00620.063±0.00210.0646±0.00680.065±0.000790.067±0.00051
nbn-flexcode0.0314±0.00330.027±0.00540.0368±0.013timeouttimeout
nbn-flow0.0392±0.00560.0252±0.000670.0225±0.00058timeouttimeout
nbn-kde0.0313±0.0024 (1/5)0.0241±0.00052 (2/5)0.0262±0.00022 (2/5)oomoom
nbn-knn0.0376±0.00240.0333±0.000770.0325±0.00026oomoom
nbn-lg0.0644±0.00470.0637±0.00230.0652±0.00640.065±0.000680.067±0.00047
nbn-mdn0.0356±0.00880.0205±0.001timeouttimeouttimeout

Table 44. Parameter learning, non-Gaussian networks: PIT-KS (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg1.13±0.0711.31±0.0951.42±0.141.36±0.0151.39±0.016
nbn-flexcode1.11±0.0681.3±0.0271.41±0.048timeouttimeout
nbn-flow1.11±0.0761.26±0.0961.84±0.84timeouttimeout
nbn-kde1.08±0.087 (1/5)1.45±3.4 (2/5)1.51±0.032 (2/5)oomoom
nbn-knn1.11±0.0671.25±0.0531.31±0.048oomoom
nbn-lg1.13±0.0711.31±0.0951.42±0.141.36±0.0151.39±0.016
nbn-mdn1.09±0.061.19±0.031timeouttimeouttimeout

Table 45. Parameter learning, non-Gaussian networks: held-out negative log-likelihood per node (lower is better), against network size.

Methodn=10n = 10n=50n = 50n=100n = 100n=500n = 500n=1000n = 1000
pgmpy-lg1.84±0.0331.92±0.022.01±0.0162.8±0.0593.93±0.15
nbn-flexcode47.3±14404±14858±18timeouttimeout
nbn-flow178±16553±411.08e+03±10timeouttimeout
nbn-kde1.97±0.1 (1/5)15.4±0.23 (2/5)34.3±2 (2/5)oomoom
nbn-knn1.1±0.00833.75±0.00847.57±0.77oomoom
nbn-lg0.356±0.00750.449±0.0130.553±0.011.51±0.0312.76±0.028
nbn-mdn79.4±24679±24timeouttimeouttimeout

Table 46. Parameter learning, non-Gaussian networks: fit time in seconds, against network size.

Sample efficiency

Figure 20. Sample efficiency, all methods: parameter-recovery TV against training-set size.

Two bar charts showing calibration error (PIT-KS) against training-set size for continuous Gaussian and non-Gaussian data and all methods

Figure 21. Sample efficiency, all methods: calibration error (PIT-KS) against training-set size.

Figure 22. Sample efficiency, all methods: held-out negative log-likelihood per node against training-set size.

Giovanni Briglia, Marco Lippi, Stefano Mariani, and Franco Zambonelli

Figure 23. Sample efficiency, all methods: fit time (s) against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
pgmpy-bayes0.0977±0.00350.0474±0.00230.0335±0.00110.0236±0.00064
pgmpy-mle0.0979±0.00350.0474±0.00230.0336±0.00110.0236±0.00064
pomegranate-discrete-ve0.0979±0.00350.0474±0.00230.0336±0.00110.0236±0.00064
pyro-empirical0.0847±0.00190.0453±0.00210.0328±0.0010.0233±0.00062
nbn-cat0.0979±0.00350.0474±0.00230.0336±0.00110.0236±0.00064
nbn-cat-bayes0.0847±0.00190.0453±0.00210.0328±0.0010.0233±0.00062

Table 47. Sample efficiency, discrete networks: parameter-recovery TV (lower is better), against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
nbn-cat1.8±0.0491.21±0.00471.15±0.00151.12±0.0029
nbn-cat-bayes1.16±0.00171.13±0.00311.12±0.00351.12±0.0031

Table 48. Sample efficiency, discrete networks: held-out negative log-likelihood per node (lower is better), against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
pgmpy-bayes2.29±0.0252.22±0.00382.25±0.0352.34±0.023
pgmpy-mle2.14±0.00922.18±0.022.23±0.0132.39±0.017
pomegranate-discrete-ve3.5±0.00683.56±0.0493.57±0.0633.59±0.021
pyro-empirical0.135±0.00450.142±0.00040.16±0.00360.187±0.022
nbn-cat0.407±0.00240.41±0.000930.408±0.0030.413±0.019
nbn-cat-bayes0.404±0.00460.406±0.00290.404±0.0020.401±0.0052

Table 49. Sample efficiency, discrete networks: fit time in seconds, against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
pgmpy-lg0.0189±0.000910.018±0.00130.0173±0.00080.0173±0.00073
nbn-flexcode0.0292±0.00130.0238±0.000520.0228±0.00029timeout
nbn-flow0.0297±0.00090.0261±0.000930.0252±0.00034timeout
nbn-kde0.0323±0.00150.0275±0.0014oomoom
nbn-knn0.0397±0.000510.0346±0.000850.0329±0.000760.0304±0.00049 (1/5)
nbn-lg0.0187±0.00084 (1/5)0.0181±0.00130.018±0.00140.0176±0.0012
nbn-mdn0.0208±0.00110.0195±0.000550.0206±0.00096 (1/5)timeout

Table 50. Sample efficiency, linear-Gaussian networks: PIT-KS (lower is better), against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
pgmpy-lg0.943±0.0190.942±0.0170.944±0.0190.945±0.019
nbn-flexcode1.17±0.0131.05±0.00871.02±0.017timeout
nbn-flow1.02±0.00431.01±0.00731±0.0043timeout
nbn-kde1.05±0.0131.02±0.013oomoom
nbn-knn1.01±0.0120.988±0.0130.981±0.0150.966±0.013 (1/5)
nbn-lg0.935±0.015 (1/5)0.942±0.0170.944±0.0190.945±0.019
nbn-mdn0.953±0.0190.946±0.0170.958±0.011 (1/5)timeout

Table 51. Sample efficiency, linear-Gaussian networks: held-out negative log-likelihood per node (lower is better), against training-set size.

Methodntr=4096n_{\mathrm{tr}} = 4096ntr=16384n_{\mathrm{tr}} = 16384ntr=32768n_{\mathrm{tr}} = 32768ntr=65536n_{\mathrm{tr}} = 65536
pgmpy-lg2.06±0.0492.06±0.0412.14±0.0432.12±0.057
nbn-flexcode86±4.3331±9.1664±25timeout
nbn-flow232±3.9573±5.5886±42timeout
nbn-kde1.29±0.02311.9±0.049oomoom
nbn-knn0.737±0.00442.86±0.0349.99±0.3937.7±0.53 (1/5)
nbn-lg0.451±0.0072 (1/5)0.462±0.00390.464±0.00230.509±0.015
nbn-mdn153±7.3589±201.18e+03±12 (1/5)timeout

Table 52. Sample efficiency, linear-Gaussian networks: fit time in seconds, against training-set size.

Methodntr=4096n_{tr}=4096ntr=16384n_{tr}=16384ntr=32768n_{tr}=32768ntr=65536n_{tr}=65536
pgmpy-lg0.0632±0.00210.063±0.0020.0635±0.00240.0653±0.0022
nbn-flexcode0.0275±0.00510.028±0.00520.0287±0.0054timeout
nbn-flow0.0286±0.00150.0244±0.000230.0234±0.00035timeout
nbn-kde0.0305±2.7e-050.025±0.00032oomoom
nbn-knn0.0388±0.000890.0345±0.00090.032±0.000920.0311±0.0013
nbn-lg0.0646±0.00220.0645±0.0020.0647±0.00250.0663±0.0024
nbn-mdn0.0234±0.00150.0206±0.00150.021±0.00093timeout

Table 53. Sample efficiency, non-Gaussian networks: PIT-KS (lower is better), against training-set size.

Methodntr=4096n_{tr}=4096ntr=16384n_{tr}=16384ntr=32768n_{tr}=32768ntr=65536n_{tr}=65536
pgmpy-lg1.26±0.031.27±0.0351.27±0.0291.27±0.037
nbn-flexcode1.42±0.0371.31±0.0221.29±0.031timeout
nbn-flow1.23±0.031.24±0.0551.22±0.026timeout
nbn-kde1.45±0.0251.62±0.34oomoom
nbn-knn1.25±0.0261.23±0.0261.22±0.0271.21±0.028
nbn-lg1.26±0.031.27±0.0351.27±0.0291.27±0.037
nbn-mdn1.2±0.031.19±0.0281.19±0.029timeout

Table 54. Sample efficiency, non-Gaussian networks: held-out negative log-likelihood per node (lower is better), against training-set size.

Methodntr=4096n_{tr}=4096ntr=16384n_{tr}=16384ntr=32768n_{tr}=32768ntr=65536n_{tr}=65536
pgmpy-lg2.04±0.0441.99±0.0182.04±0.0162.2±0.096
nbn-flexcode83.4±4.5324±17633±19timeout
nbn-flow222±13488±4.8816±20timeout
nbn-kde1.15±0.0210.2±0.45oomoom
nbn-knn0.681±0.0122.46±0.00668.31±0.05430.2±0.49
nbn-lg0.442±0.00720.44±0.00150.44±0.00890.452±0.0021
nbn-mdn142±8.3552±421.09e+03±44timeout

Table 55. Sample efficiency, non-Gaussian networks: fit time in seconds, against training-set size.

References

  1. [1]Oriol Abril-Pla, Virgile Andreani, Colin Carroll, Larry Dong, Christopher J Fonsnesbeck, Maxim Kochurov, Ravin Kumar, Junpeng Lao, Christian C Luhmann, Osvaldo A Martin, et al. 2023. PyMC: a modern, and comprehensive probabilistic programming framework in Python. PeerJ Computer Science 9 (2023), e1516.
  2. [2]Rishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron C Courville, and Marc Bellemare. 2021. Deep reinforcement learning at the edge of the statistical precipice. Advances in neural information processing systems 34 (2021), 29304–29320.arxiv.org/abs/2108.13264
  3. [3]Ankur Ankan and Johannes Textor. 2024. pgmpy: A python toolkit for bayesian networks. Journal of Machine Learning Research 25, 265 (2024), 1–8.arxiv.org/abs/2304.08639
  4. [4]David Atienza, Concha Bielza, and Pedro Larrañaga. 2022. Semiparametric Bayesian Networks. Information Sciences 584 (2022), 564–582. doi:10.1016/j.ins.2021.10.074DOI
  5. [5]David Atienza, Pedro Larrañaga, and Concha Bielza. 2022. Hybrid Semiparametric Bayesian Networks. In TEST, Vol. 31. 299–327.DOI
  6. [6]Paul Beaumont, Hen Horsburgh, Philip Pilgerstorfer, Angel Droth, Richard Oentaryo, Steven Ler, Hiep Nguyen, Gabriel Azevedo Ferreira, Zain Patel, and Wesley Leong. 2021. CausalNex. URL https://github.com/quantumblacklabs/causalnex (2021).
  7. [7]Eli Bingham, Jonathan P Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul Szerlip, Paul Horsfall, and Noah D Goodman. 2019. Pyro: Deep universal probabilistic programming. Journal of machine learning research 20, 28 (2019), 1–6.arxiv.org/abs/1810.09538
  8. [8]Christopher M. Bishop. 1994. Mixture Density Networks. Technical Report NCRG/94/004. Aston University.
  9. [9]Patrick Bläbaum, Peter Götz, Kailash Budhathoki, Atalanti A Mastakouri, and Dominik Janzing. 2024. DoWhy-GCM: An extension of DoWhy for causal inference in graphical causal models. Journal of Machine Learning Research 25, 147 (2024), 1–7.
  10. [10]Craig Boutilier, Richard Dearden, Moisés Goldszmidt, et al. 1995. Exploiting structure in policy construction. In IJCAI, Vol. 14. 1104–1113.
  11. [11]John S. Breese and David Heckerman. 1996. Decision-Theoretic Troubleshooting: A Framework for Repair and Experiment. In UAI ’96: Proceedings of the Twelfth Annual Conference on Uncertainty in Artificial Intelligence, Reed College, Portland, Oregon, USA, August 1–4, 1996, Eric Horvitz and Finn Verner Jensen (Eds.). Morgan Kaufmann, 124–132. https://dlpitt.org/uai/displayArticleDetails.jsp?mmnu=1&smnu=2&article_id=360&proceeding_id=12
  12. [12]Yoojung Choi, Antonio Vergari, and Guy Van den Broeck. 2020. Probabilistic Circuits: A Unifying Framework for Tractable Probabilistic Models. Technical Report. University of California, Los Angeles. http://starai.cs.ucla.edu/papers/ProbCirc20.pdf
  13. [13]Gregory F. Cooper. 1990. The Computational Complexity of Probabilistic Inference Using Bayesian Belief Networks. Artif. Intell. 42, 2-3 (1990), 393–405. doi:10.1016/0004-3702(90)90060-DDOI
  14. [14]Gaspard, Duchamp, Christophe Gonzales, and Pierre-Henri Wuillemin. 2020. aGrUM/pyAgrum: a toolbox to build models and algorithms for Probabilistic Graphical Models in Python. In International Conference on Probabilistic Graphical Models. PMLR.
  15. [15]Robert Fung and Kuo-Chu Chang. 1989. Weighing and Integrating Evidence for Stochastic Simulation in Bayesian Networks. In Proceedings of the 5th Conference on Uncertainty in Artificial Intelligence (UAI). 209–219.arxiv.org/abs/1304.1504
  16. [16]Peyré Gabriel and Cuturi Marco. 2019. Computational optimal transport with applications to data sciences. Foundations and trends® in machine learning 11, 5-6 (2019), 355–607.DOI
  17. [17]Tomas Geffner, Javier Antorán, Adam Foster, Wenbo Gong, Chao Ma, Emme Kiciman, Amit Sharma, Angus Lamb, Martin Kukla, Nick Pawlowski, Miltiadis Allamanis, and Cheng Zhang. 2022. Deep End-to-end Causal Inference. arXiv preprint arXiv:2202.02195 (2022).arxiv.org/abs/2202.02195
  18. [18]Samuel J. Gershman and Noah D. Goodman. 2014. Amortized Inference in Probabilistic Reasoning. Proceedings of the Annual Meeting of the Cognitive Science Society 36 (2014).
  19. [19]Carlos Guestrin, Daphne Koller, Ronald Parr, and Shobha Venkataraman. 2003. Efficient Solution Algorithms for Factored MDPs. Journal of Artificial Intelligence Research 19 (2003), 399–468.
  20. [20]David Ha and Jurgen Schmidhuber. 2018. World models. arXiv preprint arXiv:1803.10122 2, 3 (2018).DOI
  21. [21]Anca Nea, Oswaldo Morales Napoles, and Daniel Ababei. 2015. Non-Parametric Bayesian Networks: Improving Theory and Reviewing Applications. Reliability Engineering & System Safety 144 (2015), 265–284.
  22. [22]David Heckerman. 1998. A tutorial on learning with Bayesian networks. Learning in graphical models (1998), 301–354.
  23. [23]Arthur E. Hoerl and Robert W. Kennard. 1970. Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics 12, 1 (1970), 55–67.
  24. [24]Katja Leckstadt, Björn Bornkamp, Marco Grzegorczyk, Jakob Wieczorek, M. Rashid Sheriff, Hernán O. Greeco, and Eli Zamir. 2010. Nonparametric Bayesian Networks. Bayesian Statistics 9 (2010).
  25. [25]Rafael Izbicki and Ann B. Lee. 2017. Converting High-Dimensional Regression to High-Dimensional Conditional Density Estimation. Electronic Journal of Statistics 11, 2 (2017), 2800–2831.arxiv.org/abs/1704.08095
  26. [26]Adirian Javlay, Pablo Sánchez-Martín, and Isabel Valera. 2023. Causal Normalizing Flows: From Theory to Practice. In Advances in Neural Information Processing Systems, Vol. 36.
  27. [27]Jiantong Jiang, Zeyi Wen, Atif Mansoor, and Ajmal Mian. 2023. POSTER: Fast Parallel Exact Inference on Bayesian Networks. In Proceedings of the 28th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming (PPoPP). doi:10.1145/3572848.3577476DOI
  28. [28]George H. John and Pat Langley. 1995. Estimating Continuous Distributions in Bayesian Classifiers. In Proceedings of the 11th Conference on Uncertainty in Artificial Intelligence (UAI). 338–345.
  29. [29]Leslie Pack Kaelbling, Michael L. Littman, and Anthony R Cassandra. 1998. Planning and acting in partially observable stochastic domains. Artificial intelligence 101, 1-2 (1998), 99–134.
  30. [30]Michael Kearns and Daphne Koller. 1999. Efficient Reinforcement Learning in Factored MDPs. In Proceedings of the 16th International Joint Conference on Artificial Intelligence (IJCAI). 740–747.
  31. [31]Ilyes Khemakhem, Ricardo Monti, Robert Leech, and Aapo Hyvärinen. 2021. Causal Autoregressive Flows. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics (AISTATS). 3520–3528.
  32. [32]Diederik P. Kingma and Max Welling. 2014. Auto-Encoding Variational Bayes. In International Conference on Learning Representations (ICLR).arxiv.org/abs/1312.6114
  33. [33]Daphne Koller and Nir Friedman. 2009. Probabilistic Graphical Models: Principles and Techniques. MIT Press.
  34. [34]Evangelia Kyrimi, Scott McLachlan, Kudakwashe Dube, Mariana R. Neves, Ali Fahmi, and Norman Fenton. 2021. A Comprehensive Scoping Review of Bayesian Networks in Healthcare: Past, Present and Future. Artificial Intelligence in Medicine 117 (2021), 102108.
  35. [35]Steffen L. Lauritzen and Nanny Wermuth. 1989. Graphical Models for Associations between Variables, some of which are Qualitative and some Quantitative. The Annals of Statistics 17, 1 (1989), 31–57.DOI
  36. [36]Tuan Anh Le, Atılım Günés Baydin, and Frank Wood. 2017. Inference Compilation and Universal Probabilistic Programming. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS). 1338–1348.arxiv.org/abs/1610.09900
  37. [37]Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. 2020. Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems. arXiv preprint arXiv:2005.01643 (2020).arxiv.org/abs/2005.01643
  38. [38]Dimitris Margaritis. 2005. Distribution-Free Learning of Bayesian Network Structure in Continuous Domains. Proceedings of the AAAI Conference on Artificial Intelligence (2005).
  39. [39]Joaquín Mori, Josep Maria Mateo-Sanz, and Antonio Salmerón. 2016. Inference in Hybrid Bayesian Networks: A Survey. International Journal of Approximate Reasoning (2016).
  40. [40]Fritz Obermeyer, Eli Bingham, Martin Jankowiak, Neeraj Pradhan, Justin Chiu, Alexander Rush, and Noah Goodman. 2019. Tensor Variable Elimination for Plated Factor Graphs. In Proceedings of the 36th International Conference on Machine Learning (ICML).
  41. [41]George Papamakarios, Theophané Pavlakou, and Iain Murray. 2017. Masked Autoregressive Flow for Density Estimation. In Advances in Neural Information Processing Systems, Vol. 30.arxiv.org/abs/1705.07057
  42. [42]Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. 2019. PyTorch: An Imperative Style, High-Performance Deep Learning Library. Advances in Neural Information Processing Systems 32 (2019).arxiv.org/abs/1912.01703
  43. [43]Nick Pawlowski, Daniel C. Castro, and Ben Glocker. 2020. Deep Structural Causal Models for Tractable Counterfactual Inference. In Advances in Neural Information Processing Systems, Vol. 33.arxiv.org/abs/2006.06485
  44. [44]Judea Pearl. 1988. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Morgan Kaufmann.
  45. [45]Robert Peharz, Steven Lang, Antonio Vergari, Karl Stelzner, Alejandro Molina, Martin Trapp, Guy Van den Broeck, Kristian Kersting, and Zoubin Ghahramani. 2020. Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuits. In Proceedings of the 37th International Conference on Machine Learning (ICML) (Proceedings of Machine Learning Research, Vol. 119). 7563–7574.arxiv.org/abs/2004.06231
  46. [46]Paloma Rabalney, Cedric De Boom, and Thomas Demeester. 2022. Neural Bayesian Network Understudy. arXiv preprint arXiv:2211.08243 (2022).
  47. [47]Danilo Jimenez Rezende and Shakir Mohamed. 2015. Variational Inference with Normalizing Flows. In Proceedings of the 32nd International Conference on Machine Learning (ICML) (Proceedings of Machine Learning Research, Vol. 37). 1530–1538.arxiv.org/abs/1505.05770
  48. [48]Antonio Salmerón, Rafael Rumí, Helge Langseth, Thomas D. Nielsen, and Anders L. Madsen. 2018. A Review of Inference Algorithms for Hybrid Bayesian Networks. Journal of Artificial Intelligence Research 62 (2018), 799–828.DOI
  49. [49]Jacob Schreiber. 2018. Pomegranate: fast and flexible probabilistic modeling in python. Journal of Machine Learning Research 18, 164 (2018), 1–6.arxiv.org/abs/1711.00137
  50. [50]Marco Scutari. 2010. Learning Bayesian Networks with the bnlearn R Package. Journal of Statistical Software 35, 3 (2010), 1–22.arxiv.org/abs/0908.3817
  51. [51]Ross D. Shachter and Mark A. Peot. 1989. Simulation Approaches to General Probabilistic Inference on Belief Networks. In Proceedings of the 5th Conference on Uncertainty in Artificial Intelligence (UAI). 221–231.arxiv.org/abs/1304.1526
  52. [52]Amit Sharma and Emre Kiciman. 2020. DoWhy: An end-to-end library for causal inference. arXiv preprint arXiv:2011.04216 (2020).arxiv.org/abs/2011.04216
  53. [53]Charles J. Stone. 1977. Consistent Nonparametric Regression. The Annals of Statistics 5, 4 (1977), 595–620.DOI
  54. [54]Alexandre B. Tsybakov. 2009. Introduction to Nonparametric Estimation. Springer. doi:10.1007/B13794DOI
  55. [55]Philippe Weber, Gabriela Medina-Oliva, Christophe Simon, and Benoît Iung. 2012. Overview on Bayesian Networks Applications for Dependability, Risk Analysis and Maintenance Areas. Engineering Applications of Artificial Intelligence 25, 4 (2012), 671–682.
  56. [56]Kevin Xia, Kai-Zhan Lee, Yoshua Bengio, and Elias Bareinboim. 2021. The Causal-Neural Connection: Expressiveness, Learnability, and Inference. In Advances in Neural Information Processing Systems, Vol. 34.arxiv.org/abs/2107.00793
  57. [57]Nevin Lianwen Zhang and David Poole. 1994. A Simple Approach to Bayesian Network Computations. In Proceedings of the 10th Conference on Artificial Intelligence. 171–178.
  58. [58]Lu Zheng, Ole Mengshoel, and Jike Chong. 2011. Belief Propagation by Message Passing in Junction Trees: Computing Each Message Faster Using GPU Parallelization. In Proceedings of the 27th Conference on Uncertainty in Artificial Intelligence (UAI). 822–830.arxiv.org/abs/1202.3777

Paper details

vlnc:W_z5ykf4p6
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents