Billion-scale Network Embedding with Iterative Random Projection

Ziwei Zhang, Peng Cui, Haoyang Li, Xiao Wang, Wenwu Zhu

Abstract

RandNE (Iterative Random Projection Network Embedding) is a remarkably simple yet powerful method for generating node embeddings on a massive scale. By swapping computationally expensive optimization (like SGD) for an iterative Gaussian random projection approach, RandNE can embed a network with 250 million nodes and 4.8 billion edges in just 7 hours—outperforming state-of-the-art methods in speed by two orders of magnitude while maintaining comparable accuracy.

Introduction

Network embedding—mapping nodes in a graph to low-dimensional vectors—is essential for modern recommendation systems and social network analysis. However, as networks grow to "billion-scale" (billions of nodes and edges), traditional learning-based methods like DeepWalk or node2vec hit a wall.

The primary bottlenecks are:

  1. Computational Complexity: Most methods rely on Stochastic Gradient Descent (SGD), which requires many iterations to converge.
  2. Communication Costs: In distributed settings, workers must constantly sync global embedding information, creating a massive data bottleneck.
  3. High-Order Proximity: To handle the extreme sparsity of real-world networks, you need to capture "high-order" relationships. Calculating these proximity matrices explicitly is mathematically exhausting and often results in dense matrices that won't fit in memory.

Methodology: Iterative Random Projection

The authors propose RandNE, which shifts the paradigm from learning embeddings to projecting them.

  • Gaussian Random Projection: Instead of optimizing a loss function, they use a random matrix to project the network's structure into a lower-dimensional space. This is backed by the Johnson-Lindenstrauss lemma, which guarantees that distances are mostly preserved.
  • Iterative Projection: To capture high-order proximity without calculating a massive $A^q$ matrix, they use an iterative process: $U_i = A \cdot U_{i-1}$. This allows them to compute the final embedding as a weighted sum of different "orders" of the network using only efficient, sparse matrix-matrix multiplications.
  • Embarrassingly Parallel: Because each column of the embedding matrix can be calculated independently, the algorithm can be distributed across servers with zero communication cost during the main calculation phase.
  • Dynamic Updating: They designed a procedure to incorporate new nodes or edges by only calculating the "delta" change, ensuring the system stays up-to-date without needing a full re-run.

Key Results

RandNE demonstrates exceptional performance in both efficiency and effectiveness across various benchmarks.

Running time comparison across datasets showing RandNE's significant speed advantage.
  • Massive Speedup: On moderate datasets, RandNE was 24x to 28x faster than baselines like DeepWalk and LINE. This efficiency scales linearly with the number of nodes and edges.
  • Billion-Scale Performance: RandNE embedded the WeChat network (250M nodes, 4.8B edges) in 7 hours using 16 servers. Other state-of-the-art methods could not even finish the task within a week.
Precision performance of RandNE compared to baselines for link prediction tasks.
  • Accuracy: Despite being much faster, RandNE achieved the highest AUC scores for network reconstruction on BlogCatalog and Flickr and remained highly competitive on link prediction and node classification tasks. As shown in the precision curves for predicted links, RandNE consistently outperforms traditional methods across different datasets.

Key Insights

  • Sparsity is the Enemy, Iteration is the Cure: Random projection usually fails on graphs because they are too sparse. By iteratively applying the adjacency matrix, RandNE "densifies" the information, capturing the essential high-order structure before the projection takes place.
  • Communication-Free Scaling: Most distributed graph algorithms spend more time "talking" than "thinking". RandNE’s mathematical structure allows servers to work in total isolation once they have the initial adjacency matrix and a shared random seed.

Limitations and Future Work

While RandNE is a powerhouse for structural embeddings, there are areas for growth:

  • Node Attributes: The current version focuses purely on network topology and does not natively incorporate node features (like user profiles).
  • Beyond Gaussian: Exploring other types of random projections might yield even better efficiency or accuracy.
  • Memory Constraints: While computation is distributed, the adjacency matrix still needs to be accessible. For networks exceeding single-server memory, more advanced distributed matrix multiplication techniques would be required.

Summary updated

BibTeX
@inproceedings{zhang2018billion,
  author = {Ziwei Zhang and Peng Cui and Haoyang Li and Xiao Wang and Wenwu Zhu},
  title = {{Billion-scale Network Embedding with Iterative Random Projection}},
  booktitle = {ICDM},
  year = {2018},
  url = {https://openreview.net/forum?id=vjfNDrO1zSH},
}
Figure