TL;DR
The Diversified Memory Selection and Generation (DMSG) framework tackles "catastrophic forgetting" in graph neural networks by ensuring that the small amount of data saved from old tasks is as diverse and representative as possible. By combining a greedy selection strategy with a generative model that synthesizes new "memory" samples, DMSG allows models to learn new tasks on growing graphs while maintaining high performance on everything they’ve learned before.
What Problem Does This Paper Address?
In the real world, graphs—like social networks or citation databases—are never static. They grow constantly, and the tasks we want models to perform on them become increasingly complex. For example, a model might start by classifying two types of research papers and eventually need to distinguish between dozens as new fields emerge.
The standard way to handle this is incremental learning. However, if you simply fine-tune a model on new data, it suffers from catastrophic forgetting: it gets great at the new task but completely forgets the old ones. While "memory replay" (saving a small buffer of old data to review later) helps, existing methods often pick a poor subset of nodes or fail to capture the full "flavor" of the old data within a tiny memory budget.
Methods
The authors introduce DMSG, a two-pronged approach to holistic memory diversification:
- Heuristic Diversified Memory Selection: Instead of picking nodes at random, DMSG uses an efficient greedy algorithm to select nodes that maximize two things:
- Intra-class diversity: Ensuring the selected nodes represent different "neighborhoods" within the same category.
- Inter-class diversity: Ensuring the boundaries between different categories remain clear.
- Diversified Memory Generation Replay: To make the most of a small buffer, the model doesn't just replay the saved nodes. It uses a variational layer (similar to a VAE) to learn the underlying distribution of those nodes. It then samples synthesized embeddings for replaying.
- To keep these synthetic samples realistic, they use an adversarial reversal layer (maintaining integrity).
- To ensure the synthetic nodes still "act" like a graph, they use a reconstruction-based decoder to preserve structural relationships (consolidating generalization).
Datasets
The framework was evaluated using the Continual Graph Learning Benchmark (CGLB), which includes four diverse, large-scale datasets:
- CoraFull & OGB-Arxiv: Citation networks where nodes are papers and edges are citations.
- Reddit: A social network where nodes are posts and edges represent users commenting on both.
- OGB-Products: An Amazon co-purchasing network where nodes are products.
These datasets were split into sequences of tasks (ranging from 20 to 35 tasks) to simulate long-term graph growth.
Key Insights and Ideas
- Diversity is Mathematically Essential: The authors provide a theoretical proof (Theorem 1) showing that the gap between a model's performance on the "full" old data vs. its "buffer" memory is bounded by the Wasserstein distance. By increasing buffer diversity, you directly shrink this distance and improve performance.
- Broadening the Boundaries: Simply replaying old nodes can lead to overfitting on those specific samples. By generating new, synthetic embeddings from the learned distribution of the buffer, the model "sees" a broader version of the past, which helps it generalize better to new tasks.
- Greedy is Good Enough: While finding the absolute most diverse set of nodes is an NP-hard problem, the authors prove that their greedy selection strategy provides a solution that is at least ~63% ($1 - 1/e$) as good as the theoretical optimum.
Key Results
DMSG consistently outperformed state-of-the-art methods (like SEM and SSM) across all datasets.
- Accuracy: In many cases, DMSG approached the performance of "Joint Training"—the "gold standard" where the model is retrained on all data from scratch (which is usually too expensive to do in practice).
- Forgetting: DMSG achieved near-zero "Average Forgetting." Remarkably, on the Reddit dataset, it actually achieved positive forgetting—meaning the model actually got better at old tasks as it learned new ones, likely because the selection process filtered out noisy data.
Limitations and Future Work
The authors identify one primary bottleneck: the feature extractor. DMSG focuses on how to use the memory buffer, but it uses a fixed-capacity GNN backbone. As the graph grows to massive scales with hundreds of classes, a fixed-size model might eventually run out of "room" to store all that information.
Future work may involve combining DMSG with parameter-incremental learning, where the model's architecture itself can grow or adapt its capacity as the complexity of the graph increases.
Summary updated