Decision Early-Exit: An Efficient Approach to Hasten Offloading in BranchyNets

Mariana S. M. Barbosa, R. G. Pacheco, R. S. Couto, Dianne S. V. Medeiros, M. Campista
{"title":"Decision Early-Exit: An Efficient Approach to Hasten Offloading in BranchyNets","authors":"Mariana S. M. Barbosa, R. G. Pacheco, R. S. Couto, Dianne S. V. Medeiros, M. Campista","doi":"10.1109/LATINCOM56090.2022.10000430","DOIUrl":null,"url":null,"abstract":"Many works study partitioning and early exits in Deep Neural Networks (DNNs) to improve the inference time. Early exits allow the inference of samples in advance, based on the fact that some features are learned at DNNs’ initial layers. However, usage of early exits can slightly decrease performance. Partitioning enables the shallowest part of the model to reside at the edge while the deeper layers reside in the cloud. Deciding whether samples must be sent to the cloud at each early exit is time consuming, increasing the total inference time. Hence, reducing this time while maintaining the model performance is currently an open challenge. In this paper, we propose a Decision Early Exit (DEEx), implemented at the first early exit, aiming to reduce the total inference time by skipping unnecessary evaluations at early exits, which may not able to improve the model’s performance. To this end, the DEEx compares a predefined decision threshold with the prediction confidence level for each sample and decides whether the sample must be offloaded. We assess DEEx through a comparative analysis that investigates the influence of different values for the decision threshold on the inference time. Our results show that there is a cost benefit between the inference time and the threshold. Using DEEx in a simulated BranchyNet, we can reduce the inference time by around 20% while maintaining the same accuracy achieved when the samples are offloaded.","PeriodicalId":221354,"journal":{"name":"2022 IEEE Latin-American Conference on Communications (LATINCOM)","volume":"14 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE Latin-American Conference on Communications (LATINCOM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/LATINCOM56090.2022.10000430","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Many works study partitioning and early exits in Deep Neural Networks (DNNs) to improve the inference time. Early exits allow the inference of samples in advance, based on the fact that some features are learned at DNNs’ initial layers. However, usage of early exits can slightly decrease performance. Partitioning enables the shallowest part of the model to reside at the edge while the deeper layers reside in the cloud. Deciding whether samples must be sent to the cloud at each early exit is time consuming, increasing the total inference time. Hence, reducing this time while maintaining the model performance is currently an open challenge. In this paper, we propose a Decision Early Exit (DEEx), implemented at the first early exit, aiming to reduce the total inference time by skipping unnecessary evaluations at early exits, which may not able to improve the model’s performance. To this end, the DEEx compares a predefined decision threshold with the prediction confidence level for each sample and decides whether the sample must be offloaded. We assess DEEx through a comparative analysis that investigates the influence of different values for the decision threshold on the inference time. Our results show that there is a cost benefit between the inference time and the threshold. Using DEEx in a simulated BranchyNet, we can reduce the inference time by around 20% while maintaining the same accuracy achieved when the samples are offloaded.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
决策早退出:一种加速分支网络卸载的有效方法
许多工作研究了深度神经网络(dnn)的划分和早期退出,以提高推理时间。基于在dnn的初始层学习到一些特征的事实,早期出口允许提前对样本进行推断。但是,使用早期出口可能会略微降低性能。划分使模型最浅的部分驻留在边缘,而较深的层驻留在云中。在每次提前退出时决定是否必须将样本发送到云端是非常耗时的,这会增加总推断时间。因此,在保持模型性能的同时减少这个时间是当前的一个公开挑战。在本文中,我们提出了一个决策早期退出(DEEx),在第一个早期退出时实现,旨在通过跳过早期退出时不必要的评估来减少总推理时间,这可能无法提高模型的性能。为此,DEEx将预定义的决策阈值与每个样本的预测置信水平进行比较,并决定样本是否必须卸载。我们通过比较分析来评估DEEx,研究不同决策阈值对推理时间的影响。我们的结果表明,在推理时间和阈值之间存在成本效益。在模拟的BranchyNet中使用DEEx,我们可以将推理时间减少约20%,同时保持卸载样本时达到的相同精度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Multi-band Optical Network Assisted by GNPy: an Experimental Demonstration A Stacked Ensemble Classifier for an Intrusion Detection System in the Edge of IoT and IIoT Networks A Novel Short-term Vehicle Location Prediction using Temporal Graph Neural Networks LATINCOM 2022 Message from the General Chairs LATINCOM 2022 TOC
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1