TL;DR
Graph Neural Networks (GNNs) are powerful tools for analyzing complex relational data, but understanding why they make certain decisions is crucial for trust and debugging. This paper systematically investigates and compares two major classes of explainability techniques – gradient-based and decomposition-based – applied to GNNs for the first time, providing a foundational study for this important area.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) are increasingly used in domains where data naturally forms a graph structure, such as chemistry, social networks, and physics. While GNNs achieve impressive performance, their "black box" nature makes it difficult to understand the reasoning behind their predictions. This lack of transparency is a significant barrier to their adoption in safety-critical applications and hinders scientific discovery. Existing explainability methods, developed primarily for standard deep networks (like CNNs for images), have not been thoroughly studied in the context of GNNs, which have unique structural properties like irregular connectivity and the importance of edges. This paper aims to bridge this gap by exploring how established explainability techniques perform on GNNs and identifying challenges specific to this domain.
Methods
The authors focus on two main categories of explainability techniques:
- Gradient-based methods: These methods analyze how small changes in the input affect the output. The paper examines:
- Sensitivity Analysis (SA): Uses the gradient of the output with respect to the input features.
- Guided Backpropagation (GBP): Similar to SA but clips negative gradients to focus on features that positively contribute to the output.
- Decomposition-based methods: These methods decompose the prediction into contributions from individual input features. The paper examines:
- Layer-wise Relevance Propagation (LRP): Decomposes the output signal backward through the network, assigning relevance scores to input features. The authors specifically use the $\epsilon$-stabilized rule for its robustness.
- Taylor Decomposition: (Mentioned as a basis for LRP, but not directly evaluated as a separate method).
A key aspect of their methodology is the implementation of these techniques using PyTorch's autograd module, allowing them to handle the complex computational graphs of GNNs.
Datasets
The paper uses two primary datasets for evaluation:
- Toy "Infection" Dataset: A synthetic dataset designed to simulate disease spread among individuals. It features nodes representing individuals (with states like sick, healthy, immune) and edges representing relationships. This dataset allows for evaluation against logical infection dynamics.
- Chemistry "Solubility" Dataset: A real-world dataset containing approximately 1000 organic molecules represented as graphs. Nodes represent atoms, and edges represent bonds. The task is to predict the aqueous solubility of these molecules. This dataset is the same one used in a prior influential work (Duvenaud et al., 2015).
Key Insights and Ideas
- LRP Outperforms Gradient-Based Methods for GNNs: The authors consistently find that Layer-wise Relevance Propagation (LRP) provides more intuitive and natural explanations for GNN predictions compared to gradient-based methods like SA and GBP. This is attributed to LRP's ability to decompose the output signal, which aligns better with the structured nature of graph data.
- The Importance of Connections: GNNs inherently rely on the structure of connections (edges) between nodes. The paper highlights that explainability methods need to account for the role of these edges, not just node features, as they carry crucial information.
- Challenges with Pooling: The choice of aggregation (pooling) function in GNNs significantly impacts explanations. Max pooling, while effective for some tasks, can lead to incomplete explanations by focusing on only one input, potentially missing other important contributing factors. Sum pooling, conversely, can capture all sources but might lead to incorrect predictions in certain scenarios.
- Domain-Specific Knowledge is Key for Chemistry: Explaining molecular properties requires careful consideration. The paper demonstrates that while LRP can identify important atoms and bonds, interpreting these explanations in the context of chemistry often requires domain expertise to understand how small alterations affect molecular validity and properties.
- Heterogeneous Features Require Detailed Visualization: GNNs often handle diverse feature types (categorical, binary, continuous). The paper suggests that simple heatmaps might be insufficient, advocating for more detailed visualizations that can capture the importance of individual features.
Key Results
- Comparable Performance to Prior Work: The GNN model trained for the solubility task achieved performance comparable to previous state-of-the-art methods (Duvenaud et al., 2015).
- Qualitative Differences in Explanations: The study provides detailed case studies (Figures 9-11 for Infection, Figures 18-19 for Solubility) illustrating how SA, GBP, and LRP differ in their explanations. LRP consistently provided more interpretable results, aligning better with human intuition and domain knowledge. For instance, in the infection task, LRP correctly identified the sick node and the non-virtual edge as positive contributors, while also accounting for negative contributions.
- Demonstration of Pooling Impact: Figures 12-17 clearly show how max pooling can lead to explanations that miss potential sources of infection, while sum pooling captures them but can also be associated with incorrect predictions.
Limitations and Future Work
- Limitations of LRP for Regression: While LRP was adapted for regression tasks, the paper notes that the conservation property of relevance does not fully hold due to the presence of bias terms in the network, which are internal parameters and not interpretable.
- Perturbation-based Evaluation Challenges: Evaluating explanations through input perturbations is difficult for graphs because altering graph structures can drastically change their meaning. The paper suggests domain-specific knowledge or learning bijective mappings to manifolds as potential strategies.
- Future Work: The authors suggest several avenues for future research:
- Developing GNN-specific explainability techniques.
- Further exploring the role of connections and heterogeneous features in explanations.
- Investigating more robust methods for evaluating explanations, potentially through domain-specific perturbation strategies.
- Providing an open-source implementation of the GNNs and explanation algorithms to facilitate further research.
Summary updated