CID: Measuring Feature Importance Through Counterfactual Distributions
Eddie Conti, Álvaro Parafita, Axel Brando
TL;DR
This work tackles the absence of a ground truth for local feature importance by introducing Counterfactual Importance Distribution (CID), a post-hoc method that uses positive and negative counterfactuals modeled per feature with kernel density estimation. Feature importance is derived from a distributional dissimilarity $d_1$ between the counterfactual distributions, and the authors prove that $d_1$ is a metric under suitable conditions. Empirical results on Diabetes and Heart datasets show CID provides complementary explanations to DiCE, SHAP, and LIME, with improved faithfulness as measured by comprehensiveness and sufficiency. The framework is modular and flexible, highlighting that density estimation and counterfactual generation choices shape outcomes, and it calls for pluralistic use of explanation methods in practice.
Abstract
Assessing the importance of individual features in Machine Learning is critical to understand the model's decision-making process. While numerous methods exist, the lack of a definitive ground truth for comparison highlights the need for alternative, well-founded measures. This paper introduces a novel post-hoc local feature importance method called Counterfactual Importance Distribution (CID). We generate two sets of positive and negative counterfactuals, model their distributions using Kernel Density Estimation, and rank features based on a distributional dissimilarity measure. This measure, grounded in a rigorous mathematical framework, satisfies key properties required to function as a valid metric. We showcase the effectiveness of our method by comparing with well-established local feature importance explainers. Our method not only offers complementary perspectives to existing approaches, but also improves performance on faithfulness metrics (both for comprehensiveness and sufficiency), resulting in more faithful explanations of the system. These results highlight its potential as a valuable tool for model analysis.
