arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.16815cs.LG
收藏

通过近似核加速微控制器上的TinyML推理

Accelerating TinyML Inference on Microcontrollers through Approximate Kernels

National Technical University of Athens(雅典国立技术大学)

Giorgos Armeniakos, Georgios Mentzos, Dimitrios Soudris

AI总结:

提出基于核的近似框架,通过离线计算操作数重要性并采用计算跳过策略,在MCUs上加速近似CNN模型推理,实现平均21%延迟减少且精度无损。

摘要:

基于微控制器的物联网设备的快速增长开启了从智能制造到个性化医疗的众多应用。尽管低功耗的微控制器单元(MCUs)在TinyML领域被广泛采用,但它们在性能和内存(RAM、Flash)方面仍面临重大限制。在本研究中,我们结合近似计算与软件核设计,以加速MCUs上近似CNN模型的推理。我们基于核的近似框架首先解包每个卷积层的操作数,随后进行离线计算以确定每个操作数的重要性。接着,通过设计空间探索,它采用基于所计算重要性的计算跳过近似策略。我们在STM32-Nucleo板和两个在CIFAR-10数据集上训练的流行CNN上的评估表明,与最先进的精确推理相比,我们的Pareto最优解平均可减少21%的延迟且Top-1分类精度无下降,而在较低精度要求下,相应的减少更为显著。

英文摘要:

The rapid growth of microcontroller-based IoT devices has opened up numerous applications, from smart manufacturing to personalized healthcare. Despite the widespread adoption of energy-efficient microcontroller units (MCUs) in the Tiny Machine Learning (TinyML) domain, they still face significant limitations in terms of performance and memory (RAM, Flash). In this work, we combine approximate computing and software kernel design to accelerate the inference of approximate CNN models on MCUs. Our kernel-based approximation framework firstly unpacks the operands of each convolution layer and then conducts an offline calculation to determine the significance of each operand. Subsequently, through a design space exploration, it employs a computation skipping approximation strategy based on the calculated significance. Our evaluation on an STM32-Nucleo board and 2 popular CNNs trained on the CIFAR-10 dataset shows that, compared to state-of-the-art exact inference, our Pareto optimal solutions can feature on average 21% latency reduction with no degradation in Top-1 classification accuracy, while for lower accuracy requirements, the corresponding reduction becomes even more pronounced.

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

↑