Abstract
Powerful yet complex deep neural networks (DNNs) have fueled a booming demand for efficient DNN solutions to bring DNN-powered intelligence into numerous applications. Jointly optimizing the networks and their accelerators are promising in providing optimal performance. However, the great potential of such solutions have yet to be unleashed due to the challenge of simultaneously exploring the vast and entangled, yet different design spaces of the networks and their accelerators. To this end, we propose DNA, a Differentiable Network-Accelerator co-search framework for automatically searching for matched networks and accelerators to maximize both the task accuracy and acceleration efficiency. Specifically, DNA integrates two enablers: (1) a generic design space for DNN accelerators that is applicable to both FPGA- and ASIC-based DNN accelerators and compatible with DNN frameworks such as PyTorch to enable algorithmic exploration for more efficient DNNs and their accelerators; and (2) a joint DNN network and accelerator co-search algorithm that enables simultaneously searching for optimal DNN structures and their accelerators' micro-architectures and mapping methods to maximize both the task accuracy and acceleration efficiency. Experiments and ablation studies based on FPGA measurements and ASIC synthesis show that the matched networks and accelerators generated by DNA consistently outperform state-of-the-art (SOTA) DNNs and DNN accelerators (e.g., 3.04x better FPS with a 5.46% higher accuracy on ImageNet), while requiring notably reduced search time (up to 1234.3x) over SOTA co-exploration methods, when evaluated over ten SOTA baselines on three datasets.
Introduction
The deployment of Deep Neural Networks (DNNs) on edge devices requires a delicate balance between model accuracy and hardware efficiency. Traditionally, hardware and software are designed in isolation, leading to sub-optimal performance. Jointly optimizing the network architecture and its hardware accelerator offers a path to superior efficiency, but this "co-design" process faces significant hurdles. The search space is astronomically large, and the relationship between network parameters and hardware configurations is often non-differentiable and entangled.
Researchers from Rice University, the University of Notre Dame, and Facebook propose DNA (Differentiable Network-Accelerator Co-Search) to address these challenges. DNA is the first framework to leverage gradient-based optimization to simultaneously explore both the neural network architecture and the hardware accelerator's design space.
The DNA Framework
The DNA framework breaks the "chicken-and-egg" cycle of hardware-software co-design by integrating two specialized engines into a unified, differentiable search loop.
Differentiable Network Search (DNS) Engine
The DNS engine utilizes hardware-aware Neural Architecture Search (NAS) techniques. It employs a Gumbel-Softmax approach to select optimal operations—such as kernel sizes and expansion ratios—for each layer of the DNN.
Differentiable Accelerator Search (DAS) Engine
The DAS engine is the core innovation of the framework. It operates within a Generic Accelerator Design Space (GADS) that models hardware using a nested for-loop template. This template is versatile enough to represent both FPGA and ASIC designs, covering parameters like loop-order, loop-size, Network-on-Chip (NoC) topology, and the count of Processing Elements (PEs).
Joint Co-Search Algorithm
To synchronize the two engines, DNA samples candidate networks during each training epoch. It then identifies the optimal hardware for these specific candidates using the DAS engine and uses the resulting hardware cost to update the network's architectural parameters. This allows the hardware and software to evolve in tandem toward a global optimum.
Experimental Results
DNA was evaluated on CIFAR-10, CIFAR-100, and ImageNet benchmarks against ten state-of-the-art baselines. The framework demonstrated an ability to navigate the vast design space to find high-performing configurations that balance throughput and accuracy.
Efficiency and Performance
- Search Speed: DNA achieves a massive reduction in search time. On CIFAR-100, it found a solution in just 4.2 GPU hours, a 1234.3x speedup over Reinforcement Learning-based methods like BSW.
- ImageNet Performance: Compared to the HS-Co-Opt baseline, DNA-generated models achieved 5.46% higher accuracy while running 3.04x faster (FPS) on the same FPGA budget.
- ASIC Efficiency: For ASIC designs, DNA delivered a 324x reduction in Energy-Delay Product (EDP) compared to the NASAIC baseline.
Architectural Insights
The co-search process revealed that "wider" networks (more channels) are often preferable to "deeper" ones for custom hardware, as they offer more parallelization opportunities. Additionally, the search automatically discovered that early layers benefit from spatial parallelism, while deeper layers benefit from channel parallelism, tailoring the hardware dataflow accordingly.
Conclusion
DNA demonstrates that making hardware search differentiable can transform a complex combinatorial problem into an efficient optimization task. While the framework currently relies on hardware performance predictors and a fixed architectural template, it sets a new standard for rapid, high-performance hardware-software co-design. Future work will explore extending DNA to more complex tasks like object detection and natural language processing.
Summary updated