Prompt-Driven Continual Graph Learning
Qi Wang, Tianfei Zhou, Ye Yuan, Rui Mao
TL;DR
PromptCGL tackles continual learning on evolving graphs where replay-based memory is costly and privacy-sensitive. It introduces a frozen GNN backbone $g_{\Theta}$, a trainable predictor $f_{\Phi}$, and task-specific prompts $\mathbf{P}$, enhanced by hierarchical prompting and a Personalized Prompt Generator (PG). The method achieves state-of-the-art average performance with a memory footprint of $O(k(d_f+d_h))$ and constant memory with respect to graph size, using only $k \approx 3$ prompts, and demonstrates robustness across backbones and four benchmarks. It offers faster training than retraining-based approaches while preserving data privacy by storing prompts instead of historical data, marking a significant advance in graph lifelong learning.
Abstract
Continual Graph Learning (CGL), which aims to accommodate new tasks over evolving graph data without forgetting prior knowledge, is garnering significant research interest. Mainstream solutions adopt the memory replay-based idea, ie, caching representative data from earlier tasks for retraining the graph model. However, this strategy struggles with scalability issues for constantly evolving graphs and raises concerns regarding data privacy. Inspired by recent advancements in the prompt-based learning paradigm, this paper introduces a novel prompt-driven continual graph learning (PROMPTCGL) framework, which learns a separate prompt for each incoming task and maintains the underlying graph neural network model fixed. In this way, PROMPTCGL naturally avoids catastrophic forgetting of knowledge from previous tasks. More specifically, we propose hierarchical prompting to instruct the model from both feature- and topology-level to fully address the variability of task graphs in dynamic continual learning. Additionally, we develop a personalized prompt generator to generate tailored prompts for each graph node while minimizing the number of prompts needed, leading to constant memory consumption regardless of the graph scale. Extensive experiments on four benchmarks show that PROMPTCGL achieves superior performance against existing CGL approaches while significantly reducing memory consumption. Our code is available at https://github.com/QiWang98/PromptCGL.
