Abstract
This paper addresses the challenge of incremental learning in growing graphs with increasingly complex tasks. The goal is to continuously train a graph model to handle new tasks while retaining proficiency in previous tasks via memory replay. Existing methods usually overlook the importance of memory diversity, limiting in selecting high-quality memory from previous tasks and remembering broad previous knowledge within the scarce memory on graphs. To address that, we introduce a novel holistic Diversified Memory Selection and Generation (DMSG) framework for incremental learning in graphs, which first introduces a buffer selection strategy that considers both intra-class and inter-class diversities, employing an efficient greedy algorithm for sampling representative training nodes from graphs into memory buffers after learning each new task. Then, to adequately rememorize the knowledge preserved in the memory buffer when learning new tasks, a diversified memory generation replay method is introduced. This method utilizes a variational layer to generate the distribution of buffer node embeddings and sample synthesized ones for replaying. Furthermore, an adversarial variational embedding learning method and a reconstruction-based decoder are proposed to maintain the integrity and consolidate the generalization of the synthesized node embeddings, respectively. Extensive experimental results on publicly accessible datasets demonstrate the superiority of DMSG over state-of-the-art methods.
Introduction
In real-world applications, graphs such as social networks, citation databases, and e-commerce platforms are dynamic and ever-growing. As new nodes and classes emerge, Graph Neural Networks (GNNs) must be updated to incorporate new knowledge. However, retraining from scratch is computationally prohibitive, while naive incremental updates often lead to "catastrophic forgetting," where the model loses its ability to perform on previously learned tasks.
The standard mitigation strategy is memory replay, which involves maintaining a small buffer of representative nodes from past tasks. However, current approaches often struggle with two critical aspects: selecting the most representative nodes for a limited buffer and effectively leveraging that limited memory to represent the vast historical data. This work introduces DMSG (Diversified Memory Selection and Generation), a framework designed to maximize memory utility through holistic diversification.
The DMSG Framework
The DMSG framework operates through a two-stage process: selection and generation.
1. Heuristic Diversified Memory Selection
Rather than random sampling, DMSG employs an efficient greedy algorithm to select nodes based on two diversity metrics:
- Intra-class diversity: Ensures selected nodes cover the varied feature space within a single class.
- Inter-class diversity: Ensures nodes are distinct from other classes, helping the model maintain sharp decision boundaries.
2. Diversified Memory Generation Replay
To overcome the limitations of a small physical buffer, DMSG uses a generative approach to "hallucinate" variations of stored data.
- Variational Generation: A Variational Autoencoder (VAE) models the distribution of buffer node embeddings, allowing the system to sample synthesized embeddings for replay.
- Adversarial Integrity: A Gradient Reversal Layer is used in an adversarial setup to ensure synthetic embeddings remain indistinguishable from real ones.
- Structural Generalization: A reconstruction-based decoder ensures that these synthetic nodes respect the underlying graph topology and label constraints.
Experimental Evaluation
The framework was evaluated on four large-scale benchmarks from the Continual Graph Learning Benchmark (CGLB): CoraFull, OGB-Arxiv, Reddit, and OGB-Products. Performance was measured using Average Accuracy (AA) and Average Forgetting (AF).
Key Results
DMSG consistently outperformed state-of-the-art baselines like SEM and SSM across all datasets:
- Superior Accuracy: On OGB-Products, DMSG reached 66.0% AA, significantly outperforming the next best method.
- Reduced Forgetting: On the Reddit dataset, DMSG achieved a positive AF (0.9%), indicating that learning new tasks actually improved performance on older ones—a phenomenon known as backward transfer.
- Robustness: Even compared to "Joint Training" (training on all data simultaneously), DMSG showed competitive or superior results on certain datasets like Reddit, suggesting its selection process effectively filters out noise.
Discussion and Conclusion
The success of DMSG highlights that diversity is not just a heuristic but a theoretical necessity for effective memory replay. By replaying distributions rather than static samples, the model gains a deeper understanding of the "essential knowledge" of past tasks.
While DMSG excels at embedding management and classification, a current limitation is its reliance on a fixed feature extractor. Future research will explore integrating parameter-incremental learning to allow the GNN backbone to adapt more dynamically as the graph evolves, as well as scaling these techniques to industrial-sized graphs with hundreds of millions of nodes.
Summary updated