针对边缘设备设计可满足严格延迟约束的高精度神经网络。
Latency-Constrained DNN Architecture Learning for Edge Systems using Zerorized Batch Normalization

- 用零化批归一化技术动态调整神经元数量以控制推理延迟。
- 在Jetson Nano上将GoogLeNet延迟从40.32ms降至34ms,准确率仅降0.14%。
- 支持单次训练完成优化,适合实时性要求高的边缘部署场景。
深度学习应用已广泛部署于边缘设备,以缓解访问云服务器带来的隐私与延迟问题。在设计深度神经网络时,确定最优神经元数量以最大化性能并非直观。尤其在众多实时应用场景中存在严格的延迟约束,而传统神经网络优化方法无法直接调控模型推理的时间成本。为此,本文提出一种面向延迟的神经网络学习方法,在保证高精度的同时满足延迟约束。为提升效率,我们引入通用硬件定制化的延迟预测器,使模型优化仅需一次训练即可完成。实验表明,相比现有方法,本方案能有效满足“硬性”延迟约束。在ImageNet-100数据集上,保持原始训练设置,在NVIDIA Jetson Nano上将GoogLeNet延迟从40.32ms降至34ms,准确率仅下降0.14%;结合量化后,准确率下降进一步缩小至0.04%。在NVIDIA Jetson TX2上,将VGG-19延迟从119.98ms压缩至34ms,准确率反而提升0.5%;同时将GoogLeNet延迟从20.27ms扩展至34ms,准确率提升0.78%。相关框架已开源:https://github.com/ntuliuteam/ZeroBN
原文摘要 · Abstract (English)
Deep learning applications have been widely adopted on edge devices, to mitigate the privacy and latency issues of accessing cloud servers. Deciding the number of neurons during the design of a deep neural network to maximize performance is not intuitive. Particularly, many application scenarios are real-time and have a strict latency constraint, while conventional neural network optimization methods do not directly change the temporal cost of model inference for latency-critical edge systems. In this work, we propose a latency-oriented neural network learning method to optimize models for high accuracy while fulfilling the latency constraint. For efficiency, we also introduce a universal hardware-customized latency predictor to optimize this procedure to learn a model that satisfies the latency constraint by only a one-shot training process. The experiment results reveal that, compared to state-of-the-art methods, our approach can well-fit the 'hard' latency constraint and achieve high accuracy. Under the same training settings as the original model and satisfying a 34 ms latency constraint on the ImageNet-100 dataset, we reduce GoogLeNet's latency from 40.32 ms to 34 ms with a 0.14% accuracy reduction on the NVIDIA Jetson Nano. When coupled with quantization, our method can be further improved to only 0.04% drop for GoogLeNet. On the NVIDIA Jetson TX2, we compress VGG-19 from 119.98 ms to 34 ms and even improve its accuracy by 0.5%, and we scale GoogLeNet up from 20.27 ms to 34 ms and achieve higher accuracy by 0.78%. We also open source this framework at https://github.com/ntuliuteam/ZeroBN
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。