Efficient Explanations With Relevant Sets

Yacine Izza, Alexey Ignatiev, Nina Narodytska, Martin C. Cooper, João Marques-SilvaarXiv 2021

Abstract

Probabilistic explanations via $\delta$-relevant sets offer a rigorous framework for eXplainable AI (XAI), yet finding the smallest such set is computationally prohibitive (NPPP-complete). This paper presents a practical approach for specific model families, such as decision trees, by shifting the focus to subset-minimal explanations. The proposed Independent $\delta$-Relevant Set (IDRS) algorithm leverages model structure to provide exact, concise explanations orders of magnitude faster than existing heuristic methods.

Introduction

In the field of eXplainable AI (XAI), a significant gap exists between model-agnostic methods and model-accurate methods. Heuristic-based approaches like Anchors are computationally efficient but lack formal guarantees. Conversely, model-accurate methods like Prime Implicant (PI) explanations provide rigorous guarantees but are often too rigid or computationally expensive for complex models.

The $\delta$-relevant set framework was introduced to bridge this gap by providing probabilistic explanations: "Given a specific subset of features, the model will maintain its prediction with a probability of at least $\delta$." However, the search for the cardinality-minimal $\delta$-relevant set is NPPP-complete. This research aims to make these rigorous probabilistic explanations practical by exploiting model structure and redefining the criteria for minimality.

Methodology

The authors propose three primary strategies to overcome the inherent complexity of $\delta$-relevant sets:

  1. Redefining Minimality: Instead of seeking the absolute minimum number of features (cardinality-minimal), the researchers focus on subset-minimal sets. A set is subset-minimal if no single feature can be removed without the probability falling below the threshold $\delta$.
  2. Exploiting Model Structure: The approach targets Decision Trees (DTs) and Knowledge Compilation (KC) languages. The internal structure of a DT allows for the exact calculation of path probabilities, transforming a sampling-based problem into a precise counting task.
  3. The IDRS Algorithm: The authors introduce the Independent $\delta$-Relevant Set (IDRS) algorithm. By defining a monotone version of the relevance criteria ($I\delta$-relevancy), they utilize a greedy "deletion" approach. Starting with all features, the algorithm removes them one by one as long as the probability guarantee is maintained. For DTs, this process is executable in polynomial time.
Example of a decision tree structure and associated formalisms for calculating path probabilities.

Theoretical Insights

A critical discovery in this work is the role of monotonicity. The original definition of $\delta$-relevancy is non-monotone, meaning that removing a feature could paradoxically increase the prediction probability, complicating the search space. By introducing $I\delta$-relevancy, a monotone variant, the authors enable the use of efficient greedy algorithms.

Furthermore, the paper establishes a duality between these probabilistic explanations and "contrastive explanations"—which identify the changes needed to flip a model's prediction. This theoretical link allows for the cross-application of tools between these two domains of XAI.

Unlike heuristic tools that estimate feature importance through sampling, the proposed method for DTs is exact. It calculates the precise probability based on the tree's structure and the underlying data distribution.

Exact path probabilities calculated using the decision tree structure.

Experimental Evaluation

The researchers evaluated the IDRS algorithm using benchmarks from the UCI Machine Learning Repository and Penn ML Benchmarks, including datasets such as adult, ann-thyroid, fars, and kddcup. These were used to train decision trees ranging from 49 to nearly 10,000 nodes.

When compared against the state-of-the-art Anchor explainer, the IDRS algorithm demonstrated significant advantages:

  • Efficiency: IDRS was 1 to 2 orders of magnitude faster than Anchor. While Anchor could exceed 100 seconds for complex explanations, IDRS consistently finished in a fraction of a second.
  • Conciseness: IDRS produced shorter explanations. For the kddcup dataset, IDRS required fewer than 3 literals at $\delta=0.05$, compared to Anchor's average of 9.
  • Precision: Despite the increased speed and brevity, IDRS maintained higher precision (the likelihood the prediction holds) across nearly all test cases.

Conclusion

While this work significantly advances the practicality of probabilistic explanations, some limitations remain. The most efficient results are currently confined to Decision Trees and models representable via Knowledge Compilation. Extending these exact methods to deep neural networks, where path counting is not straightforward, remains a challenge. Future research may explore adapting these techniques for broader model classes and leveraging duality results to enumerate all possible probabilistic explanations for a given prediction.

Summary updated

BibTeX
@misc{izza2021efficient,
  author = {Yacine Izza and Alexey Ignatiev and Nina Narodytska and Martin C. Cooper and João Marques-Silva},
  title = {{Efficient Explanations With Relevant Sets}},
  year = {2021},
  eprint = {2106.00546},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.00546},
}
Figure