arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.11295cs.LGcs.AR
收藏

边缘设备上测试时无监督深度神经网络自适应的基准测试

Benchmarking Test-Time Unsupervised Deep Neural Network Adaptation on Edge Devices

Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室)

Kshitij Bhardwaj, James Diffenderfer, Bhavya Kailkhura, Maya Gokhale

摘要:

由于新数据分布的变化,深度神经网络(DNN)在边缘部署后的预测准确性可能会随着时间而受到影响。为了提高DNN的鲁棒性,它们必须能够自我更新,以提高其预测精度。在资源受限边缘处的这种适配是具有挑战性的,因为:(i)新的标记数据可能不存在;(ii)适配需要在设备上,因为到云的连接可能不可用;以及(iii)该过程不仅必须快速,而且还必须是存储器和能量高效的。最近,已经引入了轻量级预测时间无监督DNN自适应技术,其通过重新调整批量归一化(BN)参数来提高模型对噪声数据的预测准确性。本文首次对这些技术进行了全面的测量研究,以量化它们在各种边缘设备上的性能和能量,并找到瓶颈并提出优化机会。特别是,这项研究考虑了CIFAR-10-C图像分类数据集,三个强大的DNN(ResNeXt,Wide-ResNet,ResNet-18),两个BN自适应算法(一个更新归一化统计数据,另一个也优化了变换参数)和三个边缘设备(FPGA,Raspberry-Pi和Nvidia Xavier NX)。我们发现,在Xavier GPU上运行的仅使用Wide-ResNet更新归一化参数的方法在平衡多个成本指标方面总体上是有效的。然而,自适应开销仍然很大(大约213 ms)。这些结果强烈激发了算法-硬件协同设计的需求,以实现高效的设备上DNN自适应。

英文摘要:

The prediction accuracy of the deep neural networks (DNNs) after deployment at the edge can suffer with time due to shifts in the distribution of the new data. To improve robustness of DNNs, they must be able to update themselves to enhance their prediction accuracy. This adaptation at the resource-constrained edge is challenging as: (i) new labeled data may not be present; (ii) adaptation needs to be on device as connections to cloud may not be available; and (iii) the process must not only be fast but also memory- and energy-efficient. Recently, lightweight prediction-time unsupervised DNN adaptation techniques have been introduced that improve prediction accuracy of the models for noisy data by re-tuning the batch normalization (BN) parameters. This paper, for the first time, performs a comprehensive measurement study of such techniques to quantify their performance and energy on various edge devices as well as find bottlenecks and propose optimization opportunities. In particular, this study considers CIFAR-10-C image classification dataset with corruptions, three robust DNNs (ResNeXt, Wide-ResNet, ResNet-18), two BN adaptation algorithms (one that updates normalization statistics and the other that also optimizes transformation parameters), and three edge devices (FPGA, Raspberry-Pi, and Nvidia Xavier NX). We find that the approach that only updates the normalization parameters with Wide-ResNet, running on Xavier GPU, to be overall effective in terms of balancing multiple cost metrics. However, the adaptation overhead can still be significant (around 213 ms). The results strongly motivate the need for algorithm-hardware co-design for efficient on-device DNN adaptation.

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

↑