Skip to main content
QUICK REVIEW

[Paper Review] ShiftAddNAS: Hardware-Inspired Search for More Accurate and Efficient Neural Networks

Haoran You, Baopu Li|arXiv (Cornell University)|May 17, 2022
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

ShiftAddNAS proposes a novel neural architecture search framework that jointly optimizes for accuracy and efficiency by integrating both multiplication-based (e.g., convolutions, attention) and multiplication-free operators (e.g., bit shifts, additions) in a unified hybrid search space. It introduces a heterogeneous weight sharing strategy that accommodates distinct weight distributions (Gaussian for convolutions, Laplacian for adders), enabling efficient search with minimal supernet size increase and achieving up to 7.7% higher accuracy and 93% energy savings compared to SOTA methods.

ABSTRACT

Neural networks (NNs) with intensive multiplications (e.g., convolutions and transformers) are capable yet power hungry, impeding their more extensive deployment into resource-constrained devices. As such, multiplication-free networks, which follow a common practice in energy-efficient hardware implementation to parameterize NNs with more efficient operators (e.g., bitwise shifts and additions), have gained growing attention. However, multiplication-free networks usually under-perform their vanilla counterparts in terms of the achieved accuracy. To this end, this work advocates hybrid NNs that consist of both powerful yet costly multiplications and efficient yet less powerful operators for marrying the best of both worlds, and proposes ShiftAddNAS, which can automatically search for more accurate and more efficient NNs. Our ShiftAddNAS highlights two enablers. Specifically, it integrates (1) the first hybrid search space that incorporates both multiplication-based and multiplication-free operators for facilitating the development of both accurate and efficient hybrid NNs; and (2) a novel weight sharing strategy that enables effective weight sharing among different operators that follow heterogeneous distributions (e.g., Gaussian for convolutions vs. Laplacian for add operators) and simultaneously leads to a largely reduced supernet size and much better searched networks. Extensive experiments and ablation studies on various models, datasets, and tasks consistently validate the efficacy of ShiftAddNAS, e.g., achieving up to a +7.7% higher accuracy or a +4.9 better BLEU score compared to state-of-the-art NN, while leading to up to 93% or 69% energy and latency savings, respectively. Codes and pretrained models are available at https://github.com/RICE-EIC/ShiftAddNAS.

Motivation & Objective

  • To address the trade-off between model accuracy and hardware efficiency in resource-constrained edge devices.
  • To overcome the limitations of existing NAS methods that focus only on either multiplication-based or multiplication-free networks.
  • To develop a hybrid search space that supports both powerful multiplications and efficient shift-add operations for balanced performance and efficiency.
  • To design a weight sharing strategy that effectively handles heterogeneous weight distributions (Gaussian vs. Laplacian) across different operator types.
  • To enable automatic search for neural architectures that simultaneously achieve high accuracy and low energy/latency costs in both CV and NLP tasks.

Proposed method

  • Introduces a novel hybrid search space that includes both multiplication-based operators (e.g., standard convolutions, self-attention) and multiplication-free operators (e.g., shift and add layers) for joint architecture search.
  • Proposes a heterogeneous weight sharing (HWS) strategy that enables effective parameter sharing across operators with different weight distributions, avoiding the performance degradation of naive weight sharing.
  • Employs a knowledge distillation loss (KL divergence) to align the weight distributions of convolutional and adder layers during supernet training, improving search consistency.
  • Applies the HWS strategy to reduce the supernet size by 41% (from 615M to 364M parameters), significantly lowering search cost.
  • Uses standard NAS training pipelines with progressive shrinking and early stopping to efficiently explore the expanded search space.
  • Validates the framework on ImageNet and CIFAR benchmarks, integrating it with existing NAS baselines like FBNet and BossNAS for ablation and comparison.

Experimental results

Research questions

  • RQ1Can a unified NAS framework effectively search for hybrid neural architectures that combine multiplication-based and multiplication-free operators to achieve better accuracy and efficiency trade-offs?
  • RQ2How can weight sharing be effectively applied across operators with fundamentally different weight distributions (e.g., Gaussian for convolutions, Laplacian for adders) without degrading performance?
  • RQ3Does the proposed heterogeneous weight sharing strategy reduce supernet size and search cost while maintaining or improving architecture ranking consistency?
  • RQ4How does the hybrid search space compare to purely multiplication-based or purely multiplication-free search spaces in terms of accuracy and efficiency?
  • RQ5To what extent does ShiftAddNAS outperform state-of-the-art NAS and hand-designed models in both computer vision and natural language processing tasks?

Key findings

  • ShiftAddNAS achieves up to 7.7% higher top-1 accuracy than the strongest SOTA baseline on ImageNet under the same FLOPs constraint.
  • The framework delivers up to 93% energy savings and 69% latency reduction compared to SOTA models, demonstrating strong hardware efficiency.
  • The heterogeneous weight sharing (HWS) strategy reduces the supernet size by 41% (from 615M to 364M parameters), significantly lowering search cost.
  • HWS improves ranking correlation (Kendall τ: 0.54 vs. 0.49) and leads to a 1.4% accuracy gain over naive weight sharing on ImageNet.
  • On CIFAR-10 and CIFAR-100, ShiftAddNAS achieves +0.74% and +0.58% accuracy gains over FBNet, respectively, with 33.8% and 38.6% latency reductions.
  • Ablation studies confirm that the full hybrid search space (including attention, convolution, shift, and add) outperforms all variants, proving the necessity of including all operator types.

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.