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

Representation Learning over Dynamic Graphs

Rakshit Trivedi, Mehrdad Farajtabar, Prasenjeet Biswal, Hongyuan ZhaarXiv 2018

Abstract

Dynamic graphs are ubiquitous in real-world applications, yet most representation learning methods treat them as static or as a sequence of discrete snapshots. This paper presents DyRep, an inductive deep learning framework that models dynamic graphs as continuous-time processes. DyRep captures the interplay between long-term structural changes (associations) and short-term behavioral interactions (communications). By utilizing temporal point processes, the framework learns evolving node embeddings that can predict both the occurrence and the precise timing of future events.

Introduction

Traditional graph embedding techniques, such as Node2Vec or DeepWalk, operate under the assumption of a static topology. However, real-world networks—ranging from social media interactions to financial transactions—are inherently dynamic. Existing attempts to model these dynamics often rely on discrete snapshots, which discard fine-grained temporal information, or fail to account for the reciprocal influence between network structure and node behavior.

The challenge lies in modeling "evolution through mediation," where a node's latent representation acts as a bridge: it drives future events while simultaneously being updated by past interactions in continuous time.

The DyRep Framework

DyRep addresses these challenges by modeling two interleaved processes: associations, which represent long-term structural changes (e.g., a new friendship), and communications, which represent short-term interactions (e.g., a message sent between friends).

The DyRep framework illustrates the mutual evolution of network structure and node embeddings through associations and communications.

As shown in Figure 1, node embeddings serve as the mediator. An association event changes a node's representation, which subsequently influences the likelihood of future communications. These communications, in turn, further refine the node's embedding, creating a continuous feedback loop.

Methodology

The DyRep architecture consists of three core functional components designed to handle continuous-time dynamics:

  1. Temporal Point Process: DyRep uses a conditional intensity function to model the rate of events. A modified "softplus" function is employed to differentiate the time scales of slow-moving associations and fast-moving communications.
  2. Embedding Update Function: Upon the occurrence of an event, node embeddings are updated via a deep recurrent architecture. This update integrates three factors: self-propagation (the node's prior state), localized propagation (information from the interacting neighbor), and exogenous drive (the duration since the last event).
  3. Attentive Aggregation: To capture mesoscopic influences, the model introduces an intensity-based attention mechanism. This allows nodes to prioritize information from neighbors with whom they have high-intensity recent interactions, ensuring the network's activity history guides the learning process.

Because DyRep learns functions to generate embeddings rather than fixed vectors, it is fully inductive, allowing it to generalize to new nodes as the network grows.

Evaluation and Key Results

The model was evaluated on two distinct real-world datasets: the Social Evolution Dataset (MIT), a dense network of 100 nodes with over 2 million events, and the Github Dataset, a large-scale sparse network of over 12,000 nodes.

Predictive Performance

DyRep demonstrated superior performance in two primary tasks:

  • Dynamic Link Prediction: On the Social Evolution dataset, DyRep significantly outperformed baselines such as Know-Evolve and GraphSage in HITS@10 metrics.
  • Event Time Prediction: By treating time as a first-class citizen, DyRep achieved unprecedented precision in predicting when an interaction would occur. For the Social Evolution data, DyRep's Mean Absolute Error (MAE) was approximately 23 hours, a massive improvement over the 129 hours for Know-Evolve and 1179 hours for Multi-dimensional Hawkes Processes (MHP).

Scalability

A critical requirement for dynamic graph models is the ability to handle large-scale data. DyRep's training complexity is efficient for real-world applications.

Training time for DyRep scales linearly with the number of events in the network.

As illustrated in Figure 2, the training time scales linearly with the number of events, confirming the framework's viability for web-scale dynamic networks.

Conclusion

DyRep provides a robust framework for representation learning on dynamic graphs by unifying structural evolution and behavioral interactions within a continuous-time point process. While currently focused on network growth and dyadic interactions, future work may extend the model to account for network shrinkage (e.g., edge deletions) and higher-order motifs. By treating node embeddings as evolving mediators, DyRep sets a new standard for predicting the complex "what" and "when" of network dynamics.

Summary updated

BibTeX
@misc{trivedi2018representation,
  author = {Rakshit Trivedi and Mehrdad Farajtabar and Prasenjeet Biswal and Hongyuan Zha},
  title = {{Representation Learning over Dynamic Graphs}},
  year = {2018},
  eprint = {1803.04051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.04051},
}
Figure