arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.00278cs.LGstat.ML
收藏

用于边缘推断的按比例放大深度神经网络优化

Scaling Up Deep Neural Network Optimization for Edge Inference

UC Riverside(加州大学河滨分校)

Bingqian Lu, Jianyi Yang, Shaolei Ren

摘要:

深度神经网络(DNN)已越来越多地部署在边缘设备上并与之集成,如手机、无人机、机器人和可穿戴设备。要直接在边缘设备上运行DNN推理(也称为边缘推断),优化DNN设计(例如,网络架构和量化策略)是至关重要的。虽然最先进的DNN设计已经利用性能预测器来加速优化过程,但是它们是设备特定的(即,每个预测器仅用于一个目标设备),因此在存在极其不同的边缘设备的情况下不能很好地缩放。此外,即使使用性能预测器,优化器(例如,基于搜索的优化)在针对许多不同设备优化DNN时仍然可能是耗时的。在这项工作中,我们提出了两种扩大DNN优化的方法。在第一种方法中,我们重用在代理设备上构建的性能预测器,并利用性能单调性来扩展DNN优化,而无需为每个不同的设备重新构建性能预测器。在第二种方法中,我们构建了可扩展的性能预测器,可以估计结果性能(例如,在给定DNN-设备对的情况下,DNN设计可以具有最佳的性能(例如,推理精度/延迟/能量),并使用基于神经网络的自动优化器,该自动优化器将设备特征和优化参数两者作为输入,然后直接输出最佳DNN设计,而无需经历针对每个单独设备的冗长优化过程。

英文摘要:

Deep neural networks (DNNs) have been increasingly deployed on and integrated with edge devices, such as mobile phones, drones, robots and wearables. To run DNN inference directly on edge devices (a.k.a. edge inference) with a satisfactory performance, optimizing the DNN design (e.g., network architecture and quantization policy) is crucial. While state-of-the-art DNN designs have leveraged performance predictors to speed up the optimization process, they are device-specific (i.e., each predictor for only one target device) and hence cannot scale well in the presence of extremely diverse edge devices. Moreover, even with performance predictors, the optimizer (e.g., search-based optimization) can still be time-consuming when optimizing DNNs for many different devices. In this work, we propose two approaches to scaling up DNN optimization. In the first approach, we reuse the performance predictors built on a proxy device, and leverage the performance monotonicity to scale up the DNN optimization without re-building performance predictors for each different device. In the second approach, we build scalable performance predictors that can estimate the resulting performance (e.g., inference accuracy/latency/energy) given a DNN-device pair, and use a neural network-based automated optimizer that takes both device features and optimization parameters as input and then directly outputs the optimal DNN design without going through a lengthy optimization process for each individual device.

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

↑