Locally-Minimal Probabilistic Explanations

Yacine Izza, Kuldeep S. Meel, João Marques-Silva

This paper, titled "Locally-Minimal Probabilistic Explanations," tackles a fundamental tension in Explainable AI (XAI): the trade-off between mathematical rigor and human interpretability. While formal logic-based explanations provide "gold standard" guarantees, they are often too long for humans to process and too computationally expensive to generate for complex models.

The authors propose a middle ground: Locally-Minimal Probabilistic Explanations (LmPAXps). By relaxing the requirement for absolute certainty and focusing on "local" rather than "global" minimality, they provide a scalable way to generate concise, high-quality explanations for complex models like Random Forests and Binarized Neural Networks.

TL;DR

The researchers introduce efficient algorithms to find "locally-minimal" probabilistic explanations that are significantly smaller and easier to compute than traditional formal explanations. By using approximate model counting and Monte-Carlo sampling, they achieve a 30% to 70% reduction in explanation size while maintaining high rigorous standards for complex machine learning models.

What Problem Does This Paper Address?

In high-stakes AI applications (like medicine or law), we need to know why a model made a specific decision. Abductive Explanations (AXps) are the formal answer; they identify a minimal set of features that guarantee the prediction.

However, AXps face two "walls":

  1. The Cognitive Wall: Formal explanations can be massive, containing dozens of features that overwhelm human users.
  2. The Computational Wall: To make explanations smaller, we can use Probabilistic Explanations (PAXps), which only require the prediction to be likely (e.g., 95% certain) rather than guaranteed. But finding the smallest PAXp is "non-monotonic"—removing one feature might actually increase the probability of the prediction, making the search space an exponential nightmare.

Methods

The authors sidestep the complexity of finding the absolute smallest explanation by looking for locally-minimal ones. A set of features is locally minimal if removing any single feature causes the prediction probability to drop below a set threshold ($T$).

They propose two primary algorithmic engines to check these probabilities:

  • Approximate Model Counting: For models that can be translated into logic (like Binarized Neural Networks), they use tools like ApproxMC. This provides "Probably Approximately Correct" (PAC) guarantees, ensuring the explanation is mathematically sound within a tiny margin of error.
  • Monte-Carlo Sampling: For other models like Random Forests, they use a sampling approach governed by Hoeffding bounds. This is significantly faster and works for any classifier, though it offers an additive bound rather than a multiplicative one.

The core algorithm is a deletion-based linear search: start with all features and iteratively prune those that don't significantly drop the model's confidence in its prediction.

Datasets

The authors evaluated their approach on two fronts:

  • Random Forests (RFs): 17 publicly available datasets from the UCI Machine Learning Repository and Penn Machine Learning Benchmarks (e.g., Adult, Heart-c, Ionosphere, Soybean, Wine).
  • Binarized Neural Networks (BNNs): Image datasets derived from MNIST digits, specifically focusing on binary classification tasks (e.g., distinguishing '0' from '8').

Key Insights and Ideas

  • Local is "Good Enough": A crucial observation from prior work is that for many classifiers, locally-minimal explanations are actually subset-minimal in over 99% of cases. This justifies the "local" shortcut.
  • The Power of "Almost": By allowing for a small margin of uncertainty (e.g., being 95% sure instead of 100%), the length of the explanation drops drastically. This suggests that formal XAI has been "over-explaining" by including features that only matter in extreme edge cases.
  • Heuristics Matter: The order in which you prune features changes the final explanation. The authors found that using "Feature Attribution" scores to guide the pruning process leads to even smaller, more relevant explanations.

Key Results

  • Massive Size Reduction: On BNNs, LmPAXps were 34.5% to 68.2% smaller than standard formal explanations. For the Ionosphere dataset, the average explanation length dropped from 21.5 features to just 2.9.
  • High Precision: Despite being approximations, the explanations maintained an average precision of 0.97 or higher across most datasets.
  • Efficiency: The sampling-based approach for Random Forests is extremely fast, with average runtimes often under 1 second, making it viable for real-time XAI applications.
  • Scalability: While formal XAI often struggles with neural networks, the approximate model counting approach successfully handled BNNs, though it did encounter some timeouts on the most complex MNIST tasks.

Limitations and Future Work

  • Boolean Constraints: The current logic-based approach (ApproxMC) is primarily optimized for Boolean domains. Extending this to models with continuous or real-valued features will require integrating SMT (Satisfiability Modulo Theories) solvers with approximate counters, which is a significant research challenge.
  • BNN Complexity: While the results on BNNs are promising, the model counting approach still hit a "timeout" on about 11% of the hardest MNIST tests, indicating that further optimization is needed for very deep or wide networks.
  • Human Study: While the paper assumes smaller explanations are better for humans (the "cognitive limit"), the authors haven't yet conducted user studies to see if these probabilistic shortcuts align with human intuition.

Summary updated

BibTeX
@inproceedings{izza2024locally,
  author = {Yacine Izza and Kuldeep S. Meel and João Marques-Silva},
  title = {{Locally-Minimal Probabilistic Explanations}},
  booktitle = {ECAI},
  year = {2024},
  url = {https://openreview.net/forum?id=kkPsjCpfo7},
}
Figure