Introduction: The Need for Formal Explanations
In the field of Explainable AI (XAI), understanding the rationale behind a model's decision is crucial for trust and safety. While heuristic methods like SHAP or LIME are popular, they often lack formal guarantees and can provide misleading results. Formal XAI addresses this by utilizing Abductive Explanations (AXps)—minimal sets of feature values that mathematically guarantee a specific prediction.
However, standard AXps are often overly specific. For instance, if a model classifies a patient as "high risk" based on a weight of exactly 90kg, the explanation fails to generalize to nearby values like 89kg or 91kg. This paper introduces Inflated Abductive Explanations (iAXps), which provide feature intervals (e.g., weight between 85-110kg) instead of point values. The core contribution is a method to find the Maximum iAXp (Max-iAXp): the single most general explanation that covers the broadest possible range of the input space while maintaining the prediction guarantee.
Methods: A Unified Propositional Encoding
The authors propose a unified framework capable of handling various tree-based models, including Random Forests (using both majority and weighted voting) and Gradient Boosted Trees (e.g., XGBoost).
To identify the most general explanation, the research employs an Implicit Hitting Set approach involving two solvers:
- Candidate Generation: A solver (MaxSAT or Mixed Integer Programming) proposes a candidate explanation that maximizes a "coverage" score, defined as the log-sum of the feature interval sizes.
- Oracle Check: A second solver verifies the candidate's validity. If a "counter-example" is found (a point within the intervals where the model's prediction changes), a "blocking clause" is generated.
- Iteration: This loop continues until the most general valid explanation is identified.
The paper evaluates three encoding strategies: a Naive MaxSAT version, an optimized Bounds-based MaxSAT version, and a Mixed Integer Programming (MIP) version.
Experimental Evaluation
The approach was tested on up to 32 datasets from the UCI Machine Learning Repository and Penn Machine Learning Benchmarks (PMLB), focusing on numerical data to rigorously test the interval-based inflation logic.
Key Insights
- Duality and Efficiency: The mathematical duality between "Why" (Abductive) and "Why Not" (Contrastive) explanations allows the hitting set algorithm to prune the search space effectively.
- MIP Superiority: Despite the logical nature of the problem, MIP solvers like Gurobi significantly outperformed specialized MaxSAT solvers in the hitting set phase.
- Generality without Complexity: Max-iAXps cover more space without increasing the number of features involved, maintaining human readability.
- The Log-Sum Trick: Maximizing the sum of logarithms of interval sizes transforms a complex product-based area optimization into a linear problem manageable by standard solvers.
Results and Impact
The findings demonstrate that Max-iAXps offer massive coverage gains. In datasets such as appendicitis, the most general explanation covered thousands of times more input space than standard formal explanations. Furthermore, the MIP-based system proved highly efficient, computing optimal explanations in under 2 seconds on average for most datasets. This work also provides the first dedicated formal XAI encoding for Random Forests with weighted votes.
Limitations and Future Directions
While effective for numerical data, the current "size" metric may need adjustment for categorical features to remain intuitive. Additionally, while the system is fast for standard ensembles, the exponential worst-case complexity remains a theoretical challenge for extremely deep trees. Future research will involve human studies to determine if these broader intervals indeed improve user trust and comprehension compared to point-based explanations.
Summary updated