Precision Gating: Improving Neural Network Efficiency with Dynamic Dual-Precision Activations

Yichi Zhang, Ritchie Zhao, Weizhe Hua, Nayun Xu, G. Edward Suh +1 more
2/17/2020
cs.CVcs.LG

Official code: cornell-zhang/dnn-gating (71 stars, Python, BSD-3-Clause, last commit 2020-03-04).

Abstract

We propose precision gating (PG), an end-to-end trainable dynamic dual-precision quantization technique for deep neural networks. PG computes most features in a low precision and only a small proportion of important features in a higher precision to preserve accuracy.

Show full abstract

The proposed approach is applicable to a variety of DNN architectures and significantly reduces the computational cost of DNN execution with almost no accuracy loss. Our experiments indicate that PG achieves excellent results on CNNs, including statically compressed mobile-friendly networks such as ShuffleNet. Compared to the state-of-the-art prediction-based quantization schemes, PG achieves the same or higher accuracy with 2.4$\times$ less compute on ImageNet. PG furthermore applies to RNNs. Compared to 8-bit uniform quantization, PG obtains a 1.2% improvement in perplexity per word with 2.7$\times$ computational cost reduction on LSTM on the Penn Tree Bank dataset. Code is available at: https://github.com/cornell-zhang/dnn-gating

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Conditional channel- and precision-pruning on neural networks

7114Python, ShellMar 2, 20206 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{zhang2020precision,
  title  = {Precision Gating: Improving Neural Network Efficiency with Dynamic Dual-Precision Activations},
  author = {Yichi Zhang and Ritchie Zhao and Weizhe Hua and Nayun Xu and G. Edward Suh and Zhiru Zhang},
  year   = {2020},
  eprint = {2002.07136},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.07136}
}

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

Discussion