NPU加速让嵌入式微控制器实现低功耗高效机器学习推理
Evaluating the Energy Efficiency of NPU-Accelerated Machine Learning Inference on Embedded Microcontrollers
- 用NPU替代纯CPU运行模型,显著降低能耗与延迟
- 大型模型推理能耗降低最高达143倍,延迟提升超125倍
- 适合电池供电、实时性要求高的边缘设备部署
在电池供电和实时边缘设备中,将机器学习模型部署于微控制器(MCU)面临严格的能耗、延迟和内存限制。尽管软件优化如量化和剪枝可减小模型规模,硬件加速已成为实现高效嵌入式推理的关键。本文以Alif Semiconductor Ensemble E7开发板上的ARM Cortex-M55核心搭配Ethos-U55 NPU为平台,评估了神经处理单元(NPU)对MCU上机器学习执行的影响。采用精确的能耗测量方法,通过GPIO触发高分辨率数字万用表同步并扣除空闲状态能耗,确保能量消耗归因准确。实验涵盖六种代表性模型:MiniResNet、MobileNetV2、FD-MobileNet、MNIST、TinyYolo和SSD-MobileNet。结果表明,将推理任务卸载至NPU后,中大型模型的延迟改善达7至125倍以上,每推理一次的净能耗降低最高达143倍。值得注意的是,NPU使原本无法在纯CPU路径上运行的SSD-MobileNet得以执行,凸显其在功能与效率上的双重优势。研究确立了NPU作为能源感知嵌入式人工智能的核心地位,实现了微控制器级别的实时、低功耗机器学习推理。
原文摘要 · Abstract (English)
The deployment of machine learning (ML) models on microcontrollers (MCUs) is constrained by strict energy, latency, and memory requirements, particularly in battery-operated and real-time edge devices. While software-level optimizations such as quantization and pruning reduce model size and computation, hardware acceleration has emerged as a decisive enabler for efficient embedded inference. This paper evaluates the impact of Neural Processing Units (NPUs) on MCU-based ML execution, using the ARM Cortex-M55 core combined with the Ethos-U55 NPU on the Alif Semiconductor Ensemble E7 development board as a representative platform. A rigorous measurement methodology was employed, incorporating per-inference net energy accounting via GPIO-triggered high-resolution digital multimeter synchronization and idle-state subtraction, ensuring accurate attribution of energy costs. Experimental results across six representative ML models -including MiniResNet, MobileNetV2, FD-MobileNet, MNIST, TinyYolo, and SSD-MobileNet-demonstrate substantial efficiency gains when inference is offloaded to the NPU. For moderate to large networks, latency improvements ranged from 7x to over 125x, with per-inference net energy reductions up to 143x. Notably, the NPU enabled execution of models unsupported on CPU-only paths, such as SSD-MobileNet, highlighting its functional as well as efficiency advantages. These findings establish NPUs as a cornerstone of energy-aware embedded AI, enabling real-time, power-constrained ML inference at the MCU level.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。