Abstract
Formal Explainable AI (XAI) seeks "Sufficient Reasons" (SRs)—minimal feature sets that guarantee a model's output. However, strict SRs are often too large for human interpretation or computationally intractable to find. This paper introduces a probabilistic relaxation, the $(\delta, \epsilon)$-SR, which requires a decision to hold with high probability $\delta$ within a small error tolerance $\epsilon$. We demonstrate that while finding such explanations is generally #P-hard, it can be achieved in polynomial time for linear models using a greedy approach combined with Monte Carlo sampling.
Introduction: The Challenge of Formal Explanations
In the field of Formal XAI, researchers look for Sufficient Reasons (SRs): the smallest set of features that guarantee a specific model output regardless of other factors. While mathematically rigorous, strict SRs face two major hurdles:
- Succinctness: Strict SRs are often nearly as large as the original input, making them useless for human interpretation.
- Complexity: To get smaller explanations, researchers use $\delta$-SRs, which only require the decision to hold with a high probability ($\delta$). However, finding the smallest $\delta$-SR is computationally "hard" (#P-hard), even for models usually considered "interpretable," like decision trees.
This paper proposes a middle ground where explanations are both small and easy to compute by introducing the $(\delta, \epsilon)$-min-SR.
The $(\delta, \epsilon)$-SR Framework
Instead of hitting an exact probability $\delta$, the authors allow for a tiny "wiggle room" ($\epsilon$). This relaxation is the key to bypassing the #P-hardness that plagues exact calculations. The framework relies on the concept of a "partial instance," where only a subset of features is observed and others are unknown (denoted by $\perp$).
Efficient Computation for Linear Models
The core contribution is an algorithm that leverages the unique properties of linear models. Unlike decision trees, linear models allow for a greedy optimization strategy. The approach involves:
- Feature Scoring: Features are scored based on their weights and their contribution to the model's decision. The authors prove that for linear models under uniform distributions, a greedy approach—simply picking the features with the highest scores—is optimal.
- Monte Carlo Sampling: Since calculating exact probabilities is hard, the algorithm uses random sampling to estimate them. Thanks to Hoeffding’s inequality, accurate estimates are achievable with a manageable number of samples.
- Binary Search: By combining greedy selection with binary search over the number of features, the algorithm quickly finds the smallest set that meets the $(\delta, \epsilon)$ threshold.
Key Results and Theoretical Insights
The paper establishes several significant theoretical results:
- Polynomial Time Complexity (Theorem 2): The authors provide an algorithm (
LinearMonteCarloExplainer) that computes a $(\delta, \epsilon)$-min-SR for linear models in polynomial time relative to the number of features ($d$), the error tolerance ($1/\epsilon$), and the success probability ($1/\gamma$). - Linear Models vs. Trees: A major insight is that while decision trees are often touted as the gold standard for interpretability, they are actually harder to explain formally than linear models. Finding probabilistic explanations for trees is NP-hard, but for linear models, it is polynomial.
- Subset Minimality (Theorem 3): For linear models, "locally minimal" explanations are also "subset minimal." This means if you cannot remove any single feature from an explanation without breaking the probability guarantee, you have found a non-redundant explanation.
- Sensitivity of $\delta$: A tiny change in required confidence (e.g., from 100% certainty to 99.9999%) can lead to an explanation that is hundreds of times smaller.
Limitations and Future Work
While promising, the current proofs focus on binary inputs and assume that "unknown" features follow a uniform distribution. Future work aims to extend this framework to categorical or continuous features and more complex product distributions. Additionally, while the greedy optimality is a unique property of linear models, the authors hope this probabilistic framework can eventually be adapted for non-linear architectures like neural networks.
Summary updated