Dynamic network embedding via incremental skip-gram with negative sampling

Hao Peng, Jianxin Li, Hao Yan, Qiran Gong, Senzhang Wang, Lin Liu, Lihong Wang, Xiang Ren

TL;DR

This paper introduces an Incremental Skip-gram with Negative Sampling (ISGNS) framework designed for dynamic network embedding. By isolating updates to localized, changing subgraphs rather than retraining the entire network from scratch, it achieves up to a 22x speedup while maintaining or even improving embedding accuracy, backed by rigorous theoretical convergence guarantees.

What Problem Does This Paper Address?

Graph embeddings (like DeepWalk and node2vec) map network nodes into low-dimensional vector spaces, making them highly effective for downstream machine learning tasks like link prediction and node classification. However, real-world networks—such as social networks, citation webs, and recommender systems—are dynamic and constantly evolving.

Traditional embedding methods assume a static graph. When nodes or edges are added or deleted, these algorithms typically require expensive global retraining from scratch. Existing dynamic embedding alternatives are often heuristic, lack theoretical guarantees on how close they get to the global optimum, or scale poorly when handling both node additions and deletions.

Methods

The authors propose ISGNS, which factorizes the global objective function of network embeddings into three distinct parts: added, vanished, and retained subgraphs.

  1. Node Initialization & Inheritance: Node and parameter vectors from the previous timestep are preserved and inherited. Newly added nodes are initialized randomly, while their corresponding parameter vectors are set to zero.
  2. Localized Random Walks: Instead of traversing the entire graph, the algorithm performs local random walks exclusively within the "metabolic" subgraphs affected by recent structural changes. This allows the model to efficiently update node frequencies and the negative sampling noise distribution.
  3. Partitioned Gradient Updates: Guided by the network partitions, a new stochastic gradient-based method applies gradient descent to update vectors for vanished elements and gradient ascent for newly added elements.
An illustration of the temporal evolution of a dynamic network showing affected subgraphs and updating noise distributions.

Crucially, the authors provide a solid mathematical proof showing that the difference between the ISGNS objective and the global retraining objective is strictly bounded. As the network scale grows infinitely large, the first-order moment of this objective difference converges at a rapid rate of $O(1/n^2)$.

Datasets

The framework was evaluated using six real-world dynamic network datasets:

  • Wikipedia: A word co-occurrence network tracking language evolution from 2001 to 2016.
  • BlogCatalog: A social blog directory managing blogger relationships over 20 days.
  • Flickr: An image interaction network based on shared metadata over 100 days.
  • Facebook: A standard social network dataset utilized for link prediction.
  • ArXiv: A scientific collaboration and co-authorship network.
  • DBLP: A massive co-author network used to simulate fine-grained sliding-window network evolution.

Key Insights and Ideas

  • Locality of Network Evolution: Structural changes in massive networks usually have a localized impact. By isolating "metabolic subgraphs," you can avoid redundant computations across the stable parts of the network.
  • Theoretical Backing for Incremental Updates: While many engineering teams use incremental updates heuristically, this paper bridges the gap by proving mathematically that incremental skip-gram solutions tightly approximate global optimums as networks scale.
  • Dynamic Noise Distribution: Updating the noise distribution for negative sampling is just as critical as updating the random walk sequences themselves when capturing true temporal evolution patterns.

Key Results

  • Massive Speedups: When integrated with DeepWalk, ISGNS achieved up to a 22x speedup on the DBLP dataset compared to global retraining. Integrated with node2vec, it achieved up to a 14x speedup.
  • Preserved and Improved Accuracy: On multi-label classification and link prediction tasks, the dynamic embedding performed comparably to—and occasionally outperformed—full global retraining. This indicates that ISGNS successfully captures crucial temporal patterns without losing structural fidelity.
  • Baseline Superiority: ISGNS consistently outperformed other state-of-the-art dynamic embedding methods (such as DANE, Dynamic SBM, and DNE) in classification accuracy.

Limitations and Future Work

The current framework is explicitly tailored around the skip-gram architecture with negative sampling. While highly versatile, the authors note that future work is needed to extend these incremental update strategies to other advanced network representation models, such as graph neural networks (GNNs) or deep autoencoders. Additionally, the efficiency of the method relies on the assumption that structural updates at any given time step are relatively sparse compared to the overall network size.

Summary updated

BibTeX
@article{peng2020dynamic,
  author = {Hao Peng and Jianxin Li and Hao Yan and Qiran Gong and Senzhang Wang and Lin Liu and Lihong Wang and Xiang Ren},
  title = {{Dynamic network embedding via incremental skip-gram with negative sampling}},
  journal = {Science China Information Sciences},
  year = {2020},
  url = {https://openreview.net/forum?id=GMgIp5lSqdL},
}
Figure