DietCNN: Multiplication-free Inference for Quantized CNNs

Swarnava Dey, Pallab Dasgupta, Partha P Chakrabarti
5/9/2023
cs.CVcs.LGcs.PF

Official code: swadeykgp/DietCNN (9 stars, MIT, last commit 2023-05-10).

Abstract

The rising demand for networked embedded systems with machine intelligence has been a catalyst for sustained attempts by the research community to implement Convolutional Neural Networks (CNN) based inferencing on embedded resource-limited devices. Redesigning a CNN by removing costly multiplication operations has already shown promising results in terms of reducing inference energy usage. This paper proposes a new method for replacing multiplications in a CNN by table look-ups. Unlike existing methods that completely modify the CNN operations, the proposed methodology preserves the semantics of the major CNN operations. Conforming to the existing mechanism of the CNN layer operations ensures that the reliability of a standard CNN is preserved. It is shown that the proposed multiplication-free CNN, based on a single activation codebook, can achieve 4.7x, 5.6x, and 3.5x reduction in energy per inference in an FPGA implementation of MNIST-LeNet-5, CIFAR10-VGG-11, and Tiny ImageNet-ResNet-18 respectively. Our results show that the DietCNN approach significantly improves the resource consumption and latency of deep inference for smaller models, often used in embedded systems. Our code is available at: https://github.com/swadeykgp/DietCNN

View on arXivView PDF

Code Implementations(1)

swadeykgp/DietCNNOfficial100%
MIT
90C, C++May 8, 20233 years agoMIT

Similar Papers

Cite this paper

@article{dey2023dietcnn,
  title  = {DietCNN: Multiplication-free Inference for Quantized CNNs},
  author = {Swarnava Dey and Pallab Dasgupta and Partha P Chakrabarti},
  year   = {2023},
  eprint = {2305.05274},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.05274v2}
}

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

Discussion