Parallel Computation of Graph Embeddings

Chi Thang Duong, Hongzhi Yin, Thanh Dat Hoang, Truong Giang Le Ba, Matthias Weidlich, Quoc Viet Hung Nguyen, Karl AbererarXiv 2019

Abstract

Modern graph datasets often reach scales that exceed the memory capacity of individual commodity servers, making centralized graph embedding techniques impractical. This paper presents a scalable framework for parallelizing graph embeddings across resource-constrained nodes. By employing a "split-embed-reconcile" strategy, the framework partitions large graphs into manageable subgraphs, computes embeddings independently, and aligns the resulting vector spaces using shared "anchor" vertices. Experimental results on massive real-world datasets demonstrate significant speedups and superior quality retention compared to existing distributed baselines.

Introduction

Graph embedding is a foundational technique for mapping nodes into low-dimensional vector spaces, enabling downstream tasks such as social network analysis and recommendation systems. However, the exponential growth of graph data—often reaching billions of nodes and trillions of edges—poses a significant challenge. Storing such graphs can require terabytes of RAM, far beyond the limits of standard hardware.

Parallelization offers a path forward, but it introduces three critical hurdles: resource-aware partitioning to fit subgraphs into limited memory, space reconciliation to align disparate coordinate systems, and task-agnostic evaluation to measure embedding quality objectively. This paper addresses these challenges through a novel, scalable framework.

Methodology

The proposed framework follows a three-stage "split-embed-reconcile" pipeline designed to be agnostic to the underlying embedding algorithm.

The split-embed-reconcile framework pipeline.

1. Decomposition and Anchor Selection

The graph is first partitioned into $n$ subgraphs using METIS. To facilitate later alignment, the framework identifies "anchor" nodes—vertices that reside on the boundaries between subgraphs. The selection process prioritizes nodes with high connectivity, as these provide the most robust structural information for merging vector spaces.

2. Independent Embedding

Each compute node independently runs a standard embedding algorithm (e.g., DeepWalk or SGC) on its assigned subgraph. This modularity allows the framework to scale virtually any existing embedding technique without modification.

3. Space Reconciliation

Because independent embeddings result in disparate coordinate systems, the framework performs space reconciliation. One subgraph's space is designated as a "pivot," and other spaces are aligned to it via a linear transformation (rotation). This mapping is learned using the shared anchor nodes as reference points, calculated through Singular Value Decomposition (SVD).

Experimental Evaluation

The framework was evaluated on six diverse real-world datasets, including social networks (BlogCatalog, Flickr, Youtube), citation networks (Arxiv), and large-scale web graphs (Wikipedia with 25M+ edges and LiveJournal with 40M+ edges). Performance was measured using the Pairwise Inner Product (PIP) metric for intrinsic quality and standard F1-scores for vertex classification.

Results and Discussion

The experimental results highlight the framework's efficiency and robustness. On the LiveJournal dataset, the system achieved a 6.9x speedup using 8 compute nodes, demonstrating strong scalability.

Embedding quality (Micro-F1) vs. number of subgraphs for Livejournal and Wikipedia datasets.

A key finding is the framework's superiority over PyTorch-BigGraph (PBG). As shown in the figure above, while PBG's embedding quality degrades significantly as the number of subgraphs (and thus parallel nodes) increases, the proposed framework maintains stable Micro-F1 scores. Furthermore, in vertex classification tasks, the parallelized embeddings achieved results nearly identical to centralized versions, proving that the reconciliation process effectively preserves structural information.

Conclusion and Future Work

This paper demonstrates that parallel graph embedding can be achieved efficiently without sacrificing quality. The use of well-chosen anchor nodes and linear reconciliation provides a mathematically sound and practically effective solution for massive graphs.

Future research will explore the impact of high-speed interconnects in specialized HPC environments and investigate non-linear alignment functions for more complex embedding spaces. Additionally, further optimization of the anchor set size could reduce overhead for extremely large-scale graphs containing hundreds of billions of nodes.

Summary updated

BibTeX
@misc{duong2019parallel,
  author = {Chi Thang Duong and Hongzhi Yin and Thanh Dat Hoang and Truong Giang Le Ba and Matthias Weidlich and Quoc Viet Hung Nguyen and Karl Aberer},
  title = {{Parallel Computation of Graph Embeddings}},
  year = {2019},
  eprint = {1909.02977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.02977},
}
Figure