Abstract
Standard feature attribution methods (FAMs) often struggle to distinguish between features that truly drive a model's decision and those that are merely present. We introduce FANS (Feature Attribution with Necessity and Sufficiency), a framework that applies the causal "Probability of Necessity and Sufficiency" (PNS) to identify true causal drivers through a dual-stage perturbation test. By bridging the gap between feature attribution and Judea Pearl’s causal framework, FANS provides more faithful and robust explanations across diverse benchmarks.
Introduction
Feature Attribution Methods (FAMs)—such as Shapley values or Integrated Gradients—are fundamental to explainable AI. They typically operate by perturbing input features and measuring the resulting change in model output. However, a critical flaw exists: standard FAMs struggle when different features result in similar prediction changes after perturbation. For instance, an irrelevant feature might be assigned a score of zero alongside a critical feature if neither perturbation flips the prediction. This failure to capture the "causal" reality necessitates a move toward more rigorous definitions of causality in attribution.
Methodology
The proposed FANS framework formalizes feature importance through the lens of causality, moving beyond simple correlation.
Causal Modeling and PNS
FANS defines a Structural Causal Model (SCM) for the perturbation test, treating feature selection as an intervention. Instead of a simple importance score, it calculates the Probability of Necessity and Sufficiency (PNS). This metric addresses two counterfactual questions:
- Necessity: If the feature were absent, would the prediction change?
- Sufficiency: If only this feature were present, would the prediction remain the same?
Dual-stage Perturbation Test
To estimate PNS, FANS employs a two-step process:
- Factual Stage (Abduction): The model identifies a neighborhood of samples where the model behaves similarly to the target input.
- Interventional Stage (Action & Prediction): Counterfactual interventions are performed on these samples to observe the frequency of prediction flips.
Approximation and Optimization
Due to the complexity of the required conditional distributions, Sampling-Importance-Resampling (SIR) is used for approximation. Gradient descent is then applied to identify the feature subset that maximizes the PNS score.
Experimental Evaluation
FANS was evaluated across six benchmarks, including image datasets (MNIST, Fashion-MNIST, CIFAR10) and graph datasets (BACommunity, Citeseer, Pubmed). This diversity ensures the method's efficacy on both grid-like and irregular data structures.
Key Results
FANS consistently outperformed state-of-the-art baselines, including LIME, Integrated Gradients, and GNNExplainer.
- Faithfulness: FANS improved performance on the Infidelity (INF) metric by 26% to 47% on image datasets compared to the next best methods.
- Sparsity: FANS produces "cleaner" explanations by successfully filtering out irrelevant background noise, as seen in visual comparisons.
- Robustness: The neighborhood-sampling approach allows FANS to maintain performance under increasing noise levels, showing a significantly shallower drop than gradient-based methods.
Discussion and Conclusion
The core contribution of FANS is the shift from correlation-based importance to causal necessity and sufficiency. By utilizing the Abduction-Action-Prediction paradigm, FANS simulates counterfactual scenarios that standard methods cannot reach. While FANS represents a significant step toward "Causal AI," limitations remain regarding the heuristic selection of parameters like neighborhood size. Future work will focus on establishing a theoretical framework for optimal parameter identification.
Summary updated