Towards Open Temporal Graph Neural Networks

Kaituo Feng, Changsheng Li, Xiaolu Zhang, Jun Zhou

In the real world, graphs don't just grow; they evolve in ways that introduce entirely new categories of data. Think of a social network where new trending topics emerge daily, or an e-commerce platform adding new product categories. Most current Temporal Graph Neural Networks (TGNNs) operate under a "closed-set" assumption—they assume the categories (classes) of nodes are fixed from day one.

A paper from ICLR 2023, "Towards Open Temporal Graph Neural Networks," introduces OTGNet, a framework designed to handle "open" temporal graphs where new classes appear over time without forgetting the old ones.

TL;DR

OTGNet is the first framework to tackle class-incremental learning in temporal graphs. It uses an Information Bottleneck approach to prevent "embedding contamination" between different classes and a novel "triad" replay strategy to preserve structural knowledge of old classes, significantly outperforming existing methods in both accuracy and memory retention.

What Problem Does This Paper Address?

When a temporal graph is "open," two major challenges arise that break standard GNNs:

Open Temporal Graph Evolution
  1. Heterophily Propagation: GNNs are designed to make connected nodes look similar (homophily). However, in an open graph, a node from a new class is often linked to a node from an old class (as seen with the red edge connecting Task 1 and Task 2 in the figure above). If the model forces their embeddings to be similar, it loses the ability to distinguish between the classes. This is known as the heterophily problem.
  2. Catastrophic Forgetting: As the model learns to recognize new classes, it tends to overwrite the weights used to identify old ones. While this is a known issue in general machine learning, graphs add a layer of complexity: you aren't just forgetting "objects," you're forgetting the topological evolution of the network.

Methods

The authors propose OTGNet, which consists of two primary innovations designed to tackle these exact challenges:

OTGNet Architecture

1. Information Bottleneck (IB) Message Passing

To solve the heterophily issue, the authors assume node information can be split into class-relevant and class-agnostic components.

  • They use the Information Bottleneck principle to extract class-agnostic representations.
  • The Trick: When passing messages between nodes of different classes, the model only transfers the class-agnostic info. If nodes share a class, it uses the full embedding. This prevents conflicting class-specific features from "smearing" across the graph.

2. Representative Triad Selection and Replay

To stop forgetting, the model "replays" old data. Instead of just picking random nodes, OTGNet picks triads (three-node triangle structures).

  • Why triads? Triads are the fundamental building blocks of social and citation networks; they capture how links "close" over time (evolutionary patterns).
  • Selection Strategy: They use influence functions to identify which triads are most "important" to the model's current performance and a diversity metric to ensure the replayed samples cover the entire feature space.

Datasets

The model was evaluated on three real-world datasets, repurposed for class-incremental tasks:

  • Reddit: A post-to-post graph where subreddits are labels. Tasks were divided by months, with new subreddits appearing as new classes.
  • Yelp: A business-to-business graph where business categories are labels, divided into yearly tasks.
  • Taobao: An item-to-item graph from a promotion season, with item categories as labels.

Key Insights and Ideas

  • Disentanglement is Key: By separating what a node is (class-relevant) from how it behaves in a network (class-agnostic), the model can learn from connections between different types of nodes without getting confused.
  • Structure Over Samples: In graph learning, replaying individual nodes is often insufficient because you lose the context of the edges. Replaying triads preserves the "local geometry" of the graph, which is vital for temporal dynamics.
  • Influence Functions for Graphs: The paper adapts influence functions—typically used to find influential training points in static sets—to estimate how much a specific sub-graph structure contributes to the model's knowledge.

Key Results

OTGNet consistently outperformed baselines (like ContinualGNN and various TGNNs combined with standard incremental learning techniques like EWC or iCaRL).

  • Accuracy (Average Performance): On the Reddit dataset, OTGNet achieved an Average Performance (AP) of 73.88%, compared to the best baseline (TGAT+BiC) at 54.61%.
  • Retention (Average Forgetting): OTGNet showed significantly lower forgetting rates. On Yelp, its Average Forgetting (AF) was only 4.98%, while most baselines hovered between 15% and 40%.
  • Visualizations: t-SNE plots showed that OTGNet maintains much tighter, more distinct clusters for different classes compared to versions of the model without the Information Bottleneck module.

Limitations and Future Work

  • Computational Complexity: The process of selecting representative triads is currently quadratic ($O(N^2)$), which could be a bottleneck for massive, industrial-scale graphs.
  • Triad Dependency: The strategy relies on the assumption that triads are the primary evolutionary unit. While true for many social/citation graphs, other types of networks (like bipartite transaction graphs) might require different structural motifs.
  • Future Directions: The authors suggest exploring hierarchical selection policies or "divide-and-conquer" methods to speed up the triad selection process.

Summary updated

BibTeX
@inproceedings{feng2023towards,
  author = {Kaituo Feng and Changsheng Li and Xiaolu Zhang and JUN ZHOU},
  title = {{Towards Open Temporal Graph Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=N9Pk5iSCzAn},
}
Figure