Edge-Level Explanations for Graph Neural Networks by Extending Explainability Methods for Convolutional Neural Networks

Tetsu Kasanishi, Xueting Wang, Toshihiko Yamasaki

Graph Neural Networks (GNNs) have emerged as powerful tools for analyzing network-structured data, from molecular modeling to social network analysis. However, their "black box" nature often obscures the reasoning behind their predictions. This research explores how to interpret GNN decisions by adapting successful explainability techniques from the field of computer vision—specifically Convolutional Neural Networks (CNNs)—to identify critical edge-level contributions.

Methodology

The researchers extended three core CNN attribution frameworks to the graph domain to determine which connections (edges) most influence a GNN's output:

  1. LIME-Based Method: This approach uses Local Interpretable Model-Agnostic Explanations by perturbing the input graph. By randomly weighting edges and observing changes in the GNN's output, a simple Lasso regression model is trained to identify the most important edges.
  2. Saliency Map-Based Method: A gradient-based technique that calculates the derivative of the model's output with respect to the information flowing through each edge during message passing. High gradients signify edges that are pivotal to the final prediction.
  3. Grad-CAM-Based Method: Adapted from Gradient-Weighted Class Activation Mapping, this method uses target class gradients to weight GNN feature maps, creating a visual heat map of edge importance.

These methods were benchmarked against GNNExplainer, a brute-force Removal Method (deleting edges individually), and a Random baseline.

Experimental Evaluation

The methods were evaluated using both synthetic and real-world benchmarks. In the QM9 (Molecules) dataset, the task was to predict aromaticity, where the ground truth for an explanation is the set of edges forming benzene rings.

Visual comparison of edge importance identified by LIME, Grad-CAM, and GNNExplainer on a benzene ring.

As shown in the visualization above, the LIME-based approach clearly identifies the benzene ring structure, whereas other methods like Grad-CAM and GNNExplainer often include irrelevant peripheral edges in their explanations.

Key Results and Insights

Quantitative analysis across multiple datasets revealed that the LIME-based method is remarkably robust, particularly on real-world data. While GNNExplainer performed well on synthetic datasets (BA-shapes), it struggled with the complexity of real-world node features and graph structures.

Performance comparison across synthetic and real-world datasets showing LIME's superior accuracy on benzene ring and removal tests.

The Power of Interaction

LIME's superior performance (0.99 recall on benzene rings) is attributed to its ability to perturb multiple edges simultaneously. This allows the model to capture interactions between edges, whereas gradient-based methods often analyze edges in isolation.

Efficiency vs. Accuracy

While the brute-force "Removal Method" provides high accuracy, it is computationally expensive. The LIME-based approach achieves nearly identical fidelity (as measured by the drop in model confidence when important edges are removed) but operates 3 to 10 times faster. For instance, on the Amazon dataset, LIME generated explanations in 79.3 seconds compared to over 704 seconds for the Removal method.

Conclusion

By extending CNN-based explainability methods to graphs, this work demonstrates that model-agnostic perturbation techniques like LIME are highly effective for GNNs. They offer a practical balance of accuracy and efficiency, outperforming specialized GNN explainers on real-world tasks. Future research may focus on integrating these edge-level insights with node-level feature importance for a more holistic understanding of GNN behavior.

Summary updated

BibTeX
@inproceedings{kasanishi2021edge,
  author = {Tetsu Kasanishi and Xueting Wang and Toshihiko Yamasaki},
  title = {{Edge-Level Explanations for Graph Neural Networks by Extending Explainability Methods for Convolutional Neural Networks}},
  booktitle = {ISM},
  year = {2021},
  url = {https://openreview.net/forum?id=o0ZY9m4N5qz},
}
Figure