[Paper Review] Sequence-to-sequence Models for Small-Footprint Keyword Spotting
This paper proposes a sequence-to-sequence (seq2seq) keyword spotting model that simplifies end-to-end KWS pipelines by eliminating the need for a fixed sliding window, enabling low-latency, small-footprint inference. With only ~73K parameters, the GRU-based model achieves a 3.05% false rejection rate at 0.1 false alarms per hour on real-world wake-up data, outperforming attention-based baselines and demonstrating robust performance through frame-wise probability smoothing.
In this paper, we propose a sequence-to-sequence model for keyword spotting (KWS). Compared with other end-to-end architectures for KWS, our model simplifies the pipelines of production-quality KWS system and satisfies the requirement of high accuracy, low-latency, and small-footprint. We also evaluate the performances of different encoder architectures, which include LSTM and GRU. Experiments on the real-world wake-up data show that our approach outperforms the recently proposed attention-based end-to-end model. Specifically speaking, with 73K parameters, our sequence-to-sequence model achieves $\sim$3.05\% false rejection rate (FRR) at 0.1 false alarm (FA) per hour.
Motivation & Objective
- To address the limitations of existing end-to-end KWS models that rely on arbitrary sliding windows or mismatched training/decoding strategies.
- To develop a lightweight, low-latency KWS system suitable for mobile devices with high accuracy and small memory footprint.
- To evaluate the effectiveness of different RNN encoders (LSTM and GRU) in a seq2seq framework for keyword spotting.
- To investigate the impact of probability smoothing on detection robustness and performance stability.
Proposed method
- The model uses a sequence-to-sequence training paradigm where inputs are acoustic features and outputs are one-hot labels indicating frame-level keyword presence.
- Frame-wise alignments from a TDNN-LSTM model are used to generate training labels, with ambiguous frames (e.g., partial keyword) labeled as -1 and weighted with zero loss.
- An attention mechanism computes context vectors from encoder hidden states to produce a final keyword probability via a softmax layer.
- During inference, the model processes one frame at a time and outputs a per-frame detection probability, which is smoothed over n consecutive frames to improve reliability.
- The smoothing operation computes the average probability over n frames: $\hat{y}_t = \frac{1}{n} \sum_{i=t-n+1}^{t} y_i$.
- The model is trained using cross-entropy loss with normalized weight initialization and Adam optimization.
Experimental results
Research questions
- RQ1Can a sequence-to-sequence model eliminate the need for a fixed sliding window in end-to-end keyword spotting while maintaining or improving accuracy?
- RQ2How does the performance of the proposed seq2seq model compare to attention-based baselines in terms of FRR and FA rate on real-world data?
- RQ3What is the impact of encoder architecture (LSTM vs GRU) and width (64 vs 128 units) on model accuracy and parameter count?
- RQ4Does frame-wise probability smoothing improve detection robustness and reduce false rejection rates?
Key findings
- The GRU-based seq2seq model with 1 layer and 128 units achieves a 3.05% false rejection rate at 0.1 false alarms per hour, outperforming the baseline GRU by ~20%.
- The 1-128 GRU model achieves a 3.05% FRR with only 73.3K parameters, demonstrating high efficiency and small footprint.
- The 1-128 models (both LSTM and GRU) significantly outperform deeper or narrower variants, indicating that wider networks yield better performance than deeper ones in this setup.
- Probability smoothing with n=12 reduces FRR by 0.06% for the GRU 1-128 model compared to no smoothing, confirming its effectiveness in improving robustness.
- The attention mechanism in the baseline model focuses heavily on the final character, while the seq2seq model learns a more human-like attention pattern, activating only after the full keyword is perceived.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.