无损协同推理的动态DNN分解
Dynamic DNN Decomposition for Lossless Synergistic Inference
摘要:
深度神经网络(DNN)在当今的数据处理应用中保持高性能。DNN推断是资源密集型的,因此难以适合移动终端。一种替代方案是将DNN推理卸载到云服务器。然而,这种方法需要在移动终端和云服务器之间进行大量的原始数据传输,这不适合于任务关键型和隐私敏感型应用,例如自动驾驶仪。为了解决这个问题,最近的进展使用边缘计算范式释放了DNN服务。现有的方法将DNN分成两个部分,并将两个分区部署到两个边缘计算层的计算节点。尽管如此,这些方法忽略了协作设备-边缘-云计算资源。此外,以前的算法需要整个DNN重新划分,以适应计算资源的变化和网络动态。此外,对于需要资源的卷积层,现有的工作没有给出在边缘侧不损失精度的并行处理策略。为了解决这些问题,我们提出了D3,这是一个动态DNN分解系统,用于协同推理而不会损失精度。所提出的系统引入了一种启发式算法,称为水平划分算法,分为三个部分的DNN。该算法可以在运行时间根据处理时间和网络状况部分调整分区。在边缘侧,垂直分离模块将特征图分离成可以在不同边缘节点上并行独立运行的图块。对五种流行DNN的广泛定量评估表明,D3在端到端DNN推理时间方面优于最先进的同行高达3.4倍,并将骨干网络通信开销降低了3.68倍。
英文摘要:
Deep neural networks (DNNs) sustain high performance in today's data processing applications. DNN inference is resource-intensive thus is difficult to fit into a mobile device. An alternative is to offload the DNN inference to a cloud server. However, such an approach requires heavy raw data transmission between the mobile device and the cloud server, which is not suitable for mission-critical and privacy-sensitive applications such as autopilot. To solve this problem, recent advances unleash DNN services using the edge computing paradigm. The existing approaches split a DNN into two parts and deploy the two partitions to computation nodes at two edge computing tiers. Nonetheless, these methods overlook collaborative device-edge-cloud computation resources. Besides, previous algorithms demand the whole DNN re-partitioning to adapt to computation resource changes and network dynamics. Moreover, for resource-demanding convolutional layers, prior works do not give a parallel processing strategy without loss of accuracy at the edge side. To tackle these issues, we propose D3, a dynamic DNN decomposition system for synergistic inference without precision loss. The proposed system introduces a heuristic algorithm named horizontal partition algorithm to split a DNN into three parts. The algorithm can partially adjust the partitions at run time according to processing time and network conditions. At the edge side, a vertical separation module separates feature maps into tiles that can be independently run on different edge nodes in parallel. Extensive quantitative evaluation of five popular DNNs illustrates that D3 outperforms the state-of-the-art counterparts up to 3.4 times in end-to-end DNN inference time and reduces backbone network communication overhead up to 3.68 times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。