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

DyRep: Learning Representations over Dynamic Graphs

Rakshit Trivedi, Mehrdad Farajtabar, Prasenjeet Biswal, Hongyuan ZhaICLR 2019

TL;DR

DyRep is a novel representation learning framework that models dynamic graphs as two interleaved processes: long-term structural changes (associations) and short-term node activities (communications). By using a two-time scale deep temporal point process, DyRep learns node embeddings that evolve in continuous time, significantly outperforming state-of-the-art methods in predicting both future links and the exact timing of events.

The Challenge of Dynamic Graphs

Most graph representation learning research focuses on static graphs, where the topology is fixed. However, real-world networks—like social media, financial transactions, or citation webs—are highly dynamic.

Existing approaches for dynamic graphs generally fall into two camps:

  1. Discrete-time: These treat the graph as a series of static snapshots. This loses fine-grained temporal information and requires choosing an arbitrary "time-step" granularity.
  2. Continuous-time: These model events as they happen but often fail to distinguish between different types of dynamics.

The authors identify a crucial gap: real-world graphs exhibit at least two distinct processes evolving at different scales. There is Topological Evolution (slow-scale changes like adding a new friend or joining a group) and Node Interactions (fast-scale activities like sending a message or liking a post). DyRep aims to model these interleaved dependencies through a "latent mediation process," where node embeddings act as the bridge between structure and activity.

Mutual evolution of associations and communications

How DyRep Works

DyRep's core innovation is a two-time scale deep temporal point process (TPP).

  • The Intensity Function: The model defines a conditional intensity function $\lambda_k^{u,v}(t)$ that represents the rate at which an event of type $k$ (association vs. communication) occurs between nodes $u$ and $v$. This intensity is driven by the compatibility of the nodes' current latent representations.
  • Deep Inductive Network: When an event occurs, node embeddings are updated using a recurrent architecture. The update considers three factors:
  • Self-Propagation: The node’s previous state.
  • Exogenous Drive: A "drift" term that accounts for changes over time even when the node isn't active.
  • Localized Embedding Propagation: Information passed from the neighborhood.
  • Temporal Attention Mechanism: Unlike standard static attention (like GAT), DyRep uses a novel attention layer where the weights are derived from the TPP intensity. Essentially, if node $A$ interacts frequently with node $B$, node $B$ will have a higher "attentiveness" weight when updating node $A$’s representation.
  • Training: The model is trained unsupervised by minimizing the negative log-likelihood of the observed event stream, using a Monte Carlo sampling trick to handle the computationally expensive "non-event" survival terms.
Comparison of DyRep with existing graph representation models

Key Insights: Evolution through Mediation

The most powerful idea in DyRep is that embeddings are not just descriptors; they are mediators. A structural change (new edge) changes a node's embedding, which then changes the probability of future interactions. Conversely, frequent interactions can eventually trigger a structural change.

By explicitly labeling events as permanent structure ($k=0$) or transient activity ($k=1$), the model learns that these events have different "weights" on the network's future. Furthermore, the temporal attention mechanism captures the intuition that in a dynamic system, the importance of a neighbor isn't just about the graph topology, but about the recency and frequency of interaction.

Experimental Results

The authors evaluated DyRep on two real-world datasets: the Social Evolution Dataset (a dense network tracking student proximity, calls, and friendships) and a Github Dataset (a large, sparse network tracking follows and repository stars).

DyRep demonstrated superior performance across multiple tasks:

  • Dynamic Link Prediction: On the Social Evolution dataset, DyRep achieved a significantly higher HITS@10 score compared to baselines like Know-Evolve and GraphSage, maintaining high accuracy even as the test window moved further from the training data.
  • Event Time Prediction: DyRep was remarkably accurate at predicting when the next event would occur. On the Social Evolution data, its Mean Absolute Error (MAE) was roughly 23 hours, compared to 129 hours for Know-Evolve and over 1,100 hours for a standard Multi-dimensional Hawkes Process (MHP).
  • Inductive Generalization: On the Github dataset, DyRep successfully generated meaningful embeddings for nodes it had never seen during training, outperforming other inductive methods like GraphSage.

Limitations and Future Work

  • Network Shrinkage: Currently, DyRep only supports the growth of networks (adding nodes/edges). It does not model deletions (unfriending or account deletion), primarily because fine-grained deletion timestamps are rarely available in public datasets.
  • Higher-Order Structures: The model focuses on dyadic (two-node) interactions. Future work could extend this to model the evolution of more complex structures, like triangles or motifs.
  • Computational Complexity: While the authors use sampling to scale the training, modeling every single interaction in massive-scale networks (billions of events) remains a significant engineering challenge.

Summary updated

BibTeX
@inproceedings{trivedi2019dyrep,
  author = {Rakshit Trivedi and Mehrdad Farajtabar and Prasenjeet Biswal and Hongyuan Zha},
  title = {{DyRep: Learning Representations over Dynamic Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure