Skip to main content
QUICK REVIEW

[Paper Review] AutoDNNchip: An Automated DNN Chip Predictor and Builder for Both FPGAs and ASICs

Pengfei Xu, Xiaofan Zhang|Rare & Special e-Zone (The Hong Kong University of Science and Technology)|Jan 6, 2020
Advanced Neural Network ApplicationsComputer Science37 references14 citations
TL;DR

AutoDNNchip is an automated framework that generates optimized FPGA- and ASIC-based DNN accelerators from PyTorch models, using a graph-based design space representation and a predictive chip model to enable end-to-end hardware generation with minimal human intervention. It achieves up to 3.86× higher performance than state-of-the-art accelerators while maintaining prediction accuracy within 10% of real measurements.

ABSTRACT

Recent breakthroughs in Deep Neural Networks (DNNs) have fueled a growing demand for DNN chips. However, designing DNN chips is non-trivial because: (1) mainstream DNNs have millions of parameters and operations; (2) the large design space due to the numerous design choices of dataflows, processing elements, memory hierarchy, etc.; and (3) an algorithm/hardware co-design is needed to allow the same DNN functionality to have a different decomposition, which would require different hardware IPs to meet the application specifications. Therefore, DNN chips take a long time to design and require cross-disciplinary experts. To enable fast and effective DNN chip design, we propose AutoDNNchip - a DNN chip generator that can automatically generate both FPGA- and ASIC-based DNN chip implementation given DNNs from machine learning frameworks (e.g., PyTorch) for a designated application and dataset. Specifically, AutoDNNchip consists of two integrated enablers: (1) a Chip Predictor, built on top of a graph-based accelerator representation, which can accurately and efficiently predict a DNN accelerator's energy, throughput, and area based on the DNN model parameters, hardware configuration, technology-based IPs, and platform constraints; and (2) a Chip Builder, which can automatically explore the design space of DNN chips (including IP selection, block configuration, resource balancing, etc.), optimize chip design via the Chip Predictor, and then generate optimized synthesizable RTL to achieve the target design metrics. Experimental results show that our Chip Predictor's predicted performance differs from real-measured ones by < 10% when validated using 15 DNN models and 4 platforms (edge-FPGA/TPU/GPU and ASIC). Furthermore, accelerators generated by our AutoDNNchip can achieve better (up to 3.86X improvement) performance than that of expert-crafted state-of-the-art accelerators.

Motivation & Objective

  • To address the growing demand for efficient, domain-specific DNN accelerators that are currently time-consuming and expertise-intensive to design.
  • To overcome the challenges of large design spaces and complex co-design between DNN algorithms and hardware architectures.
  • To enable automated, end-to-end generation of high-performance, synthesizable RTL code for both FPGA and ASIC platforms from high-level DNN models.
  • To provide accurate performance prediction and efficient design space exploration without requiring manual intervention or expert-level hardware knowledge.

Proposed method

  • AutoDNNchip uses a graph-based accelerator representation to unify and model design factors across IP, architecture, and dataflow levels, enabling flexible and scalable co-optimization.
  • It introduces a Chip Predictor that estimates energy, throughput, latency, and area using DNN model parameters, hardware configurations, technology IPs, and platform constraints with <10% error.
  • The Chip Builder performs automated design space exploration by selecting optimal IPs, configuring blocks, balancing resources, and mapping dataflows based on predictions from the Chip Predictor.
  • It supports both FPGA and ASIC target platforms by generating synthesizable RTL code with optimized dataflow mappings tailored to the target hardware.
  • The framework integrates algorithm-to-hardware co-design by allowing multiple decomposition strategies of the same DNN to explore diverse performance, energy, and area tradeoffs.
  • It leverages high-level synthesis and pre-verified hardware IPs to accelerate the generation of production-ready RTL without manual RTL coding.

Experimental results

Research questions

  • RQ1Can a unified design space representation effectively model the interplay between DNN models, hardware IPs, and dataflow mappings across both FPGA and ASIC platforms?
  • RQ2Can a machine learning-based predictor accurately estimate key accelerator metrics (energy, latency, throughput, area) with minimal error using only high-level DNN and hardware parameters?
  • RQ3Can automated design space exploration guided by accurate prediction outperform expert-crafted accelerators in terms of performance and efficiency?
  • RQ4How effective is the framework in generating high-performance, synthesizable RTL code for both FPGA and ASIC platforms without human intervention?
  • RQ5To what extent can the generated accelerators surpass state-of-the-art designs in real-world benchmarks?

Key findings

  • The Chip Predictor achieves a prediction error of less than 10% across 15 DNN models and 4 platforms (edge-FPGA, TPU, GPU, ASIC), demonstrating high accuracy in performance estimation.
  • AutoDNNchip-generated FPGA accelerators achieve up to 3.86× lower latency than state-of-the-art designs while maintaining similar energy efficiency (within 15% difference).
  • ASIC-based accelerators generated by AutoDNNchip outperform the Shidiannao ASIC by 7.9% to 58.3% in energy consumption under the same throughput constraints.
  • The framework successfully generates synthesizable RTL code for both FPGA and ASIC platforms, enabling direct deployment and validation.
  • Design space exploration guided by the Chip Predictor leads to optimized configurations that achieve better performance and energy efficiency than manually crafted counterparts.
  • The open-source implementation of AutoDNNchip is publicly available at https://github.com/RICE-EIC/AutoDNNchip.git, enabling reproducibility and community extension.

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.