Replay-and-Forget-Free Graph Class-Incremental Learning: A Task Profiling and Prompting Approach
Chaoxi Niu, Guansong Pang, Ling Chen, Bing Liu
Abstract
Class-incremental learning (CIL) aims to continually learn a sequence of tasks, with each task consisting of a set of unique classes. Graph CIL (GCIL) follows the same setting but needs to deal with graph tasks (e.g., node classification in a graph). The key characteristic of CIL lies in the absence of task identifiers (IDs) during inference, which causes a significant challenge in separating classes from different tasks (i.e., inter-task class separation). Being able to accurately predict the task IDs can help address this issue, but it is a challenging problem. In this paper, we show theoretically that accurate task ID prediction on graph data can be achieved by a Laplacian smoothing-based graph task profiling approach, in which each graph task is modeled by a task prototype based on Laplacian smoothing over the graph. It guarantees that the task prototypes of the same graph task are nearly the same with a large smoothing step, while those of different tasks are distinct due to differences in graph structure and node attributes. Further, to avoid the catastrophic forgetting of the knowledge learned in previous graph tasks, we propose a novel graph prompting approach for GCIL which learns a small discriminative graph prompt for each task, essentially resulting in a separate classification model for each task. The prompt learning requires the training of a single graph neural network (GNN) only once on the first task, and no data replay is required thereafter, thereby obtaining a GCIL model being both replay-free and forget-free. Extensive experiments on four GCIL benchmarks show that i) our task prototype-based method can achieve 100% task ID prediction accuracy on all four datasets, ii) our GCIL model significantly outperforms state-of-the-art competing methods by at least 18% in average CIL accuracy, and iii) our model is fully free of forgetting on the four datasets.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers10
- GraphKeeper: Graph Domain-Incremental Learning via Knowledge Disentanglement and PreservationZihao Guo, Qingyun Sun, Ziwei Zhang, Haonan Yuan et al.NeurIPS 2025 · 10 citations
- MOTION: Multi-Sculpt Evolutionary Coarsening for Federated Continual Graph LearningFrank Wan, Fengyuan Ran, Ruikang Zhang, Wenke Huang et al.NeurIPS 2025 · 3 citations
- Graphs Help Graphs: Multi-Agent Graph Socialized LearningJialu Li, Yu Wang, Pengfei Zhu, Wanyu Lin et al.NeurIPS 2025 · 2 citations
- G2LoRA: Gradient Orthogonal Low-Rank Adaptation Framework for Graph Continual Learning on Text-Attributed GraphsYuhan Wang, Yibo Ding, Yutong Ye, Mufan Zhao et al.KDD 2026 · 1 citation
- CiNuSeg: Class Incremental Nuclei Segmentation via Anchor-driven Consistency Learning with Dual Region RegularizationXuexin Wu, Zhenhui Ding, Huisi Wu, Jing QinAAAI 2026
Builds on18
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
- Learning to Prompt for Continual LearningZifeng Wang, Zizhao Zhang, Chen-Yu Lee, Han Zhang et al.CVPR 2022 · 635 citations
- Continual learning with hypernetworksJohannes von Oswald, Christian Henning, João Sacramento, Benjamin F. GreweICLR 2020 · 412 citations
- Overcoming Catastrophic Forgetting in Graph Neural Networks with Experience ReplayFan Zhou, Chengtai CaoAAAI 2021 · 175 citations
Related papers
- Towards Effective Open-set Graph Class-incremental LearningJiazhen Chen, Zheng Ma, Sichao Fu, Mingbin Feng et al.ACM MM 2025
- Class Incremental Learning via Likelihood Ratio Based Task PredictionHaowei Lin, Yijia Shao, Weinan Qian, Ningxin Pan et al.ICLR 2024 · 21 citations
- Class-Domain Incremental Learning on Graphs via Disentangled Knowledge DistillationQin Tian, Chen Zhao, Xintao Wu, Dong Li et al.WWW 2026
- FAT-TAG: Mitigating Forgetting in Task-Free Temporal Graph Class Incremental LearningJiyuan Feng, Zhao Liu, Dongyi Zheng, Weihong Han et al.KDD 2026
- Towards Robust Graph Incremental Learning on Evolving GraphsJunwei Su, Difan Zou, Zijun Zhang, Chuan WuICML 2023 · 37 citations
