A Symbolic Approach to Explaining Bayesian Network Classifiers

Andy Shih, Arthur Choi, Adnan Darwiche

Abstract

As AI systems are increasingly deployed in high-stakes environments, explaining their decisions is no longer optional. This paper proposes a rigorous, symbolic approach to explaining Bayesian network classifiers by compiling their probabilistic decision-making processes into tractable logic structures, specifically Ordered Decision Diagrams (ODDs). From this logical foundation, the authors introduce efficient algorithms to extract exact, minimal explanations—Minimum-Cardinality (MC) and Prime-Implicant (PI) explanations—for why a specific instance was classified in a particular way.

Introduction

Probabilistic classifiers, such as Bayesian networks, typically output a probability that an instance belongs to a certain class. When this probability exceeds a predefined threshold, a decision is made. However, in critical domains like finance or medicine, a simple probability score is insufficient. Users require definitive answers to questions such as: "What specific features caused this decision?" or "What combination of traits made this outcome inevitable?"

While modern explainability tools like LIME offer heuristic, approximate explanations by treating models as black boxes, this research focuses on providing exact, logically sound explanations. By bridging the gap between probability and logic, the authors enable the extraction of the minimal feature sets responsible for a model's output.

Methodology: Compiling Probability into Logic

The core of the proposed approach is the compilation of a Bayesian network's threshold-based decision function into an Ordered Decision Diagram (ODD).

A Naive Bayes classifier for pregnancy detection, illustrating the probabilistic inputs that the proposed method converts into logical structures.

1. Compilation to ODDs

The authors focus on Naive Bayes and Latent-Tree classifiers, compiling their decision functions into ODDs (or OBDDs for binary features). Although compilation is NP-hard in the general case, the resulting ODDs allow for linear-time logical queries, facilitating rapid explanation generation.

2. Minimum-Cardinality (MC) Explanations

MC explanations identify the smallest subset of active (positive) features necessary to trigger a decision. For instance, in a medical diagnosis based on multiple positive tests, an MC explanation might reveal that only a small subset of those tests was actually required to reach the threshold.

3. Prime-Implicant (PI) Explanations

PI explanations identify the smallest subset of features (regardless of their state) that "locks in" a decision. Once these features are fixed, the remaining features become irrelevant; toggling them will not change the model's output.

Key Insights

  • Logical Determinism: Compiling a probabilistic model into an ODD based on a threshold transforms a mathematical probability into a deterministic logical function. This allows the application of established Boolean logic techniques to generate explanations.
  • MC vs. PI Explanations: These two methods serve distinct intuitive needs. MC explanations highlight which positive traits contributed to an outcome, while PI explanations identify the combination of traits that made an outcome inevitable.
  • The Monotonicity Connection: For monotone classifiers—where adding positive features only increases the likelihood of a positive outcome—the authors prove that the shortest PI explanations are equivalent to MC explanations.

Results and Evaluation

The algorithms were evaluated using standard tabular datasets from the UCI Machine Learning Repository, including Congressional Voting Records (votes) and SPECT heart imaging.

PI-explanations for different feature combinations, showing how specific subsets of features 'lock in' a decision.
  • Efficiency Gains: The authors introduced a novel algorithm for compiling Latent-Tree classifiers with guaranteed complexity bounds. Furthermore, by restricting the PI search to specific instances, they achieved a 1.4x to 2.5x speedup.
  • Memory Optimization: The instance-specific PI algorithm significantly reduced memory requirements. For the "votes" dataset, the explanation ODD was reduced from 2,144 nodes to just 139 nodes, a 15x reduction.
  • Qualitative Success: On the "votes" dataset, the algorithm successfully isolated the three specific votes (out of 16) that guaranteed a "Republican" classification, demonstrating the real-world interpretability of PI explanations.

Conclusion and Future Work

While the symbolic compilation approach is highly effective for Naive Bayes and Latent-Tree structures, scaling to denser Bayesian networks remains a challenge due to potential exponential blow-up. Future work will explore extending these methods to multi-valued features and applying symbolic compilation to a broader range of machine learning models to provide exact, rather than approximate, explanations.

Summary updated

BibTeX
@inproceedings{shih2018symbolic,
  author = {Andy Shih and Arthur Choi and Adnan Darwiche},
  title = {{A Symbolic Approach to Explaining Bayesian Network Classifiers}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/708},
}
Figure