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

Node embeddings in dynamic graphs

Ferenc Béres, Domokos M. Kelen, Róbert Pálovics, András A. BenczúrAppl. Netw. Sci 2019 · DOI

Introduction

In the field of graph representation learning, traditional techniques such as Node2Vec and DeepWalk have primarily focused on static graph structures. However, most real-world networks—ranging from social media interactions and financial transactions to communication logs—are inherently dynamic, characterized by a continuous stream of arriving edges. This paper addresses the limitations of static models in these environments by introducing two novel algorithms: StreamWalk and a MinHash-based second-order similarity approach. These methods enable the generation of node embeddings in real-time, capturing temporal dynamics that are often lost in snapshot-based batch processing.

The Challenge of Dynamic Graphs

The conventional method for handling dynamic graphs involves taking periodic "snapshots" and applying batch algorithms to each. This approach is fundamentally limited by two factors:

  1. Latency: Batch processing cannot react to changes as they happen, leading to representations that are perpetually out of date.
  2. Temporal Blindness: Snapshot-based methods ignore the chronological order of interactions. For instance, a path $A \to B \to C$ represents a valid flow of information only if the edge $(B, C)$ occurs after $(A, B)$. Static methods treat all edges within a snapshot as simultaneous, failing to capture causal relationships.

To overcome these issues, the authors propose online updateable embeddings that evolve with every new edge, ensuring that the model prioritizes "fresh" information while maintaining a relevant memory of past interactions.

Proposed Methodology

The research introduces two complementary online algorithms designed for high-throughput graph streams.

StreamWalk

StreamWalk is an online adaptation of random-walk-based embedding techniques. It utilizes time-respecting walks, ensuring that a walk only progresses through edges in chronological order. When a new edge $(u, v)$ arrives, the algorithm samples walks ending at $u$ to update the embedding of $v$ using online gradient descent. To manage the influence of historical data, it employs exponential decay, which ensures that recent interactions have a greater impact on current node representations than older ones.

Concept of StreamWalk: When an edge (u, v) arrives, temporal walks are sampled to update node representations.

Second-Order Similarity (SO)

This method focuses on structural overlap, operating on the principle that nodes are similar if they share a significant portion of their neighborhood. To implement this efficiently in a streaming context without the memory overhead of storing a full adjacency matrix, the authors utilize MinHash fingerprinting. This technique allows the model to approximate the Jaccard similarity of two nodes' neighborhoods in constant time, facilitating rapid updates as new edges arrive.

Hybrid Model (SW+SO)

The authors found that the most effective approach involves combining the "reachability" captured by StreamWalk with the "structural overlap" captured by the MinHash-based SO method. This hybrid model provides a more comprehensive representation of node dynamics.

Experimental Evaluation

The proposed methods were evaluated across two distinct tasks using several real-world datasets:

  1. Similarity Search: The authors introduced two new datasets, RG17 (Roland Garros 2017) and UO17 (US Open 2017), based on Twitter mention graphs during major tennis tournaments. Tournament schedules provided a dynamic ground truth for similarity.
  2. Link Prediction: Evaluation was conducted on standard network datasets from the KONECT repository, including Enron (email communications), the Linux Kernel mailing list, and Facebook wall interactions.

Key Results and Insights

  • The "Freshness" Advantage: A significant finding is that simple online models frequently outperform sophisticated batch models. This is attributed to the inherent "staleness" of batch models, which are trained on historical snapshots and cannot account for the most recent network changes.
  • Causality and Performance: By enforcing time-respecting walks, StreamWalk successfully captures the flow of influence. On the Twitter datasets, the combined SW+SO model achieved a mean NDCG@100 of approximately 0.37, outperforming static baselines like LINE (~0.29) and Node2Vec (~0.26).
  • Link Prediction Gains: In prequential evaluations for link prediction, online methods showed a dramatic advantage. On the Enron dataset, online methods achieved scores nearly 3.5 times higher than batch Node2Vec, demonstrating the critical importance of real-time updates.

Conclusion

The algorithms presented in this paper offer a scalable and efficient solution for generating node embeddings in dynamic graph streams. By prioritizing temporal order and maintaining "fresh" representations, these methods significantly enhance performance in tasks like link prediction and similarity search. Future research may explore the integration of Recurrent Neural Networks (RNNs) or LSTMs to capture even more complex temporal patterns, provided they can meet the computational demands of high-throughput streams.

Summary updated

BibTeX
@article{beres2019node,
  author = {Ferenc Béres and Domokos M. Kelen and Róbert Pálovics and András A. Benczúr},
  title = {{Node embeddings in dynamic graphs}},
  journal = {Appl. Netw. Sci.},
  year = {2019},
  doi = {10.1007/s41109-019-0169-5},
}
Figure