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

用偏见对抗Quantization偏见

Fighting Quantization Bias With Bias

Hailo Technologies(海洛科技)

Alexander Finkelstein, Uri Almog, Mark Grobman

摘要:

深度神经网络(DNN)的低精度表示对于在嵌入式平台上高效部署深度学习应用至关重要,然而,将网络转换为低精度会降低其性能。至关重要的是,为嵌入式应用设计的网络通常会遭受更大的退化,因为它们具有更少的冗余。这对于无处不在的MobileNet架构最为明显,该架构需要昂贵的量化感知训练周期,以便在量化为8位时实现可接受的性能。在本文中,我们跟踪MobileNet中的退化的来源,平均激活值的变化。这种偏移是由量化过程中的固有偏差引起的,该偏差在各层之间建立,使所有网络统计数据远离学习的分布。我们发现,这种现象也发生在其他建筑。我们提出了一个简单的补救措施-通过增加一个常数,每个通道的附加偏置项的量化引起的移位补偿。我们开发了两种简单的方法来估计校正常数-一种是使用量化网络的迭代评估,另一种是使用短训练阶段设置常数。这两种方法都很快速,只需要少量的未标记数据,这使得它们对神经网络的快速部署很有吸引力。使用上述方法,我们能够以一小部分成本匹配MobileNets的基于训练的量化的性能。

英文摘要:

Low-precision representation of deep neural networks (DNNs) is critical for efficient deployment of deep learning application on embedded platforms, however, converting the network to low precision degrades its performance. Crucially, networks that are designed for embedded applications usually suffer from increased degradation since they have less redundancy. This is most evident for the ubiquitous MobileNet architecture which requires a costly quantization-aware training cycle to achieve acceptable performance when quantized to 8-bits. In this paper, we trace the source of the degradation in MobileNets to a shift in the mean activation value. This shift is caused by an inherent bias in the quantization process which builds up across layers, shifting all network statistics away from the learned distribution. We show that this phenomenon happens in other architectures as well. We propose a simple remedy - compensating for the quantization induced shift by adding a constant to the additive bias term of each channel. We develop two simple methods for estimating the correction constants - one using iterative evaluation of the quantized network and one where the constants are set using a short training phase. Both methods are fast and require only a small amount of unlabeled data, making them appealing for rapid deployment of neural networks. Using the above methods we are able to match the performance of training-based quantization of MobileNets at a fraction of the cost.

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

↑