摘要
深度神经网络在边缘设备上运行时会面临模型缩放和域自适应2个挑战,现有的模型缩放技术和无监督在线域自适应技术存在缩放粒度粗、缩放空间小和在线域自适应时间长的问题。针对这2个挑战,提出一种块粒度的模型缩放和域自适应训练方法EdgeScaler,它包括离线和在线2个阶段。针对模型缩放挑战,离线阶段能够从各种DNN中检测和抽取块,并将其转换为多个派生块;在线阶段基于块和块之间的组合,提供大规模的缩放空间,解决模型缩放问题。针对域自适应挑战,设计了一种针对于块的残差Adapter,在离线阶段将其插入块中;在线阶段当新的目标域到来时,对所有的Adapter进行训练,解决块粒度缩放空间中所有选项的域自适应问题。在真实的边缘设备Jetson TX2上的测试结果表明,在提供大规模缩放选项的基础上,所提方法可以将域自适应训练时间平均减少85.14%,训练能耗平均减少84.1%。
Running deep neural networks on edge devices faces two challenges:model scaling and domain adaptation.Existing model scaling techniques and unsupervised online domain adaptation techniques suffer from coarse scaling granularity,limited scaling space,and long online domain adaptation time.To address these two challenges,this paper proposes a block-grained model scaling and domain adaptation training method called EdgeScaler,which consists of offline and online phases.For the model scaling challenge,in the offline phase,blocks are detected and extracted from various DNN and then are converted into multiple derived blocks.In the online phase,based on the combination of blocks and the connections between them,a large-scale scaling space is provided to solve the model scaling problem.For the domain adaptation challenge,a block-specific residual Adapter is designed,which is inserted into the blocks in the offline phase.In the online phase,when a new target domain arrives,all adapters are trained to solve the domain adaptation problem for all options in the block-grained scaling space.Test results on the real edge device,Jetson TX2,show that EdgeScaler can reduce the domain adaptation training time by an average of 85.14%and reduce the training energy consumption by an average of 84.1%,while providing a large-scale scaling option.
作者
辛高枫
刘玉潇
张青龙
韩锐
刘驰
XIN Gao-feng;LIU Yu-xiao;ZHANG Qing-long;HAN Rui;LIU Chi(School of Computer Science&Technology,Beijing Institute of Technology,Beijing 100081,China)
出处
《计算机工程与科学》
CSCD
北大核心
2024年第8期1361-1371,共11页
Computer Engineering & Science
基金
国家重点研发计划(2021YFB3301500)
国家自然科学基金(62272046,62132019,61872337)。
关键词
深度神经网络
边缘设备
弹性缩放
块
域自适应
deep neural network
edge device
elastic scaling
block
domain adaptation