arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.02765cs.SDcs.AIcs.AReess.AS
收藏

低功耗边缘微控制器关键字识别系统及剪枝和Quantization方法的评估

Keyword Spotting System and Evaluation of Pruning and Quantization Methods on Low-power Edge Microcontrollers

Xi’an Jiaotong-Liverpool University(西交利物浦大学)

Jingyi Wang, Shengchen Li

摘要:

关键字定位(KWS)有利于在边缘与低功耗设备进行基于语音的用户交互。边缘设备通常是永远在线的,因此边缘计算可以节省带宽和隐私保护。这些设备通常具有有限的存储器空间、计算性能、功率和成本,例如基于Cortex-M的微控制器。挑战在于在这些设备上满足深度学习的高计算和低延迟要求。本文首先展示了我们的小型KWS系统运行在STM32 F7微控制器上,Cortex-M7内核@216MHz和512 KB静态RAM。我们选择的卷积神经网络(CNN)架构简化了KWS的操作数量,以满足边缘设备的约束。我们的基线系统生成的分类结果为每37毫秒,包括实时音频特征提取部分。本文进一步评估了不同修剪和量化方法在微控制器上的实际性能,包括不同的稀疏粒度,跳过零权重,权重优先循环顺序和SIMD指令。结果表明,对于微控制器,加速非结构化修剪模型有相当大的挑战,结构化修剪比非结构化修剪更友好。实验结果也验证了量化和SIMD指令对性能的改善。

英文摘要:

Keyword spotting (KWS) is beneficial for voice-based user interactions with low-power devices at the edge. The edge devices are usually always-on, so edge computing brings bandwidth savings and privacy protection. The devices typically have limited memory spaces, computational performances, power and costs, for example, Cortex-M based microcontrollers. The challenge is to meet the high computation and low-latency requirements of deep learning on these devices. This paper firstly shows our small-footprint KWS system running on STM32F7 microcontroller with Cortex-M7 core @216MHz and 512KB static RAM. Our selected convolutional neural network (CNN) architecture has simplified number of operations for KWS to meet the constraint of edge devices. Our baseline system generates classification results for each 37ms including real-time audio feature extraction part. This paper further evaluates the actual performance for different pruning and quantization methods on microcontroller, including different granularity of sparsity, skipping zero weights, weight-prioritized loop order, and SIMD instruction. The result shows that for microcontrollers, there are considerable challenges for accelerate unstructured pruned models, and the structured pruning is more friendly than unstructured pruning. The result also verified that the performance improvement for quantization and SIMD instruction.

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

↑