E-CGL: an efficient continual graph learner

Jianhao Guo, Zixuan Ni, Yun Zhu, Siliang Tang

TL;DR

E-CGL (Efficient Continual Graph Learner) is a novel framework designed to handle the "forgetting" problem in evolving graphs while drastically reducing the computational cost of training. By combining a smart, attribute-aware sampling strategy for data replay with a weight-sharing MLP-to-GCN training pipeline, it achieves up to 28x faster training and near-zero forgetting on massive graph datasets.

What Problem Does This Paper Address?

In the real world, graphs are rarely static. Recommendation systems get new products, and citation networks get new research fields. To stay relevant, Graph Neural Networks (GNNs) must learn continuously. However, they face two massive hurdles:

  1. Catastrophic Forgetting & Interdependency: When a model learns new data, it often "overwrites" what it knew about the old data. In graphs, this is harder than in images because nodes are interconnected; a new node's distribution is often conditioned on the old graph structure.
  2. The Efficiency Wall: Standard GNNs rely on "message passing"—aggregating information from a node's neighbors. As graphs grow to millions of nodes and edges, this process becomes a massive computational bottleneck, making real-time continual updates nearly impossible.

Methods

The authors propose E-CGL, which attacks these problems with two main components:

  • Graph Dependent Replay: To stop the model from forgetting, E-CGL keeps a small "memory bank" of old nodes to revisit during new training tasks. Instead of picking nodes at random, it uses a dual-sampling strategy:
  • Importance Sampling: An "attributed-PageRank" algorithm that identifies nodes that are central both in terms of their connections (topology) and their content (attributes).
  • Diversity Sampling: A heuristic that picks nodes that are significantly different from their neighbors, ensuring the model captures "novel" or outlier patterns that might otherwise be lost.
  • Efficient Graph Learner: This is the clever architectural "hack." The authors observed that the heavy lifting in GNN training is the message passing, but the actual learning happens in the feature transformation weights. E-CGL trains using a simple MLP (Multi-Layer Perceptron) that shares weights with a GCN (Graph Convolutional Network). By skipping message passing during training, they avoid expensive sparse matrix multiplications. During inference, they plug those learned weights back into a GCN to leverage the graph structure for high-accuracy predictions.

Datasets

The model was evaluated on four diverse, large-scale node classification benchmarks:

  • CoraFull: A citation network (70 classes).
  • OGBN-Arxiv: A massive citation network from the Open Graph Benchmark.
  • Reddit: A social network graph based on community interactions.
  • OGBN-Products: An e-commerce co-purchase network with over 2.4 million nodes.

The researchers tested these under two settings: Task-Incremental (where the model knows which "task" a node belongs to) and the much harder Class-Incremental (where it must distinguish between all classes seen so far without hints).

Key Insights and Ideas

  • Decoupling Training from Structure: The most significant "aha moment" is that you don't necessarily need to perform message passing during the training phase to learn effective weights for a GNN. Training as an MLP and inferring as a GCN provides a "best of both worlds" scenario: speed during development and structural awareness during deployment.
  • Attributes Matter in PageRank: Standard PageRank only cares about who links to whom. By incorporating node attributes into the ranking, the authors ensure that "content-rich" nodes are preserved in memory, which is vital for classification tasks.
  • The Power of Replay: The paper reinforces that for graph data, replaying old samples is significantly more effective than "regularization" methods (which try to keep weights from changing too much) because it explicitly maintains the interdependencies between old and new data distributions.

Key Results

  • Massive Speedups: E-CGL achieved an average of 15.83× faster training and 4.89× faster inference across the four datasets. On the largest dataset (OGBN-Products), training was a staggering 28.44× faster than standard GCN methods.
  • Near-Zero Forgetting: While many models see their performance on old tasks plummet, E-CGL reduced catastrophic forgetting to an average of just -1.1%.
  • State-of-the-Art Accuracy: It outperformed nine major baselines (including specialized graph learners like TWP and ER-GNN) in terms of average accuracy across almost all tested scenarios.

Limitations and Future Work

While E-CGL is a leap forward in efficiency, the authors note a few areas for improvement:

  • Data Privacy: Replaying old data means storing it. In sensitive applications (like social networks), this could raise privacy concerns. Future work could explore "synthetic" replay or privacy-preserving methods.
  • Stale Knowledge: The current model focuses on remembering everything. However, in some graphs, old patterns become "stale" or incorrect. Strategies for "active forgetting" of outdated information are needed.
  • Graph Heterogeneity: This work focused on homogeneous graphs (one type of node/edge). Extending these efficiency gains to heterogeneous graphs or graph-level classification tasks remains an open challenge.

Summary updated

BibTeX
@inproceedings{guo2025e,
  author = {Jianhao Guo and Zixuan Ni and Yun Zhu and Siliang Tang},
  title = {{E-CGL: an efficient continual graph learner}},
  booktitle = {Frontiers Inf. Technol. Electron. Eng},
  year = {2025},
  url = {https://openreview.net/forum?id=OLbTh5Tf7E},
}
Figure