Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

EasyQuant: Post-training Quantization via Scale Optimization

About

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.

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

Related benchmarks

TaskDatasetResultRank
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)89.56
504
Image ClassificationImageNet (val)--
300
Object DetectionMS-COCO 2017 (val)
mAP41.1
237
SummarizationXSum (test)
ROUGE-218.81
231
Question AnsweringSQuAD v1.1 (val)
F1 Score82.41
70
Question AnsweringSQuAD v2.0 (val)
F171.95
21
Image ClassificationImageNet-1k (val)
Top-1 Acc (DeiT-S)78.98
20
Showing 7 of 7 rows

Other info

Follow for update