Reinforced Continual Learning for Graphs

Appan Rakaraddi, Siew-Kei Lam, Mahardhika Pratama, Marcus de Carvalho

Abstract

Graph Continual Learning (GCL) is a novel framework designed to mitigate "catastrophic forgetting" in Graph Neural Networks (GNNs) by dynamically evolving the network architecture. By integrating a Reinforcement Learning (RL) controller for node management with "Dark Experience" memory replay, GCL achieves state-of-the-art performance in both task-incremental and class-incremental learning scenarios.

Introduction

Deep learning models, particularly Graph Neural Networks (GNNs), are susceptible to catastrophic forgetting. When trained on a sequence of new tasks, these models often overwrite parameters learned from previous tasks, leading to significant performance degradation on older data. While continual learning (CL) is well-established for Euclidean data like images, graphs present unique challenges due to their non-Euclidean nature and complex topological structures. Most existing graph CL research is limited to task-incremental learning. This paper introduces GCL, a framework that addresses both task-incremental and the more demanding class-incremental learning settings.

Methodology

The GCL framework employs a dual-strategy approach, combining architecture-based and memory-based continual learning techniques.

Reinforcement Learning Controller (RLC)

Unlike static networks, GCL utilizes an LSTM-based controller trained via reinforcement learning. For each new task, the RLC determines the optimal number of hidden nodes to add to or prune from the GNN layers. This dynamic expansion ensures the model maintains sufficient capacity for new information without excessive parameter growth.

Child Network (CN) and Dark Experience Replay (DER)

The Child Network is the underlying GNN (e.g., GCN, GAT, or GraphSAGE) whose structure is managed by the RLC. To prevent forgetting, GCL incorporates Dark Experience Replay (DER). A small memory buffer stores past samples along with their raw output values (logits). During training on new tasks, the model is regularized to match these historical logits, preserving the "dark knowledge" acquired during previous tasks.

The GCL framework integrates an expandable GNN, a memory buffer, and an RL controller to manage network architecture dynamically.

Experimental Evaluation

The framework was evaluated on benchmark graph datasets, including Cora, Citeseer, Amazon Computers, and Corafull. These datasets were partitioned into sequential tasks, typically consisting of 2-5 classes each.

Key Results

GCL consistently outperformed state-of-the-art baselines such as EWC, GEM, and TWP in terms of Average Accuracy (AA) and Average Forgetting (AF).

  • Task-Incremental Learning: On the Corafull dataset across 9 tasks, GCL-GCN achieved an Average Accuracy of 92.8%, compared to 78.3% for the standard GCN baseline.
  • Class-Incremental Learning: GCL demonstrated significant gains in this challenging setting. On Cora, GCL-GCN maintained 55.7% accuracy, whereas standard GNNs often fell below 20% as tasks accumulated.
  • Stability: GCL models exhibited superior stability, showing fewer performance dips when transitioning between tasks compared to baseline methods.
Performance comparison on the Corafull dataset across 9 tasks, highlighting GCL's stability and superior accuracy compared to baseline methods.

Discussion and Conclusion

The success of GCL highlights the importance of dynamic architectures in continual learning. A static network is often either too small to accommodate new tasks or too large, leading to overfitting. The RL-driven expansion provides a tailored architecture for each learning stage. Furthermore, the use of logits in memory replay proves more effective than labels alone for maintaining decision boundaries.

While effective, GCL introduces computational overhead due to the RL controller's training requirements. Future work may explore unsupervised continual learning on graphs and more complex structural adaptations beyond hidden node adjustments.

Summary updated

BibTeX
@inproceedings{rakaraddi2022reinforced,
  author = {Appan Rakaraddi and Siew-Kei Lam and Mahardhika Pratama and Marcus de Carvalho},
  title = {{Reinforced Continual Learning for Graphs}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  url = {https://openreview.net/forum?id=tzc5ZNL6Kb},
}
Figure