DynG2G: An Efficient Stochastic Graph Embedding Method for Temporal Graphs

Mengjia Xu, Apoorva Vikram Singh, George Em KarniadakisarXiv 2021

Abstract

DynG2G is a novel stochastic framework for embedding dynamic graphs that represents nodes as probabilistic multivariate Gaussian distributions rather than static vectors. By capturing the evolving uncertainty of node positions in latent space, the model achieves state-of-the-art performance in temporal link prediction. A key contribution is the discovery of a "universal relation" between optimal embedding size and measured uncertainty, allowing for adaptive model selection based on graph dynamics.

Introduction

Most graph embedding techniques treat nodes as deterministic points in a low-dimensional vector space. While effective for static snapshots, this approach fails to capture the inherent uncertainty or "jitter" that arises when graphs evolve rapidly over time. In temporal networks—such as social media interactions or high-frequency financial trades—the topology is in constant flux. Existing deterministic methods often struggle with training stability, lack a way to quantify uncertainty, and face significant scalability hurdles when processing thousands of new nodes and edges per timestamp.

Methodology

DynG2G (Dynamic Graph2Gauss) shifts the paradigm from deterministic vectors to a probabilistic approach. The framework is designed to be inductive and efficient, avoiding the computational overhead of complex Recurrent Neural Networks (RNNs).

Key Innovations

  • Stochastic Mapping: Every node at each timestamp is encoded as a time-dependent multivariate Gaussian distribution $(\mu, \Sigma)$. This allows the model to quantify "node embedding uncertainty" on-the-fly.
  • Inductive Feed-Forward Encoder: DynG2G uses a simplified nonlinear encoder. To maintain temporal consistency, it initializes weights for timestamp $t+1$ using the learned parameters from timestamp $t$.
  • Net2WiderNet Integration: To handle growing graphs where the node count increases, the authors employ Net2WiderNet. This technique allows the neural network's input layer to expand adaptively, accommodating new nodes without losing previously learned knowledge.
  • Energy-Based Ranking Loss: The model is trained using a triplet loss based on KL-divergence, forcing topologically "close" nodes to have similar Gaussian distributions while pushing distant nodes apart.
The DynG2G framework: (a) temporal graph evolution, (b) the inductive encoder with Net2WiderNet for handling node growth, and (c) the probabilistic embedding and contrastive loss calculation.

Experimental Setup

The model was evaluated on eight diverse benchmarks, ranging from small-scale networks (96 nodes) to large-scale systems (87,626 nodes). These datasets represent various temporal behaviors, from stable evolutions to highly transient dynamics where structures change violently between steps. Benchmarks included social networks (Facebook, Digg), communication logs (UCI), financial platforms (Bitcoin-OTC), and synthetic models (SBM).

Key Insights and the "Universal Relation"

A significant finding of this research is the discovery that the optimal embedding dimension ($L_o$) is strongly correlated with the effective dimensionality of uncertainty ($D_u$). The researchers found that $L_o \approx D_u$ across all tested cases. This suggests that by monitoring the model's uncertainty, practitioners can automatically determine the most efficient size for their embeddings.

Furthermore, uncertainty serves as a proxy for system dynamics. In stable graphs, uncertainty remains flat, whereas in highly dynamic graphs, uncertainty spikes and fluctuates, providing a unique "fingerprint" of the system's underlying complexity.

Visualizations of graph snapshots and growth rates across different datasets, illustrating the range from stable (left) to highly transient (right) temporal dynamics.

Results and Discussion

DynG2G outperformed baseline methods, including DynGEM and EvolveGCN, across nearly all benchmarks. Its dominance was most pronounced in highly dynamic datasets like UCI, where it achieved a significantly higher Mean Average Precision (MAP).

Beyond accuracy, the model is highly efficient. On the Reality Mining benchmark, DynG2G achieved a 5x speedup over EvolveGCN (0.7s vs 3.4s per epoch). Its successful application to the 87k-node Digg dataset demonstrates its readiness for large-scale, real-world deployments.

Limitations and Future Work

While DynG2G represents a major step forward, current iterations require a pre-defined embedding dimension. Future work aims to develop a version that adjusts its embedding size automatically as graph complexity shifts. Additionally, the authors plan to extend the stochastic approach to heterogeneous graphs and explore hyperbolic embeddings for improved dimensionality reduction.

Summary updated

BibTeX
@misc{xu2021dyng,
  author = {Mengjia Xu and Apoorva Vikram Singh and George Em Karniadakis},
  title = {{DynG2G: An Efficient Stochastic Graph Embedding Method for Temporal Graphs}},
  year = {2021},
  eprint = {2109.13441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.13441},
}
Figure