arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1905.13082cs.LGstat.ML
收藏

存储器驱动的混合低精度Quantization,用于在微控制器上实现深度网络推理

Memory-Driven Mixed Low Precision Quantization For Enabling Deep Network Inference On Microcontrollers

Universita’ di Bologna(博洛尼亚大学);ETH Zurich(苏黎世联邦理工学院)

Manuele Rusci, Alessandro Capotondi, Luca Benini

摘要:

本文提出了一种新的端到端方法,用于在微控制器上部署低错误深度网络。为了适应资源受限的边缘设备的内存和计算限制,我们利用混合低位宽压缩,具有8,4或2位均匀量化,我们建模的推理图与整数运算。我们的方法的目的是确定每个激活和权重张量给定的设备的内存约束的最小位精度。这是通过基于规则的迭代过程来实现的,该过程削减了最需要内存的层的位数,旨在满足内存约束。在量化感知的再训练步骤之后,通过插入嵌入式归一化(ICN)层,将伪量化图转换为仅推理整数模型,这引入了可忽略的损失,如INT4 MobilenetV1模型所示。我们报告了在STM32H7微控制器上对混合精度MobilenetV1系列网络进行的延迟精度评估。我们的实验结果表明,端到端部署的一个只有整数的Mobilenet网络的Top1的准确性为68%的设备上只有2 MB的闪存和512 KB的RAM,提高了8%的Top1的准确性相对于以前公布的8位实现微控制器。

英文摘要:

This paper presents a novel end-to-end methodology for enabling the deployment of low-error deep networks on microcontrollers. To fit the memory and computational limitations of resource-constrained edge-devices, we exploit mixed low-bitwidth compression, featuring 8, 4 or 2-bit uniform quantization, and we model the inference graph with integer-only operations. Our approach aims at determining the minimum bit precision of every activation and weight tensor given the memory constraints of a device. This is achieved through a rule-based iterative procedure, which cuts the number of bits of the most memory-demanding layers, aiming at meeting the memory constraints. After a quantization-aware retraining step, the fake-quantized graph is converted into an inference integer-only model by inserting the Integer Channel-Normalization (ICN) layers, which introduce a negligible loss as demonstrated on INT4 MobilenetV1 models. We report the latency-accuracy evaluation of mixed-precision MobilenetV1 family networks on a STM32H7 microcontroller. Our experimental results demonstrate an end-to-end deployment of an integer-only Mobilenet network with Top1 accuracy of 68% on a device with only 2MB of FLASH memory and 512kB of RAM, improving by 8% the Top1 accuracy with respect to previously published 8 bit implementations for microcontrollers.

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

↑