Efficient Integer-Arithmetic-Only Convolutional Neural Networks

Hengrui Zhao, Dong Liu, Houqiang Li
6/21/2020
cs.CVcs.LG
quantization-pruning

Official code: HengRuiZ/BReLU (2 stars, Python, last commit 2021-06-20).

Abstract

Integer-arithmetic-only networks have been demonstrated effective to reduce computational cost and to ensure cross-platform consistency. However, previous works usually report a decline in the inference accuracy when converting well-trained floating-point-number (FPN) networks into integer networks.

Show full abstract

We analyze this phonomenon and find that the decline is due to activation quantization. Specifically, when we replace conventional ReLU with Bounded ReLU, how to set the bound for each neuron is a key problem. Considering the tradeoff between activation quantization error and network learning ability, we set an empirical rule to tune the bound of each Bounded ReLU. We also design a mechanism to handle the cases of feature map addition and feature map concatenation. Based on the proposed method, our trained 8-bit integer ResNet outperforms the 8-bit networks of Google's TensorFlow and NVIDIA's TensorRT for image recognition. We also experiment on VDSR for image super-resolution and on VRCNN for compression artifact reduction, both of which serve for regression tasks that natively require high inference accuracy. Our integer networks achieve equivalent performance as the corresponding FPN networks, but have only 1/4 memory cost and run 2x faster on modern GPUs. Our code and models can be found at github.com/HengRuiZ/brelu.

View on arXivView PDF

Code Implementations(1)

HengRuiZ/BReLUOfficial100%
21Python, CudaJun 21, 20205 years ago

Similar Papers

Cite this paper

@article{zhao2020efficient,
  title  = {Efficient Integer-Arithmetic-Only Convolutional Neural Networks},
  author = {Hengrui Zhao and Dong Liu and Houqiang Li},
  year   = {2020},
  eprint = {2006.11735},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.11735}
}

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/2006.11735.svg)](https://codeofpaper.com/paper/2006.11735)

Discussion