arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.00757cs.LGcs.DCstat.ML
收藏

GraphVite:一种高性能的CPU-GPU混合节点嵌入系统

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

Mila - Québec AI Institute(米拉-魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);Tsinghua University(清华大学);HEC Montréal(蒙特利尔高等商学院)

Zhaocheng Zhu, Shizhen Xu, Meng Qu, Jian Tang

摘要:

最近,学习节点的连续表示吸引了学术界和工业界越来越多的兴趣,由于其在各种应用中的简单性和有效性。现有的节点嵌入算法和系统大多能够处理具有数十万或数百万节点的网络。然而,如何将它们扩展到具有数千万甚至数亿个节点的网络仍然是一个具有挑战性的问题。在本文中,我们提出了GraphVite,一个高性能的CPU-GPU混合系统的训练节点嵌入,通过共同优化的算法和系统。在CPU端,增强的边缘样本通过随机游走以在线方式在网络上并行生成,并用作训练数据。在GPU端,提出了一种新的并行负采样方法,利用多个GPU同时训练节点嵌入,无需大量的数据传输和同步。此外,提出了一种有效的协作策略,以进一步降低CPU和GPU之间的同步成本。在多个真实网络上的实验表明,GraphVite是超级高效的。对于一个拥有100万个节点和500万条边的网络,在一台拥有4个GPU的机器上只需要大约1分钟,而对于一个拥有6600万个节点和18亿条边的网络,则需要大约20小时。与目前最快的系统相比,GraphVite的速度快了约50倍,而性能没有任何损失。

英文摘要:

Learning continuous representations of nodes is attracting growing interest in both academia and industry recently, due to their simplicity and effectiveness in a variety of applications. Most of existing node embedding algorithms and systems are capable of processing networks with hundreds of thousands or a few millions of nodes. However, how to scale them to networks that have tens of millions or even hundreds of millions of nodes remains a challenging problem. In this paper, we propose GraphVite, a high-performance CPU-GPU hybrid system for training node embeddings, by co-optimizing the algorithm and the system. On the CPU end, augmented edge samples are parallelly generated by random walks in an online fashion on the network, and serve as the training data. On the GPU end, a novel parallel negative sampling is proposed to leverage multiple GPUs to train node embeddings simultaneously, without much data transfer and synchronization. Moreover, an efficient collaboration strategy is proposed to further reduce the synchronization cost between CPUs and GPUs. Experiments on multiple real-world networks show that GraphVite is super efficient. It takes only about one minute for a network with 1 million nodes and 5 million edges on a single machine with 4 GPUs, and takes around 20 hours for a network with 66 million nodes and 1.8 billion edges. Compared to the current fastest system, GraphVite is about 50 times faster without any sacrifice on performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑