Manuscript Offprint

arXiv:2610.35313

CoPE-CGL: Community-aware Prototype Extraction for Replay-Free Continual Graph Learning

Bo-Young Lim, Seokhwan Kim, Kisung Lee, Hyuk-Yoon Kwon

ABSTRACT

Graphs managed by data systems evolve: new subgraphs and node classes keep arriving, and a model learned from them must be maintained without retraining from scratch or retaining all past graph data. Continual graph learning (CGL) addresses this problem while mitigating catastrophic forgetting, but existing methods are typically tailored to a single evaluation setting, either transductive (disjoint node classes within a shared graph) or inductive (task subgraphs that share nodes, edges, and classes with earlier tasks). They also commonly store raw past subgraphs in replay buffers or require task identifiers at inference time. We propose Community-aware Prototype Extraction for Continual Graph Learning (simply, CoPE-CGL), a replay-free CGL framework in which a parameter-free structural prior, precomputed by multi-hop Laplacian smoothing, anchors learning, memory, and inference. CoPE-CGL has three components: (i) topology-infused bottleneck adaptation (TIBA), a lightweight adapter trained on the frozen prior; (ii) community-aware prototype extraction, which distills each task into a few non-learned community-level prototypes; and (iii) graph-level dynamic routing, which infers the task of a test graph by a majority vote of its nodes against the prototype memory. As with prior task-free methods, the default protocol assumes that each test graph comes from a single learned task; a node-level variant relaxes this assumption. Each task adds at most a constant amount of storage (an adapter and a few prototypes), and our model keeps no copy of past graph data. At equal storage and without task identifiers, CoPE-CGL matches the average performance (AP) of the strongest replay baseline even when that baseline is given the true task of each test graph (AP of 95.17% and 95.72% for CoPE-CGL vs. 94.28% and 95.82% for the baseline on Arxiv and CoraFull), while running 5.9–14.0× faster with zero forgetting. On four transductive and three inductive benchmarks and on mixed streams that interleave the two, CoPE-CGL outperforms the second-best of up to eleven baselines by up to 1.41, 6.32, and 9.33 percentage points of AP, respectively, runs 1.3–7.9× faster end-to-end than the most accurate competitor on each benchmark, and scales to the largest benchmark graph. On test graphs that mix two tasks, its node-level variant gives the best AP.

Seokhwan Kim

Graduate School of Data Science

Seoul National University of Science and Technology

Seoul, South Korea

kimauve@seoultech.ac.kr

Hyuk-Yoon Kwon ∗^{*}

Graduate School of Data Science

Seoul National University of Science and Technology

Seoul, South Korea

hyukyoon.kwon@seoultech.ac.kr

among CGL methods. The design targets homophilic graphs with community structure.

Artifact availability. The source code, data, and other artifacts are available at https://github.com/bigbases/CoPE-CGL.

1 INTRODUCTION

Background. Graph representation learning (GRL) powers systems that store and serve graph data, such as recommendation [40] and social-network [11] platforms. These graphs are rarely static: their structure and node labels evolve over time, so the learned models must be maintained accordingly. To handle such streams, continual graph learning (CGL) [10, 47] learns from a sequence of graph tasks while mitigating catastrophic forgetting, the loss of past-task performance when past data is unavailable later.

CGL problems are typically framed as task-incremental (task-IL) or class-incremental (class-IL) learning. In task-IL, the task identifier is provided at inference time, so the model discriminates only among the classes of that task. In class-IL, task identifiers are withheld at inference, forcing the model to discriminate among all classes seen so far; this scenario is regarded as more realistic and significantly more challenging than task-IL [47]. Within class-IL, two settings are distinguished by inter-task edges: a transductive setting without them, and an inductive setting with them.

Existing CGL approaches fall into three families [13, 22, 50]. (i) Regularization-based methods [20, 36] penalize updates to important parameters, but the penalty limits plasticity [13, 26, 37]. (ii) Memory-replay-based methods [13, 22, 48, 52] replay past samples, but they must retain past graph data, raw or condensed, which raises privacy and data-retention concerns [33] and caps scalability under strict memory budgets. (iii) Replay-free approaches bypass historical data. Early parameter-isolation methods [44, 49] assign disjoint parameter subsets per task; among recent frameworks, TPP [25] preserves task knowledge via prototypes and prompts, while TAAM [21] does so via neural synapse modulators. Both TPP and TAAM remain bottlenecked, however. TPP's graph neural network (GNN) backbone is pre-trained on the first task and then frozen, so it cannot adapt to later tasks (Sec. 3.4). TAAM freezes its per-task modules, yet nodes of later classes still compete with those of earlier tasks. On Arxiv and Products, it loses accuracy on

∗^{*}Corresponding author earlier tasks, with backward transfer (BWT) of -3.41 and -5.67, and reaches only 82.96% and 86.94% average performance (AP), 9.78–12.28 points below our method (Sec. 4.2.1). Our method instead bypasses recursive message passing: it precomputes a parameter-free structural prior and routes it through a lightweight bottleneck adapter, yielding a favorable accuracy–efficiency trade-off.

Empirically, these bottlenecks manifest as setting-specific bias: each prior method is designed and evaluated primarily for a single setting, and none of the compared methods evaluates streams that interleave transductive and inductive tasks in its original paper. In transductive streams, TACO [13] runs out of memory on Products and averages only 22.27% AP on the other three benchmarks (Sec. 4.2.1). In inductive streams, the ranking reverses: TPP [25], which averages 95.63% AP in the transductive setting, trails TACO (75.14% for TPP vs. 77.77% for TACO, AP averaged over three benchmarks). TPP is also 1.8–3.7× slower than our method there (Sec. 4.2.1). This inconsistency motivates evaluating CGL methods under a unified protocol spanning transductive, inductive, and mixed task streams.

Our contributions. We propose Community-aware Prototype Extraction for Continual Graph Learning (simply, CoPE-CGL), a replay-free CGL framework built on a single parameter-free structural prior that jointly supports task learning and task-free inference. Fig. 1 illustrates CoPE-CGL in the class-IL scenario. During training, each task graph is projected via Laplacian smoothing into a base embedding ZbaseZ_{base}, which is used to train a lightweight task-specific adapter and to extract community-aware prototypes Pt\mathcal{P}^t. At inference, the same projection yields ZtestZ_{test}, which is matched against the prototype memory P={P1,…,PT}\mathcal{P} = \{\mathcal{P}^1, \ldots, \mathcal{P}^T\} of all observed tasks by a majority vote of its nodes (or node by node when a test graph mixes tasks). ZtestZ_{test} is then routed to the corresponding adapter and classifier (details in Sec. 3).

Our main contributions are summarized as follows:

• Community-aware prototypes as a replay-free memory. To our knowledge, CoPE-CGL is the first replay-free CGL method to use graph communities as the unit of task memory, distilling each task into at most M non-learned community-level prototypes with a constant memory cost per task.

• Fast model maintenance at equal storage. CoPE-CGL runs end to end 1.3–7.9× faster than the most accurate competing baseline on each of the seven benchmarks and 1.1–14.0× faster in each of the 35 mixed configurations (seven benchmarks, five task ratios; Sec. 3.4, Secs. 4.2.1–4.2.2). It also scales to the largest benchmark (Sec. 4.6). At equal storage and without task identifiers, it matches the AP that the strongest replay baseline, CaT, reaches only with the true task identifier (within 0.89 percentage points) while running 5.9–14.0× faster (Sec. 4.3).

• A single structural prior for learning, memory, and inference. All three components of CoPE-CGL, namely Topology-Infused Bottleneck Adaptation (TIBA), community-aware prototype extraction, and graph-level dynamic routing, are organized around one parameter-free structural prior ZbaseZ_{base}, enabling task-free inference without a GNN backbone.

• Unified evaluation across transductive, inductive, and mixed settings. Against up to eleven baselines on seven benchmarks and interleaved mixed streams, CoPE-CGL outperforms the second-best model by up to 1.41, 6.32, and 9.33 percentage points of AP in the three settings, respectively; it trails TACO or TPP only on DBLP, by at most 2.50 percentage points.

• Routing beyond single-task test graphs, and robustness. When one test graph mixes nodes of several tasks, a node-level variant of the routing still gives the best AP among CGL methods (Sec. 4.4). Under random edge noise up to 50%, CoPE-CGL has the highest AP in all 16 noisy settings and leads every replay-free baseline at 50% noise by 1.66–3.57 percentage points of AP (Sec. 4.5).

References (21)