DyGRAIN: An Incremental Learning Framework for Dynamic Graphs

Seoyoon Kim, Seongjun Yun, Jaewoo Kang

Introduction

Graph Neural Networks (GNNs) have become the standard for modeling relational data. However, most existing GNN architectures assume a static graph structure. In practice, real-world graphs—such as social networks, transaction logs, and citation databases—are inherently dynamic, evolving continuously with the addition of new nodes and edges.

Updating GNNs incrementally to incorporate this new data presents two significant challenges. First is catastrophic forgetting, a well-known phenomenon where a model loses previously acquired knowledge when trained on new information. Second, and unique to graph data, is the issue of time-varying receptive fields. Unlike image data, where adding a new sample does not alter existing pixels, adding a new node to a graph changes the structural context (the neighborhood) of its adjacent nodes. Since GNNs rely on these neighborhoods for feature aggregation, a node's representation and subsequent classification can change simply due to structural evolution, even if the model's parameters remain fixed.

Illustration of time-varying receptive fields: adding new nodes at time $t$ changes the neighborhood and prediction for existing node $i$.

The DyGRAIN Framework

To address these challenges, the authors introduce DyGRAIN (Dynamic Graph Incremental learning), a framework designed to maintain high performance on evolving graphs without the prohibitive cost of retraining from scratch. DyGRAIN comprises two core modules: Influence Propagation and Knowledge Distillation with Truth.

Influence Propagation (IP)

The IP module identifies "influenced" nodes—existing nodes whose receptive fields have been significantly altered by new incoming data. Influence is measured from two perspectives:

  1. Structural Influence: A propagation matrix is used to track how structural changes flow from new nodes to existing ones across $L$-hops.
  2. Feature Influence: The framework measures the discrepancy in a node's embedding before and after the arrival of new data.

Nodes identified with high influence scores are selected for a "targeted replay" buffer. By explicitly retraining on these specific nodes alongside new data, the model adapts to their updated structural contexts.

Knowledge Distillation with Truth (KDwTruth)

To mitigate catastrophic forgetting, DyGRAIN employs a specialized distillation technique. It identifies "vulnerable" nodes—those most likely to be forgotten based on loss discrepancies between model versions. The framework then performs Knowledge Distillation, regularizing the current model to match the outputs of its predecessor on these nodes.

A key innovation is the inclusion of ground truth labels within the distillation loss. Standard distillation can propagate errors if the "teacher" (previous model) was incorrect. By anchoring the distillation process with actual labels, DyGRAIN ensures that the model maintains correct knowledge rather than just mimicking past predictions.

Experimental Evaluation

The framework was rigorously tested on four large-scale benchmarks: OGB-Arxiv (citation network), OGB-Products (Amazon co-purchasing), Reddit (social network), and PubMed (biomedical literature). These datasets were partitioned into incremental blocks to simulate real-world dynamic growth.

Key Results

DyGRAIN consistently outperformed established incremental learning baselines, including EWC, LWF, and TWP. As shown in the comprehensive results table below, DyGRAIN achieves superior accuracy across various GNN backbones (GCN, GAT, APPNP, GCN2).

Performance comparison of DyGRAIN against baselines across multiple datasets and GNN architectures.

Notable findings include:

  • Accuracy Gains: On the OGB-Arxiv dataset, DyGRAIN demonstrated a 13.81% relative improvement in accuracy over the lowest-performing baseline.
  • Closing the Gap: Across all datasets, DyGRAIN's performance remained within approximately 1% of the "Full Graph" retraining method—the theoretical upper bound for performance.
  • Forgetting Mitigation: DyGRAIN achieved the lowest forgetting scores in most experimental settings, validating the effectiveness of its targeted node selection and grounded distillation strategies.

Discussion and Future Work

While DyGRAIN represents a significant step forward for dynamic GNNs, several avenues for future research remain. The current framework is optimized for node classification; extending it to link prediction or graph-level tasks is a logical next step. Additionally, the KDwTruth module's reliance on ground truth labels suggests a need for future iterations that can handle sparse or delayed labeling common in real-world streams. Finally, while more efficient than full retraining, the computational cost of calculating influence scores for "web-scale" graphs remains an area for optimization.

Summary updated

BibTeX
@inproceedings{kim2022dygrain,
  author = {Seoyoon Kim and Seongjun Yun and Jaewoo Kang},
  title = {{DyGRAIN: An Incremental Learning Framework for Dynamic Graphs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/438},
}
Figure