Probabilistic Sufficient Explanations

Eric Wang, Pasha Khosravi, Guy Van den Broeck

TL;DR

This paper introduces "probabilistic sufficient explanations" (PSEs) to provide more robust and simpler explanations for machine learning models. PSEs guarantee that a subset of features is "sufficient" to probabilistically explain a model's prediction, balancing simplicity with strong guarantees, unlike existing methods that often sacrifice one for the other.

What Problem Does This Paper Address?

Explaining the decisions of complex machine learning models (like deep neural networks) is crucial, especially in high-stakes domains like medicine or finance. Current "explainable AI" (XAI) methods fall into two main categories: model-agnostic approaches (like LIME and SHAP) that are flexible but can be unreliable, and logic-based approaches that offer strong guarantees but often produce overly complex explanations. The challenge is to find explanations that are both simple enough to be understandable and robust enough to provide meaningful guarantees about the model's behavior, while also being computationally feasible. This paper aims to bridge this gap by introducing a probabilistic framework for explanations.

Methods

The core contribution is the concept of probabilistic sufficient explanations (PSEs). Instead of aiming for absolute certainty (like logical explanations) or relying on sampling (like Anchors), PSEs leverage probabilistic reasoning to provide probabilistic guarantees.

The key ideas are:

  • Sufficiency Metric: The paper defines sufficiency using Expected Prediction (EP). This metric quantifies how likely the model is to make the same prediction when only a subset of features (the explanation) is observed, considering the uncertainty in the remaining features according to the data distribution. This is preferred over the Same-Decision Probability (SDP) due to computational tractability and its ability to capture model confidence.
  • Simplicity Constraint: To avoid overly complex explanations, a cardinality constraint (limiting the number of features) is used.
  • Optimization Problem: Finding PSEs is framed as an optimization problem: maximize the expected prediction (sufficiency) subject to a maximum number of features (simplicity).
  • Most Likely Sufficient Explanations (MLSE): To further refine simplicity, the paper proposes selecting the explanation subset that maximizes the probability of observing that subset, among those that meet the sufficiency and simplicity criteria.
  • Scalable Algorithm: A beam search algorithm is developed to efficiently find the most likely sufficient explanations. This algorithm iteratively expands candidate explanations, prioritizing those with higher EP and then higher marginal probability.
  • Probabilistic Circuits (PCs): PCs are used to model the feature distribution, enabling tractable and exact computation of probabilistic queries like EP and marginal probabilities.

Datasets

The paper evaluates its method on two standard datasets:

  • MNIST: A dataset of handwritten digits. For this work, it was binarized and used for a binary classification task distinguishing between '3's and '5's.
  • Adult Dataset: A dataset used for predicting whether an individual makes over $50,000 per year. Features were discretized and one-hot encoded.

Key Insights and Ideas

  • Probabilistic Guarantees are Sufficient: The paper argues that strict logical guarantees (SDP=1) are often overkill and lead to complex explanations. Probabilistic guarantees (e.g., high EP) are sufficient for practical purposes and allow for much simpler explanations.
  • EP Captures Confidence Better than SDP: Expected Prediction (EP) is shown to be more informative than the Same-Decision Probability (SDP) because it considers the model's confidence in its prediction, not just the final decision. This is crucial in domains where understanding the certainty of a prediction is important.
  • Trade-off Between Sufficiency and Simplicity: There's a clear trade-off: slightly relaxing the sufficiency requirement (e.g., from EP=1 to EP=0.9) can lead to significantly simpler explanations. This highlights the value of a probabilistic approach.
  • Scalability Advantage: The proposed beam search algorithm, leveraging probabilistic circuits, is shown to be more scalable than logical explanation methods, especially for datasets with more features.

Key Results

  • Comparison with Anchors: PSEs provide better and more accurate sufficiency guarantees than Anchors. For example, on MNIST, Anchors achieved an average SDP of 0.66, while MLSEs achieved 0.99 with a similar number of features. The proposed method was also faster in generating explanations.
  • Comparison with Logical Explanations: On the Adult dataset, logical explanations required, on average, 39% of features to achieve an SDP of 1. In contrast, PSEs achieved an average SDP of 0.95 using only 18% of features, demonstrating significantly simpler explanations.
  • Scalability: The beam search algorithm's runtime scales well with the number of threads, indicating good parallelization potential.
  • Trade-off Visualization: Figure 3 visually demonstrates that reducing the strictness of the sufficiency requirement (EP) leads to simpler explanations (higher marginal probability).

Limitations and Future Work

  • Knowledge of Distribution: The method relies on having an accurate model for the feature distribution (Pr(X)). The paper assumes this is available, often learned using probabilistic circuits.
  • Threshold Selection: Choosing an appropriate threshold for expected prediction can be challenging, as it's not always straightforward to determine what constitutes a "good" sufficiency level.
  • GPU Acceleration: While the method is highly parallelizable on CPUs, the authors suggest that re-implementing parts of the algorithm to support GPUs could further speed up computation and allow for scaling to even more complex models and larger datasets.
  • Extension to Multi-Category/Continuous Features: The current implementation primarily handles binary features due to the probabilistic circuit library. Extending this to multi-category and continuous features would broaden its applicability.

Summary updated

BibTeX
@inproceedings{wang2021probabilistic,
  author = {Eric Wang and Pasha Khosravi and Guy Van den Broeck},
  title = {{Probabilistic Sufficient Explanations}},
  booktitle = {TPM @ UAI},
  year = {2021},
  url = {https://openreview.net/forum?id=uVmp27VGDk},
}
Figure