arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.06183cs.LGcs.AIcs.DCcs.PF
收藏

面向微控制器高效稀疏深度神经网络的轻量级软件内核与硬件扩展

Lightweight Software Kernels and Hardware Extensions for Efficient Sparse Deep Neural Networks on Microcontrollers

Politecnico di Torino(都灵理工大学);University of Bologna(博洛尼亚大学);ETH Zurich(苏黎世联邦理工学院)

Francesco Daghero, Daniele Jahier Pagliari, Francesco Conti, Luca Benini, Massimo Poncino, Alessio Burrello

AI总结:

针对微控制器等边缘设备的面积与功耗约束,本文提出优化N:M剪枝层软件内核、轻量级ISA扩展及适配开源DNN编译器的方案,在ResNet18、ViT等模型上实现显著加速且精度损失极小。

摘要:

在微控制器(MCU)等边缘设备上加速剪枝后的深度神经网络(DNN)是一项具有挑战性的任务,因为这类设备存在严格的面积和功耗约束。本文提出三方面贡献来解决该问题。首先,我们针对超低功耗多核RISC-V MCU,设计了一组用于N:M剪枝层的优化软件内核,在1:8和1:16稀疏度下,其速度分别比稠密对应内核快2.1倍和3.4倍。其次,我们实现了一种轻量级指令集架构(ISA)扩展,用于加速内核所需的间接加载和非零索引解压缩操作,带来最高1.9倍的额外速度提升,而面积开销仅为5%。最后,我们扩展了一款开源DNN编译器,使其能够将我们的稀疏内核应用于完整网络,在ResNet18和视觉Transformer(ViT)上分别实现3.21倍和1.81倍的速度提升,且与稠密基线相比精度下降不到1.5%。

英文摘要:

The acceleration of pruned Deep Neural Networks (DNNs) on edge devices such as Microcontrollers (MCUs) is a challenging task, given the tight area- and power-constraints of these devices. In this work, we propose a three-fold contribution to address this problem. First, we design a set of optimized software kernels for N:M pruned layers, targeting ultra-low-power, multicore RISC-V MCUs, which are up to 2.1x and 3.4x faster than their dense counterparts at 1:8 and 1:16 sparsity, respectively. Then, we implement a lightweight Instruction-Set Architecture (ISA) extension to accelerate the indirect load and non-zero indices decompression operations required by our kernels, obtaining up to 1.9x extra speedup, at the cost of a 5% area overhead. Lastly, we extend an open-source DNN compiler to utilize our sparse kernels for complete networks, showing speedups of 3.21x and 1.81x on a ResNet18 and a Vision Transformer (ViT), with less than 1.5% accuracy drop compared to a dense baseline.

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

↑