Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
Lists
Only you see this
Abstract
The rising popularity of intelligent mobile devices and the daunting computational cost of deep learning-based visual recognition models call for efficient on-device inference schemes. We propose a quantization scheme along with a co-designed training procedure allowing inference to be carried out using integer-only arithmetic while preserving an end-to-end model accuracy that is close to floating-point inference. Inference using integer-only arithmetic performs better than floating-point arithmetic on typical ARM CPUs and can be implemented on integer-arithmetic-only hardware such as mobile accelerators (e.g. Qualcomm Hexagon). By quantizing both activations and weights as 8-bit integers, we obtain a close to 4x memory footprint reduction compared to 32-bit floating-point representations. Even on MobileNets, a model family known for runtime efficiency, our quantization approach results in an improved tradeoff between latency and accuracy on popular ARM CPUs for ImageNet classification and COCO detection.
BibTeX
@inproceedings{jacob2017quantization,
author = {Benoit Jacob and Skirmantas Kligys and Bo Chen and Menglong Zhu and Matthew Tang and Andrew G. Howard and Hartwig Adam and Dmitry Kalenichenko},
title = {{Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference}},
booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year = {2017},
doi = {10.1109/cvpr.2018.00286},
}