arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18267cs.ARcs.AIcs.LG
收藏

MCU-MixQ:面向MCU的软硬件协同优化混合精度神经网络设计框架

MCU-MixQ: A HW/SW Co-optimized Mixed-precision Neural Network Design Framework for MCUs

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);North China Electric Power University(华北电力大学)

Junfeng Gong, Cheng Liu, Long Cheng, Huawei Li, Xiaowei Li

AI总结:

针对MCU资源受限且缺乏子字节混合精度SIMD操作的问题,提出软硬件协同优化的MCU-MixQ框架,通过SIMD指令打包和NAS技术提升卷积效率,在相同资源约束下实现2.1倍和1.4倍的加速。

摘要:

利用刚好足够的数据宽度进行神经网络处理的混合精度神经网络(MPNN)是满足MCU内存和计算等严格资源限制的有效方法。然而,MCU级ISA中仍然缺乏子字节和混合精度SIMD操作,MCU有限的计算能力仍未得到充分利用,这进一步加剧了神经网络处理中遇到的计算瓶颈。因此,MPNN的优势无法充分发挥。在这项工作中,我们提出在典型MCU中将多个低比特位算术操作打包到单指令多数据(SIMD)指令中,然后通过探索卷积中的数据并行性和计算并行性以及所提出的SIMD打包,开发出高效的卷积算子。最后,我们进一步利用神经架构搜索(NAS)构建了一个软硬件协同设计的MPNN设计框架,即MCU-MixQ。该框架可以同时优化MPNN量化和MPNN实现效率,在神经网络性能和准确性之间取得优化平衡。根据我们的实验结果,在相同的资源约束下,MCU-MixQ分别比CMix-NN和MCUNet实现了2.1倍和1.4倍的加速。

英文摘要:

Mixed-precision neural network (MPNN) that utilizes just enough data width for the neural network processing is an effective approach to meet the stringent resources constraints including memory and computing of MCUs. Nevertheless, there is still a lack of sub-byte and mixed-precision SIMD operations in MCU-class ISA and the limited computing capability of MCUs remains underutilized, which further aggravates the computing bound encountered in neural network processing. As a result, the benefits of MPNNs cannot be fully unleashed. In this work, we propose to pack multiple low-bitwidth arithmetic operations within a single instruction multiple data (SIMD) instructions in typical MCUs, and then develop an efficient convolution operator by exploring both the data parallelism and computing parallelism in convolution along with the proposed SIMD packing. Finally, we further leverage Neural Architecture Search (NAS) to build a HW/SW co-designed MPNN design framework, namely MCU-MixQ. This framework can optimize both the MPNN quantization and MPNN implementation efficiency, striking an optimized balance between neural network performance and accuracy. According to our experiment results, MCU-MixQ achieves 2.1$\times$ and 1.4$\times$ speedup over CMix-NN and MCUNet respectively under the same resource constraints.

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

↑