An In-depth Comparison of Compilers for Deep Neural Networks on Hardware

Yu Xing,Jian Weng,Yushun Wang,Lingzhi Sui,Yi Shan,Yu Wang
DOI: https://doi.org/10.1109/ICESS.2019.8782480
2019-01-01
Abstract:Deep neural networks (DNNs) are currently the foundation for many artificial intelligence tasks. The difficulty of mapping NN models to high-performance hardware implementations arises from factors ranging from the computation complexity of multiple operations to different hardware features such as memory hierarchy and parallelism. In this article, we present a generic compiler process flow and make an in-depth comparison of compiler frameworks regarding their domain-specific language (DSL), intermediate representations (IRs), optimization strategies and autoscheduling methods. We reimplement typical NN models based on these compiler frameworks and evaluate the resulting performance. We also review our previous work(Deep Neural Network Virtual Machine, DNNVM) on compiler frameworks and optimization for a custom FPGA-based accelerator to gain inspiration regarding the difference between compiler design for general-purpose processors and that of FPGA-based accelerators.
What problem does this paper attempt to address?