ShiftAddNet: A Hardware-Inspired Deep Network

Haoran You, Xiaohan Chen, Yongan Zhang, Chaojian Li, Sicheng Li +3 more
10/24/2020
cs.LG

Official code: GATECH-EIC/ShiftAddNet (74 stars, Python, MIT, last commit 2020-11-16).

Abstract

Multiplication (e.g., convolution) is arguably a cornerstone of modern deep neural networks (DNNs). However, intensive multiplications cause expensive resource costs that challenge DNNs' deployment on resource-constrained edge devices, driving several attempts for multiplication-less deep networks.

Show full abstract

This paper presented ShiftAddNet, whose main inspiration is drawn from a common practice in energy-efficient hardware implementation, that is, multiplication can be instead performed with additions and logical bit-shifts. We leverage this idea to explicitly parameterize deep networks in this way, yielding a new type of deep network that involves only bit-shift and additive weight layers. This hardware-inspired ShiftAddNet immediately leads to both energy-efficient inference and training, without compromising the expressive capacity compared to standard DNNs. The two complementary operation types (bit-shift and add) additionally enable finer-grained control of the model's learning capacity, leading to more flexible trade-off between accuracy and (training) efficiency, as well as improved robustness to quantization and pruning. We conduct extensive experiments and ablation studies, all backed up by our FPGA-based ShiftAddNet implementation and energy measurements. Compared to existing DNNs or other multiplication-less models, ShiftAddNet aggressively reduces over 80% hardware-quantified energy cost of DNNs training and inference, while offering comparable or better accuracies. Codes and pre-trained models are available at https://github.com/RICE-EIC/ShiftAddNet.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2020] ShiftAddNet: A Hardware-Inspired Deep Network

7418Python, CudaOct 4, 20206 years agoMIT

Similar Papers

Cite this paper

@article{you2020shiftaddnet,
  title  = {ShiftAddNet: A Hardware-Inspired Deep Network},
  author = {Haoran You and Xiaohan Chen and Yongan Zhang and Chaojian Li and Sicheng Li and Zihao Liu and Zhangyang Wang and Yingyan Celine Lin},
  year   = {2020},
  eprint = {2010.12785},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.12785}
}

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

Discussion