在资源受限的边缘设备上执行深度神经网络(DNN)推理时,在保持预测精度的同时降低推理时间与能耗已成为重要研究问题。为解决该问题,我们提出一种基于“转换”自编码器与轻量级DNN的新方法,对早期退出框架、DNN划分等近期研究工作进行了改进。早期退出框架会根据输入数据的复杂度为不同样本分配不同计算量,但在处理大量困难图像样本的真实场景中效率较低。而同时利用云端与边缘设备计算能力的DNN划分算法,会受到云边之间网络延迟与连接中断的影响。我们提出CBNet——一种专为边缘设备设计的低延迟、高能效DNN推理框架。它利用“转换”自编码器将困难图像高效转换为简单图像,再交由轻量级DNN完成推理。据我们所知,此类自编码器此前尚未被提出。我们在树莓派4、谷歌云实例以及搭载Nvidia Tesla K80 GPU的实例上,使用三个主流图像分类数据集开展实验,结果表明:与同类竞争技术相比,CBNet在保持相当或更高精度的同时,推理延迟最高提升4.8倍,能耗降低79%。
英文摘要:
Reducing inference time and energy usage while maintaining prediction accuracy has become a significant concern for deep neural networks (DNN) inference on resource-constrained edge devices. To address this problem, we propose a novel approach based on "converting" autoencoder and lightweight DNNs. This improves upon recent work such as early-exiting framework and DNN partitioning. Early-exiting frameworks spend different amounts of computation power for different input data depending upon their complexity. However, they can be inefficient in real-world scenarios that deal with many hard image samples. On the other hand, DNN partitioning algorithms that utilize the computation power of both the cloud and edge devices can be affected by network delays and intermittent connections between the cloud and the edge. We present CBNet, a low-latency and energy-efficient DNN inference framework tailored for edge devices. It utilizes a "converting" autoencoder to efficiently transform hard images into easy ones, which are subsequently processed by a lightweight DNN for inference. To the best of our knowledge, such autoencoder has not been proposed earlier. Our experimental results using three popular image-classification datasets on a Raspberry Pi 4, a Google Cloud instance, and an instance with Nvidia Tesla K80 GPU show that CBNet achieves up to 4.8x speedup in inference latency and 79% reduction in energy usage compared to competing techniques while maintaining similar or higher accuracy.
Learning from Attacks: Attacking Variational Autoencoder for Improving Image Classification
fortiss(弗劳恩霍夫软件系统技术研究所)
对抗攻击通常被认为是对深度神经网络(DNN)鲁棒性的威胁。已经开发了各种防御技术来减轻对抗攻击对任务预测的潜在负面影响。本文从不同的角度分析了对抗攻击。也就是说,对抗性示例包含对预测有用的隐式信息,即,图像分类,并将针对DNN的对抗攻击视为能够促进特定学习任务的提取的抽象表示。我们提出了一个算法框架,利用DNN的数据自我表达和特定任务的预测的优势,以提高图像分类。该框架联合学习一个用于攻击变分自编码器(VAE)网络的DNN和一个用于分类的DNN,称为Attacking VAE for Improve Classification(AVIC)。实验结果表明,AVIC在标准数据集上的准确率高于干净样本训练和传统的对抗训练。
Predicting Critical Heat Flux with Uncertainty Quantification and Domain Generalization Using Conditional Variational Autoencoders and Deep Neural Networks
Supporting Safety Analysis of Image-processing DNNs through Clustering-based Approaches
SnT Centre, University of Luxembourg(卢森堡大学SnT中心);University of Luxembourg(卢森堡大学);University of Ottawa(渥太华大学);Lero Centre, University of Limerick(利默里克大学Lero中心);School of EECS, University of Ottawa(渥太华大学电子工程与计算机科学学院)
VAE-DNN: Energy-Efficient Trainable-by-Parts Surrogate Model For Parametric Partial Differential Equations
School of Water Conservancy and Transportation(水利与交通学院);Zhengzhou University(郑州大学);Department of Civil and Environmental Engineering(土木与环境工程系);University of Illinois Urbana Champaign(伊利诺伊大学厄巴纳-香槟分校)