Online Dynamic Network Embedding

Haiwei Huang, Jinlong Li, Huimin He, Huanhuan ChenarXiv 2020

Abstract

Dynamic networks, such as social media platforms and financial transaction systems, evolve continuously, making traditional static embedding methods inefficient. We propose Recurrent Neural Network Embedding (RNNE), a framework that captures both structural proximity and temporal evolution. RNNE utilizes a recurrent autoencoder architecture and a "virtual node" strategy to handle varying network sizes. Our evaluation across diverse datasets shows that RNNE consistently outperforms existing static embedding baselines in tasks like link prediction and node classification.

Introduction

Network embedding maps high-dimensional graph data into low-dimensional vectors, facilitating downstream machine learning tasks. While static embedding is well-studied, real-world networks are inherently dynamic. Re-running static algorithms on every update is computationally prohibitive and fails to leverage temporal patterns. RNNE addresses three core challenges: preserving multi-order structural proximity, handling graph growth (node addition/deletion), and integrating historical information without accumulating noise.

Methodology

The RNNE framework consists of a pretreatment phase and a recurrent training model designed to process network snapshots over time.

Architecture and Data Flow

The core of RNNE is the RNNE cell, an RNN-based encoder-decoder structure. The encoder maps the input matrix (derived from high-order proximity) and the previous hidden state into a representation vector. The decoder then attempts to reconstruct the input to ensure global structure preservation.

The RNNE architecture, showing the internal cell structure (a) and the overall training pipeline (b).

To manage dynamic node counts, RNNE introduces virtual nodes. These nodes act as placeholders, allowing the model to maintain a constant input size $N$. When new nodes appear, they replace existing virtual nodes. Additionally, the model identifies "dangerous nodes" whose properties change drastically using the Grubbs test, ensuring they do not disrupt the training process.

Technical Definitions

The following table defines the primary symbols and variables used to formulate the RNNE framework:

Definitions of symbols and variables used in the RNNE model.

Loss Functions

RNNE optimizes a multi-part loss function to balance accuracy and stability:

  1. Reconstruction Loss: Minimizes the difference between the input and reconstructed features to preserve global structure.
  2. Local Structure Loss: Preserves first-order proximity (direct links) between nodes.
  3. Stability Loss: Encourages embeddings of the same node to remain consistent over time, mitigating the impact of temporary fluctuations or noise.

Experimental Evaluation

The researchers evaluated RNNE on five diverse datasets: Wiki, email-Eu-core, blogCatalog, CA-CondMat, and CA-HepPh. Each dataset was transformed into a series of 14 temporal snapshots to simulate real-world dynamics.

Key Results

  • Network Reconstruction & Link Prediction: RNNE consistently achieved higher precision@k scores compared to state-of-the-art baselines like SDNE and HOPE. It was especially effective at low $k$ values, which is critical for real-world recommendation systems.
  • Node Classification: On the Wiki and blogCatalog datasets, RNNE demonstrated superior Micro-F1 and Macro-F1 scores across various training percentages, proving its embeddings are more representative for downstream tasks.

Discussion and Conclusion

RNNE effectively balances the need for structural preservation with temporal stability. By utilizing high-order proximity and a recurrent architecture, it captures the broader neighborhood structure of nodes while remembering their evolutionary history. Future work will focus on scaling the architecture for massive graphs and incorporating probabilistic models to handle uncertainty in dynamic edges.

Summary updated

BibTeX
@misc{huang2020online,
  author = {Haiwei Huang and Jinlong Li and Huimin He and Huanhuan Chen},
  title = {{Online Dynamic Network Embedding}},
  year = {2020},
  eprint = {2006.16478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.16478},
}
Figure