arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.03671cs.LG
收藏

硬件友好型权重Quantization详解

A Closer Look at Hardware-Friendly Weight Quantization

Google Research(谷歌研究院)

Sungmin Bae, Piotr Zielinski, Satrajit Chatterjee

摘要:

量化深度神经网络(DNN)模型以在具有高效定点硬件实现的定制加速器上使用,需要满足许多严格的硬件友好量化约束以训练模型。我们评估两个主要类别的硬件友好的量化方法的重量量化的背景下:传统的均方量化误差(MSQE)为基础的方法和最近的基于梯度的方法。我们研究了两种方法MobileNetV 1和MobileNetV 2使用多个经验指标,以确定两个类之间的性能差异的来源,即,异常值的敏感性和收敛不稳定的量化缩放因子。利用这些见解,我们提出了各种技术来提高这两种量化方法的性能-它们解决了MobileNet模型量化期间基于MSQE的方法中存在的优化不稳定性问题,并使我们能够将基于梯度的方法的验证性能分别提高4.0%和3.3%。

英文摘要:

Quantizing a Deep Neural Network (DNN) model to be used on a custom accelerator with efficient fixed-point hardware implementations, requires satisfying many stringent hardware-friendly quantization constraints to train the model. We evaluate the two main classes of hardware-friendly quantization methods in the context of weight quantization: the traditional Mean Squared Quantization Error (MSQE)-based methods and the more recent gradient-based methods. We study the two methods on MobileNetV1 and MobileNetV2 using multiple empirical metrics to identify the sources of performance differences between the two classes, namely, sensitivity to outliers and convergence instability of the quantizer scaling factor. Using those insights, we propose various techniques to improve the performance of both quantization methods - they fix the optimization instability issues present in the MSQE-based methods during quantization of MobileNet models and allow us to improve validation performance of the gradient-based methods by 4.0% and 3.3% for MobileNetV1 and MobileNetV2 on ImageNet respectively.

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

↑