A Framework for Neural Network Architecture and Compile Co-optimization

Author:

Chen Weiwei1ORCID,Wang Ying2ORCID,Xu Ying1ORCID,Gao Chengsi1ORCID,Liu Cheng3ORCID,Zhang Lei3ORCID

Affiliation:

1. Institute of Computing Technology, Chinese Academy of Sciences, China and University of Chinese Academy of Sciences, Beijing, China

2. Zhejiang Lab, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China

3. Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China

Abstract

The efficiency of deep neural network (DNN) solutions on real hardware devices are mainly decided by the DNN architecture and the compiler-level scheduling strategy on the hardware. When we try to fully exploit the underlying hardware and obtain the optimal tradeoff between DNN accuracy and runtime performance, we discovered that the two optimization goals of DNN architecture and scheduling policy are intimately related to each other. However, current hardware-aware Neural Architecture Search (NAS) methods primarily focus on the DNN architecture search process, ignoring the effects of various compiler-level scheduling strategies (e.g., graph-level optimization, loop transformations, parallelization, etc.) on network candidates being evaluated in the search process. As a result, they may overlook the true-optimal DNN implementations on hardware, which can only be discovered by trying-out different combinations of scheduling strategies and DNN architectures. This work proposes a NAS framework (CHaNAS) that searches for not only the network architecture but also the dedicated compiler-level scheduling policy, as the optimal co-design solution on the target hardware. We propose to use a block-based pre-scheduling methodology to reduce the co-design search space and enable the automatic generation of the optimal co-design, including the network architecture and the tensor programs that practice the scheduling policy. Further, we introduce a new search objective function based on the generalization gap to prevent the selection of architectures that are prone to overfitting. We evaluate CHaNAS on Imagenet on different hardware back-ends against the state-of-the-art hardware-aware search method based on the MobileNet-v3 search space. Experimental results show that the co-design solutions obtained by ChaNAS show up to 1.6×, 1.9×, and 1.7×, 24 performance boost on NVIDIA P100 GPU, Intel Xeon 8163 CPU, and Samsung Note 10 Mobile, respectively, over the baselines of the same-level accuracy.

Funder

National Natural Science Foundation of China

Strategic Priority Research Program of Chinese Academy of Science

2025 Key Technology Innovation Program of Ningbo City

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference59 articles.

1. 2020. Google XLA. Retrieved from https://www.tensorflow.org/xla.

2. 2020. Inter MKL-DNN. Retrieved from https://github.com/intel/mkl-dnn.

3. 2020. NVIDIA CUBLAS Library. Retrieved from https://www.nvidia.com/.

4. Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. 2017. Tensorflow: A system for large-scale machine learning. In Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI’17). 265–283.

5. Best of Both Worlds: AutoML Codesign of a CNN and its Hardware Accelerator

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. CIM-MLC: A Multi-level Compilation Stack for Computing-In-Memory Accelerators;Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2;2024-04-27

2. Vibration-based SHM of Dębica railway steel bridge with optimized ANN and ANFIS;Journal of Constructional Steel Research;2024-04

3. APPEND: Rethinking ASIP Synthesis in the Era of AI;2023 60th ACM/IEEE Design Automation Conference (DAC);2023-07-09

4. Compiler Technologies in Deep Learning Co-Design: A Survey;Intelligent Computing;2023-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3