Abstract
Explainable AI (XAI) relies heavily on feature attribution to interpret black-box models. However, traditional methods like LIME and SHAP often rely on synthetic perturbations that create out-of-distribution (OOD) data points, leading to unreliable explanations. We present DFAX (Distributional Feature Attribution eXplanations), a model-agnostic framework that grounds feature importance in the actual probability distribution of the data. By utilizing Kernel Density Estimation (KDE) and kernel mean maps, DFAX achieves high fidelity and $O(1)$ inference speed, significantly outperforming existing standards in both accuracy and computational efficiency.
Introduction
The primary challenge in local feature attribution is the lack of a formal problem definition that accounts for data manifold constraints. Most popular XAI methods use perturbations—altering or masking input features—to observe model response. This process frequently generates "Frankenstein" samples: synthetic instances that do not exist in the training distribution. When a model encounters these OOD samples, its behavior may be erratic, resulting in misleading attribution scores. DFAX addresses this by ensuring explanations are supported by the underlying probability distribution $P$ of the dataset.
Methodology: Distributional Feature Attribution
DFAX shifts the paradigm from "probing the model with noise" to "analyzing the model's behavior on the data distribution." Instead of creating synthetic neighbors, DFAX employs Kernel Density Estimation (KDE) to evaluate the likelihood of a feature value within specific classes.
As shown in Figure 3, DFAX (c) calculates attribution by comparing the probability of a feature value $x$ given the target class $C_1$ against its probability given other classes $C_2$. The attribution score is the difference between these probabilities.
Computational Efficiency
A key innovation in DFAX is the use of "kernel mean maps." By pre-computing the dataset's distributional representation once, the attribution for any new prediction becomes an $O(1)$ operation. This allows DFAX to provide explanations in milliseconds, whereas methods like SHAP may require seconds or minutes per instance.
Experimental Evaluation
The authors evaluated DFAX across ten diverse datasets covering tabular data, text, images, and biological spatial transcriptomics.
Key Results
- Fidelity: DFAX ranked 1st or 2nd on 9 out of 10 datasets based on standard "deletion" and "insertion" metrics, proving its superior ability to identify truly influential features.
- Runtime: On the MNIST and Bankruptcy datasets, DFAX demonstrated orders-of-magnitude speedups over SHAP and MAPLE.
- Qualitative Analysis: In sentiment analysis tasks (RottenTomatoes), DFAX consistently identified semantically relevant words (e.g., "compelling") while baselines often focused on neutral tokens.
Discussion and Future Work
DFAX provides a mathematically grounded alternative to perturbation-based XAI. By staying on the data manifold, it avoids the noise inherent in OOD sampling. While highly effective, future work will explore the axiomatic properties of DFAX to provide theoretical guarantees similar to Game Theory-based methods. Additionally, the framework will be extended to support feature-group attribution, enabling more complex explanations for high-dimensional data like genomic sequences or image patches.
Summary updated