Abstract
In the field of eXplainable AI (XAI), providing human-understandable reasons for model predictions is a critical challenge. While abductive explanations offer logical guarantees, they are often too large for human processing. This paper introduces a framework for finding shorter, "probabilistic" explanations by leveraging the mathematical property of supermodularity. We propose greedy approximation algorithms—Greedy Ascent and Greedy Descent—that are computationally efficient and provide near-optimal results compared to exact solvers, even on high-dimensional datasets.
Introduction
A common approach to XAI is the abductive explanation, defined as a minimal set of features that guarantees a specific prediction. However, for complex models, these sets often exceed the cognitive limits of human users (the "seven plus or minus two" rule). To address this, we seek probabilistic explanations: smaller feature sets that make a prediction highly likely rather than certain. Finding the optimal short explanation is an NP-hard problem, necessitating efficient approximation strategies that do not sacrifice too much accuracy.
Methods: The Supermodular Framework
The core innovation of this work is the observation that the error function associated with an explanation—specifically the raw count of instances where the explanation fails—is supermodular. Supermodularity is a discrete analog of convexity, characterized by a "diminishing returns" property where the marginal impact of adding a feature decreases as the set grows.
By framing the search as a supermodular minimization problem, we can employ two greedy strategies:
- Greedy Descent (GD): Starting from a full, "perfect" explanation and iteratively removing the least important features until a desired size limit ($k$) is reached.
- Greedy Ascent (GA): Starting from an empty set and iteratively adding features that most reduce the error until a specific probability threshold is met.
Theoretical guarantees for these algorithms are derived based on the curvature of the error function, which measures how much the marginal benefit of adding a feature deviates from linearity. Low curvature implies that greedy algorithms will yield results very close to the global optimum.
Experimental Evaluation
The proposed algorithms were tested on 50 diverse benchmarks from Kaggle, OpenML, and UCI. These included low-dimensional datasets like meta-data and glass, as well as high-dimensional sets such as mnist38 and farm ads (which contains over 54,000 features). The evaluation focused on three primary metrics: explanation error ($\epsilon$), explanation size ($|S|$), and computation time.
Key Results
Our empirical analysis demonstrates that greedy approximations offer a superior balance of speed and quality compared to exact SAT-based solvers.
- Computational Efficiency: On high-dimensional datasets where SAT solvers frequently timed out (e.g.,
farm adsorgisette), the greedy algorithms produced results in under 0.1 seconds. In contrast, exact solvers often failed to return a solution within a 30-minute window. - Explanation Quality: For smaller datasets where optimal solutions were computable, the error gap between greedy methods and exact solvers was negligible, often matching the exact solution's performance.
- Human-Sized Explanations: The algorithms consistently identified feature sets within the human-intelligible range (typically around 7 features) while maintaining high predictive confidence.
Conclusion
By reformulating the search for probabilistic explanations as supermodular minimization, we enable the generation of concise, high-quality AI explanations at scale. While the current evaluation focuses on Decision Trees, the underlying theory is applicable to any Boolean classifier. Future work will investigate efficient error function calculation for neural networks and the use of sampling methods for intractable models.
Summary updated