arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.04946cs.LGcs.DCcs.PF
收藏

通过自适应模型选择优化嵌入式系统的深度学习推理

Optimizing Deep Learning Inference on Embedded Systems Through Adaptive Model Selection

Osaka University(大阪大学);Lancaster University(兰卡斯特大学);University of Leeds(利兹大学)

Vicent Sanz Marco, Ben Taylor, Zheng Wang, Yehia Elkhatib

摘要:

深度神经网络(DNN)正在成为许多应用领域的关键使能技术。然而,由于许多DNN的推理时间和资源要求太长,因此在电池供电的资源受限的嵌入系统上进行设备上的推理通常是不可行的。由于隐私问题、高延迟或缺乏连接,将计算卸载到云中通常是不可接受的。虽然压缩算法通常成功地减少了推理时间,但它们的代价是降低了准确性。本文提出了一种新的替代方法,可以在嵌入式设备上高效执行DNN。我们的方法通过考虑所需的精度和推理时间,动态地确定针对给定输入使用哪个DNN。它采用机器学习来开发低成本的预测模型,以快速选择用于给定输入和优化约束的预训练DNN。我们首先离线训练一个预测模型,然后使用学习的模型选择一个DNN模型来用于新的、看不见的输入。我们将我们的方法应用于两个代表性的DNN领域:图像分类和机器翻译。我们在Jetson TX2嵌入式深度学习平台上评估了我们的方法,并考虑了一系列有影响力的DNN模型,包括卷积和递归神经网络。对于图像分类,我们在推理时间上减少了1.8倍,准确率提高了7.52%,超过了最强大的单一DNN模型。对于机器翻译,我们实现了推理时间比最有能力的单一模型减少1.34倍,对翻译质量的影响很小。

英文摘要:

Deep neural networks ( DNNs ) are becoming a key enabling technology for many application domains. However, on-device inference on battery-powered, resource-constrained embedding systems is often infeasible due to prohibitively long inferencing time and resource requirements of many DNNs. Offloading computation into the cloud is often unacceptable due to privacy concerns, high latency, or the lack of connectivity. While compression algorithms often succeed in reducing inferencing times, they come at the cost of reduced accuracy. This paper presents a new, alternative approach to enable efficient execution of DNNs on embedded devices. Our approach dynamically determines which DNN to use for a given input, by considering the desired accuracy and inference time. It employs machine learning to develop a low-cost predictive model to quickly select a pre-trained DNN to use for a given input and the optimization constraint. We achieve this by first off-line training a predictive model, and then using the learned model to select a DNN model to use for new, unseen inputs. We apply our approach to two representative DNN domains: image classification and machine translation. We evaluate our approach on a Jetson TX2 embedded deep learning platform and consider a range of influential DNN models including convolutional and recurrent neural networks. For image classification, we achieve a 1.8x reduction in inference time with a 7.52% improvement in accuracy, over the most-capable single DNN model. For machine translation, we achieve a 1.34x reduction in inference time over the most-capable single model, with little impact on the quality of translation.

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

↑