NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ShiftAddNet: A Hardware-Inspired Deep Network

Haoran You, Xiaohan Chen, Yongan Zhang, Chaojian Li, Sicheng Li, Zihao Liu, Zhangyang Wang, Yingyan Lin

Introduction

ShiftAddNet is a "multiplication-free" deep neural network that replaces energy-hungry multiplications with a combination of bit-shifts and additions. By drawing inspiration from fundamental hardware design, it reduces energy consumption by over 80% during both training and inference while maintaining—and sometimes exceeding—the accuracy of standard convolutional neural networks (CNNs).

The Cost of Multiplication in Deep Learning

The cornerstone of modern deep learning is multiplication, specifically within convolutions and fully connected layers. However, on a hardware level, multipliers are expensive: they consume significant silicon area, time, and energy. This makes deploying powerful DNNs on resource-constrained edge devices, like smartwatches or IoT sensors, a massive challenge.

Previous research attempted to solve this by creating "multiplication-less" networks. Some used spatial shifts (moving pixels around), others used bit-shifts (multiplying by powers of 2), and some used AdderNets (replacing multiplications with additions). However, these single-operation approaches often faced a trade-off: they either couldn't match the accuracy of standard CNNs or were inefficient in how they approximated complex functions. ShiftAddNet aims to bridge this gap by combining bit-shifts and additions into a single, hardware-inspired framework.

Methods: A Hardware-Inspired Synergy

In traditional computer architecture, a multiplier is often implemented internally as a series of shifts and adds. ShiftAddNet brings this low-level hardware logic directly into the high-level neural network architecture. The authors propose a new architecture that pipelines two types of multiplication-free layers:

ShiftAddNet Architecture
  1. Bit-Shift Layers: These perform bit-wise shifts, which are mathematically equivalent to multiplying an input by a power of 2 ($2^p$). In hardware, this is a primitive operation that is significantly faster and cheaper than general multiplication.
  2. Add Layers: Inspired by AdderNet, these layers calculate the $L_1$ distance (subtraction and absolute value) between weights and inputs instead of a standard inner product.

The "Aha!" Moment in Design: The authors realized that bit-shifts provide coarse-grained scaling, while additions provide fine-grained feature extraction. By combining these two weaker operations, the network gains the expressive capacity of a standard CNN. While an add-only network struggles to approximate certain functions efficiently, the addition of a bit-shift layer allows the model to span a much wider range of values.

Training and Backpropagation: Since bit-shifts are discrete, they aren't naturally differentiable. The authors adopt a training scheme where they maintain latent floating-point weights during backpropagation and use a HardTanh function to prevent gradients from exploding in the additive layers. They also introduced a variant where the shift layers are frozen after initialization, acting as anchor weights to further simplify training.

Key Results

The researchers evaluated ShiftAddNet across a variety of tasks, focusing heavily on edge-computing scenarios, including image classification (CIFAR-10/100) and IoT/Mobile datasets (MHEALTH, USCHAD, Head-pose detection, and FlatCam Face).

Accuracy vs. Energy Cost Comparison
  • Energy Savings: ShiftAddNet aggressively reduces hardware-quantified energy costs by over 80% for both training and inference compared to standard CNNs.
  • Accuracy Gains: On VGG-19 (CIFAR-10), ShiftAddNet outperformed the add-only AdderNet by 11.6% and the shift-only DeepShift by 26.8% at comparable energy levels.
  • Robustness to Quantization: ShiftAddNet is remarkably robust. When quantized to 8-bit fixed-point precision, it maintains high accuracy where other multiplication-less models see significant performance drops.
  • FPGA Validation: The authors didn't just simulate results; they implemented ShiftAddNet on a ZYNQ-7 ZC706 FPGA board to measure real-world energy consumption, confirming the theoretical savings.

Limitations and Future Work

While highly energy-efficient, the current implementation of ShiftAddNet can contain slightly more parameters than a standard CNN (e.g., ~1.3MB vs 1.03MB for ResNet-20). The authors argue that data movement—not weight count—is the primary hardware bottleneck, but further compression could be beneficial. Additionally, the success of "fixed shift" layers as a regularization technique is an empirical finding that warrants deeper theoretical exploration. Future work could also explore how these shift-add primitives scale to massive architectures like Transformers or very deep ResNets used in high-resolution image synthesis.

Summary updated

BibTeX
@inproceedings{you2020shiftaddnet,
  author = {Haoran You and Xiaohan Chen and Yongan Zhang and Chaojian Li and Sicheng Li and Zihao Liu and Zhangyang Wang and Yingyan Lin},
  title = {{ShiftAddNet: A Hardware-Inspired Deep Network}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=lAKw2_UDLoO},
}
Figure