GCN-SE: Attention as Explainability for Node Classification in Dynamic Graphs

Yucai Fan, Yuhang Yao, Carlee Joe-Wong

Introduction

The paper "GCN-SE: Attention as Explainability for Node Classification in Dynamic Graphs" introduces a novel framework for analyzing graphs that evolve over time. By integrating a "Squeeze and Excitation" (SE) attention mechanism—a technique originally popularized in computer vision—the authors enhance both the predictive accuracy and the interpretability of Graph Neural Networks (GNNs) on dynamic data.

Problem Statement: The Dynamic Nature of Real-World Graphs

Most Graph Convolutional Networks (GCNs) are optimized for static snapshots. However, real-world networks, such as social media platforms or citation indices, are inherently dynamic. Friendships are formed, research interests shift, and network topologies evolve continuously.

Evolution of a dynamic graph over three time steps, showing changing connections between nodes.

Existing approaches to dynamic graphs face three primary hurdles:

  1. Entangled Spatio-Temporal Information: Separating spatial connectivity from temporal evolution is non-trivial.
  2. Non-Uniform Temporal Importance: Not all historical snapshots are equally relevant. Recent events might be more predictive, or specific past cycles might hold the key.
  3. Lack of Interpretability: Many models act as "black boxes," offering little insight into why certain time steps were prioritized.

Methodology: The GCN-SE Architecture

The proposed GCN-SE model addresses these challenges by incorporating an SE block into a standard GCN pipeline. This allows the model to learn adaptive weights for different temporal snapshots.

The GCN-SE architecture, featuring Graph Convolutional layers followed by an SE block for temporal attention.

Architectural Components

  • Feature Extraction: A sequence of graph snapshots is processed through GCN layers to generate node-level representations for each time step.
  • The "Squeeze" Operation: Global pooling is applied across all nodes within a snapshot to create a single descriptor vector representing the state of the graph at that moment.
  • The "Excitation" Operation: A small neural network processes these descriptors to compute attention weights. These weights quantify the relative importance of each snapshot.
  • Aggregation: The final node representation is constructed as a weighted linear combination of representations from all snapshots, guided by the learned attention.

Validating Explainability

To verify that these attention weights provide meaningful explanations, the authors used a perturbation-based metric. By masking specific time steps and observing the resulting drop in classification accuracy, they established a "ground truth" for temporal importance. The high correlation between this ground truth and the model's attention weights confirms that the SE block serves as a reliable explainer.

Datasets and Evaluation

The model was rigorously tested on five real-world datasets, including citation networks (DBLP), social networks (Reddit), and fMRI brain activation data. It was also tested on synthetic data designed to evaluate how the model handles noise and temporal anomalies.

Key Insights and Results

  • Attention as a Valid Explainer: The study provides empirical evidence that attention weights in dynamic graphs are accurate indicators of data importance. On the DBLP-3 dataset, the correlation reached 0.7595.
  • Superior Performance: GCN-SE consistently outperformed established baselines like standard GCN, GraphSage, and GC-LSTM in terms of Accuracy, AUC, and F1-score.
  • Adaptive Temporal Modeling: Unlike rigid exponential decay models, GCN-SE can identify periodic patterns and sudden state transitions, effectively "silencing" noisy or irrelevant snapshots.

Conclusion and Future Directions

GCN-SE represents a significant step toward interpretable dynamic graph modeling. While the current iteration assumes a constant node set, future work aims to extend this to fully dynamic graphs with varying nodes and edges. Additionally, applying this attention-based explainability to tasks like link prediction remains a promising avenue for research.

Summary updated

Abstract

Graph Convolutional Networks (GCNs) are a popular method from graph representation learning that have proved effective for tasks like node classification. Recent variants on traditional GCN models aim to classify nodes in dynamic graphs whose topologies and node attributes change over time, e.g., social networks with dynamic relationships. These works, however, do not fully address the challenge of flexibly assigning different importance to snapshots of the graph at different times, which depending on the graph dynamics may have more or less predictive power on the labels. We address this challenge by proposing a new method, GCN-SE, that attaches a set of learnable attention weights to graph snapshots at different times, inspired by Squeeze and Excitation Net (SE-Net). We show that GCNSE outperforms previously proposed node classification methods on a variety of graph datasets. To verify the effectiveness of the attention weight in determining the importance of different graph snapshots, we adapt perturbation-based methods from the field of explainable machine learning to graphical settings and evaluate the correlation between the attention weights learned by GCN-SE and the importance of different snapshots over time.
BibTeX
@inproceedings{fan2021gcn,
  author = {Yucai Fan and Yuhang Yao and Carlee Joe-Wong},
  title = {{GCN-SE: Attention as Explainability for Node Classification in Dynamic Graphs}},
  booktitle = {ICDM},
  year = {2021},
  url = {https://openreview.net/forum?id=BHeWwL07zmc},
}
Figure