Abstract
Graph Neural Networks (GNNs) have recently received significant research attention due to their superior performance on a variety of graph-related learning tasks. Most of the current works focus on either static or dynamic graph settings, addressing a single particular task, e.g., node/graph classification, link prediction. In this work, we investigate the question: can GNNs be applied to continuously learning a sequence of tasks? Towards that, we explore the Continual Graph Learning (CGL) paradigm and present the Experience Replay based framework ER-GNN for CGL to alleviate the catastrophic forgetting problem in existing GNNs. ER-GNN stores knowledge from previous tasks as experiences and replays them when learning new tasks to mitigate the catastrophic forgetting issue. We propose three experience node selection strategies: mean of feature, coverage maximization, and influence maximization, to guide the process of selecting experience nodes. Extensive experiments on three benchmark datasets demonstrate the effectiveness of our ER-GNN and shed light on the incremental graph (non-Euclidean) structure learning.
Introduction
Most Graph Neural Networks (GNNs) are designed for static environments where the task is fixed. However, real-world graphs, such as citation networks or social media platforms, are dynamic and evolve over time. When standard GNNs are trained on a sequence of tasks—for example, learning to classify biology papers followed by physics papers—they suffer from catastrophic forgetting. As the model optimizes for the new task, it overwrites the knowledge acquired from previous ones, leading to a significant drop in performance on the original tasks.
The ER-GNN Framework
To address this challenge, we introduce ER-GNN (Experience Replay GNN). This framework is inspired by biological memory systems that maintain a small buffer of past experiences to periodically "replay" them while learning new information. ER-GNN is GNN-agnostic, meaning it can be integrated with various architectures like GCN or GAT.
Experience Selection Strategies
Since memory is limited, the strategy for selecting which nodes to preserve is crucial. We propose three selection methods:
- Mean of Feature (MF): Selects "prototype" nodes closest to the average feature vector of a class.
- Coverage Maximization (CM): Selects a diverse set of nodes to ensure the buffer covers as much of the feature space as possible.
- Influence Maximization (IM): Uses influence functions to mathematically estimate which nodes have the greatest impact on the model's parameters. By saving these "influential" nodes, the model retains the most critical anchors for its previous knowledge.
Experimental Results
We evaluated ER-GNN on three benchmark datasets: Cora, Citeseer, and Reddit. The performance was measured using Performance Mean (PM) (average accuracy across all tasks) and Forgetting Mean (FM) (accuracy loss on old tasks).
Key Findings
- Reduction in Forgetting: On the Reddit dataset, vanilla GAT exhibited a forgetting rate of 34.97%. The ER-GAT-IM variant reduced this to 23.09%.
- Superior Accuracy: On the Cora dataset, ER-GAT-IM achieved a PM of 95.66%, occasionally outperforming models trained only on the current task, suggesting that replaying experiences can improve overall generalization.
- Influence as a Metric: The Influence Maximization (IM) strategy consistently outperformed simpler methods, indicating that a node's mathematical influence on the model is a better selection criterion than feature-based heuristics.
Conclusion
ER-GNN effectively manages the stability-plasticity dilemma in GNNs, allowing them to learn new tasks without losing past knowledge. While the current work focuses on node classification with clear task boundaries, future research will explore link prediction and more fluid task transitions in evolving graph environments.
Summary updated