Training and Inference with Integers in Deep Neural Networks

Shuang Wu, Guoqi Li, Feng Chen, Luping Shi
2/13/2018
cs.LG

Official code: boluoweifenda/WAGE (150 stars, last commit 2018-05-31).

Abstract

Researches on deep neural networks with discrete parameters and their deployment in embedded systems have been active and promising topics. Although previous works have successfully reduced precision in inference, transferring both training and inference processes to low-bitwidth integers has not been demonstrated simultaneously. In this work, we develop a new method termed as "WAGE" to discretize both training and inference, where weights (W), activations (A), gradients (G) and errors (E) among layers are shifted and linearly constrained to low-bitwidth integers. To perform pure discrete dataflow for fixed-point devices, we further replace batch normalization by a constant scaling layer and simplify other components that are arduous for integer implementation. Improved accuracies can be obtained on multiple datasets, which indicates that WAGE somehow acts as a type of regularization. Empirically, we demonstrate the potential to deploy training in hardware systems such as integer-based deep learning accelerators and neuromorphic chips with comparable accuracy and higher energy efficiency, which is crucial to future AI applications in variable scenarios with transfer and continual learning demands.

View on arXivView PDF

Code Implementations(1)

boluoweifenda/WAGEOfficial100%

Code example for the ICLR 2018 oral paper

15037PythonOct 22, 20178 years ago
iclr2018

Similar Papers

Cite this paper

@article{wu2018training,
  title  = {Training and Inference with Integers in Deep Neural Networks},
  author = {Shuang Wu and Guoqi Li and Feng Chen and Luping Shi},
  year   = {2018},
  eprint = {1802.04680},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.04680}
}

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

Discussion