Prompt-Driven Continual Graph Learning

Qi Wang, Tianfei Zhou, Ye Yuan, Rui Mao
2/10/2025
2 citations
cs.LGcs.AI

Official code: QiWang98/PromptCGL (4 stars, Python, Apache-2.0, last commit 2026-04-12).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

QiWang98/PromptCGLOfficial100%
Apache-2.0
42PythonFeb 10, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2025promptdriven,
  title  = {Prompt-Driven Continual Graph Learning},
  author = {Qi Wang and Tianfei Zhou and Ye Yuan and Rui Mao},
  year   = {2025},
  eprint = {2502.06327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.06327v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06327.svg)](https://codeofpaper.com/paper/2502.06327)

Discussion