arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.10702cs.LGcs.AR
收藏

32位微控制器上嵌入式神经网络卷积基元的评估

Evaluation of Convolution Primitives for Embedded Neural Networks on 32-bit Microcontrollers

CEA Tech(法国原子能与替代能源委员会技术部);Mines Saint-Etienne(圣艾蒂安国立高等矿业学校);Univ. Grenoble Alpes(格勒诺布尔阿尔卑斯大学);CEA(法国原子能与替代能源委员会);Leti(法国原子能与替代能源委员会电子与信息技术实验室)

Baptiste Nguyen, Pierre-Alain Moellic, Sylvain Blayac

摘要:

在诸如32位微控制器之类的受限硬件平台上部署神经网络是一项具有挑战性的任务,因为它们的推理过程需要大量的存储器、计算和能量。为了解决这些问题,已经提出了几种卷积原语,以使标准卷积在计算上更有效。然而,这些原语很少真正实现32位微控制器。在这项工作中,我们收集了不同的最先进的卷积原语,并提出了一个实现ARM Cortex-M处理器系列与开源部署平台(NNoM)。然后,我们对这些实现进行了实验表征测试。我们的基准揭示了理论MAC和能耗之间的线性关系。从而显示出使用像移位卷积这样的计算效率高的原语的优点。我们讨论了显着减少延迟和能源消耗,由于使用SIMD指令,并强调数据重用的重要性,在这些性能增益。为了再现性目的和进一步的实验,代码和实验是公开可用的。

英文摘要:

Deploying neural networks on constrained hardware platforms such as 32-bit microcontrollers is a challenging task because of the large memory, computing and energy requirements of their inference process. To tackle these issues, several convolution primitives have been proposed to make the standard convolution more computationally efficient. However, few of these primitives are really implemented for 32-bit microcontrollers. In this work, we collect different state-of-the-art convolutional primitives and propose an implementation for ARM Cortex-M processor family with an open source deployment platform (NNoM). Then, we carry out experimental characterization tests on these implementations. Our benchmark reveals a linear relationship between theoretical MACs and energy consumption. Thus showing the advantages of using computationally efficient primitives like shift convolution. We discuss about the significant reduction in latency and energy consumption due to the use of SIMD instructions and highlight the importance of data reuse in those performance gains. For reproducibility purpose and further experiments, codes and experiments are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑