LCP:一种低通信量的图像识别神经网络快速推理算法
LCP: A Low-Communication Parallelization Method for Fast Neural Network Inference in Image Recognition
摘要:
深度神经网络(DNN)激发了机器人、自主代理和物联网(IoT)设备等无数边缘应用的新研究。然而,在边缘中执行DNN的推理仍然是一个严峻的挑战,主要是因为DNN的密集资源需求与几个边缘域中的紧张资源可用性之间的矛盾。此外,由于通信成本高昂,因此通过使用数据或模型并行方法来利用其他可用的边缘设备并不是有效的解决方案。为了利用低通信开销的可用计算资源,我们提出了第一种DNN并行化方法,用于减少分布式系统中的通信开销。我们提出了一种低通信并行化(LCP)的方法,其中模型由几个几乎独立和狭窄的分支。LCP提供了接近最小的通信开销,具有更好的分布和并行化机会,同时与数据和模型并行方法相比,显着减少了内存占用和计算。我们在三个分布式系统上部署LCP模型:AWS实例,Raspberry Pis和PYNQ板。我们还评估了LCP模型在定制硬件(针对低延迟量身定制)上的性能,该硬件在小型边缘FPGA上实现,并作为16 mW 0.107mm2 ASIC@7nm芯片。与原始模型相比,LCP模型实现了56倍和7倍的最大和平均加速比,通过合并修剪和量化等常见优化,可以将其平均加速比提高到33倍。
英文摘要:
Deep neural networks (DNNs) have inspired new studies in myriad edge applications with robots, autonomous agents, and Internet-of-things (IoT) devices. However, performing inference of DNNs in the edge is still a severe challenge, mainly because of the contradiction between the intensive resource requirements of DNNs and the tight resource availability in several edge domains. Further, as communication is costly, taking advantage of other available edge devices by using data- or model-parallelism methods is not an effective solution. To benefit from available compute resources with low communication overhead, we propose the first DNN parallelization method for reducing the communication overhead in a distributed system. We propose a low-communication parallelization (LCP) method in which models consist of several almost-independent and narrow branches. LCP offers close-to-minimum communication overhead with better distribution and parallelization opportunities while significantly reducing memory footprint and computation compared to data- and model-parallelism methods. We deploy LCP models on three distributed systems: AWS instances, Raspberry Pis, and PYNQ boards. We also evaluate the performance of LCP models on a customized hardware (tailored for low latency) implemented on a small edge FPGA and as a 16mW 0.107mm2 ASIC @7nm chip. LCP models achieve a maximum and average speedups of 56x and 7x, compared to the originals, which could be improved by up to an average speedup of 33x by incorporating common optimizations such as pruning and quantization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。