Table of Contents
Fetching ...

Variance Computation for Weighted Model Counting with Knowledge Compilation Approach

Kengo Nakamura, Masaaki Nishino, Norihito Yasuda

TL;DR

This work addresses the problem of quantifying uncertainty in probabilistic inference by computing the variance of weighted model counting (WMC) when the weights carry uncertainty. It develops a polynomial-time algorithm for variance of WMC when the Boolean function is represented as a structured d-DNNF, while proving intractability for broader representations such as structured DNNFs, d-DNNFs, and FBDDs. The paper also demonstrates a practical application to Bayesian networks with constant treewidth, enabling variance computation of marginal probabilities, and provides empirical evidence of tractability on real networks. Overall, the approach integrates knowledge compilation techniques with probabilistic reasoning to enable uncertainty-aware inference and parameter learning. The results offer a principled framework for analyzing how parameter variance propagates to inference variance, with potential impact on robust decision-making in probabilistic systems.

Abstract

One of the most important queries in knowledge compilation is weighted model counting (WMC), which has been applied to probabilistic inference on various models, such as Bayesian networks. In practical situations on inference tasks, the model's parameters have uncertainty because they are often learned from data, and thus we want to compute the degree of uncertainty in the inference outcome. One possible approach is to regard the inference outcome as a random variable by introducing distributions for the parameters and evaluate the variance of the outcome. Unfortunately, the tractability of computing such a variance is hardly known. Motivated by this, we consider the problem of computing the variance of WMC and investigate this problem's tractability. First, we derive a polynomial time algorithm to evaluate the WMC variance when the input is given as a structured d-DNNF. Second, we prove the hardness of this problem for structured DNNFs, d-DNNFs, and FBDDs, which is intriguing because the latter two allow polynomial time WMC algorithms. Finally, we show an application that measures the uncertainty in the inference of Bayesian networks. We empirically show that our algorithm can evaluate the variance of the marginal probability on real-world Bayesian networks and analyze the impact of the variances of parameters on the variance of the marginal.

Variance Computation for Weighted Model Counting with Knowledge Compilation Approach

TL;DR

This work addresses the problem of quantifying uncertainty in probabilistic inference by computing the variance of weighted model counting (WMC) when the weights carry uncertainty. It develops a polynomial-time algorithm for variance of WMC when the Boolean function is represented as a structured d-DNNF, while proving intractability for broader representations such as structured DNNFs, d-DNNFs, and FBDDs. The paper also demonstrates a practical application to Bayesian networks with constant treewidth, enabling variance computation of marginal probabilities, and provides empirical evidence of tractability on real networks. Overall, the approach integrates knowledge compilation techniques with probabilistic reasoning to enable uncertainty-aware inference and parameter learning. The results offer a principled framework for analyzing how parameter variance propagates to inference variance, with potential impact on robust decision-making in probabilistic systems.

Abstract

One of the most important queries in knowledge compilation is weighted model counting (WMC), which has been applied to probabilistic inference on various models, such as Bayesian networks. In practical situations on inference tasks, the model's parameters have uncertainty because they are often learned from data, and thus we want to compute the degree of uncertainty in the inference outcome. One possible approach is to regard the inference outcome as a random variable by introducing distributions for the parameters and evaluate the variance of the outcome. Unfortunately, the tractability of computing such a variance is hardly known. Motivated by this, we consider the problem of computing the variance of WMC and investigate this problem's tractability. First, we derive a polynomial time algorithm to evaluate the WMC variance when the input is given as a structured d-DNNF. Second, we prove the hardness of this problem for structured DNNFs, d-DNNFs, and FBDDs, which is intriguing because the latter two allow polynomial time WMC algorithms. Finally, we show an application that measures the uncertainty in the inference of Bayesian networks. We empirically show that our algorithm can evaluate the variance of the marginal probability on real-world Bayesian networks and analyze the impact of the variances of parameters on the variance of the marginal.
Paper Structure (19 sections, 12 theorems, 15 equations, 7 figures, 7 tables, 3 algorithms)

This paper contains 19 sections, 12 theorems, 15 equations, 7 figures, 7 tables, 3 algorithms.

Key Result

Theorem 7

When $f,g$ are given as st-d-DNNFs $\alpha,\beta$ respecting the same vtree, CVC can be solved in $O( |\alpha||\beta|+|\mathcal{V}|^2 )$ time. Thus, when $f$ is given as an st-d-DNNF $\alpha$, VC can be solved in $O( |\alpha|^2+|\mathcal{V}|^2 )$ time.

Figures (7)

  • Figure 1: (a) A Bayesian network. (b) Example of ordinal inference, where parameters are fixed. (c) Example of our situation where parameters have variances.
  • Figure 2: (a) A vtree and an st-d-DNNF. (b) A d-DNNF that is not structured decomposable.
  • Figure 3: The "algalactivity2" network.
  • Figure 4: (a) A Bayesian network. (b) A jointree for (a). (c) A d-DNNF built by the algorithm of darwiche03ac with jointree of (b). (d) A vtree $\mathsf{T}_b$. (e) Whole vtree before enforcing that every internal vnode has exactly two child vnodes. (f) Whole vtree after enforcing that every internal vnode has exactly two child vnodes.
  • Figure 5: The "blockchain" network.
  • ...and 2 more figures

Theorems & Definitions (29)

  • Definition 1
  • Definition 2
  • Definition 3
  • Example 4
  • Example 6
  • Theorem 7
  • Lemma 8
  • proof
  • Lemma 9
  • proof
  • ...and 19 more