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

Jingyi Wang, Shengchen Li
8/4/2022
cs.SDcs.AIcs.AR
quantization-pruning

Official code: RoboBachelor/Keyword-Spotting-STM32 (13 stars, C, last commit 2022-10-22).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

This is our experimental code for Keyword Spotting System and Evaluation of Pruning and Quantization Methods on Low-Power Edge Microcontrollers submitted to DCASE 2022 Workshop.

130C, AssemblyJul 15, 20224 years ago

Similar Papers

Cite this paper

@article{wang2022keyword,
  title  = {Keyword Spotting System and Evaluation of Pruning and Quantization Methods on Low-power Edge Microcontrollers},
  author = {Jingyi Wang and Shengchen Li},
  year   = {2022},
  eprint = {2208.02765},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.02765}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.02765.svg)](https://codeofpaper.com/paper/2208.02765)

Discussion