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

Yonggan Fu, Yongan Zhang, Yang Zhang, David D. Cox, Yingyan Lin

Overview

Maximizing the acceleration efficiency of deep neural networks (DNNs) on edge devices requires tuning three highly coupled dimensions: the network architecture (e.g., layers, channels), the precision (layer-wise bitwidths), and the hardware accelerator (e.g., buffer allocation, processing elements).

Traditionally, these are optimized separately or in pairs. However, the "best" accelerator for a wide, shallow network differs drastically from one designed for a narrow, deep network. Jointly searching all three presents a "chicken-and-egg" dilemma: evaluating a network requires knowing its hardware cost, but the optimal hardware cannot be determined until the network is finalized. Furthermore, exploring this massive joint space typically leads to prohibitive memory explosion during the search process.

Auto-NBA is a novel framework that automates this joint design. By introducing a "heterogeneous sampling" strategy and a differentiable hardware search engine, it achieves state-of-the-art accuracy and hardware efficiency while running up to 30× faster than previous joint-search methods.

The Auto-NBA framework tackles three major bottlenecks in joint search: a prohibitive search space, non-differentiable hardware parameters, and massive memory costs.

Core Methodology

Auto-NBA overcomes the traditional bottlenecks of joint search using a fully differentiable approach:

1. Heterogeneous Sampling for Memory Efficiency

A major challenge in joint search is the memory explosion that occurs when training a "supernet" with multiple bitwidth options simultaneously. To solve this, the authors developed a heterogeneous sampling trick. During the search, the network weights are updated using a weighted sum of all precision options (soft Gumbel-Softmax). However, the architectural parameters are updated using only a single sampled path (hard Gumbel-Softmax). This decoupling keeps memory consumption constant, regardless of how many bitwidth options are included in the search space, while avoiding the biased search results that plague standard hard sampling.

Comparison of memory consumption and probability evolution. Heterogeneous sampling (c) avoids the biased search results seen in standard hard sampling (b) while maintaining the lower memory footprint of soft sampling (a).

Hardware parameters—such as buffer sizes, processing element (PE) counts, and tiling strategies—are inherently discrete and non-differentiable. Auto-NBA employs a single-path sampling strategy to relax these parameters, allowing them to be optimized via standard gradient descent alongside the network architecture.

3. Chunk-Based Joint-Search Pipeline

The framework alternates between updating the supernet weights and the architecture/hardware parameters. It utilizes a chunk-based hardware template that can be customized for either FPGAs or ASICs, allowing the search to partition the network and assign different hardware resources to different groups of layers based on their specific data reuse patterns.

Key Results

Evaluated on standard computer vision benchmarks (CIFAR-10, CIFAR-100, and ImageNet), Auto-NBA consistently outperforms both human-designed and automatically searched competitors:

  • Search Speed: On ImageNet, Auto-NBA completed its search in just 80 GPU hours. This is a massive improvement over other state-of-the-art one-shot NAS methods, which typically require 288 to 2400 hours.
  • Performance & Throughput: Auto-NBA achieved a +1.3% higher accuracy and 1.59× better throughput (FPS) on ImageNet compared to EDD, the most relevant joint-search baseline.
  • ASIC Efficiency: When targeting ASICs, Auto-NBA achieved a staggering 371× to 756× reduction in Energy-Delay Product (EDP) compared to baseline co-exploration methods. This efficiency gain is largely driven by optimizing the hardware to perfectly match the searched network's data reuse patterns.

Limitations and Future Directions

While Auto-NBA represents a significant leap forward, it currently operates within a specific chunk-based pipeline template. Future work could explore more radical hardware architectures beyond standard PE arrays. Additionally, extending this joint search methodology from image classification to object detection or transformer-based NLP tasks presents an exciting frontier for hardware-aware AI design.

Summary updated

BibTeX
@inproceedings{fu2021auto,
  author = {Yonggan Fu and Yongan Zhang and Yang Zhang and David D. Cox and Yingyan Lin},
  title = {{Auto-NBA: Efficient and Effective Search Over the Joint Space of Networks, Bitwidths, and Accelerators}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=VWsALGCg20},
}
Figure