Abstract
Graph neural networks (GNNs) have emerged as the standard method for numerous tasks on graph-structured data such as node classification. However, real-world graphs are often evolving over time and even new classes may arise. We model these challenges as an instance of lifelong learning, in which a learner faces a sequence of tasks and may take over knowledge acquired in past tasks. Such knowledge may be stored explicitly as historic data or implicitly within model parameters. In this work, we systematically analyze the influence of implicit and explicit knowledge. Therefore, we present an incremental training method for lifelong learning on graphs and introduce a new measure based on $k$-neighborhood time differences to address variances in the historic data. We apply our training method to five representative GNN architectures and evaluate them on three new lifelong node classification datasets. Our results show that no more than 50% of the GNN's receptive field is necessary to retain at least 95% accuracy compared to training over the complete history of the graph data. Furthermore, our experiments confirm that implicit knowledge becomes more important when fewer explicit knowledge is available.
Introduction
Most research in Graph Neural Networks (GNNs) operates under the assumption of a static environment where graph structure and class sets are fixed. In reality, graphs like social networks or citation indices are inherently dynamic: new nodes and edges appear, and entirely new classes of data can emerge over time. This paper addresses the challenge of lifelong learning on temporal graphs, focusing on how models can continuously adapt to new data streams without the prohibitive cost of full retraining.
Methodology: Incremental Training and Knowledge Transfer
The authors propose an incremental training procedure where GNNs are updated as new data arrives at time $t$ using a sliding window of history of size $c$. This approach balances computational efficiency with the need for historical context.
To handle open-world classification, the framework includes an Output Layer Expansion mechanism. When a new class is detected, the model's output layer is dynamically expanded with new weights while preserving existing ones. The study also distinguishes between explicit knowledge (stored in historical data samples) and implicit knowledge (stored in model parameters). By comparing "warm restarts" (initializing with previous weights) to "cold restarts" (re-initializing from scratch), the authors isolate the value of implicit knowledge.
Furthermore, to normalize history sizes across graphs that evolve at different speeds, the authors introduced the $k$-Neighborhood Time Difference ($tdiff_k$) metric. This measures the distribution of time differences between a node and its $k$-hop neighbors, providing a fair basis for comparison across diverse datasets.
Datasets for Lifelong Learning
The study introduces three new temporal graph datasets to benchmark lifelong node classification:
- PharmaBio: A co-authorship graph with stable journal category classes.
- DBLP-easy: A citation graph with 12 classes, including 4 that appear over time.
- DBLP-hard: A complex citation graph with 73 classes and significant class drift, including 23 emerging classes.
Key Results and Discussion
The experiments reveal several critical insights into how GNNs handle temporal shifts.
The "50% Receptive Field" Rule
A primary finding is that full historical data is not required for high performance. For a GNN with a receptive field of $k$ hops, a history window covering just 50% of that field is sufficient to retain at least 95% of the accuracy achieved by training on the entire history. Increasing this window to cover 75% of the receptive field pushes accuracy to 99% of the baseline.
Impact of Incremental Training
Incremental training is essential for maintaining performance in dynamic environments. As shown in the results, static models that are not updated quickly degrade as the graph structure and class distributions shift.
Implicit Knowledge as a Safety Net
When explicit historical data is limited (e.g., a window size of $c=1$), implicit knowledge becomes vital. Warm restarts provided an average boost of 5 accuracy points compared to cold restarts, demonstrating that model weights effectively act as a memory buffer when training samples are scarce.
Conclusion and Future Directions
This work demonstrates that efficient lifelong learning on graphs is achievable by leveraging both explicit historical windows and implicit parameter knowledge. While the current framework assumes label availability for previous tasks and supervised class detection, future work could explore unsupervised novelty detection and advanced regularization techniques to further mitigate catastrophic forgetting.
Summary updated