Skip to main content
QUICK REVIEW

[Paper Review] ShiftAddNet: A Hardware-Inspired Deep Network

Haoran You, Xiaohan Chen|arXiv (Cornell University)|Oct 24, 2020
Advanced Neural Network ApplicationsComputer Science47 references37 citations
TL;DR

ShiftAddNet redefines DNNs using only bit-shift and add layers to replace multiplications, enabling energy-efficient training and inference with comparable accuracy to standard networks. FPGA-based measurements show substantial energy savings while maintaining performance.

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

Motivation & Objective

  • Motivate multiplication-free deep networks from hardware design principles (shift and add) to reduce energy consumption.
  • Develop a two-layer paradigm (bit-shift and add) that remains expressive and trainable like standard DNNs.
  • Demonstrate training and inference algorithms for ShiftAddNet with practical hardware implementation and energy measurements.
  • Quantify trade-offs between accuracy, training efficiency, and robustness under quantization and pruning.

Proposed method

  • Reparameterize standard neural networks by replacing convolutional and fully-connected layers with two multiplication-free layers: bit-shift and add.
  • Formalize the ShiftAddNet pipeline combining shift and add operations to preserve expressive capacity.
  • Derive backpropagation rules for both shift and add layers, including weight updates and gradient flow.
  • Propose a variant with fixed shift layers to explore coarse/fine-grained learning and energy savings.
  • Implement ShiftAddNet on a Zynq FPGA and compare energy consumption and accuracy against AdderNet, DeepShift, and ConvNet.

Experimental results

Research questions

  • RQ1Can a hardware-inspired combination of bit-shift and add layers match standard DNN expressiveness while significantly reducing multiplications?
  • RQ2How do shift and add layers trade off training/inference energy, accuracy, and robustness under quantization or pruning?
  • RQ3Does fixing shift layers or sparsifying add layers improve energy efficiency without sacrificing accuracy?
  • RQ4What are the practical gains when deploying ShiftAddNet on real hardware (FPGA) compared to existing multiplication-less models?

Key findings

  • ShiftAddNet achieves energy-efficient inference and training with comparable or better accuracy than multiplication-based networks and prior multiplication-free models.
  • Fixed shift layers can yield substantial energy savings without sacrificing accuracy, and in some settings can improve robustness to quantization.
  • ShiftAddNet shows improved robustness to quantization and pruning compared to AdderNet and DeepShift in several benchmarks.
  • FPGA implementation provides real energy measurements supporting substantial reductions in energy cost for training and inference while maintaining performance.
  • A hybrid shift-and-add design offers higher expressive capacity than shift-only or add-only approaches alone.

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.