DynGEM: Deep Embedding Method for Dynamic Graphs

Palash Goyal, Nitin Kamra, Xinran He, Yan LiuarXiv 2018

Introduction

Graph embedding—the mapping of nodes in a network to low-dimensional vectors—is a fundamental technique in modern network analysis, enabling downstream tasks like link prediction and community detection. However, traditional embedding methods are primarily designed for static graphs. Real-world networks, such as social platforms or communication systems, are inherently dynamic, evolving through the addition of new nodes and shifting relationships.

Applying static methods to snapshots of a dynamic graph independently results in three major challenges: instability (where small graph changes cause large, arbitrary shifts in vector space), fixed capacity (inability to handle growing node sets), and computational inefficiency (re-running models from scratch for every update).

Methods

The authors propose DynGEM (Dynamic Graph Embedding Method), a framework built on the Structural Deep Network Embedding (SDNE) architecture designed specifically for temporal stability and scalability.

Incremental Learning and Stability

DynGEM addresses instability through "warm-starting." Instead of random initialization for each new snapshot, the autoencoder weights for time $t$ ($\theta_t$) are initialized using the weights learned at time $t-1$ ($\theta_{t-1}$). This ensures that the new embedding remains within a consistent latent space, providing natural stability across time steps.

DynGEM architecture for dynamic graph transitions.

Handling Growth with PropSize

To accommodate growing graphs, DynGEM utilizes the PropSize heuristic. When the number of nodes increases significantly, the model dynamically expands its neural network capacity. Using techniques like Net2WiderNet and Net2DeeperNet, the model adds hidden units or layers to represent new structures without losing previously learned information.

Multi-Objective Loss

The model optimizes a loss function that balances two types of proximity:

  • First-order proximity ($L_{loc}$): Keeps direct neighbors close in the embedding space.
  • Second-order proximity ($L_{glob}$): Ensures nodes with similar global neighborhood structures have similar embeddings via reconstruction loss.

Key Results and Applications

DynGEM was evaluated on diverse datasets, including synthetic models (SYN), citation networks (HEP-TH), and communication networks (AS and ENRON).

Stability and Efficiency

DynGEM achieved stability constants ($K_S$) orders of magnitude better than static baselines. On the SYN dataset, DynGEM's stability constant was 0.008, compared to 0.18 for standard SDNE. Furthermore, the incremental approach provided a 2-3x speedup over running static embeddings independently, as subsequent snapshots required fewer iterations to converge.

Anomaly Detection as a Signal

Because DynGEM produces stable embeddings, the magnitude of change in a node's position ($\Delta_t$) becomes a meaningful metric for detecting anomalies. A sudden "jump" in the embedding space indicates a fundamental shift in a node's role within the network.

Anomaly detection on the Enron email network.

On the Enron dataset, DynGEM successfully identified major spikes in embedding changes that correlated with historical events, such as leadership changes and the onset of federal investigations. As shown in the figure above, the embedding shifts at weeks 93, 94, and 101 align precisely with the company's internal turmoil.

Conclusion

DynGEM provides a robust framework for embedding dynamic graphs by combining incremental learning with adaptive network architectures. By maintaining temporal stability, it not only improves computational efficiency but also unlocks new analytical capabilities, such as high-fidelity anomaly detection in evolving networks. Future work may involve incorporating explicit stability constraints directly into the loss function and establishing theoretical error bounds for incremental updates.

Summary updated

BibTeX
@misc{goyal2018dyngem,
  author = {Palash Goyal and Nitin Kamra and Xinran He and Yan Liu},
  title = {{DynGEM: Deep Embedding Method for Dynamic Graphs}},
  year = {2018},
  eprint = {1805.11273},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.11273},
}
Figure