Skip to main content
QUICK REVIEW

[Paper Review] ShiftCNN: Generalized Low-Precision Architecture for Inference of Convolutional Neural Networks

Denis Gudovskiy, Luca Rigazio|arXiv (Cornell University)|Jun 7, 2017
Advanced Neural Network ApplicationsComputer Science16 references53 citations
TL;DR

ShiftCNN introduces a generalized low-precision, multiplierless CNN inference architecture using power-of-two weight representations and precomputed convolution terms to dramatically reduce computations, with minimal accuracy loss on ImageNet and substantial FPGA power savings.

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. 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.

Motivation & Objective

  • Motivate a hardware-efficient, low-precision CNN inference framework that avoids multiplications.
  • Propose a generalized quantization algorithm that represents weights with a power-of-two codebook without retraining.
  • Introduce a precomputation strategy to reduce convolutional computations by orders of magnitude.
  • Design a ShiftCNN architecture (ShiftALU) and memory scheme to realize shift-and-add convolution.
  • Evaluate accuracy on ImageNet and analyze FPGA power and complexity implications.

Proposed method

  • Quantize weights using a non-uniform, power-of-two codebook (Algorithm 1) to obtain a concatenated weight representation W_hat with components in codebooks CN.
  • Precompute a tensor P of convolution terms to replace multiplications with power-of-two shifts (ShiftALU performs shifts and sign flips).
  • Compute convolutions by indexing precomputed P with weight indices to accumulate outputs, reducing product operations to O(PCHW).
  • Provide scheduling logic (Algorithm 2) that exploits input-channel parallelism and writes/reads from a dedicated P memory buffer.
  • Offer architecture variants for N and B settings (binary/ternary/greater-precision) and discuss extension to sparse/compressed models.

Experimental results

Research questions

  • RQ1Can a general non-retraining quantization to a power-of-two weight representation preserve accuracy on standard CNNs?
  • RQ2How does precomputing convolution terms affect the computational cost and energy efficiency of CNN inference?
  • RQ3What are the FPGA/ASIC power and resource implications of a ShiftCNN-based multiplierless architecture?
  • RQ4How do different N (number of terms) and B (bit-width) settings impact accuracy and hardware complexity across popular CNNs?

Key findings

  • ShiftCNN variants achieve less than 1% drop in Top-1 accuracy for several models with B=4 and N>2 on ImageNet.
  • For N=2, B=4, accuracy drops are within ~1% (e.g., ResNet-50: 0.67% Top-1 loss; GoogleNet: 0.39% Top-1 loss).
  • Convolutional layer computations can be reduced by a factor close to (C̃HfWf)/P, with P determining the precomputed term count; substantial speed-ups observed (e.g., 260x for SqueezeNet, 687x for GoogleNet, 1090x for ResNet-18).
  • FPGA RTL simulations show ShiftCNN uses ~2.5x fewer resources and ~4x lower dynamic power than 8-bit fixed-point multipliers; 75% of power is due to the adder tree, implying major gains in multiplication-free hardware.
  • ShiftCNN enables a flexible codebook that can accommodate binary/ternary or higher-precision weight representations, enabling trade-offs between accuracy and complexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.