Feature Attribution with Necessity and Sufficiency via Dual-stage Perturbation Test for Causal Explanation
Xuexin Chen, Ruichu Cai, Zhengting Huang, Yuxuan Zhu, Julien Horwood, Zhifeng Hao, Zijian Li, Jose Miguel Hernandez-Lobato
TL;DR
This paper addresses the limitations of perturbation-based feature attribution methods by introducing Feature Attribution with Necessity and Sufficiency (FANS), which leverages the probabilistic notion of causation, specifically the Probability of Necessity and Sufficiency ($PNS$), to quantify feature importance in a local neighborhood around the target input.FANS formulates a Structural Causal Model (SCM) for perturbation-based attribution, defines neighborhoods $ ilde{X}$ around the target, and uses a dual-stage Abduction-Action-Prediction framework to estimate counterfactual probabilities for both Necessity and Sufficiency.To estimate the complex conditional distributions required by these counterfactuals, FANS employs Sampling-Importance-Resampling (SIR) and optimizes over feature subsets using gradient-based methods with continuous relaxation, producing a Necessity and Sufficiency Attribution (NSA) score and selecting the subset with the highest NSA.Empirical results on six benchmarks (image and graph data) show that FANS achieves superior faithfulness, sparsity, and robustness compared with a broad set of baselines, and the authors provide extensive ablations and convergence analyses; code is available at the cited repository.
Abstract
We investigate the problem of explainability for machine learning models, focusing on Feature Attribution Methods (FAMs) that evaluate feature importance through perturbation tests. Despite their utility, FAMs struggle to distinguish the contributions of different features, when their prediction changes are similar after perturbation. To enhance FAMs' discriminative power, we introduce Feature Attribution with Necessity and Sufficiency (FANS), which find a neighborhood of the input such that perturbing samples within this neighborhood have a high Probability of being Necessity and Sufficiency (PNS) cause for the change in predictions, and use this PNS as the importance of the feature. Specifically, FANS compute this PNS via a heuristic strategy for estimating the neighborhood and a perturbation test involving two stages (factual and interventional) for counterfactual reasoning. To generate counterfactual samples, we use a resampling-based approach on the observed samples to approximate the required conditional distribution. We demonstrate that FANS outperforms existing attribution methods on six benchmarks. Please refer to the source code via \url{https://github.com/DMIRLAB-Group/FANS}.
