NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew G. Howard, Hartwig Adam, Dmitry Kalenichenko · DOI

Introduction

Deploying deep learning models on mobile hardware requires balancing high accuracy with strict latency and power constraints. This work, originating from the Google team behind TensorFlow Lite, introduces a quantization framework that enables neural networks to execute entirely using 8-bit integer arithmetic during inference. This approach significantly improves performance on mobile CPUs while maintaining competitive accuracy levels.

Problem Statement

Standard deep learning models rely heavily on 32-bit floating-point (FP32) operations. While suitable for high-end GPUs, these operations are costly for mobile devices in terms of energy and latency. Previous quantization efforts often struggled with significant accuracy degradation—particularly in efficient architectures like MobileNet—and hardware inefficiencies where theoretical gains did not translate to real-world speedups due to floating-point "cleanup" steps.

Methodology

The proposed framework consists of two primary components: a specialized integer-only inference scheme and a quantization-aware training procedure.

Integer-Only Inference

The inference scheme utilizes an affine mapping: $r = S(q - Z)$, where $r$ is the real value, $q$ is the 8-bit quantized integer, $S$ is the scale, and $Z$ is the zero-point. By rearranging matrix multiplication, the authors ensure that the only non-integer operation is a single multiplier, which is represented as a fixed-point integer and a bit-shift. This allows the CPU to bypass floating-point units entirely during core computations.

Quantization-Aware Training

To mitigate accuracy loss, "fake quantization" nodes are inserted into the training graph. These nodes simulate the rounding and clamping effects of 8-bit math during the forward pass. However, weights are maintained in high-precision float to allow backpropagation to accurately update parameters, enabling the model to learn robustness against quantization noise.

Quantization framework and ImageNet performance tradeoff.

Key Insights

  • 8-bit Precision: This bit-depth is natively supported by modern mobile CPUs via SIMD instructions (e.g., ARM NEON), making it a practical "sweet spot" for efficiency.
  • Bias Vectors: Unlike weights and activations, bias vectors are kept at 32-bit precision to prevent systematic offsets that could degrade accuracy.
  • Batch Normalization Folding: BN parameters are integrated into weights prior to quantization, removing inference overhead.
  • ReLU6 Compatibility: Activation functions with fixed ranges, such as ReLU6, facilitate more effective mapping to the 8-bit integer range.

Results

The framework was evaluated on ImageNet and COCO benchmarks. For ResNet-50, the integer-only model achieved 74.9% accuracy, a minimal drop from the 76.4% floating-point baseline.

Accuracy comparison for ResNet models.

On MobileNet, the quantized version provided a ~10% accuracy advantage over floating-point models within the same 33ms latency budget on a Snapdragon 835. Object detection tasks using MobileNet-SSD saw up to a 50% reduction in runtime with only a 1.8% relative drop in mAP.

Conclusion

This quantization-aware training and integer-only inference framework provides a scalable path for deploying high-performance neural networks on resource-constrained devices. By simulating quantization during training and optimizing for standard mobile hardware, the authors demonstrate that the gap between efficiency and accuracy can be bridged effectively.

Summary updated

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},
}
Figure