A Symbolic Approach to Explaining Bayesian Network Classifiers

Andy Shih, Arthur Choi, Adnan Darwiche

A Symbolic Approach to Explaining Bayesian Network Classifiers

As Bayesian Network classifiers are increasingly deployed in high-stakes environments like medical diagnosis or financial risk assessment, the ability to explain why a model reached a specific decision has become critical for accountability and trust. While popular model-agnostic methods like LIME or SHAP provide heuristic approximations, this paper proposes a shift toward exact, symbolic explanation.

Methodology: Knowledge Compilation

The core methodology relies on Knowledge Compilation. The authors transform the probabilistic decision function of a Bayesian Network into a tractable symbolic form called an Ordered Decision Diagram (ODD)—specifically an Ordered Binary Decision Diagram (OBDD) for binary features.

An example of an Ordered Decision Diagram (ODD) representing a classifier's decision logic for urine (U), blood (B), and scanning (S) tests.

Once compiled into this form, complex logical queries that are typically NP-hard for general Bayesian Networks can be answered in linear time relative to the size of the diagram. This allows for the efficient extraction of mathematically guaranteed explanations that are 100% faithful to the model's true decision boundary.

Two Ways to Ask "Why"

Using the ODD representation, the authors introduce algorithms to compute two distinct types of exact explanations:

  1. Minimum-Cardinality (MC) Explanations: These identify the smallest subset of active (positive) features in an instance responsible for the decision. For example, in a medical context, an MC explanation answers: "Which specific positive test results triggered this diagnosis?"
  2. Prime-Implicant (PI) Explanations: These identify the minimal set of any features (active or inactive) that render all remaining features irrelevant. If you lock in the PI features, you can flip any other feature without changing the classifier's decision.
Table showing Prime-Implicant (PI) explanations for various feature instances (W, F, E, G). Red entries highlight the minimal sufficient feature sets for positive classifications.

Key Insights and Results

  • Symbolic Guarantees: By avoiding heuristic approximations, these explanations provide a rigorous mathematical foundation for model transparency.
  • Monotonicity: The authors prove that for monotone classifiers—where adding positive features only increases the likelihood of a positive outcome—MC explanations perfectly coincide with the shortest PI explanations.
  • Efficiency: The proposed instance-specific PI algorithm significantly outperformed standard methods, running 1.4x to 2.5x faster across standard UCI datasets like Congressional Voting Records and SPECT Heart.
  • Case Study: In a qualitative evaluation of the "votes" dataset, the model classified a politician as a Republican based on 16 votes. The MC explanation revealed that only 3 specific "yes" votes were actually responsible, while the PI explanation showed that a specific combination of 9 votes made the remaining 7 entirely irrelevant to the outcome.

Limitations and Future Work

Because compiling a Bayesian Network into an ODD is NP-hard, this approach is currently best suited for structures like Naive Bayes and Latent-Tree classifiers. Highly dense networks may result in an exponential blowup in diagram size, making compilation intractable. Future work aims to extend these symbolic techniques to handle multi-valued features and more complex network architectures.

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