The deployment of Deep Neural Networks (DNNs) on hardware accelerators involves a fundamental trade-off between performance and scalability. Traditional designs typically fall into two categories: layer-wise pipeline architectures, which provide high throughput but struggle with scalability as network depth increases, and generic reusable architectures, which offer scalability but often suffer from efficiency losses due to varying layer requirements. This paper presents DNNExplorer, an automated framework designed to navigate this design space by introducing a novel hybrid hardware paradigm.
The Challenge of Arithmetic Intensity
A primary hurdle in DNN hardware design is the extreme variance in Arithmetic Intensity—the ratio of computation to memory access—across different layers. In networks like VGG-16, this intensity can fluctuate by more than 250× between early and late layers.
- Paradigm 1 (Dedicated Pipelines): These are highly effective for specific layer requirements but lead to resource fragmentation. Implementing a dedicated hardware stage for every layer in a deep network quickly exhausts available silicon.
- Paradigm 2 (Generic Engines): These use a single, reusable compute engine for all layers. While scalable, they are often inefficient because a "one-size-fits-all" hardware configuration cannot optimally handle both compute-heavy early layers and data-heavy late layers.
DNNExplorer: An Automated Exploration Framework
To resolve these issues, DNNExplorer introduces a Hybrid Architecture (Paradigm 3). This approach implements dedicated pipeline stages for the initial layers, where variance is highest, and then transitions to a generic reusable engine for the remaining, more uniform layers.
The framework employs a two-level Design Space Exploration (DSE) strategy:
- Global Optimization: Using Particle Swarm Optimization (PSO), the tool identifies the optimal "split-point" between the pipeline and generic sections and partitions resources accordingly.
- Local Optimization: Hardware parameters for each section are fine-tuned to maximize performance within the allocated resource budget.
Crucially, DNNExplorer utilizes fast analytical modeling to predict performance, bypassing the need for time-consuming hardware simulations.
Evaluation and Key Results
The framework was evaluated using standard computer vision models (VGG-16, ResNet-18/34, AlexNet, ZFNet) on Xilinx ZC706 and KU115 FPGAs.
The results demonstrate the framework's effectiveness:
- High Accuracy: The analytical models achieved an average error rate of only 1.15% compared to actual board measurements, enabling rapid and reliable design exploration.
- Superior Throughput: The hybrid paradigm achieved up to 4.2× higher throughput (GOP/s) than state-of-the-art pipeline designs for deep networks.
- Enhanced Efficiency: It provided 2.0× better DSP efficiency than generic designs for specific workloads, often maintaining over 95% utilization.
- Scalability: Unlike pure pipeline designs, which see performance drop by nearly 78% when scaling from 13 to 38 layers, the hybrid approach maintains stable performance regardless of depth.
Conclusion
DNNExplorer successfully automates the search for the "Goldilocks" zone in AI hardware. By identifying the optimal split-point where the benefits of dedicated hardware diminish, it allows designers to deploy deep neural networks with unprecedented efficiency and throughput. While currently focused on FPGAs and CNNs, future work aims to extend this modular strategy to support emerging architectures like Transformers and a broader range of AI applications.
Summary updated