NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inductive representation learning on temporal graphs

Da Xu, Chuanwei Ruan, Evren Körpeoglu, Sushant Kumar, Kannan AchanICLR 2020

Introduction

Most graph representation learning methods, such as Graph Convolutional Networks (GCN) or Graph Attention Networks (GAT), are inherently designed for static graphs. However, real-world networks—ranging from social media interactions and transaction logs to citation webs—are fundamentally temporal.

The Temporal Graph Attention (TGAT) network is a novel framework designed to learn node representations in dynamic graphs where both structure and features evolve over continuous time. By combining a mathematically grounded functional time encoding with a self-attention mechanism, TGAT can inductively infer embeddings for both observed and completely new nodes, outperforming state-of-the-art methods on link prediction and node classification tasks.

The authors identify three major challenges in temporal graph learning that TGAT addresses:

  1. Functional Time: Node embeddings should not be static vectors; they must act as functions of continuous time.
  2. Evolving Topology: Nodes and edges continuously appear and disappear. A robust model must handle "inductive" tasks, predicting behavior for nodes it has never encountered during training.
  3. Temporal Patterns: The importance of a neighboring node often depends on when the interaction occurred. Recent interactions might carry more weight than older ones.

Existing solutions often rely on discrete "snapshots" of time, which lose fine-grained temporal resolution, or they struggle to generalize to new nodes without expensive retraining.

Temporal graph evolution and neighborhood aggregation

Methodology: The TGAT Layer

The core innovation of the paper is the TGAT layer, which replaces standard static graph aggregation with a time-aware attention mechanism.

Functional Time Encoding

Instead of treating time as a simple numerical feature or discrete bin, the authors utilize Bochner’s Theorem from harmonic analysis to map continuous time intervals into a high-dimensional vector space. This mapping uses a combination of sine and cosine functions—conceptually similar to the positional encodings found in Transformers, but theoretically justified for continuous kernels. This provides a rigorous mathematical foundation for encoding time in neural networks.

Temporal Self-Attention

The TGAT layer employs a Query-Key-Value (QKV) architecture. When calculating the representation for a target node at time $t$, the "Query" is the node's own feature. The "Keys" and "Values" are derived from the features of its neighbors, concatenated with the functional encoding of the time elapsed since their specific interaction. This allows the attention mechanism to naturally learn temporal decay, automatically assigning higher weights to more recent or recurring interactions.

Inductive Architecture

Because the model learns a functional mapping rather than relying on a static lookup table of embeddings, it boasts strong inductive capabilities. TGAT can generate an embedding for a brand-new node simply by performing a forward pass through the network, utilizing that node's features and its local temporal neighborhood.

Datasets and Experiments

The authors evaluated TGAT on three datasets, including a significant real-world industrial example:

  • Reddit: A graph of users posting in subreddits (11,000 nodes, ~700,000 edges).
  • Wikipedia: Users editing pages (9,300 nodes, ~160,000 edges).
  • Industrial Dataset: A large-scale customer-product interaction graph from a major online grocery platform (Walmart), featuring 170,000 nodes and over 2 million temporal edges.

Key Results

TGAT was rigorously tested on Link Prediction (predicting if an edge will form) and Node Classification (predicting user states, such as being banned).

  • Superior Transductive Performance: TGAT consistently outperformed baselines like GAE, DeepWalk, and CTDNE. On the Reddit dataset, it achieved an Average Precision (AP) of 98.12% for transductive link prediction.
  • Strong Inductive Capability: In the inductive setting—predicting links for nodes entirely unseen during training—TGAT outperformed adapted versions of GraphSAGE and GAT by roughly 5-10% in accuracy across all datasets.
  • Computational Efficiency: Despite the added complexity of continuous time, the masked self-attention operation is highly parallelizable. This makes TGAT significantly more computationally efficient than RNN-based temporal graph models.

Limitations and Future Work

While highly effective, the authors note a few limitations and areas for future exploration:

  • Neighborhood Growth: The paper uses neighborhood dropout to manage scale. However, very dense temporal graphs with high-frequency interactions could still pose memory challenges as the "temporal neighborhood" expands.
  • Edge Deletions: The current framework focuses primarily on the addition of nodes and edges. Explicitly modeling the deletion of edges or the "death" of nodes is a crucial area for expansion.
  • Visualization: Developing better tools to visualize how embeddings "flow" and change over continuous time remains an open challenge for the field, despite the attention analysis provided in the paper.

Summary updated

BibTeX
@inproceedings{xu2020inductive,
  author = {Da Xu and Chuanwei Ruan and Evren Körpeoglu and Sushant Kumar and Kannan Achan},
  title = {{Inductive representation learning on temporal graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure