arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.05124cs.LGstat.ML
收藏

将自动混合低精度Quantization用于微型边缘微控制器

Leveraging Automated Mixed-Low-Precision Quantization for tiny edge microcontrollers

Università di Bologna(博洛尼亚大学);Greenwaves Technologies;Università di Modena e Reggio Emilia(摩德纳雷焦艾米利亚大学);IIS ETH Zurich(苏黎世联邦理工学院集成系统研究所)

Manuele Rusci, Marco Fariselli, Alessandro Capotondi, Luca Benini

摘要:

严重的片上存储器限制目前阻碍了在微型微控制器单元(MCU)上部署最精确的深度神经网络(DNN)模型,即使利用有效的8位量化方案也是如此。为了解决这个问题,在本文中,我们提出了一个自动化的混合精度量化流程的基础上的HAQ框架,但量身定制的MCU设备的内存和计算特性。具体而言,强化学习代理在RAM和FLASH嵌入式存储器大小的严格约束下,在2、4、8位中搜索个体权重和激活张量的最佳均匀量化水平。我们对用于Imagenet分类的MobileNetV 1、MobileNetV 2和MNasNet模型进行了实验分析。关于量化策略搜索,RL代理选择使存储器利用率最大化的量化策略。对于仅加权量化,给定2MB的MCU级内存限制,混合精度引擎产生的压缩模型与使用非均匀函数量化的最新解决方案一样准确,这不是针对仅具有整数运算的CPU量身定制的。这表示MCU部署所需的均匀量化对于深度权重压缩的可行性。当将激活内存预算限制为512kB时,由于找到的量化策略,最佳MobileNetV1模型在Imagenet上的得分高达68.4%,比其他8位网络更准确4%。

英文摘要:

The severe on-chip memory limitations are currently preventing the deployment of the most accurate Deep Neural Network (DNN) models on tiny MicroController Units (MCUs), even if leveraging an effective 8-bit quantization scheme. To tackle this issue, in this paper we present an automated mixed-precision quantization flow based on the HAQ framework but tailored for the memory and computational characteristics of MCU devices. Specifically, a Reinforcement Learning agent searches for the best uniform quantization levels, among 2, 4, 8 bits, of individual weight and activation tensors, under the tight constraints on RAM and FLASH embedded memory sizes. We conduct an experimental analysis on MobileNetV1, MobileNetV2 and MNasNet models for Imagenet classification. Concerning the quantization policy search, the RL agent selects quantization policies that maximize the memory utilization. Given an MCU-class memory bound of 2MB for weight-only quantization, the compressed models produced by the mixed-precision engine result as accurate as the state-of-the-art solutions quantized with a non-uniform function, which is not tailored for CPUs featuring integer-only arithmetic. This denotes the viability of uniform quantization, required for MCU deployments, for deep weights compression. When also limiting the activation memory budget to 512kB, the best MobileNetV1 model scores up to 68.4% on Imagenet thanks to the found quantization policy, resulting to be 4% more accurate than the other 8-bit networks fitting the same memory constraints.

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

↑