arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.04721cs.LGcs.CVstat.ML
收藏

无数据Quantization通过权重均衡和偏差校正

Data-Free Quantization Through Weight Equalization and Bias Correction

Qualcomm AI Research(高通人工智能研究院);Qualcomm Technologies, Inc.(高通技术公司);Qualcomm Technologies Netherlands B.V.(荷兰高通技术有限公司)

Markus Nagel, Mart van Baalen, Tijmen Blankevoort, Max Welling

摘要:

我们引入了一种用于深度神经网络的无数据量化方法,该方法不需要微调或超参数选择。它在常见的计算机视觉架构和任务上实现了接近原始模型的性能。8-位定点量化对于现代深度学习硬件上的有效推理是必不可少的。然而,量化模型以8位运行是一项重要的任务,通常会导致显著的性能降低或花费工程时间来训练网络以适应量化。我们的方法依赖于均衡网络中的权重范围,通过利用激活函数的尺度等方差属性。此外,该方法校正在量化期间引入的误差中的偏差。这提高了量化精度性能,并且可以通过直接的API调用应用于许多常见的计算机视觉架构。对于常见的架构,如MobileNet系列,我们实现了最先进的量化模型性能。我们进一步表明,该方法也扩展到其他计算机视觉架构和任务,如语义分割和目标检测。

英文摘要:

We introduce a data-free quantization method for deep neural networks that does not require fine-tuning or hyperparameter selection. It achieves near-original model performance on common computer vision architectures and tasks. 8-bit fixed-point quantization is essential for efficient inference on modern deep learning hardware. However, quantizing models to run in 8-bit is a non-trivial task, frequently leading to either significant performance reduction or engineering time spent on training a network to be amenable to quantization. Our approach relies on equalizing the weight ranges in the network by making use of a scale-equivariance property of activation functions. In addition the method corrects biases in the error that are introduced during quantization. This improves quantization accuracy performance, and can be applied to many common computer vision architectures with a straight forward API call. For common architectures, such as the MobileNet family, we achieve state-of-the-art quantized model performance. We further show that the method also extends to other computer vision architectures and tasks such as semantic segmentation and object detection.

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

↑