Online Continual Graph Learning

Giovanni Donghi, Luca Pasa, Daniele Zambon, Cesare Alippi, Nicolò Navarin · OpenReview

Abstract

Continual Learning (CL) aims to incrementally acquire new knowledge while mitigating catastrophic forgetting. Within this setting, Online Continual Learning (OCL) focuses on updating models promptly and incrementally from single or small batches of observations from a data stream. Extending OCL to graph-structured data is crucial, as many real-world networks evolve over time and require timely, online predictions. However, existing continual or streaming graph learning methods typically assume access to entire graph snapshots or multiple passes over tasks, violating the efficiency constraints of the online setting. To address this gap, we introduce the Online Continual Graph Learning (OCGL) setting, which formalizes node-level continual learning on evolving graphs under strict memory and computational budgets. OCGL defines how a model incrementally processes a stream of node-level information while maintaining anytime inference and respecting resource constraints. We further establish a comprehensive benchmark comprising seven datasets and nine CL strategies, suitably adapted to the OCGL setting, enabling a standardized evaluation setup. Finally, we present a minimalistic yet competitive baseline for OCGL, inspired by our benchmarking results, that achieves strong empirical performance with high efficiency.

Introduction

In the real world, graphs are dynamic entities. Social networks, citation indices, and financial transaction webs evolve continuously. Standard machine learning assumes a fixed dataset, but these scenarios require Continual Learning (CL)—the ability to learn from new data without forgetting previously acquired knowledge. While "Continual Graph Learning" (CGL) exists, it often relies on processing large graph "snapshots" multiple times. This is unsuitable for truly online systems, such as real-time fraud detection, where data arrives in a stream and decisions must be made instantly under strict resource constraints.

The Online Continual Graph Learning (OCGL) Setting

The authors formalize Online Continual Graph Learning (OCGL) to bridge this gap. Unlike traditional CGL, where subgraphs are attached incrementally, OCGL assumes nodes arrive one by one. This requires models to maintain anytime inference capabilities and operate within a single pass over the data stream.

Comparison of CGL and OCGL settings, highlighting node-by-node arrival and neighborhood sampling.

A critical challenge in this setting is the neighborhood expansion problem. In a standard Graph Neural Network (GNN), a node's representation depends on its multi-hop neighborhood. As the graph grows and densifies, the number of nodes involved in a single update can grow exponentially, violating the online requirement for constant-time updates.

The neighborhood expansion problem: the number of nodes in a multi-hop neighborhood grows dramatically as the number of hops increases.

Methods and the LINEAR Baseline

To address these challenges, the paper proposes:

  1. Neighborhood Sampling: Capping the number of neighbors processed per node to ensure computational costs remain manageable.
  2. Benchmark Adaptation: Adapting nine popular CL strategies (e.g., Experience Replay, EWC, MAS) for node-level graph streams.
  3. LINEAR (Lightweight Incremental NEighborhood Aggregation with Replay): A minimalistic baseline that uses a single layer to average features of immediate neighbors, followed by a linear classifier. It employs a small reservoir-sampled memory buffer for experience replay.

Key Insights and Results

The research yielded several surprising findings:

  • Simplicity Wins: The lightweight LINEAR model often outperformed complex GNNs. Its fewer parameters and lack of non-linearities make it less prone to catastrophic forgetting and faster at adapting to new data. On the Reddit dataset, LINEAR achieved an Average Anytime Performance (AAP) of 87.75%, rivaling the more complex PDGNN (86.66%).
  • Replay is Essential: Methods using "rehearsal" (Experience Replay) significantly outperformed regularization-based methods like EWC.
  • Structural Interference: New nodes don't just add data; they alter the neighborhoods of existing nodes, creating a unique form of backward interference specific to graph data.

Conclusion

While LINEAR excels on homophilous graphs, it faces challenges with heterophilous structures (like the Roman Empire dataset) where simple neighborhood averaging is insufficient. Future work should focus on sophisticated neighborhood management and strategies tailored for heterophilous graph streams. The OCGL framework provides a robust foundation for developing efficient, real-time GNNs for evolving real-world networks.

Summary updated

BibTeX
@misc{donghi2025online,
  author = {Giovanni Donghi and Luca Pasa and Daniele Zambon and Cesare Alippi and Nicolò Navarin},
  title = {{Online Continual Graph Learning}},
  year = {2025},
  eprint = {2508.03283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.03283},
}
Figure