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

Low-bit Quantization of Neural Networks for Efficient Inference

About

Recent machine learning methods use increasingly large deep neural networks to achieve state of the art results in various tasks. The gains in performance come at the cost of a substantial increase in computation and storage requirements. This makes real-time implementations on limited resources hardware a challenging task. One popular approach to address this challenge is to perform low-bit precision computations via neural network quantization. However, aggressive quantization generally entails a severe penalty in terms of accuracy, and often requires retraining of the network, or resorting to higher bit precision quantization. In this paper, we formalize the linear quantization task as a Minimum Mean Squared Error (MMSE) problem for both weights and activations, allowing low-bit precision inference without the need for full network retraining. The main contributions of our approach are the optimizations of the constrained MSE problem at each layer of the network, the hardware aware partitioning of the network parameters, and the use of multiple low precision quantized tensors for poorly approximated layers. The proposed approach allows 4 bits integer (INT4) quantization for deployment of pretrained models on limited hardware resources. Multiple experiments on various network architectures show that the suggested method yields state of the art results with minimal loss of tasks accuracy.

Yoni Choukroun, Eli Kravchik, Fan Yang, Pavel Kisilev• 2019

Related benchmarks

TaskDatasetResultRank
Instance SegmentationCOCO 2017 (val)--
1144
Object DetectionCOCO (val)
mAP44.9
613
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)94.61
504
SummarizationXSum (test)
ROUGE-218.77
231
Question AnsweringSQuAD v1.1 (val)
F1 Score91.48
70
Image ClassificationImageNet (test val)
Accuracy74.98
58
Question AnsweringSQuAD v2.0 (val)
F182.53
21
Showing 7 of 7 rows

Other info

Follow for update