Abstract
Graph Neural Networks (GNNs) have demonstrated remarkable performance across various domains but remain largely opaque. This paper introduces a novel framework for global, concept-based interpretability by analyzing individual neurons as specialized "concept detectors." By mapping neuron activations to human-understandable logical compositions of graph properties, the authors reveal a significant interpretability trade-off: prolonged training and increased model depth can lead to "polysemantic" neurons, complicating human decipherability despite stable accuracy.
Introduction
While Graph Neural Networks (GNNs) are powerful tools for modeling relational data, they have traditionally functioned as black boxes. Existing explainability tools often focus on local, post-hoc explanations—identifying which specific features influenced a single prediction. This research shifts the focus toward global understanding, investigating whether GNNs develop internal semantic representations similar to the "feature detectors" found in computer vision models.
Methodology: Decoding the Black Box
The proposed framework moves beyond local explanations by identifying the underlying logic that governs a model's behavior across an entire dataset.
1. Compositional Concept Search
The authors define "concepts" as logical compositions (using AND, OR, NOT operators) of basic graph properties, such as node degrees or atom labels. A beam search algorithm is employed to find the logical strings that best align with the firing patterns of individual neurons.
2. Graph Concept Activation Maps (GCAM)
Inspired by Grad-CAM, GCAM allows researchers to visualize exactly which nodes and edges trigger a specific neuron within a given graph, providing a bridge between abstract logic and structural data.
3. Global Importance Metrics
To quantify a neuron's influence, the authors introduced Absolute Contribution (ABS) and Entropy Score (ENT). These metrics measure how much a specific concept impacts the final classification and the consistency of that impact across the dataset.
Key Insights: The Interpretability Trade-off
The study's most significant finding is the interpretability trade-off. While accuracy may remain stable over long training periods, the internal logic of the GNN often becomes increasingly "tangled."
- Polysemantic Neurons: In models trained for hundreds of epochs, neurons often become polysemantic, responding to a messy mixture of features rather than clean, logical concepts.
- Depth vs. Clarity: Deeper GNNs (e.g., 10 layers) are significantly harder to interpret than shallower ones (e.g., 3 layers). This is attributed to "over-smoothing," where node representations become indistinguishable as they propagate through excessive layers.
- Redundancy: GNNs frequently develop multiple neurons that detect the same concept, suggesting significant potential for model pruning without performance loss.
Experimental Results
The framework was evaluated on benchmarks including MUTAG, Reddit-Binary, PROTEINS, and IMDB-Binary.
In chemical datasets like MUTAG, neurons were found to act as dedicated detectors for specific functional groups, such as $NO_2$ or carbon rings. In social datasets, neurons often functioned as "expert detectors," firing only for nodes with high degrees (representing highly active users). Many neurons showed near-perfect alignment (scores close to 1.0) with simple logical concepts, particularly in datasets where structural features like node degree are primary indicators.
Compared to previous global explainers like XGNN, which generate synthetic and often noisy graphs, this method provides human-friendly logical descriptions backed by real-world examples from the training data.
Conclusion and Future Directions
This research provides a robust framework for auditing the internal "reasoning" of GNNs. While the discovery process is currently limited by the predefined "base concepts" provided to the search algorithm, it opens new doors for model refinement. Future work may leverage this neuron analysis for automated model pruning—identifying and removing neurons that do not contribute to useful or "correct" concepts to create more efficient and transparent architectures.
Summary updated