Abstract
Post-hoc counterfactual explanations are widely used to interpret black-box models by suggesting minimal input changes to flip a prediction. However, these explanations can be misleading if they point to regions of the feature space unsupported by training data. This paper formalizes the concept of "ground-truth justification" and introduces Local Risk Assessment (LRA) and Vulnerability Evaluation (VE) to detect unjustified explanations. Our findings reveal that state-of-the-art interpretability methods frequently generate explanations based on model artifacts rather than actual data patterns, particularly in non-robust classifiers.
Introduction
Machine learning models are often deployed as "black boxes," necessitating post-hoc interpretability methods to explain their decisions. A popular approach is the counterfactual explanation, which identifies the minimal perturbation required to change a model's output (e.g., "If your income were $5,000 higher, your loan would be approved").
However, the authors argue that these explanations are only valid if they are "justified"—meaning they point to a region of the feature space supported by actual training data. Post-hoc explainers often lack access to the training set and may inadvertently find "minimal perturbations" that land in regions where the classifier's prediction is merely a mathematical artifact or a result of poor robustness. These "pockets" of hallucinated decisions can lead to disastrous consequences in sensitive domains like healthcare or law.
Methodology: Ground-Truth Justification
The paper introduces a framework to evaluate the reliability of counterfactual explanations through three core components:
- Formal Definition of Justification: A counterfactual is considered "justified" if a continuous path (or an $\epsilon$-chain of nearby points) connects it to a correctly predicted training instance of the same class without crossing a decision boundary.
- Local Risk Assessment (LRA): This diagnostic procedure samples the local neighborhood of a data point and uses clustering (similar to DBSCAN) to identify "unjustified" regions—areas where the model predicts a class that is disconnected from any actual training data.
- Vulnerability Evaluation (VE): A test suite designed to determine if existing state-of-the-art (SOTA) counterfactual generators, such as HCLS, Growing Spheres, and LORE, fall into these unjustified traps.
Key Insights and Results
The authors evaluated their framework on synthetic and real-world datasets, including the Iris benchmark, Boston Housing, and the Propublica Recidivism dataset. Several key insights emerged:
- Proximity vs. Validity: Most counterfactual methods prioritize the closest point that changes the class. The authors demonstrate that these proximal points are often the most likely to be model artifacts.
- The "Pocket" Problem: Classifiers, particularly non-robust ones like small Random Forests, often create small "pockets" of a class within another class's territory. These pockets contain no training data but frequently "suck in" counterfactual explanation algorithms.
- High Risk in Real-World Data: Using the LRA test on the Recidivism dataset, the authors found that 81% of instances had unjustified regions in their local neighborhood.
- SOTA Vulnerability: On the Iris dataset, the proportion of justified explanations produced by standard methods dropped to as low as 63%. This implies that nearly 40% of the explanations provided were based on model noise rather than grounded reality.
Conclusion and Future Work
The paper argues that "connectedness to ground truth" should be a standard requirement for any explanation. If an explanation cannot be linked back to real-world examples, it is not grounded in reality. While methods like LORE showed slightly better performance in some scenarios, all tested post-hoc methods remained significantly vulnerable to generating unjustified explanations.
Future research is needed to address the "curse of dimensionality" in high-dimensional spaces where density-based justification is harder to calculate. Additionally, exploring the link between unjustified counterfactuals and adversarial examples may lead to more robust interpretability tools for complex models like deep neural networks.
Summary updated