Introduction
In the field of Explainable AI (XAI), researchers often seek "formal explanations"—mathematically rigorous proofs of why a machine learning model made a specific choice. Two of the most fundamental types of formal explanations are:
- Sufficient Reasons: The smallest set of input features that, if kept fixed, guarantees the prediction will not change.
- Contrastive Reasons: The smallest set of input features that, if modified, would flip the model's prediction.
The primary barrier to finding these explanations is computational hardness. For complex models like neural networks or large tree ensembles, finding these minimal feature sets is a "needle in a haystack" problem that is typically NP-hard. This computational bottleneck has led to a fragmented landscape where researchers use disparate definitions (probabilistic vs. non-probabilistic, local vs. global) to find a tractable middle ground.
This paper introduces a unified framework that brings together these different types of formal AI explanations under one mathematical roof. In doing so, the authors reveal a surprising "complexity paradox": while finding minimal explanations for a single prediction (local) is often NP-hard, finding them for the model's behavior as a whole (global) can be done efficiently in polynomial time.
A Unified Combinatorial Framework
The authors approach explanation-finding as a combinatorial optimization task. They define a unified "probabilistic value function," denoted as $v(S)$, which measures the "explanatory power" of a given subset of features $S$.
The core of their methodology involves analyzing three fundamental properties of this value function:
- Monotonicity: Does adding more features always increase (or at least maintain) the explanatory power?
- Submodularity: Does adding a feature to a small set provide more "gain" than adding it to a large set (diminishing returns)?
- Supermodularity: Does adding a feature to a large set provide more gain than adding it to a small set (increasing returns)?
By identifying which explanation types possess these properties, the authors can apply classic greedy algorithms to find explanations with provable guarantees.
Because certain global functions exhibit monotonicity, simple greedy approaches—like the top-down algorithm shown above—are guaranteed to find a subset-minimal explanation efficiently.
The "Complexity Paradox": Local vs. Global
The most striking insight of the paper is that global value functions are mathematically better-behaved than local ones.
Local value functions (explaining a single prediction) tend to be "jagged" and non-monotonic, making them notoriously difficult to optimize. However, global functions—which average the model's behavior across many data points—smooth out these irregularities and become monotonic.
Furthermore, the authors prove a beautiful mathematical symmetry: under the assumption of feature independence, global contrastive reasons are submodular, while global sufficient reasons are supermodular.
Theoretical Results and Guarantees
This shift from local jaggedness to global smoothness unlocks several powerful theoretical results across a wide "interpretability spectrum" of models, including Neural Networks (ReLU), Decision Trees, and Tree Ensembles (like XGBoost or Random Forests).
- Tractability Shift: Computing subset-minimal global explanations is polynomial-time solvable for any model where inference is efficient, provided an empirical data distribution is used.
- Approximation Guarantees: For the even harder task of finding the absolute smallest (cardinally minimal) explanation, the submodular and supermodular properties allow for constant-factor approximations. While finding the perfect smallest set remains elusive, we can efficiently find one that is provably "close enough." For global contrastive reasons, they achieve an approximation bound of $O(\ln(|D|))$, which effectively becomes a constant factor for a fixed dataset size.
- Hardness of Local Explanations: Conversely, the authors prove that even in highly simplified scenarios, finding local explanations remains NP-hard. Furthermore, they establish that for local explanations, no bounded approximation is possible unless P=NP.
Limitations and Future Directions
While the theoretical guarantees are strong, they come with certain assumptions. Some of the most powerful results (specifically regarding submodularity and supermodularity) rely on the assumption that input features are mutually independent. While this is a common simplification in XAI, real-world data often contains complex correlations.
Additionally, the polynomial-time results for complex models rely on using an empirical dataset $D$ as a proxy for the real world. If one attempts to compute these explanations against the "true" underlying continuous distribution, the mathematics may become intractable once again.
Future work will explore whether other measures of feature importance, such as KL divergence, share these same advantageous combinatorial properties when transitioning from local to global explainability settings.
Summary updated