Introduction
Modern machine learning, particularly deep learning, relies on complex, non-linear feature interactions to achieve high performance. However, explaining these "black-box" models remains a significant challenge. Current Explainable AI (XAI) tools like SHAP and LIME primarily focus on univariate importance, assigning a single score to each feature in isolation. While some bivariate methods exist, they typically assume symmetry in interactions—that feature A affects feature B in the same way B affects A. This paper argues that feature interactions are inherently directional and asymmetric, and capturing this directionality is crucial for faithful model explanation.
The Directed Explanation Graph Framework
The authors propose a novel framework that extends removal-based explanations to a bivariate level. Instead of measuring a feature's standalone influence, they measure the influence of a feature $j$ conditioned on the presence of another feature $i$.
This approach results in a $d \times d$ interaction matrix that is inherently asymmetric. This matrix is represented as a weighted Directed Explanation Graph ($̄G$). In this graph, an edge from node $i$ to node $j$ quantifies how much the presence of $i$ influences the contribution of $j$. By applying graph-theoretic analysis to $̄G$, the framework identifies several key structures:
- Sinks: Nodes with high in-degree and low out-degree represent the "Most Influential Features." These features "absorb" the influence of others, meaning once they are present, other features contribute little to the prediction.
- Sources: Nodes with primarily outgoing edges are the least influential.
- Redundancy Graph ($̄H$): By thresholding the interaction matrix, the authors identify Directional Redundancy (where feature A makes feature B redundant) and Mutual Redundancy (where A and B are interchangeable).
To derive a final univariate ranking that accounts for these complex interactions, the authors apply the PageRank algorithm to the interaction graph. This identifies features that are central to the model's decision-making process based on their interaction patterns rather than just isolated contributions.
Experimental Evaluation
The framework was evaluated across diverse domains, including image classification (MNIST, CIFAR10), sentiment analysis (IMDB), tabular data (UCI Census, Divorce, Drug), and high-dimensional genetic data (COPDGene). The primary metric for evaluation was post-hoc accuracy. This involves masking features based on their importance ranking and observing how well the model's original prediction is preserved. A more faithful explanation method will maintain higher accuracy while keeping fewer top-ranked features.
Results and Discussion
The results demonstrate that the proposed method, BivShap, consistently outperforms univariate SHAP and symmetric interaction methods like the Shapley Taylor Index.
Key findings include:
- Superior Faithfulness: BivShap rankings lead to more stable model predictions when masking features, indicating a better capture of the model's internal logic.
- Discovery of Redundancy: On the IMDB dataset, the method revealed that a vast majority of features (96.5%) were redundant in the presence of key "sink" words. The model's accuracy remained at 100% even after masking these redundant features.
- Computational Efficiency: By integrating with the KernelSHAP framework, the BivShap-K implementation scales effectively to high-dimensional datasets, outperforming sampling-based interaction methods in speed.
Conclusion
This work highlights that asymmetry is a fundamental property of feature interactions in complex models. By modeling these interactions as a directed graph, the proposed framework provides a more nuanced and faithful explanation of black-box behavior. The identification of directional redundancies and the use of graph centrality measures like PageRank offer a powerful new lens for understanding how information is processed in modern machine learning systems.
Summary updated