CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs
Liangzhen Lai, Naveen Suda, Vikas Chandra
TL;DR
CMSIS-NN delivers optimized fixed-point neural network kernels for Arm Cortex-M CPUs, enabling efficient edge inference on resource-limited devices. By using fixed-point quantization, specialized 2x2 matmul tiling, partial im2col convolutions, in situ pooling, and SWAR/lookup-based activations, the suite achieves substantial runtime and energy improvements over baselines. The presented CIFAR-10 CNN evaluation demonstrates practical feasibility on Cortex-M7 with low memory footprint and competitive accuracy, highlighting the approach's suitability for real-time edge AI. Available as open-source primitives, these kernels can accelerate deployment of NN models on microcontrollers and facilitate integration with ML frameworks.
Abstract
Deep Neural Networks are becoming increasingly popular in always-on IoT edge devices performing data analytics right at the source, reducing latency as well as energy consumption for data communication. This paper presents CMSIS-NN, efficient kernels developed to maximize the performance and minimize the memory footprint of neural network (NN) applications on Arm Cortex-M processors targeted for intelligent IoT edge devices. Neural network inference based on CMSIS-NN kernels achieves 4.6X improvement in runtime/throughput and 4.9X improvement in energy efficiency.
