Optimizing Deep Learning Inference on Embedded Systems Through Adaptive Model Selection

Author:

Marco Vicent Sanz1,Taylor Ben2ORCID,Wang Zheng3,Elkhatib Yehia2

Affiliation:

1. Osaka University, Japan

2. Lancaster University, United Kingdom

3. University of Leeds, United Kingdom

Abstract

Deep neural networks (DNNs) are becoming a key enabling technique 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. Although compression algorithms often succeed in reducing inferencing times, they come at the cost of reduced accuracy. This article 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 first by offline 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.

Funder

Engineering and Physical Sciences Research Council

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference81 articles.

1. J. J. Allaire Dirk Eddelbuettel Nick Golding and Yuan Tang. 2016. TensorFlow for R. Available at https://tensorflow.rstudio.com/. J. J. Allaire Dirk Eddelbuettel Nick Golding and Yuan Tang. 2016. TensorFlow for R. Available at https://tensorflow.rstudio.com/.

2. Dzmitry Bahdanau Kyunghyun Cho and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv:1409.0473. Dzmitry Bahdanau Kyunghyun Cho and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv:1409.0473.

3. Jiawang Bai Yiming Li Jiawei Li Yong Jiang and Shutao Xia. 2019. Rectified decision trees: Towards interpretability compression and empirical soundness. arxiv:1903.05965. Jiawang Bai Yiming Li Jiawei Li Yong Jiang and Shutao Xia. 2019. Rectified decision trees: Towards interpretability compression and empirical soundness. arxiv:1903.05965.

Cited by 43 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Certified Quantization Strategy Synthesis for Neural Networks;Lecture Notes in Computer Science;2024-09-11

2. Adapting Neural Networks at Runtime: Current Trends in At-Runtime Optimizations for Deep Learning;ACM Computing Surveys;2024-05-14

3. Artificial intelligence and edge computing for machine maintenance-review;Artificial Intelligence Review;2024-04-15

4. Green Edge AI: A Contemporary Survey;Proceedings of the IEEE;2024

5. ECADA: An Edge Computing Assisted Delay-Aware Anomaly Detection Scheme for ICS;2023 19th International Conference on Mobility, Sensing and Networking (MSN);2023-12-14

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3