arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.05182cs.LG
收藏

基于强化学习和监督学习的边云协作DNN推理

Edge-Cloud Cooperation for DNN Inference via Reinforcement Learning and Supervised Learning

Nanyang Technological University(南洋理工大学);Harbin Institute of Technology(哈尔滨工业大学);University of Chinese Academy of Sciences(中国科学院大学)

Tinghao Zhang, Zhijun Li, Yongrui Chen, Kwok-Yan Lam, Jun Zhao

摘要:

深度神经网络(DNN)已经广泛应用于物联网(IoT)系统中,用于诸如图像分类和目标检测的各种任务。然而,由于计算资源有限,重量级DNN模型很难部署在边缘设备上。本文提出了一种边云协作框架,以提高推理精度,同时保持低推理延迟。为此,我们在边缘部署了一个轻量级模型,在云上部署了一个重量级模型。使用基于强化学习(RL)的DNN压缩方法来从重量级模型生成适合于边缘的轻量级模型。此外,基于监督学习(SL)的卸载策略被应用于确定是否应该在边缘或云上处理样本。我们的方法在真实的硬件上实现,并在多个数据集上进行了测试。实验结果表明:(1)基于RL的DNN压缩所获得的轻量级模型的大小比基线方法所获得的模型的大小小87.6%;(2)基于SL的卸载策略在大多数情况下都能做出正确的卸载决策;(3)与仅云策略相比,我们的方法减少了高达78.8%的推理延迟,并实现了更高的准确率。

英文摘要:

Deep Neural Networks (DNNs) have been widely applied in Internet of Things (IoT) systems for various tasks such as image classification and object detection. However, heavyweight DNN models can hardly be deployed on edge devices due to limited computational resources. In this paper, an edge-cloud cooperation framework is proposed to improve inference accuracy while maintaining low inference latency. To this end, we deploy a lightweight model on the edge and a heavyweight model on the cloud. A reinforcement learning (RL)-based DNN compression approach is used to generate the lightweight model suitable for the edge from the heavyweight model. Moreover, a supervised learning (SL)-based offloading strategy is applied to determine whether the sample should be processed on the edge or on the cloud. Our method is implemented on real hardware and tested on multiple datasets. The experimental results show that (1) The sizes of the lightweight models obtained by RL-based DNN compression are up to 87.6% smaller than those obtained by the baseline method; (2) SL-based offloading strategy makes correct offloading decisions in most cases; (3) Our method reduces up to 78.8% inference latency and achieves higher accuracy compared with the cloud-only strategy.

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

↑