AutoDNNchip: An Automated DNN Chip Predictor and Builder for Both FPGAs and ASICs
Authors:
- Pengfei XuPXPengfei Xu
- Xiaofan ZhangXZXiaofan Zhang
- Cong HaoCHCong Hao
- Yang ZhaoYZYang Zhao
- Yongan ZhangYZYongan Zhang
- Yue WangYWYue Wang
- Chaojian LiCLChaojian Li
- Zetong GuanZGZetong Guan
- Deming ChenDCDeming Chen
- Yingyan LinYLYingyan Lin
Preprint
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.Keywords
All Related Versions
This publication has 4 references indexed in Scilit:
- Dual Dynamic Inference: Enabling More Efficient, Adaptive, and Controllable Deep InferenceIEEE Journal of Selected Topics in Signal Processing, 2020
- Caffeine: Toward Uniformed Representation and Acceleration for Deep Convolutional Neural NetworksIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2018
- Throughput-Optimized FPGA Accelerator for Deep Convolutional Neural NetworksACM Transactions on Reconfigurable Technology and Systems, 2017
- Eyeriss: An Energy-Efficient Reconfigurable Accelerator for Deep Convolutional Neural NetworksIEEE Journal of Solid-State Circuits, 2016