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

Temporal network embedding framework with causal anonymous walks representations

Ilya Makarov, Andrey V. Savchenko, Arseny Korovko, Leonid Sherstyuk, Nikita Severin, Dmitrii Kiselev, Aleksandr Mikheev, Dmitrii BabaevPeerJ Comput. Sci 2022 · DOI

TL;DR

This paper introduces a novel framework for learning embeddings of temporal (dynamic) graphs, crucial for understanding evolving relationships in data like financial transactions. By combining the strengths of Temporal Graph Networks (TGN) and Causal Anonymous Walks (CAW), their method achieves state-of-the-art performance on link prediction and node classification tasks, demonstrating its practical utility in real-world banking applications.

What Problem Does This Paper Address?

Many real-world systems, from social networks to financial markets, are best represented as dynamic graphs where relationships change over time. Traditional graph embedding methods, designed for static graphs, struggle to capture this temporal evolution. While existing temporal graph embedding methods exist, they often face challenges with computational complexity, inductive settings (predicting on unseen nodes/edges), and effectively incorporating rich temporal information. This paper aims to bridge this gap by developing a more robust and comprehensive framework for temporal network representation learning that can handle complex dynamic interactions and achieve superior performance on downstream tasks.

Methods

The core of this work is a novel temporal network embedding framework that builds upon the Temporal Graph Network (TGN) architecture. The key innovation lies in integrating Causal Anonymous Walks (CAW) features into the TGN.

  • TGN Backbone: TGN provides a flexible modular architecture that efficiently updates node memory and handles temporal dynamics. It includes modules for message extraction, embedding generation, and memory aggregation.
  • Causal Anonymous Walks (CAW) Integration: CAW, originally developed for graph reconstruction, offers a unique perspective by anonymizing nodes and focusing on graph evolution laws. The authors leverage CAW to generate Neighborhood Edge Features (NEF). These NEF features capture walk correlations between nodes, providing a richer representation of temporal motifs and interactions.
  • NEF Generator: This module samples time-inverse walks, anonymizes them using positional frequency encoding, and then aggregates these anonymous walks to create informative NEF vectors for edges.
  • Message Generation & Update: The framework uses these NEF features alongside other temporal information (node memory, edge features, time differences) to generate messages that update node memory. This allows the model to learn from the temporal context of interactions.
  • Embedding Generator & Decoder: The final modules generate node embeddings from updated memory states and then use these embeddings for downstream tasks like link prediction and node classification.

Datasets

The authors evaluated their framework on several well-known temporal network datasets:

  • Labeled Datasets:
    • Reddit: A bipartite graph representing user-subreddit interactions.
  • Wikipedia: A bipartite graph representing user-wiki page interactions.
  • Non-labeled Datasets:
    • Enron: Email communication network of Enron employees.
  • UCI: Communication history of students in a forum.
  • Ethereum: A directed graph of Ethereum blockchain transactions (collected over a 9-hour span).

They also introduced a real-world banking transaction dataset from a major European bank, consisting of transactions between companies, which was used for evaluating the model on a credit scoring task.

Key Insights and Ideas

  • Fusion of TGN and CAW is Powerful: Combining the memory-based approach of TGN with the temporal motif capturing ability of CAW significantly enhances performance. This suggests that different temporal graph learning paradigms can be complementary.
  • NEF Features Enhance Temporal Understanding: The Neighborhood Edge Features derived from CAW provide a novel way to inject information about temporal patterns and correlations, leading to better edge and node representations.
  • Inductive Learning is Crucial: The framework's ability to perform well in inductive settings (predicting on unseen nodes/edges) is a significant advantage for real-world applications where new entities constantly emerge.
  • Unified Evaluation Framework: The paper emphasizes the need for a standardized evaluation pipeline for temporal graph embeddings, which they provide, to ensure reproducible and comparable results across different models and datasets.

Key Results

  • State-of-the-Art Performance: The proposed model consistently outperforms baseline TGN and other state-of-the-art models (DyRep, Jodie, TGAT, APAN, HiLi) on various inductive and transductive edge prediction tasks across multiple datasets, achieving AUC-ROC scores up to 0.985.
  • Node Classification Improvement: The model also shows superior results in node classification tasks on the Reddit dataset.
  • Banking Application Success: In a real-world industrial application for predicting company default on a major European bank's transaction data, their model achieved a 9.2% higher AUC ROC compared to TGN, demonstrating its practical value.
  • Efficiency Trade-off: While achieving superior performance, the CAW extraction module makes the model slower than TGN (70.62s vs. 10.91s per epoch on Reddit), which is noted as an area for future optimization.

Limitations and Future Work

  • Computational Cost of CAW: The authors acknowledge that the CAW feature extraction process is computationally intensive, leading to slower training times. They suggest speeding up this module as a future research direction.
  • Scaling to Larger Graphs: While the framework is designed to handle dynamic graphs, scaling to real-life temporal graphs with tens of billions of nodes remains a challenge. Future work could focus on developing more efficient node/edge sampling strategies to address this.
  • Parameter Sensitivity: Although the study suggests the model is stable across parameter choices for CAW embedding, further exploration into optimal parameter settings for different graph structures could be beneficial.
  • Dense vs. Sparse Graphs: The authors note that larger CAW message shapes might be more helpful in denser graphs, implying that parameter tuning could be graph-dependent.

Summary updated

BibTeX
@article{makarov2022temporal,
  author = {Ilya Makarov and Andrey V. Savchenko and Arseny Korovko and Leonid Sherstyuk and Nikita Severin and Dmitrii Kiselev and Aleksandr Mikheev and Dmitrii Babaev},
  title = {{Temporal network embedding framework with causal anonymous walks representations}},
  journal = {PeerJ Comput. Sci.},
  year = {2022},
  doi = {10.7717/peerj-cs.858},
}
Figure