Abstract
Most methods for explaining black-box classifiers (e.g. on tabular data, images, or time series) rely on measuring the impact that removing/perturbing features has on the model output. This forces the explanation language to match the classifier's feature space. However, when dealing with graph data, in which the basic features correspond to the edges describing the graph structure, this matching between features space and explanation language might not be appropriate. Decoupling the feature space (edges) from a desired high-level explanation language (such as motifs) is thus a major challenge towards developing actionable explanations for graph classification tasks. In this paper we introduce GRAPHSHAP, a Shapley-based approach able to provide motif-based explanations for identity-aware graph classifiers, assuming no knowledge whatsoever about the model or its training data. For the sake of computational efficiency we explore a progressive approximation strategy and show how a simple kernel can efficiently approximate explanation scores, thus allowing GRAPHSHAP to scale on scenarios with a large explanation space. We showcase GRAPHSHAP on a real-world brain-network dataset consisting of patients affected by Autism Spectrum Disorder and a control group.
Introduction: The Gap Between Edges and Insights
In the realm of graph classification, most explainability tools are "feature-bound." If a model is trained on edges, the explanation highlights specific edges. However, for domain experts like neuroscientists, individual edges between brain regions are often less meaningful than motifs—higher-order patterns of connectivity. Furthermore, many critical graph datasets, such as those in connectomics (brain mapping), are identity-aware: Node #42 in one patient represents the exact same anatomical region as Node #42 in another.
The challenge lies in explaining a black-box model using a high-level "language" (motifs) that differs from its low-level input (edges), while avoiding the exponential computational costs associated with traditional Shapley value calculations.
The GRAPHSHAP Framework
GRAPHSHAP addresses these challenges through a framework rooted in cooperative game theory, where the "players" are user-defined motifs rather than raw edges.
1. Decoupling Explanation and Feature Spaces
GRAPHSHAP allows users to define an "explanation space" consisting of motifs that are entirely separate from the "feature space" (the edges) the model processes. This ensures that the output is actionable for human experts.
2. Motif Masking via Toggling
To assess a motif's importance, the algorithm must "mask" it. Unlike standard approaches that simply delete edges, GRAPHSHAP employs a Toggle strategy. It flips the state of edges within a motif: if an edge exists, it is removed; if it is absent, it is added. This captures the diagnostic importance of both the presence and the absence of specific connectivity patterns—a crucial factor in biological networks.
3. Efficient Approximation
Calculating exact Shapley values for $N$ motifs requires $2^N$ model queries. GRAPHSHAP utilizes a depth-1 approximation (comparing the full graph to versions where only one motif is toggled). Empirical results show this maintains a Pearson correlation of >0.95 with exact values while reducing computational complexity from exponential to linear ($2 \times |M|$).
Experimental Validation
The authors evaluated GRAPHSHAP using synthetic benchmarks and the ABIDE (Autism Brain Imaging Data Exchange) dataset, which contains 871 brain networks.
Key Findings
- The Toggle Advantage: Toggling edges proved significantly more effective than simple removal. In biological contexts, the absence of a connection can be as informative as its presence. Toggle masking achieved a correlation of 0.81 with ground truth importance, compared to 0.48 for removal.
- Scalability: By leveraging the depth-1 approximation, GRAPHSHAP can handle over 100 motifs, saving up to $10^{26}$ operations compared to exact methods.
- Clinical Utility: On the ABIDE dataset, GRAPHSHAP identified specific connectomics patterns driving Autism Spectrum Disorder (ASD) classification. Notably, it revealed that for certain patients, the absence of specific motifs was the primary driver for the model's prediction.
Conclusion and Future Directions
GRAPHSHAP demonstrates that identity-aware graph classifiers can be effectively explained through a high-level motif language. While currently optimized for graphs with fixed node identities (like brain or gene networks), future iterations could extend this to "anonymous" graphs like chemical molecules. Ongoing collaborations with neuroscientists aim to further validate the clinical significance of the motifs identified in ASD patients.
Summary updated