Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang +3 more
12/15/2017
5,136 citations
cs.LGstat.ML

No official code found. Best implementation: 666DZY666/micronet (2,262 stars, Python, MIT, PyTorch, last commit 2025-05-06). 3 more below.

Abstract

The rising popularity of intelligent mobile devices and the daunting computational cost of deep learning-based models call for efficient and accurate on-device inference schemes. We propose a quantization scheme that allows inference to be carried out using integer-only arithmetic, which can be implemented more efficiently than floating point inference on commonly available integer-only hardware.

Show full abstract

We also co-design a training procedure to preserve end-to-end model accuracy post quantization. As a result, the proposed quantization scheme improves the tradeoff between accuracy and on-device latency. The improvements are significant even on MobileNets, a model family known for run-time efficiency, and are demonstrated in ImageNet classification and COCO detection on popular CPUs.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
666DZY666/micronetCommunity2,262PythonMIT2025-05-06
ArtyZe/yolo_quantizationCommunity66–––
skmhrk1209/QuanTorchCommunity56–––
jameszampa/ECE-570-ImplementationCommunity11–––
666DZY666/micronetCommunity25%
PyTorchMIT

micronet, a model compression and deploy lib. compression: 1、quantization: quantization-aware-training(QAT), High-Bit(>2b)(DoReFa/Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference)、Low-Bit(≤2b)/Ternary and Binary(TWN/BNN/XNOR-Net); post-training-quantization(PTQ), 8-bit(tensorrt); 2、 pruning: normal、regular and group convolutional channel pruning; 3、 group convolution structure; 4、batch-normalization fuse for quantization. deploy: tensorrt, fp32/fp16/int8(ptq-calibration)、op-adapt(upsample)、dynamic_shape

2,262469PythonDec 4, 20191 years agoMIT
batch-normalization-fusebnnconvolutional-networksdorefagroup-convolution+15 more

Based of paper "Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference"

6613

PyTorch implementation of "Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference"

568

Implementation from Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

114

Similar Papers

Cite this paper

@article{jacob2017quantization,
  title  = {Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference},
  author = {Benoit Jacob and Skirmantas Kligys and Bo Chen and Menglong Zhu and Matthew Tang and Andrew Howard and Hartwig Adam and Dmitry Kalenichenko},
  year   = {2017},
  eprint = {1712.05877},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.05877}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1712.05877.svg)](https://codeofpaper.com/paper/1712.05877)

Discussion