Efficient Graph Embedding at Scale: Optimizing CPU-GPU-SSD Integration

Zhonggen Li, Xiangyu Ke, Yifan Zhu, Yunjun Gao, Feifei Li · DOI

Abstract

Graph embedding is essential for large-scale applications but faces significant scalability challenges due to the "memory wall." Traditional systems are either expensive (RAM-based) or slow (Disk-based) due to CPU-mediated I/O bottlenecks. We present Legend, a heterogeneous system that integrates NVMe SSDs directly with GPUs. By utilizing a prefetch-friendly iteration order and a lightweight custom driver for direct GPU-SSD access, Legend achieves up to 4.8x speedup over state-of-the-art systems, enabling a single GPU to process billion-node datasets with high efficiency.

Introduction

Graph embeddings—converting complex network nodes into continuous mathematical vectors—are the backbone of modern recommendation engines, drug discovery, and fraud detection. However, as graphs grow to billions of edges, they hit a "memory wall." Existing systems face a lose-lose trade-off between cost and performance.

RAM-based systems (like DGL-KE) are fast but prohibitively expensive, requiring massive amounts of high-cost CPU memory to store embedding vectors. Conversely, disk-based systems (like Marius) are cost-effective but slow. They rely on the CPU to fetch data from SSDs and move it to the GPU, creating a massive I/O bottleneck that leaves the powerful GPU sitting idle for up to 40% of the training time.

Comparison of architectural approaches: (a) RAM-based, (b) Disk-based, and (c) the proposed Legend system.

Legend breaks this bottleneck by treating the NVMe SSD as a primary participant in the computation, rather than just a slow storage bin, as illustrated in the architectural comparison above.

The Legend System Architecture

Legend redefines the data flow between CPU, GPU, and SSD through three primary innovations designed to maximize hardware utilization and minimize latency.

Strategic Data Placement and Direct Access

Legend stores massive embedding vectors and optimizer states on NVMe SSDs while keeping the relatively small edge data in RAM. This allows the CPU to manage control logic while the GPU handles the heavy lifting of data retrieval and computation. Instead of using standard, heavy OS storage stacks, Legend uses a lightweight, custom driver. It utilizes parallel NVMe queue management and a "low-cost doorbell ringing" strategy to allow GPU threads to request data directly from the SSD with minimal overhead.

Detailed system architecture and data flow of Legend, showing the interaction between NVMe SSD, RAM, CPU, and GPU.

Prefetch-Friendly Iteration

Finding the mathematically "perfect" order to load data partitions while minimizing I/O is NP-hard. To solve this, Legend employs a heuristic column separation covering strategy. This algorithm ensures that while the GPU is calculating gradients for one set of data, the next required partition is already being "prefetched" from the SSD into GPU memory. If the computation time for a batch exceeds the fetch time for the next, the system achieves near-100% efficiency.

Tensor Core Optimization

Legend leverages NVIDIA Tensor Cores to accelerate the complex matrix multiplications involved in gradient updates, reusing intermediate results to minimize redundant memory access.

Evaluation

Datasets

The system was evaluated on four diverse, large-scale datasets: FB15k (knowledge graph), LiveJournal (social network), Twitter (41.6M nodes, 1.3B edges), and Freebase86M (86.1M nodes).

Key Results

  • Massive Speedups: Legend achieved a 4.8× speedup over Marius and a 2.4× speedup over GE² on the Twitter dataset.
  • Efficiency at Scale: On the billion-scale Twitter dataset, Legend running on a single GPU delivered performance comparable to GE² running on four GPUs.
  • High GPU Utilization: While competitor systems saw GPU utilization average around 58% due to waiting for data, Legend maintained an average utilization of 96.79%.
  • Cost-Effectiveness: By using SSDs instead of RAM, Legend reduces storage expenses by roughly 16× compared to RAM-heavy systems while maintaining superior speed.

Conclusion and Future Work

Legend demonstrates that by enabling GPU-SSD direct access and optimizing iteration orders, the CPU bottleneck in large-scale machine learning can be effectively removed. Future work includes extending the system to multi-GPU clusters and exploring multi-SSD configurations to further scale I/O bandwidth.

Summary updated

BibTeX
@misc{li2025efficient,
  author = {Zhonggen Li and Xiangyu Ke and Yifan Zhu and Yunjun Gao and Feifei Li},
  title = {{Efficient Graph Embedding at Scale: Optimizing CPU-GPU-SSD Integration}},
  year = {2025},
  eprint = {2505.09258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.09258},
}
Figure