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 · OpenReview

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

Introduction

Designing an efficient AI system is traditionally a "three-way tug-of-war" between the network architecture, quantization bitwidths, and the hardware accelerator. Historically, these components are designed in silos: an engineer selects a model, another quantizes it, and a third builds the hardware. However, these choices are deeply coupled. A model optimized for a GPU may perform poorly on an FPGA, and a quantization scheme suitable for one architecture might fail for another.

Searching for the optimal combination of all three simultaneously presents a "chicken and egg" problem: the best hardware cannot be determined without the model, and the best model cannot be selected without knowing the hardware's cost. Furthermore, the joint search space is astronomical—approximately $2.3 \times 10^{21}$ combinations—making standard search methods prohibitively slow or memory-intensive.

Methodology: The Auto-NBA Framework

Auto-NBA (Neural-Bitwidth-Accelerator) is a differentiable joint-search framework designed to navigate this massive design space efficiently.

Overview of the Auto-NBA framework for joint search of networks, bitwidths, and accelerators.

The framework introduces three core innovations:

  1. Heterogeneous Sampling: To prevent memory explosion when simulating multiple bitwidths, Auto-NBA uses a soft Gumbel-Softmax for weight updates (maintaining an unbiased search) and a hard Gumbel-Softmax for bitwidth parameters. This ensures constant, manageable memory consumption.
  2. Differentiable Accelerator Search Engine: Hardware parameters like buffer sizes and processing elements are typically discrete. Auto-NBA abstracts these into a searchable space optimized via gradient descent, allowing hardware design to evolve alongside the neural network.
  3. Chunk-based Pipeline Template: The network is partitioned into "chunks," where each chunk is optimized for a specific cluster of layers, maximizing throughput through efficient pipelining.

Key Results and Insights

The framework was evaluated on CIFAR-10, CIFAR-100, and ImageNet benchmarks, comparing against state-of-the-art hardware-aware NAS and co-design frameworks like EDD and HS-Co-Opt.

Performance Gains

  • The Power of Synergy: Searching all three dimensions (Network + Bitwidth + Accelerator) consistently yields better results than searching any two. On ImageNet, Auto-NBA found models with +5.96% higher accuracy and 4.4x better speed than methods co-searching only the network and accelerator.
  • ImageNet Superiority: Compared to the previous best co-search method (EDD), Auto-NBA achieved +1.3% higher accuracy while being 1.59x faster in terms of Frames Per Second (FPS).
  • ASIC Efficiency: When targeting ASIC (custom chip) designs, Auto-NBA achieved a 371x to 756x reduction in Energy-Delay Product (EDP) compared to sequential optimization baselines.

Search Efficiency

By utilizing a differentiable approach rather than Reinforcement Learning (RL), the authors reduced search time from thousands of GPU hours to just 80 hours for ImageNet—a 3.6x to 30x improvement over previous "one-shot" NAS methods. On CIFAR-10, Auto-NBA completed its joint search in just 6 GPU hours.

Conclusion

Auto-NBA demonstrates that joint optimization of networks, bitwidths, and accelerators is not only feasible but essential for peak efficiency. While the current framework relies on a predefined hardware template and focuses on image classification, it sets a new standard for automated hardware-software co-design. Future work could explore whether these joint-search benefits hold for more complex tasks like object detection or Natural Language Processing (NLP), and extend bitwidth search to even more granular levels.

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