Towards Continuous Reuse of Graph Models via Holistic Memory Diversification

Ziyue Qiao, Junren Xiao, Qingqiang Sun, Meng Xiao, Xiao Luo, Hui Xiong

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.

Figure 1: An example of incremental learning in growing graphs, where nodes with distinct labels are shaded in various colors. The number of classes expands as the graph grows, causing increasingly complex classification tasks.

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:

  1. Heuristic Diversified Memory Selection: Instead of picking nodes at random, DMSG uses an efficient greedy algorithm to select nodes that maximize two things:
  2. Intra-class diversity: Ensuring the selected nodes represent different "neighborhoods" within the same category.
  3. Inter-class diversity: Ensuring the boundaries between different categories remain clear.
  4. 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.
  5. To keep these synthetic samples realistic, they use an adversarial reversal layer (maintaining integrity).
  6. To ensure the synthetic nodes still "act" like a graph, they use a reconstruction-based decoder to preserve structural relationships (consolidating generalization).
The DMSG framework: from selecting diverse nodes to generating synthetic embeddings for replay.

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.
The dynamics of average accuracy over time, showing DMSG (orange) staying close to the Joint training upper bound (green).

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

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 \method{} over state-of-the-art methods.
BibTeX
@inproceedings{qiao2025towards,
  author = {Ziyue Qiao and Junren Xiao and Qingqiang Sun and Meng Xiao and Xiao Luo and Hui Xiong},
  title = {{Towards Continuous Reuse of Graph Models via Holistic Memory Diversification}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Pbz4i7B0B4},
}
Figure