ShiftCNN: Generalized Low-Precision Architecture for Inference of Convolutional Neural Networks

Denis A. Gudovskiy, Luca Rigazio
6/7/2017
64 citations
cs.CVcs.NE

Official code: gudovskiy/ShiftCNN (56 stars, Python, last commit 2017-07-14).

Abstract

In this paper we introduce ShiftCNN, a generalized low-precision architecture for inference of multiplierless convolutional neural networks (CNNs). ShiftCNN is based on a power-of-two weight representation and, as a result, performs only shift and addition operations.

Show full abstract

Furthermore, ShiftCNN substantially reduces computational cost of convolutional layers by precomputing convolution terms. Such an optimization can be applied to any CNN architecture with a relatively small codebook of weights and allows to decrease the number of product operations by at least two orders of magnitude. The proposed architecture targets custom inference accelerators and can be realized on FPGAs or ASICs. Extensive evaluation on ImageNet shows that the state-of-the-art CNNs can be converted without retraining into ShiftCNN with less than 1% drop in accuracy when the proposed quantization algorithm is employed. RTL simulations, targeting modern FPGAs, show that power consumption of convolutional layers is reduced by a factor of 4 compared to conventional 8-bit fixed-point architectures.

View on arXivView PDF

Code Implementations(1)

gudovskiy/ShiftCNNOfficial100%

A script to convert floating-point CNN models into generalized low-precision ShiftCNN representation

5617PythonJun 7, 20179 years ago
cnndnnlow-precision

Similar Papers

Cite this paper

@article{gudovskiy2017shiftcnn,
  title  = {ShiftCNN: Generalized Low-Precision Architecture for Inference of Convolutional Neural Networks},
  author = {Denis A. Gudovskiy and Luca Rigazio},
  year   = {2017},
  eprint = {1706.02393},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.02393}
}

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

Discussion