cimax编译器:面向异构内存计算平台的端到端人工神经网络编译器

Chen Yang, Yawei Wang, Lei Wu, Xiang Qiu
{"title":"cimax编译器:面向异构内存计算平台的端到端人工神经网络编译器","authors":"Chen Yang, Yawei Wang, Lei Wu, Xiang Qiu","doi":"10.1109/WCCCT56755.2023.10052488","DOIUrl":null,"url":null,"abstract":"As artificial neural network (ANN) being widely adopted in edge applications, such as voice recognition, and face detection, etc. Computing-In-Memory (CIM) accelerators have received much attention because they are faster and more energy efficient. However, existing compilers are mainly applicable for traditional backend devices rather than emerging hardware architectures like CIM accelerator. In this paper, we propose an end-to-end neural network compiler, named CIMAX-Compiler. It can convert an ANN model in Open Neural Network Exchange (ONNX) format to executable codes, which runs on a heterogeneous embedded system composed of an MCU and a CIM accelerator. CIMAX-Compiler greatly reduces model deployment effort from tens of engineer-hours to less than a second. In addition, we applied several optimization techniques such as operator fusion and convolution compression to further improve compiled code performance. Experimental results show that the optimized code can speed up ANN model inference performance by more than 2× compared with the base-line layer to layer implementation.","PeriodicalId":112978,"journal":{"name":"2023 6th World Conference on Computing and Communication Technologies (WCCCT)","volume":"29 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"CIMAX-Compiler: An End-to-End ANN Compiler for Heterogeneous Computing-in-Memory Platform\",\"authors\":\"Chen Yang, Yawei Wang, Lei Wu, Xiang Qiu\",\"doi\":\"10.1109/WCCCT56755.2023.10052488\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"As artificial neural network (ANN) being widely adopted in edge applications, such as voice recognition, and face detection, etc. Computing-In-Memory (CIM) accelerators have received much attention because they are faster and more energy efficient. However, existing compilers are mainly applicable for traditional backend devices rather than emerging hardware architectures like CIM accelerator. In this paper, we propose an end-to-end neural network compiler, named CIMAX-Compiler. It can convert an ANN model in Open Neural Network Exchange (ONNX) format to executable codes, which runs on a heterogeneous embedded system composed of an MCU and a CIM accelerator. CIMAX-Compiler greatly reduces model deployment effort from tens of engineer-hours to less than a second. In addition, we applied several optimization techniques such as operator fusion and convolution compression to further improve compiled code performance. Experimental results show that the optimized code can speed up ANN model inference performance by more than 2× compared with the base-line layer to layer implementation.\",\"PeriodicalId\":112978,\"journal\":{\"name\":\"2023 6th World Conference on Computing and Communication Technologies (WCCCT)\",\"volume\":\"29 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-01-06\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2023 6th World Conference on Computing and Communication Technologies (WCCCT)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/WCCCT56755.2023.10052488\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 6th World Conference on Computing and Communication Technologies (WCCCT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/WCCCT56755.2023.10052488","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

随着人工神经网络(ANN)在语音识别、人脸检测等边缘应用中的应用越来越广泛。内存中计算(CIM)加速器由于速度更快、更节能而受到广泛关注。然而,现有的编译器主要适用于传统的后端设备,而不适用CIM加速器等新兴硬件架构。在本文中,我们提出了一个端到端的神经网络编译器,命名为CIMAX-Compiler。它可以将开放式神经网络交换(Open Neural Network Exchange, ONNX)格式的人工神经网络模型转换为可执行代码,并运行在由单片机和CIM加速器组成的异构嵌入式系统上。CIMAX-Compiler将模型部署工作从几十个工程师小时大大减少到不到一秒钟。此外,我们还应用了算子融合和卷积压缩等优化技术来进一步提高编译代码的性能。实验结果表明,与基线分层实现相比,优化后的代码可将人工神经网络模型推理性能提高2倍以上。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
CIMAX-Compiler: An End-to-End ANN Compiler for Heterogeneous Computing-in-Memory Platform
As artificial neural network (ANN) being widely adopted in edge applications, such as voice recognition, and face detection, etc. Computing-In-Memory (CIM) accelerators have received much attention because they are faster and more energy efficient. However, existing compilers are mainly applicable for traditional backend devices rather than emerging hardware architectures like CIM accelerator. In this paper, we propose an end-to-end neural network compiler, named CIMAX-Compiler. It can convert an ANN model in Open Neural Network Exchange (ONNX) format to executable codes, which runs on a heterogeneous embedded system composed of an MCU and a CIM accelerator. CIMAX-Compiler greatly reduces model deployment effort from tens of engineer-hours to less than a second. In addition, we applied several optimization techniques such as operator fusion and convolution compression to further improve compiled code performance. Experimental results show that the optimized code can speed up ANN model inference performance by more than 2× compared with the base-line layer to layer implementation.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信