Abstract
Graph Neural Networks (GNNs) have achieved remarkable success in static and dynamic graph settings. However, applying them to a continuous sequence of learning tasks often leads to "catastrophic forgetting," where knowledge of previous tasks is overwritten by new information. This paper introduces ER-GNN, a framework for Continual Graph Learning (CGL) that utilizes an Experience Replay mechanism. By storing a small subset of representative nodes from past tasks and replaying them during new training phases, ER-GNN effectively balances stability and plasticity. We propose three node selection strategies—Mean of Feature (MF), Coverage Maximization (CM), and Influence Maximization (IM)—to optimize the experience buffer. Extensive experiments on Cora, Citeseer, and Reddit datasets demonstrate that ER-GNN significantly outperforms standard GNNs and existing continual learning baselines.
The Challenge: Catastrophic Forgetting in Graphs
Most GNN research focuses on single-task settings. In real-world applications like evolving social networks or citation graphs, models must learn new categories or topics sequentially. Standard GNNs suffer from the stability-plasticity dilemma: they are either too stable to learn new tasks or too plastic, leading to the erasure of old knowledge. This is particularly difficult in non-Euclidean graph structures where nodes are interdependent, and topological information is as vital as node features.
As shown in the conceptual diagram above, as a model evolves from Task 1 to Task 3, its accuracy on the initial tasks typically plummets. ER-GNN aims to flatten this forgetting curve.
The ER-GNN Framework
ER-GNN addresses forgetting by maintaining an experience buffer. The framework is model-agnostic and can be applied to various architectures like Graph Attention Networks (GAT) or Graph Convolutional Networks (GCN). The core innovation lies in how nodes are selected for the buffer:
- Mean of Feature (MF): Selects "prototypical" nodes closest to the class average in the feature or embedding space.
- Coverage Maximization (CM): Selects a diverse set of nodes to represent the full distribution of a class.
- Influence Maximization (IM): Uses influence functions to identify nodes that have the most significant impact on the model's parameters, ensuring the most critical knowledge is preserved.
Results and Performance Analysis
The researchers evaluated ER-GNN on three benchmarks: Cora (3 tasks), Citeseer (3 tasks), and Reddit (8 tasks). Performance was measured using Performance Mean (PM) and Forgetting Mean (FM).
Key findings include:
- Significant Mitigation of Forgetting: On the Cora dataset, the Influence Maximization (IM) strategy reduced the Forgetting Mean from 30.84% (standard GAT) to 21.14%.
- Strategy Superiority: While all selection strategies helped, IM consistently provided the best results, followed by CM and MF. This suggests that some nodes are inherently more informative for maintaining model memory.
- Efficiency: ER-GNN remains effective even with extremely small buffers (e.g., 1 node per class), making it a viable solution for large-scale graphs.
- Maintained Plasticity: Protecting old memories did not hinder the model's ability to learn new tasks; ER-GNN often matched or exceeded vanilla GNN performance on the most recent task in the sequence.
Conclusion and Future Work
ER-GNN provides a robust foundation for continual learning on graphs. By replaying influential nodes, it overcomes the catastrophic forgetting inherent in traditional GNN training. Future research will look to expand this framework beyond node classification to tasks like link prediction and handle more complex structural changes, such as disappearing edges or shifting graph topologies.
Summary updated