Abstract
Previous studies have demonstrated that encoding a Bayesian network into a SAT formula and then performing weighted model counting using a backtracking search algorithm can be an effective method for exact inference. In this paper, we present techniques for improving this approach for Bayesian networks with noisy-OR and noisy-MAX relations—two relations that are widely used in practice as they can dramatically reduce the number of probabilities one needs to specify. In particular, we present two SAT encodings for noisy-OR and two encodings for noisy-MAX that exploit the structure or semantics of the relations to improve both time and space efficiency, and we prove the correctness of the encodings. We experimentally evaluated our techniques on large-scale real and randomly generated Bayesian networks. On these benchmarks, our techniques gave speedups of up to two orders of magnitude over the best previous approaches for networks with noisy-OR/MAX relations and scaled up to larger networks. As well, our techniques extend the weighted model counting approach for exact inference to networks that were previously intractable for the approach.
Introduction
In Bayesian networks, the Conditional Probability Table (CPT) for a node describes how its parents influence it. Normally, the size of this table grows exponentially with the number of parents, making large networks impossible to store or compute. To mitigate this, researchers use patterns like noisy-OR (for Boolean variables) and noisy-MAX (for multi-valued variables), which assume "causal independence" to keep the number of parameters linear.
However, even with these simplified patterns, standard inference algorithms like variable elimination often struggle with large, loopy networks or those with significant amounts of evidence. A powerful alternative is Weighted Model Counting (WMC), which translates the probabilistic network into a Boolean satisfiability (SAT) formula. The challenge addressed here is how to encode these specific noisy-OR/MAX relations into SAT formulas that are efficient for modern solvers to process.
Proposed SAT Encodings
The authors propose four new Conjunctive Normal Form (CNF) encodings—two for noisy-OR and two for noisy-MAX—categorized into two strategies:
- Additive Encodings (WMC1 & MAX1): These are based on a decomposed probabilistic model where each parent has a "hidden" effect on the child. They essentially encode the logical structure of the causal mechanism directly into the SAT formula.
- Multiplicative Encodings (WMC2 & MAX2): These utilize matrix factorization techniques and introduce hidden nodes to represent cumulative effects. This often results in a formula with a lower treewidth, a graph-theoretic measure that is a primary predictor of how hard a formula is for a solver to crack.
Crucially, these encodings are designed to maximize "unit propagation" (the solver's ability to quickly deduce variable values) and minimize the complexity of the resulting logical graph.
Experimental Evaluation
The techniques were evaluated using three types of benchmarks:
- QMR-DT (Quick Medical Reference): A large-scale real-world Bayesian network used for medical diagnosis, notoriously difficult for exact inference due to high connectivity.
- Random Two-Layer Networks: Used to test how the amount of evidence (known symptoms) affects performance.
- Random Multi-Layer Networks: Used to test scalability in deeper causal chains.
Key Results
- Massive Speedups: On the QMR-DT benchmark, the new encodings provided speedups of up to two orders of magnitude compared to previous state-of-the-art tools like ACE.
- Scaling the Intractable: Many network instances that were previously unsolvable within an hour were solved in seconds using the new encodings.
- Multiplicative Superiority: For multi-valued domains (noisy-MAX), the multiplicative encoding (MAX2) was clearly superior, avoiding the exponential blow-up in clause count faced by additive methods.
Discussion and Key Insights
- Treewidth Over Variable Count: Counter-intuitively, adding more variables to a SAT formula can make it faster to solve if those variables help reduce the treewidth. The multiplicative encodings create more variables but simplify the underlying connection structure.
- Exploiting Determinism: SAT solvers are exceptionally good at handling "determinism" (probabilities of 0 or 1). Since noisy-OR/MAX relations involve deterministic logical gates, the WMC approach can prune the search space more aggressively than purely numerical methods.
- The Power of Positive Evidence: Traditional methods often struggle as more "positive" evidence (e.g., a patient having a symptom) is added. The WMC approach thrives here, as positive evidence triggers more logical deductions in the SAT solver.
Conclusion
While noisy-OR and MAX are common, other causal independence relations exist, such as noisy-XOR. Developing specialized encodings for these could further expand the reach of WMC in probabilistic AI. Future work may also address heuristic sensitivity, as performance is highly dependent on variable ordering heuristics like VSADS or DTree.
Summary updated