Abstract
Incremental learning in growing graphs presents a significant challenge: models must adapt to new tasks and increasing class complexity without losing performance on previously learned data—a phenomenon known as catastrophic forgetting. Existing methods often fail to maintain sufficient memory diversity, leading to poor representation of past knowledge. This paper introduces the Diversified Memory Selection and Generation (DMSG) framework. DMSG employs a heuristic greedy algorithm to select representative nodes based on intra-class and inter-class diversity. It then utilizes a generative replay mechanism, incorporating variational layers and adversarial learning, to synthesize high-quality training samples from the memory buffer. Experimental results on benchmark datasets like CoraFull and OGB-Products demonstrate that DMSG significantly outperforms state-of-the-art methods in both accuracy and retention.
Introduction: The Challenge of Growing Graphs
Real-world graphs, such as social networks and citation indices, are dynamic and ever-expanding. As these graphs grow, they often introduce new categories of data. Training a Graph Neural Network (GNN) from scratch for every update is computationally inefficient. However, incremental learning—training only on new data—typically results in catastrophic forgetting, where the model's performance on older tasks degrades rapidly.
While "memory buffer" strategies exist to store and replay past nodes, they suffer from two primary limitations:
- Inefficient Selection: Random or non-diverse sampling fails to capture the full distribution of original classes.
- Overfitting on Static Buffers: Replaying a small, static set of nodes often leads to overfitting, failing to represent the complexity of the original data.
The DMSG Framework
The DMSG framework addresses these gaps through a two-stage process focused on "holistic memory diversification."
1. Heuristic Diversified Memory Selection
DMSG moves beyond random sampling by using a greedy algorithm to select nodes for the buffer. This selection is guided by two key principles:
- Intra-class diversity: Ensuring selected nodes represent various regions within a single category.
- Inter-class diversity: Maintaining clear boundaries between different categories by selecting nodes that are well-separated in the feature space.
2. Diversified Memory Generative Replay
To maximize the utility of the limited memory buffer, DMSG synthesizes new training samples rather than relying on static nodes:
- Variational Layer: Buffer nodes serve as seeds to generate a distribution of embeddings, from which "synthesized" nodes are sampled.
- Adversarial Learning ($L_{MISE}$): A discriminator ensures synthesized embeddings remain realistic and aligned with the original data distribution.
- Graph Reconstruction ($L_{CGSE}$): A decoder reconstructs a "pseudo-graph" from these embeddings, preserving the structural relationships inherent in graph data.
Experimental Results
The framework was rigorously evaluated using the Continual Graph Learning Benchmark (CGLB) across four large-scale datasets: CoraFull, OGB-Arxiv, Reddit, and OGB-Products.
DMSG consistently outperformed state-of-the-art baselines such as SEM and SSM. Key highlights include:
- High Accuracy: On the Reddit dataset, DMSG achieved an Average Accuracy (AA) of 98.1%, even slightly exceeding the "Joint Training" upper bound.
- Minimal Forgetting: On CoraFull, DMSG limited the Average Forgetting (AF) to just -0.5%, compared to the catastrophic -95.2% seen in standard fine-tuning.
- Scalability: The framework successfully handled the OGB-Products dataset, which contains over 2.4 million nodes, demonstrating its practical applicability to massive graphs.
Conclusion and Future Work
DMSG demonstrates that diversity is a critical factor in mitigating catastrophic forgetting in GNNs. By combining heuristic selection with generative replay, the model effectively "explores" the latent space of previous tasks, preventing overfitting to small buffers.
A current limitation is that DMSG focuses on memory strategies rather than improving the base GNN backbone. Future research could explore "parameter incremental" techniques, allowing the model architecture itself to adapt and grow alongside the data, providing a more comprehensive solution for lifelong graph learning.
Summary updated