RCE-NN: a five-stage pipeline to execute neural networks (CNNs) on resource-constrained IoT edge devices

B. Sudharsan, J. Breslin, M. Ali
{"title":"RCE-NN: a five-stage pipeline to execute neural networks (CNNs) on resource-constrained IoT edge devices","authors":"B. Sudharsan, J. Breslin, M. Ali","doi":"10.1145/3410992.3411005","DOIUrl":null,"url":null,"abstract":"Microcontroller Units (MCUs) in edge devices are resource constrained due to their limited memory footprint, fewer computation cores, and low clock speeds. These limitations constrain one from deploying and executing machine learning models on MCUs. To fit, deploy and execute Convolutional Neural Networks (CNNs) for any IoT use-case on small MCUs, a complete design flow is required. Resource Constrained Edge - Neural Networks (RCE-NN) is the name given to our proposed design flow, with a five-stage pipeline that developers can follow for executing CNNs on MCUs. In this pipeline, the initial model architecture and training stage consists of four well-defined tasks on model size, workload, operations and quantization awareness, which maps the desired CNN as captured in an executable specification to a resource-constrained MCU's specification. The next quantization and conversion stage reduces model size, saves memory, and simplifies calculations without much impact on the accuracy. In the third stage, the quantized version of the model is translated into a c-byte array since the MCUs lack native file-system support. The translated c-byte array is fused with the main program of an IoT use-case and binaries are built using techniques from the fourth stage. Finally, the method presented in the last deployment stage is used to flash the built binaries onto MCUs, as this method allows the memory of the MCU to be fully utilized by the CNN and its operations. We evaluated RCE-NN using eight popular MCU boards. The results show that, when users realize all five pipeline stages, they can fit, deploy and execute multiple CNNs across multiple open-source MCU boards. The RCE-NN pipeline components quantize and compress the CNNs to 1/10th of their original size, enabling the CNNs to fit on MCUs with no or minimal loss in performance, both after quantization and compression, and also during runtime.","PeriodicalId":343277,"journal":{"name":"Proceedings of the 10th International Conference on the Internet of Things","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"27","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 10th International Conference on the Internet of Things","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3410992.3411005","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 27

Abstract

Microcontroller Units (MCUs) in edge devices are resource constrained due to their limited memory footprint, fewer computation cores, and low clock speeds. These limitations constrain one from deploying and executing machine learning models on MCUs. To fit, deploy and execute Convolutional Neural Networks (CNNs) for any IoT use-case on small MCUs, a complete design flow is required. Resource Constrained Edge - Neural Networks (RCE-NN) is the name given to our proposed design flow, with a five-stage pipeline that developers can follow for executing CNNs on MCUs. In this pipeline, the initial model architecture and training stage consists of four well-defined tasks on model size, workload, operations and quantization awareness, which maps the desired CNN as captured in an executable specification to a resource-constrained MCU's specification. The next quantization and conversion stage reduces model size, saves memory, and simplifies calculations without much impact on the accuracy. In the third stage, the quantized version of the model is translated into a c-byte array since the MCUs lack native file-system support. The translated c-byte array is fused with the main program of an IoT use-case and binaries are built using techniques from the fourth stage. Finally, the method presented in the last deployment stage is used to flash the built binaries onto MCUs, as this method allows the memory of the MCU to be fully utilized by the CNN and its operations. We evaluated RCE-NN using eight popular MCU boards. The results show that, when users realize all five pipeline stages, they can fit, deploy and execute multiple CNNs across multiple open-source MCU boards. The RCE-NN pipeline components quantize and compress the CNNs to 1/10th of their original size, enabling the CNNs to fit on MCUs with no or minimal loss in performance, both after quantization and compression, and also during runtime.
RCE-NN:在资源受限的物联网边缘设备上执行神经网络(cnn)的五阶段管道
边缘设备中的微控制器单元(mcu)由于其有限的内存占用、较少的计算内核和较低的时钟速度而受到资源限制。这些限制限制了在mcu上部署和执行机器学习模型。为了适应,部署和执行卷积神经网络(cnn)在小型mcu上的任何物联网用例,需要一个完整的设计流程。资源约束边缘神经网络(RCE-NN)是我们提出的设计流程的名称,开发人员可以遵循五阶段管道在mcu上执行cnn。在该管道中,初始模型架构和训练阶段由模型大小、工作量、操作和量化意识四个定义良好的任务组成,将可执行规范中捕获的所需CNN映射到资源受限的MCU规范。下一个量化和转换阶段减少了模型大小,节省了内存,简化了计算,而对准确性没有太大影响。在第三阶段,由于mcu缺乏本机文件系统支持,因此将模型的量化版本转换为c字节数组。翻译后的c字节数组与物联网用例的主程序融合,使用第四阶段的技术构建二进制文件。最后,在最后一个部署阶段中提出的方法用于将构建的二进制文件闪存到MCU上,因为这种方法允许MCU的内存被CNN及其操作充分利用。我们使用8个流行的MCU板来评估RCE-NN。结果表明,当用户实现所有五个流水线阶段时,他们可以在多个开源MCU板上安装,部署和执行多个cnn。RCE-NN流水线组件将cnn量化并压缩到原始尺寸的1/10,使cnn在量化和压缩之后以及运行期间都能适应mcu,而性能没有或最小损失。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
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学术文献互助群
群 号:604180095
Book学术官方微信
小红书