arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.11180cs.CV
收藏

DISCO:稀疏通信的分布式推理

DISCO: Distributed Inference with Sparse Communications

Western Digital(西部数据公司)

Minghai Qin, Chao Sun, Jaco Hofmann, Dejan Vucinic

摘要:

深度神经网络(DNN)具有解决许多现实问题的巨大潜力,但它们通常需要大量的计算和内存。将大型DNN模型部署到具有小内存容量的单个资源有限的设备上是非常困难的。分布式计算是减少单节点内存消耗和加速DNN模型推理的常用方法。在本文中,我们探讨了“层内模型并行“,它分布到多个节点的每一层的推理。通过这种方式,内存需求可以分布到许多节点,从而可以使用多个边缘设备来推断大型DNN模型。由于每个层内的依赖性,当通信带宽受限时,在该并行推理期间节点之间的数据通信可能成为瓶颈。我们提出了一个训练DNN模型的框架,用于稀疏通信分布式推理(DISCO)。我们将选择在节点之间传输哪个数据子集的问题转换为模型优化问题,并在多个节点上推断每一层时推导出同时减少计算和通信的模型。我们展示了DISCO框架在各种CV任务上的优势,如图像分类、目标检测、语义分割和图像超分辨率。相应的模型包括重要的DNN构建块,如卷积和Transformers。例如,ResNet-50模型的每一层都可以在两个节点上分布式推断,数据通信减少了五倍,单个节点的总计算量和内存需求几乎减少了一半,并且实现了与原始ResNet-50模型相当的准确性。这也导致了4.7倍的整体推理加速。

英文摘要:

Deep neural networks (DNNs) have great potential to solve many real-world problems, but they usually require an extensive amount of computation and memory. It is of great difficulty to deploy a large DNN model to a single resource-limited device with small memory capacity. Distributed computing is a common approach to reduce single-node memory consumption and to accelerate the inference of DNN models. In this paper, we explore the "within-layer model parallelism", which distributes the inference of each layer into multiple nodes. In this way, the memory requirement can be distributed to many nodes, making it possible to use several edge devices to infer a large DNN model. Due to the dependency within each layer, data communications between nodes during this parallel inference can be a bottleneck when the communication bandwidth is limited. We propose a framework to train DNN models for Distributed Inference with Sparse Communications (DISCO). We convert the problem of selecting which subset of data to transmit between nodes into a model optimization problem, and derive models with both computation and communication reduction when each layer is inferred on multiple nodes. We show the benefit of the DISCO framework on a variety of CV tasks such as image classification, object detection, semantic segmentation, and image super resolution. The corresponding models include important DNN building blocks such as convolutions and transformers. For example, each layer of a ResNet-50 model can be distributively inferred across two nodes with five times less data communications, almost half overall computations and half memory requirement for a single node, and achieve comparable accuracy to the original ResNet-50 model. This also results in 4.7 times overall inference speedup.

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

↑