arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.14895cs.DCcs.LG
收藏

面向异构边缘计算推理的流水线并行

Pipeline Parallelism for Inference on Heterogeneous Edge Computing

University of Southern California(南加州大学);Google(谷歌)

Yang Hu, Connor Imes, Xuanang Zhao, Souvik Kundu, Peter A. Beerel, Stephen P. Crago, John Paul N. Walters

摘要:

具有大模型大小的深度神经网络在计算机视觉(CV)和自然语言处理(NLP)任务中实现了最先进的结果。然而,这些大规模模型对于资源受限的边缘设备来说过于计算或内存密集型。以前关于并行和分布式执行的工作主要集中在数据中心使用同构加速器的训练-而不是推理。我们提出了EdgePipe,这是一种用于边缘系统的分布式框架,它使用流水线并行来加快推理速度,并支持运行更大(更准确)的模型,否则无法在单个边缘设备上运行。EdgePipe通过使用考虑计算、内存和网络带宽异构性的最佳分区策略来实现这些结果。我们的实证评估表明,EdgePipe实现了$10.59\times$和$11.88\times$加速使用16个边缘设备的ViT-Large和ViT-Huge模型,分别没有准确性损失。类似地,EdgePipe在使用16个边缘设备的4节点基线上通过$3.93\times$提高了ViT-Huge吞吐量,这些边缘设备无法独立地将模型放入内存中。最后,我们显示了$4.16\times$吞吐量的改善,在国家的最先进的PipeDream时,使用一组异构设备。

英文摘要:

Deep neural networks with large model sizes achieve state-of-the-art results for tasks in computer vision (CV) and natural language processing (NLP). However, these large-scale models are too compute- or memory-intensive for resource-constrained edge devices. Prior works on parallel and distributed execution primarily focus on training -- rather than inference -- using homogeneous accelerators in data centers. We propose EdgePipe, a distributed framework for edge systems that uses pipeline parallelism to both speed up inference and enable running larger (and more accurate) models that otherwise cannot fit on single edge devices. EdgePipe achieves these results by using an optimal partition strategy that considers heterogeneity in compute, memory, and network bandwidth. Our empirical evaluation demonstrates that EdgePipe achieves $10.59\times$ and $11.88\times$ speedup using 16 edge devices for the ViT-Large and ViT-Huge models, respectively, with no accuracy loss. Similarly, EdgePipe improves ViT-Huge throughput by $3.93\times$ over a 4-node baseline using 16 edge devices, which independently cannot fit the model in memory. Finally, we show up to $4.16\times$ throughput improvement over the state-of-the-art PipeDream when using a heterogeneous set of devices.

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

↑