Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Co-design of Neural Architectures and Hardware Accelerators

Yanqi Zhou, Xuanyi Dong|arXiv (Cornell University)|Feb 17, 2021
Advanced Neural Network ApplicationsComputer Science37 references17 citations
TL;DR

This paper proposes NAHAS, a joint neural architecture and hardware accelerator search framework that co-optimizes model architecture and accelerator configurations on an industry-standard edge accelerator. By jointly searching over both spaces with hardware constraints, NAHAS achieves 1% higher ImageNet top-1 accuracy and up to 2x lower energy consumption than state-of-the-art methods.

ABSTRACT

Neural architectures and hardware accelerators have been two driving forces for the progress in deep learning. Previous works typically attempt to optimize hardware given a fixed model architecture or model architecture given fixed hardware. And the dominant hardware architecture explored in this prior work is FPGAs. In our work, we target the optimization of hardware and software configurations on an industry-standard edge accelerator. We systematically study the importance and strategies of co-designing neural architectures and hardware accelerators. We make three observations: 1) the software search space has to be customized to fully leverage the targeted hardware architecture, 2) the search for the model architecture and hardware architecture should be done jointly to achieve the best of both worlds, and 3) different use cases lead to very different search outcomes. Our experiments show that the joint search method consistently outperforms previous platform-aware neural architecture search, manually crafted models, and the state-of-the-art EfficientNet on all latency targets by around 1% on ImageNet top-1 accuracy. Our method can reduce energy consumption of an edge accelerator by up to 2x under the same accuracy constraint, when co-adapting the model architecture and hardware accelerator configurations.

Motivation & Objective

  • To address the limitations of platform-aware NAS that fix hardware configurations, which restricts model efficiency and performance.
  • To investigate how hardware accelerator configurations impact neural architecture search outcomes and model efficiency on edge devices.
  • To develop a unified framework that jointly optimizes neural architecture and hardware accelerator configurations under latency, energy, and chip area constraints.
  • To demonstrate that customizing the NAS search space and jointly searching both spaces leads to better Pareto efficiency than sequential or fixed-configuration approaches.
  • To validate the generalization of the framework across different tasks, such as image classification and semantic segmentation, using real-world edge accelerators.

Proposed method

  • Proposes NAHAS, a bi-level optimization framework that jointly searches over neural architecture and hardware accelerator configurations in a unified search space.
  • Parameterizes both neural architecture and hardware accelerator configurations (e.g., number of processing elements, memory bandwidth, compute-to-memory ratio) as tunable knobs.
  • Imposes hardware resource constraints on chip area, inference latency, and energy consumption to ensure practical feasibility.
  • Uses a task-driven approach where the search is guided by real-world workloads (e.g., image classification, object detection) rather than fixed models.
  • Employs a multi-trial search strategy with parameter sharing for efficiency, enabling scalable exploration of large search spaces.
  • Applies soft and hard constraint functions to balance exploration and constraint satisfaction during hardware and model co-optimization.

Experimental results

Research questions

  • RQ1How does fixing hardware configurations limit the performance and efficiency of platform-aware neural architecture search?
  • RQ2To what extent can joint optimization of neural architecture and hardware accelerator configurations improve accuracy, latency, and energy efficiency on edge accelerators?
  • RQ3How do different use cases (e.g., small vs. large models, different tasks) influence the optimal hardware and model configurations?
  • RQ4Can a unified search space that combines neural architecture and hardware parameters yield better Pareto-optimal solutions than sequential or isolated optimization?
  • RQ5How does the choice of NAS search strategy (e.g., oneshot vs. multi-trial) affect performance and scalability under varying latency and energy constraints?

Key findings

  • NAHAS achieves 1% higher ImageNet top-1 accuracy than state-of-the-art models, including EfficientNet, across all latency targets.
  • NAHAS reduces energy consumption by up to 2x compared to baseline accelerators while maintaining the same accuracy, demonstrating significant efficiency gains.
  • Joint search consistently outperforms sequential or fixed-configuration approaches, with phase-based search methods showing inferior performance even when search budget is doubled.
  • The optimal hardware configuration varies significantly with model size and task: small models require more PEs and less memory, while large models benefit from larger local memory and register files.
  • Removing computationally expensive operations like squeeze-and-excite and Swish non-linearity improves inference latency and energy efficiency without sacrificing accuracy.
  • Oneshot NAS is more effective than multi-trial NAS for small models with tight latency constraints, but becomes impractical for larger models due to super-network construction costs.

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.