TL;DR
This paper introduces a distribution-based framework to evaluate the stability of stochastic feature attribution methods (like LIME and SHAP) by analyzing how well-separated feature importance scores are across multiple runs. By defining a new metric called $k$-stability, the authors can determine the exact point where a feature ranking ceases to be reliable, providing a crucial tool for building trust in Explainable AI.
What Problem Does This Paper Address?
Feature attribution methods (AMs) are widely used to explain black-box models by scoring feature importance. However, popular explainers like LIME and SHAP rely on stochastic components (e.g., random sampling or perturbations), meaning they can produce different results every time they are run on the exact same data point. This instability undermines user trust and reproducibility.
While previous work evaluated stability by perturbing the inputs to the model, this paper tackles the inherent randomness of the explainers themselves. It addresses a fundamental question: How confident can we be that the ranked order of features is actually meaningful and not just a byproduct of random sampling noise?
Methods
Instead of treating feature attributions as fixed numbers, the authors model them as probability distributions generated across multiple independent runs of an explainer on a single instance. They estimate these distributions using Gaussian Kernel Density Estimation (KDE).
To measure how distinct the feature rankings are, they apply a continuous generalization of the Jaccard distance to compute the pairwise distance between the distributions of consecutively ranked features.
From this, they introduce $k$-stability, defined as the largest prefix of top-ranked features ($top-k$) where every consecutive pair maintains a distributional distance above a specified threshold $l$. This tells practitioners exactly how far down the feature importance list they can read before the ranking becomes noisy and unreliable.
Datasets
The framework was evaluated on four standard tabular classification benchmarks:
- Diabetes
- Heart Disease
- Mobile
- Churn
The authors also designed synthetic datasets with known ground-truth feature importances to mathematically and empirically validate the metric's sensitivity to feature overlap.
Key Insights and Ideas
- Separability Equals Stability: If the importance distributions of two features overlap significantly, their relative ranking is essentially a coin flip across different runs. True stability requires separability.
- The "Tail" is Noisy: Separability typically degrades further down the ranking vector. While the top features are usually well-separated, the less important features blur together, validating the need for a prefix-based metric like $k$-stability.
- Efficiency: Surprisingly, the metric is not overly sensitive to the number of explainer runs. Reliable stability estimates can be achieved with as few as 15 to 30 runs, making it computationally practical.
Key Results
- SHAP vs. LIME vs. DiCE: In pairwise comparisons across Random Forest (RF) and Support Vector Machine (SVM) models, SHAP consistently achieved higher $k$-stability than LIME, DiCE, and a random baseline (RAND). For the Churn and Diabetes datasets, SHAP achieved a perfect stability value of 1.0 because its outputs were virtually identical across runs. LIME consistently outperformed DiCE.
- Synthetic Validation: Controlled experiments confirmed that as the number of features increases within a fixed importance range, feature distributions naturally overlap more, causing a clear downward trend in $k$-stability.
Limitations and Future Work
- Stability $\neq$ Correctness: A major caveat is that an explainer can be highly stable but completely wrong (unfaithful to the model). $k$-stability measures ranking reliability, not correctness, and must be paired with faithfulness metrics.
- Tabular Focus: The empirical validation was limited to tabular classification tasks. Future work needs to explore how this framework translates to more complex modalities like images, text, and time-series data.
- Hyperparameter Dependence: The metric relies on choosing a threshold $l$ and a density estimation method, which can influence the absolute stability scores depending on the domain application.
Summary updated