Holistic Memory Diversification for Incremental Learning in Growing Graphs

Ziyue Qiao, Junren Xiao, Qingqiang Sun, Meng Xiao, Hui Xiong · OpenReview

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:

  1. Inefficient Selection: Random or non-diverse sampling fails to capture the full distribution of original classes.
  2. 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."

Overview of the DMSG framework, illustrating memory selection and generative replay stages.

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.

Performance comparison of DMSG against baselines across four benchmark datasets.

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

Abstract

This paper addresses the challenge of incremental learning in growing graphs with increasingly complex tasks. The goal is to continually train a graph model to handle new tasks while retaining its inference ability on previous tasks. Existing methods usually neglect the importance of memory diversity, limiting in effectively 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, we propose a diversified memory generation replay method. This method first 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. Finally, we evaluate our model on node classification tasks involving increasing class numbers. Extensive experimental results on publicly accessible datasets demonstrate the superiority of DMSG over state-of-the-art methods.
BibTeX
@inproceedings{qiao2025holistic,
  author = {Ziyue Qiao and Junren Xiao and Qingqiang Sun and Meng Xiao and Hui Xiong},
  title = {{Holistic Memory Diversification for Incremental Learning in Growing Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Pbz4i7B0B4},
}
Figure