Feature Attribution with Necessity and Sufficiency via Dual-stage Perturbation Test for Causal Explanation

Xuexin Chen, Ruichu Cai, Zhengting Huang, Yuxuan Zhu, Julien Horwood +3 more
2/12/2026

No official code found. Best implementation: DMIRLAB-Group/FANS (2 stars, last commit 2025-06-23).

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}.

View on arXivView PDF

Code Implementations(1)

DMIRLAB-Group/FANSCommunity100%
20PythonMay 29, 20241 years ago

Similar Papers

Cite this paper

@article{chen2026feature,
  title  = {Feature Attribution with Necessity and Sufficiency via Dual-stage Perturbation Test for Causal Explanation},
  author = {Xuexin Chen and Ruichu Cai and Zhengting Huang and Yuxuan Zhu and Julien Horwood and Zhifeng Hao and Zijian Li and José Miguel Hernández-Lobato},
  year   = {2026},
  eprint = {2402.08845},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.08845},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.08845.svg)](https://codeofpaper.com/paper/2402.08845)

Discussion