Abstract
We propose a single neural network architecture for two tasks: on-line keyword spotting and voice activity detection. We develop novel inference algorithms for an end-to-end Recurrent Neural Network trained with the Connectionist Temporal Classification loss function which allow our model to achieve high accuracy on both keyword spotting and voice activity detection without retraining. In contrast to prior voice activity detection models, our architecture does not require aligned training data and uses the same parameters as the keyword spotting model. This allows us to deploy a high quality voice activity detector with no additional memory or maintenance requirements.
Introduction
In the ecosystem of "always-on" voice assistants, two tasks are critical: Keyword Spotting (KWS)—detecting a specific wake word—and Voice Activity Detection (VAD)—determining if a human is speaking to manage system listening states. Traditionally, these are treated as separate problems. VAD models are often lightweight, hand-engineered algorithms, while KWS models are more complex neural networks. This separation creates a "maintenance tax," requiring developers to train, optimize, and store two different models. Furthermore, many VAD models require expensive frame-aligned labels. This paper proposes a single end-to-end architecture that handles both tasks simultaneously, significantly reducing memory and maintenance overhead for mobile deployment.
Methodology
The proposed system utilizes a single Recurrent Neural Network (RNN) architecture to perform both KWS and VAD.
Architecture and Training
The model begins with a 2D convolutional layer processing an audio spectrogram, followed by three layers of Gated Recurrent Units (GRUs) and a final softmax layer that outputs character probabilities. Crucially, the model is trained using Connectionist Temporal Classification (CTC) loss. The advantage of CTC is that it does not require frame-aligned labels; it only needs the transcript, allowing the model to learn from unaligned data.
Dual-Task Inference
The unified model performs both tasks through distinct inference strategies:
- Keyword Spotting: Instead of simple string matching, the system uses a modified scoring algorithm that treats the keyword as a regular expression, making detection robust to varying speech rates.
- Voice Activity Detection: The researchers observed that the CTC "blank" character essentially represents "no speech." To perform VAD, they calculate the probability of speech by taking the inverse of the probability that the model is outputting "blanks" over a specific window.
Experimental Results
The model was evaluated using a large-scale speech corpus of 526,000 utterances, supplemented with specific keyword data and synthetic noise. The unified model outperformed specialized baselines in both categories. At a fixed 5% False Positive Rate (FPR), the model achieved a 98.1% True Positive Rate (TPR) for KWS and a 99.8% TPR for VAD.
Model Scaling and Saturation
Analysis of model scaling reveals important insights into the complexity of each task. While KWS performance continues to benefit from increased model width and depth, VAD performance saturates relatively early.
As shown in the ROC curves above, VAD accuracy remains exceptionally high even with smaller hidden unit counts. Specifically, VAD performance saturated quickly after 128 hidden units. Similarly, increasing the number of layers beyond two provided diminishing returns for VAD, whereas KWS continued to show improvement with deeper architectures.
Conclusion
This work demonstrates that a single RNN trained with CTC loss can effectively serve as both a high-accuracy keyword spotter and a voice activity detector. By leveraging the "blank" character as a VAD signal, the architecture eliminates the need for separate models and aligned training data. Future work will explore neural compression techniques, such as pruning and quantization, to further reduce the computational footprint for continuous operation on mobile hardware.
Summary updated