Abstract
This paper presents a distributed infrastructure designed to train graph embeddings on a massive scale, reaching tens of millions of nodes, without the computational burden of graph partitioning. By employing a centralized parameter server architecture and asynchronous training, the system overcomes the "memory wall" associated with large-scale networks. Experimental results on the Friendster dataset demonstrate that increasing the number of worker nodes not only accelerates training but also enhances link-prediction accuracy, suggesting a global regularization effect that helps capture graph topology more effectively.
Introduction
Graph embeddings—mapping nodes in a network to dense vectors—are vital for modern recommendation engines and social network analysis. However, as graphs scale to millions or billions of nodes, traditional algorithms face significant memory constraints. Common solutions involving graph partitioning are often computationally expensive (NP-hard) and lead to information loss at partition boundaries, biasing the resulting model. This work proposes a system that maintains a global view of the graph, avoiding partitioning while scaling horizontally to "billion-wide" graphs.
System Architecture and Methodology
The proposed architecture decouples graph traversal from neural network training. It utilizes Skip-gram with Noise Contrastive Estimation (NCE) for memory efficiency, treating embedding as a binary classification task. This allows workers to load only the vectors necessary for their specific training batch.
Key components include:
- Centralized Parameter Servers: These store the "source of truth" for embedding vectors. To handle massive vocabularies, the embedding table is partitioned row-wise by vertex ID across multiple servers.
- Dynamic Computational Graphs: Worker nodes retrieve data, request embeddings from the server, and build local TensorFlow graphs dynamically. This enables the use of GPUs even when the total model size exceeds GPU memory.
- Asynchronous Training: Utilizing a HogWild!-style approach, workers update central servers without locks. In massive graphs, the low probability of simultaneous updates to the same node minimizes the impact of stale gradients.
Experimental Evaluation
The system was evaluated on two massive datasets:
- Friendster: A public social network graph with 68.3 million vertices and 2.5 billion edges.
- Internal Heterogeneous Graph (IHG): A private dataset with 50.9 million vertices and 280 million edges across two vertex types.
Results and Discussion
A primary finding of this research is the "More is Better" phenomenon. Unlike many distributed systems that suffer from diminishing returns due to synchronization overhead, this framework showed improved accuracy as the worker count increased.
On the Friendster dataset, increasing the worker count from 7 to 28 improved link-prediction accuracy from 67% to 72%. Furthermore, the 28-worker setup reached a 70% accuracy threshold in roughly 500 steps, whereas the 7-worker setup failed to reach that threshold even after 1000 steps. The authors hypothesize that more workers provide more frequent gradient updates from diverse neighborhoods, acting as a form of global regularization.
Performance on the IHG dataset was even stronger, achieving 90% accuracy. This suggests that the system effectively exploits structural signals in heterogeneous graphs.
Conclusion and Future Work
This distributed framework successfully scales graph embedding training to tens of millions of nodes while improving accuracy through increased parallelism. Future work will focus on enhancing fault tolerance for parameter servers, extending support for more complex multi-entity schemas (e.g., metapath2vec), and conducting more rigorous downstream evaluations such as node classification and production-level recommendation quality.
Summary updated