Reg-Tune: A Regression-Focused Fine-Tuning Approach for Profiling Low Energy Consumption and Latency

Author:

Mazumder Arnab Neelim1,Safavi Farshad1,Rahnemoonfar Maryam2,Mohsenin Tinoosh3

Affiliation:

1. University of Maryland Baltimore County, USA

2. Lehigh University, USA

3. Johns Hopkins University, USA

Abstract

Fine-tuning deep neural networks (DNNs) is pivotal for creating inference modules that can be suitably imported to edge or FPGA (Field Programmable Gate Arrays) platforms. Traditionally, exploration of different parameters throughout the layers of DNNs has been done using grid search and other brute force techniques. Though these methods lead to the optimal choice of network parameters, the search process can be very time-consuming and may not consider deployment constraints across different target platforms. This work addresses this problem by proposing Reg-Tune, a regression-based profiling approach to quickly determine the trend of different metrics in relation to hardware deployment of neural networks on tinyML platforms like FPGAs and edge devices. We start by training a handful of configurations belonging to different combinations of\(\mathcal {NN}\scriptstyle \langle q (quantization),\,s (scaling)\rangle \displaystyle \)or\(\mathcal {NN}\scriptstyle \langle r (resolution),\,s\rangle \displaystyle \)workloads to generate the accuracy values respectively for their corresponding application. Next, we deploy these configurations on the target device to generate energy/latency values. According to our hypothesis, the most energy-efficient configuration suitable for deployment on the target device is a function of the variablesq,r, ands. Finally, these trained and deployed configurations and their related results are used as data points for polynomial regression with the variablesq,r, andsto realize the trend for accuracy/energy/latency on the target device. Our setup allows us to choose the near-optimal energy-consuming or latency-driven configuration for the desired accuracy from the contour profiles of energy/latency across different tinyML device platforms. To this extent, we demonstrate the profiling process for three different case studies and across two platforms for energy and latency fine-tuning. Our approach results in at least 5.7 × better energy efficiency when compared to recent implementations for human activity recognition on FPGA and 74.6% reduction in latency for semantic segmentation of aerial imagery on edge devices compared to baseline deployments.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference55 articles.

1. 2021. Jetson Nano Developer Kit. (Apr 2021 ). https://developer.nvidia.com/embedded/jetson-nano-developer-kit 2021. Jetson Nano Developer Kit. (Apr 2021). https://developer.nvidia.com/embedded/jetson-nano-developer-kit

2. Mohamed  S. Abdelfattah et al. 2020. Codesign-NAS: Automatic FPGA/CNN Codesign Using Neural Architecture Search . In Proceedings of the 2020 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays (FPGA ’20) . Association for Computing Machinery, New York, NY, USA, 315. DOI: https://doi.org/10.1145/3373087.3375334 10.1145/3373087.3375334 Mohamed S. Abdelfattah et al. 2020. Codesign-NAS: Automatic FPGA/CNN Codesign Using Neural Architecture Search. In Proceedings of the 2020 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays (FPGA ’20). Association for Computing Machinery, New York, NY, USA, 315. DOI: https://doi.org/10.1145/3373087.3375334

3. Hande Alemdar et  al . 2017 . Ternary neural networks for resource-efficient AI applications . In 2017 International Joint Conference on Neural Networks (IJCNN). IEEE, IEEE , Anchorage, AK, USA, 2547–2554. Hande Alemdar et al. 2017. Ternary neural networks for resource-efficient AI applications. In 2017 International Joint Conference on Neural Networks (IJCNN). IEEE, IEEE, Anchorage, AK, USA, 2547–2554.

4. Embedded Low-Power Processor for Personalized Stress Detection; al N. Attaran;IEEE Transactions on Circuits and Systems II: Express Briefs PP,2018

5. Oresti Banos et  al . 2014. mHealthDroid: A Novel Framework for Agile Development of Mobile Health Applications . In Ambient Assisted Living and Daily Activities . Springer International Publishing , Cham , 91–98. Oresti Banos et al. 2014. mHealthDroid: A Novel Framework for Agile Development of Mobile Health Applications. In Ambient Assisted Living and Daily Activities. Springer International Publishing, Cham, 91–98.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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