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

AutoQ:自动化核智能神经网络Quantization

AutoQ: Automated Kernel-Wise Neural Network Quantization

Indiana University Bloomington(印第安纳大学伯明顿分校)

Qian Lou, Feng Guo, Lantao Liu, Minje Kim, Lei Jiang

摘要:

网络量化是能够在低功耗移动设备上部署卷积神经网络(CNN)的最硬件友好的技术之一。最近的网络量化技术独立地对卷积层中的每个权重核进行加权以获得更高的推理精度,因为层中的权重核表现出不同的方差,因此具有不同的冗余量。量化比特数(QBN)直接决定推理精度、延迟、能量和硬件开销。为了有效地减少冗余并加速CNN推理,应该使用不同的QBN量化各种权重核。然而,现有的工作仅使用一个QBN来对每个卷积层或整个CNN进行卷积,因为为每个权重核搜索QBN的设计空间太大。手工制作的启发式内核明智的QBN搜索是如此复杂,领域专家只能获得次优的结果。即使是基于深度强化学习(DRL)和深度确定性策略梯度(DDPG)的代理也很难找到可以实现合理推理精度的基于内核的QBN配置。在本文中,我们提出了一种基于分层DRL的核网络量化技术,AutoQ,自动搜索每个权重核的QBN,并为每个激活层选择另一个QBN。与现有的基于DRL的量化模型相比,AutoQ量化的模型平均推理延迟降低了54.06%,推理能耗降低了50.69%,而推理准确率基本相同.

英文摘要:

Network quantization is one of the most hardware friendly techniques to enable the deployment of convolutional neural networks (CNNs) on low-power mobile devices. Recent network quantization techniques quantize each weight kernel in a convolutional layer independently for higher inference accuracy, since the weight kernels in a layer exhibit different variances and hence have different amounts of redundancy. The quantization bitwidth or bit number (QBN) directly decides the inference accuracy, latency, energy and hardware overhead. To effectively reduce the redundancy and accelerate CNN inferences, various weight kernels should be quantized with different QBNs. However, prior works use only one QBN to quantize each convolutional layer or the entire CNN, because the design space of searching a QBN for each weight kernel is too large. The hand-crafted heuristic of the kernel-wise QBN search is so sophisticated that domain experts can obtain only sub-optimal results. It is difficult for even deep reinforcement learning (DRL) Deep Deterministic Policy Gradient (DDPG)-based agents to find a kernel-wise QBN configuration that can achieve reasonable inference accuracy. In this paper, we propose a hierarchical-DRL-based kernel-wise network quantization technique, AutoQ, to automatically search a QBN for each weight kernel, and choose another QBN for each activation layer. Compared to the models quantized by the state-of-the-art DRL-based schemes, on average, the same models quantized by AutoQ reduce the inference latency by 54.06\%, and decrease the inference energy consumption by 50.69\%, while achieving the same inference accuracy.

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

↑