GraphVite: A High-Performance CPU-GPU Hybrid System for Node Embedding

Zhaocheng Zhu, Shizhen Xu, Jian Tang, Meng QuWWW 2019 · OpenReview

Abstract

GraphVite is a high-performance CPU-GPU hybrid system designed to scale node embedding training to graphs with billions of edges. By co-optimizing algorithms and hardware, GraphVite partitions tasks between the CPU (for graph augmentation) and the GPU (for training and negative sampling). This architecture achieves up to a 50x speedup over state-of-the-art systems, enabling the training of a 1.8-billion-edge graph in approximately 20 hours on a single machine without sacrificing accuracy.

Introduction

Node embedding—mapping graph nodes into low-dimensional continuous vectors—is a cornerstone of modern graph analysis, powering recommendation engines and social network insights. However, as real-world networks scale to tens of millions of nodes and billions of edges, existing systems encounter a "scalability wall." CPU-only systems like DeepWalk or LINE are too slow for billion-scale data, while standard GPU implementations are hampered by limited VRAM and the inefficiency of random walk sampling on GPU architectures.

Methods

GraphVite addresses these challenges by treating node embedding as a collaborative effort between the CPU and GPU, leveraging the unique strengths of each hardware component.

Overview of the GraphVite CPU-GPU hybrid architecture.

CPU-GPU Collaboration

  1. Parallel Online Augmentation (CPU): Instead of pre-calculating massive augmented graphs, CPUs generate edge samples on the fly via random walks. This utilizes the CPU's ability to handle random memory access efficiently while saving hundreds of gigabytes of storage.
  2. Parallel Negative Sampling (GPU): The core training logic is offloaded to the GPU. To overcome VRAM constraints, GraphVite partitions embedding matrices into a grid. Multiple GPUs work on "orthogonal" blocks—subsets that do not share rows or columns—allowing for simultaneous updates without synchronization overhead.
  3. Collaboration Strategy: A "ping-pong" approach uses dual sample pools in main memory. While the GPU trains on one pool, the CPU populates the second, ensuring maximum hardware utilization.
Block-based training and memory synchronization logic.

Optimization Techniques

To maintain the effectiveness of stochastic gradient descent (SGD), GraphVite employs a cache-friendly pseudo shuffle that provides necessary decorrelation without the performance penalty of a true random shuffle. Furthermore, the authors justify their grid-based partitioning through the concept of gradient exchangeability, showing that asynchronous updates do not significantly degrade model quality.

Datasets and Evaluation

The system was benchmarked against four large-scale networks:

  • Youtube: 1.1M nodes, 4.9M edges.
  • Friendster-small: 7.9M nodes, 447M edges.
  • Hyperlink-PLD: 39.5M nodes, 623M edges.
  • Friendster: 65.6M nodes, 1.8B edges.

Results

GraphVite demonstrates significant performance gains across all benchmarks:

  • Massive Speedup: On the Youtube dataset, GraphVite (with 4 GPUs) is 50.9x faster than LINE, completing training in 1.46 minutes compared to LINE's 1.24 hours.
  • Billion-Scale Efficiency: It successfully trained the 1.8B edge Friendster graph in 20.3 hours on a single machine, a task that typically takes most systems over a week.
  • No Accuracy Sacrifice: Despite the speed gains, GraphVite maintains or improves performance on downstream tasks like node classification and link prediction compared to DeepWalk and LINE.

Conclusion

GraphVite proves that co-designing algorithms for hybrid hardware can overcome the memory and compute bottlenecks of massive graph processing. By intelligently offloading random walks to the CPU and matrix updates to the GPU, the system enables billion-scale embedding on a single workstation. Future work aims to extend this architecture to semi-supervised learning and Graph Neural Networks (GNNs).

Summary updated

BibTeX
@misc{zhu2019graphvite,
  author = {Zhaocheng Zhu and Shizhen Xu and Jian Tang and Meng Qu},
  title = {{GraphVite: A High-Performance CPU-GPU Hybrid System for Node Embedding}},
  year = {2019},
  eprint = {1903.00757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.00757},
}
Figure