arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.16669cs.CVcs.LGeess.IV
收藏

EasyQuant:通过规模优化后训练Quantization

EasyQuant: Post-training Quantization via Scale Optimization

DeepGlint(深瞳);OPEN AI LAB(开放智能实验室);Beijing Institute of Technology(北京理工大学)

Di Wu, Qi Tang, Yongle Zhao, Ming Zhang, Ying Fu, Debing Zhang

摘要:

8位量化已被广泛应用于加速各种深度学习应用中的网络推理。有两种量化方法,基于训练的量化和后训练量化。基于训练的方法存在训练过程繁琐的问题,而训练后的量化可能导致不可接受的精度下降。在本文中,我们提出了一种通过尺度优化的高效简单的后训练方法EasyQuant(EQ),它可以获得与基于训练的方法相当的精度。具体来说,我们首先交替优化卷积输出处所有层目标的权重和激活尺度,以进一步获得高量化精度。在不同的计算机视觉任务上的实验结果表明,EQ的性能优于TensorRT方法,在7位宽的训练后可以达到接近INT 8的精度。

英文摘要:

The 8 bits quantization has been widely applied to accelerate network inference in various deep learning applications. There are two kinds of quantization methods, training-based quantization and post-training quantization. Training-based approach suffers from a cumbersome training process, while post-training quantization may lead to unacceptable accuracy drop. In this paper, we present an efficient and simple post-training method via scale optimization, named EasyQuant (EQ),that could obtain comparable accuracy with the training-based method.Specifically, we first alternately optimize scales of weights and activations for all layers target at convolutional outputs to further obtain the high quantization precision. Then, we lower down bit width to INT7 both for weights and activations, and adopt INT16 intermediate storage and integer Winograd convolution implementation to accelerate inference.Experimental results on various computer vision tasks show that EQ outperforms the TensorRT method and can achieve near INT8 accuracy in 7 bits width post-training.

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

↑