Skip to main content
QUICK REVIEW

[Paper Review] Auto-NBA: Efficient and Effective Search Over the Joint Space of Networks, Bitwidths, and Accelerators

Yonggan Fu, Yongan Zhang|arXiv (Cornell University)|Jun 11, 2021
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

Auto-NBA proposes a differentiable, joint search framework for neural networks, bitwidths, and accelerators to maximize accuracy and efficiency. By introducing heterogeneous sampling and a differentiable accelerator search engine, it overcomes memory explosion, discrete accelerator design, and chicken-and-egg problems, achieving state-of-the-art results with 20.9% lower latency and 0.96% higher accuracy than prior co-search methods.

ABSTRACT

While maximizing deep neural networks' (DNNs') acceleration efficiency requires a joint search/design of three different yet highly coupled aspects, including the networks, bitwidths, and accelerators, the challenges associated with such a joint search have not yet been fully understood and addressed. The key challenges include (1) the dilemma of whether to explode the memory consumption due to the huge joint space or achieve sub-optimal designs, (2) the discrete nature of the accelerator design space that is coupled yet different from that of the networks and bitwidths, and (3) the chicken and egg problem associated with network-accelerator co-search, i.e., co-search requires operation-wise hardware cost, which is lacking during search as the optimal accelerator depending on the whole network is still unknown during search. To tackle these daunting challenges towards optimal and fast development of DNN accelerators, we propose a framework dubbed Auto-NBA to enable jointly searching for the Networks, Bitwidths, and Accelerators, by efficiently localizing the optimal design within the huge joint design space for each target dataset and acceleration specification. Our Auto-NBA integrates a heterogeneous sampling strategy to achieve unbiased search with constant memory consumption, and a novel joint-search pipeline equipped with a generic differentiable accelerator search engine. Extensive experiments and ablation studies validate that both Auto-NBA generated networks and accelerators consistently outperform state-of-the-art designs (including co-search/exploration techniques, hardware-aware NAS methods, and DNN accelerators), in terms of search time, task accuracy, and accelerator efficiency. Our codes are available at: https://github.com/RICE-EIC/Auto-NBA.

Motivation & Objective

  • To address the lack of joint optimization across neural networks, bitwidths, and accelerators, which are highly coupled yet traditionally treated separately.
  • To overcome the memory explosion and biased accuracy ranking caused by sequential training of different bitwidths during search.
  • To solve the chicken-and-egg problem in network-accelerator co-search by enabling operation-wise hardware cost estimation during search.
  • To develop a scalable, differentiable framework that efficiently explores the vast joint design space of networks, bitwidths, and accelerators.
  • To outperform existing co-search, hardware-aware NAS, and DNN accelerator designs in accuracy, latency, and search efficiency.

Proposed method

  • Introduces a heterogeneous sampling strategy that simultaneously updates weights and bitwidth choices using differentiable sampling, avoiding sequential training and ensuring unbiased accuracy ranking.
  • Employs a differentiable accelerator search engine that models accelerator micro-architectures (e.g., memory hierarchies, loop tiling, processing array size) as continuous variables for gradient-based optimization.
  • Uses a joint-search pipeline that co-optimizes network architecture, bitwidth, and accelerator configuration in an end-to-end differentiable manner.
  • Applies a constant-memory sampling scheme to prevent memory explosion during joint search across large design spaces.
  • Leverages theoretical hardware cost estimation during search to resolve the chicken-and-egg problem of unknown optimal accelerators during network search.
  • Employs a Pareto frontier-based evaluation to balance accuracy and inference speed under hardware constraints like DSP and area.

Experimental results

Research questions

  • RQ1Can a differentiable, joint search framework effectively optimize neural networks, bitwidths, and accelerators simultaneously without prohibitive memory or time costs?
  • RQ2How can the discrete and non-differentiable nature of accelerator design be integrated into a differentiable search pipeline?
  • RQ3Does heterogeneous sampling outperform sequential or uniform sampling in terms of accuracy ranking and memory efficiency during joint search?
  • RQ4To what extent does joint optimization of networks, bitwidths, and accelerators improve hardware efficiency and model accuracy compared to sequential or partial optimizations?
  • RQ5Can the proposed framework achieve better performance than state-of-the-art co-search and hardware-aware NAS methods in real-world FPGA and ASIC deployments?

Key findings

  • Auto-NBA achieves 0.96% higher accuracy and 20.9% lower latency than the NHAS co-search baseline on CIFAR-100 under comparable area consumption, demonstrating superior efficiency and accuracy.
  • The heterogeneous sampling strategy enables unbiased bitwidth ranking and constant memory usage, outperforming sequential training and uniform sampling methods.
  • Auto-NBA consistently outperforms sequential optimization baselines, achieving 1.95% higher accuracy and 1.75× better FPS, highlighting the poor correlation between theoretical and real hardware efficiency metrics.
  • The searched networks favor wide-shallow architectures on FPGA, which exploit feature/channel-wise parallelism more effectively for higher throughput.
  • The searched accelerators partition the network into pipelined chunks, with early layers tiling spatial dimensions and deeper layers tiling channel dimensions to maximize parallelism and utilization.
  • Auto-NBA achieves scalable performance across a range of DSP and area constraints, demonstrating robustness and adaptability to different hardware specifications.

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.