Abstract
Graph neural networks (GNNs) for temporal graphs have recently attracted increasing attention, where a common assumption is that the class set for nodes is closed. However, in real-world scenarios, it often faces the open set problem with the dynamically increased class set as time passes. This brings two big challenges to existing dynamic GNN methods: (i) How to dynamically propagate appropriate information in an open temporal graph, where new class nodes are often linked to old class nodes, and (ii) How to avoid catastrophic knowledge forgetting over old classes when learning new classes. In this paper, we propose a general and principled learning approach for open temporal graphs, called OTGNet. We explore a new message passing mechanism by extending the information bottleneck principle to only propagate class-agnostic knowledge between nodes of different classes. Moreover, we devise a strategy to select both important and diverse triad sub-graph structures for effective class-incremental learning.
Introduction
Most Graph Neural Networks (GNNs) operate under a "closed-set" assumption, assuming all possible node classes are known during initial training. However, real-world temporal graphs—such as social networks with trending topics or e-commerce platforms with new product categories—are inherently "open." As time progresses, new categories of nodes emerge and interact with existing ones.
This evolution introduces two primary hurdles. First, Heterophily Propagation: Standard GNNs are designed to make connected nodes more similar (homophily). In an open temporal graph, a node from a new class often connects to a node from an old class. If the GNN smooths their embeddings too much, the model loses the ability to distinguish between distinct categories. Second, Catastrophic Forgetting: As the model learns to identify new classes, it tends to overwrite the weights used to identify old ones, leading to a sharp performance drop on historical data.
The OTGNet Framework
To address these challenges, we introduce OTGNet, a framework designed for class-incremental learning on temporal graphs. OTGNet consists of two primary modules: an Information Bottleneck-based message-passing scheme and a Triad Structure Selection and Replay mechanism.
1. Information Bottleneck (IB) Message Passing
To solve the heterophily problem, OTGNet assumes node information can be disentangled into class-relevant and class-agnostic components. When a node communicates with a neighbor of a different class, it should ideally only share class-agnostic information.
We extend the Information Bottleneck principle to minimize the mutual information between the latent representation and the class label, while maximizing the information retained from the input features. This ensures that the "messages" passed across class boundaries do not contain conflicting label-specific noise, preventing over-smoothing between disparate classes.
2. Triad Structure Selection and Replay
To prevent forgetting, the model "replays" small samples of old data while learning new tasks. While many incremental learning methods replay individual nodes, we argue that triads (three-node triangle structures) are the fundamental building blocks of graph evolution. They better capture the topological "memory" of the graph than isolated nodes.
Choosing the most representative triads is an NP-hard problem. OTGNet uses Influence Functions to estimate how much the model's performance would suffer if a specific triad were removed. We then employ a greedy algorithm to select a set of triads that are both highly influential and diverse. We prove that our triad selection value function is monotone and submodular, allowing for a greedy algorithm that is mathematically guaranteed to be close to the optimal solution.
Experimental Evaluation
We evaluated OTGNet on three real-world datasets: Reddit (post-to-post), Yelp (business-to-business), and Taobao (item-to-item). OTGNet significantly outperformed existing state-of-the-art methods, including combinations of temporal GNNs (TGN, TGAT) with incremental learning techniques (iCaRL, BiC).
- Accuracy: On the Reddit dataset, OTGNet achieved an Average Performance (AP) of ~73.88%, compared to ~54% for the strongest baselines.
- Forgetting: OTGNet showed much lower Average Forgetting (AF) scores. On Yelp, OTGNet's forgetting was only ~4.98%, whereas other methods ranged from 12% to 41%.
- Clarity: t-SNE visualizations confirmed that the IB module helps maintain tight and distinct class clusters over time.
Conclusion
OTGNet provides a principled approach to the open temporal graph problem. By disentangling node information through an Information Bottleneck and preserving topological memory via influential triad replay, it effectively manages the balance between learning new knowledge and retaining the old. Future work will focus on scaling the triad selection process for massive-scale graphs and handling extremely sparse environments.
Summary updated