Abstract
One difficult problem of keyword spotting is how to miniaturize its memory footprint while maintain a high precision. Although convolutional neural networks have shown to be effective to the small-footprint keyword spotting problem, they still need hundreds of thousands of parameters to achieve good performance. In this paper, we propose an efficient model based on depthwise separable convolution layers and squeeze-and-excitation blocks. Specifically, we replace the standard convolution by the depthwise separable convolution, which reduces the number of the parameters of the standard convolution without significant performance degradation. We further improve the performance of the depthwise separable convolution by reweighting the output feature maps of the first convolution layer with a so-called squeeze-and-excitation block. We compared the proposed method with five representative models on two experimental settings of the Google Speech Commands dataset. Experimental results show that the proposed method achieves the state-of-the-art performance. For example, it achieves a classification error rate of 3.29% with a number of parameters of 72K in the first experiment, which significantly outperforms the comparison methods given a similar model size. It achieves an error rate of 3.97% with a number of parameters of 10K, which is also slightly better than the state-of-the-art comparison method given a similar model size.
Introduction
Keyword spotting (KWS) is the technology enabling "always-on" voice interfaces like "Hey Siri" or "OK Google." The primary engineering challenge for KWS is the trade-off between precision and memory footprint; models must be accurate enough to avoid false triggers while remaining small enough to run on low-power microcontrollers. While standard Convolutional Neural Networks (CNNs) have improved accuracy, they often require hundreds of thousands of parameters. This paper introduces DS-ResNet, a highly efficient architecture that achieves state-of-the-art performance with as few as 10K parameters.
Methodology
Depthwise Separable Convolutions
The core of the DS-ResNet efficiency lies in the use of depthwise separable convolutions (DS-Conv). Unlike standard convolutions that process all input channels and spatial dimensions simultaneously, DS-Conv decomposes the operation into two distinct steps: a depthwise convolution followed by a pointwise $1 \times 1$ convolution.
This decomposition reduces the parameter count and computational cost by approximately 8x for standard $3 \times 3$ kernels. To ensure a sufficient receptive field in smaller models, the authors also utilized dilated convolutions.
Squeeze-and-Excitation (SE) Blocks
To compensate for the reduced representational power of simplified convolutions, the authors integrated Squeeze-and-Excitation (SE) blocks. These blocks act as a dynamic "attention" mechanism, learning to reweight the importance of different feature channels.
By placing an SE block after the first convolution layer, the model can focus on the most relevant acoustic features of a keyword without significantly increasing the parameter count.
Model Variants
The authors proposed three versions of the architecture: DS-ResNet18 (72K parameters), DS-ResNet14 (15.2K parameters), and DS-ResNet10 (10K parameters). All models utilize residual (skip) connections to improve gradient flow and ease optimization during training.
Experimental Setup and Results
The models were evaluated using the Google Speech Commands dataset (version 1), which consists of 64,721 one-second audio clips. The task was to recognize 10 specific keywords plus "silence" and "unknown" categories. Audio was pre-processed into 40-dimensional Mel-frequency cepstrum coefficient (MFCC) features.
Experimental results demonstrated that DS-ResNet significantly outperforms existing baselines at similar sizes:
- DS-ResNet18 (72K): Achieved a 3.29% error rate, a 21.7% relative error reduction over the standard Res15 baseline (4.20% error, 238K parameters).
- DS-ResNet14 (15.2K): Achieved a 4.12% error rate, vastly outperforming the Res8-narrow baseline (9.90% error) of a similar size.
- DS-ResNet10 (10K): Maintained a competitive 3.97% error rate in a second experimental setup, proving effective even at extremely small footprints.
Conclusion
DS-ResNet provides a robust solution for small-footprint keyword spotting by combining the efficiency of depthwise separable convolutions with the adaptive power of Squeeze-and-Excitation blocks. While the model is highly optimized for parameter count, future work could explore hardware-specific optimizations to improve real-world latency on microcontrollers and evaluate robustness in high-noise environments.
Summary updated