Skip to main content
QUICK REVIEW

[论文解读] Dorylus: Affordable, Scalable, and Accurate GNN Training with Distributed CPU Servers and Serverless Threads

John Thorpe, Yifan Qiao|arXiv (Cornell University)|May 24, 2021
Advanced Graph Neural NetworksComputer Science被引用 25
一句话总结

Dorylus 在使用分布式 CPU 服务器和数千个 Lambda 线程的前提下,进行计算分离与有界异步的训练,在十亿边图上训练 GNN,相较于基于 GPU 和采样的方法基线,取得更高准确性且成本更低。

ABSTRACT

A graph neural network (GNN) enables deep learning on structured graph data. There are two major GNN training obstacles: 1) it relies on high-end servers with many GPUs which are expensive to purchase and maintain, and 2) limited memory on GPUs cannot scale to today's billion-edge graphs. This paper presents Dorylus: a distributed system for training GNNs. Uniquely, Dorylus can take advantage of serverless computing to increase scalability at a low cost. The key insight guiding our design is computation separation. Computation separation makes it possible to construct a deep, bounded-asynchronous pipeline where graph and tensor parallel tasks can fully overlap, effectively hiding the network latency incurred by Lambdas. With the help of thousands of Lambda threads, Dorylus scales GNN training to billion-edge graphs. Currently, for large graphs, CPU servers offer the best performance-per-dollar over GPU servers. Just using Lambdas on top of CPU servers offers up to 2.75x more performance-per-dollar than training only with CPU servers. Concretely, Dorylus is 1.22x faster and 4.83x cheaper than GPU servers for massive sparse graphs. Dorylus is up to 3.8x faster and 10.7x cheaper compared to existing sampling-based systems.

研究动机与目标

  • 解决在十亿边图上基于 GPU 的 GNN 训练成本高和内存限制的问题。
  • 提出一种支持无服务器架构的分布式 GNN 训练框架,将 CPU 服务器与 Lambda 线程结合。
  • 设计一个计算分离的流水线,以重叠图任务和张量任务并隐藏网络延迟。
  • 引入有界异步训练,并提供确保收敛的机制(权重存放和有界陈旧性)。
  • 在真实世界的十亿边图上展示 GCN 和 GAT 的实际训练,具备有利的性价比指标。

提出的方法

  • 将训练拆分为图并行任务(在 CPU 图服务器上)和张量并行任务(在 Lambda 线程上)。
  • 使用细粒度任务 GA、SC、AV、AE 及其反向传播对应任务来形成一个深度流水线。
  • 在更新时进行权重存放并在邻居聚集时实现有界陈旧性,以实现有界异步执行并保持收敛。
  • 在参数服务器上复制权重矩阵并分配区间特定的权重存放,以平衡负载和数据局部性。
  • 实现 Lambda 管理、任务融合和张量重新材料化,以优化 Lambda 的利用率和带宽。
  • 提供一个端到端的 BPAC 流水线,重叠图和张量计算以隐藏 Lambda 通信延迟。

实验结果

研究问题

  • RQ1如何在不降低准确性的前提下,使在十亿边图上的 GNN 训练变得更加负担得起?
  • RQ2无服务器线程(Lambdas)能否与基于 CPU 的图处理有效结合,以实现可扩展的 GNN 训练?
  • RQ3带有计算分离的有界异步流水线是否在 GNN 训练中收敛,且在何种条件下?
  • RQ4与仅 GPU 或仅 CPU 的基线相比,以及与基于采样的方法相比,Dorylus 的实际性能与成本收益有哪些?

主要发现

  • 在同一预算下,Dorylus 对 GPU-only 后端的性能提升 2.05x,对 CPU-only 后端的性能提升 1.83x,覆盖四个真实世界的图。
  • 在 Dorylus 架构之上使用 Lambda,性能/美元最高提升至 2.75x,相较于仅 CPU 的服务器。
  • 对于大规模稀疏图,Dorylus 比 GPU 服务器快 1.22x,成本低 4.83x。
  • 相比现有的基于采样的系统,Dorylus 快 最高 3.8x,成本低 10.7x。
  • Dorylus 在十亿边图(如 Friendster)上不进行采样地训练一个 GCN,并且能够达到比采样方法更高的准确性(1.05x)。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。