Introduction
Keyword spotting (KWS) systems are the primary interface for voice-activated devices, enabling hands-free interaction through wake words like "Hey Google" or "Alexa." Traditionally, these systems are built using keyword-specific models that require vast amounts of labeled data for every supported phrase. This "closed-set" approach makes it nearly impossible for users to define their own custom keywords without significant retraining.
In this work, Google researchers propose a streaming, small-footprint KWS system designed to detect arbitrary, user-defined keywords without keyword-specific training. By leveraging a Recurrent Neural Network Transducer (RNN-T) architecture augmented with a novel attention-based biasing mechanism, the system achieves a significant 39% relative reduction in false rejection rates compared to optimized baselines.
The Challenge of Arbitrary Keywords
Building a flexible KWS system involves balancing three competing requirements:
- Low Latency: The system must operate in real-time (streaming).
- Small Footprint: It must run on battery-constrained mobile devices with limited memory and compute.
- Open-Vocabulary Support: It must handle any keyword, including out-of-vocabulary (OOV) names or phrases.
While Large Vocabulary Continuous Speech Recognition (LVCSR) systems can handle arbitrary text, they are too resource-intensive for "always-on" monitoring. Conversely, traditional Connectionist Temporal Classification (CTC) models often struggle with word boundaries and spelling variations when adapted for zero-shot keyword detection.
Architectural Framework
The researchers transition from traditional CTC "keyword-filler" models to an all-neural, sequence-to-sequence RNN-T framework. Unlike CTC, which assumes independence between output tokens, the RNN-T jointly learns acoustic and language representations, making it better suited for modeling the dependencies in speech.
As shown in the figure above, the proposed system (c) introduces a Keyword Encoder and an Attention mechanism into the standard RNN-T pipeline. This allows the model to dynamically "prime" itself based on the target keyword provided by the user.
Key Innovations
To optimize the RNN-T for the KWS task, three critical modifications were introduced:
1. Phoneme-Based Modeling
Instead of training on graphemes (characters), the model is trained to output phonemes. This bypasses the "spelling-to-pronunciation" problem where a user might say "Kathryn" but the model expects "Catherine." Phonemes provide a more direct mapping to the acoustic signal, which is essential for handling arbitrary names.
2. The End-of-Word (<eow>) Token
A common failure mode in KWS is "sub-word triggering," where a keyword like "Erica" is detected inside a longer word like "America." The researchers introduced an explicit <eow> token to the phoneme sequences. This forces the model to learn word boundaries, ensuring it only triggers when the keyword is spoken as a standalone entity.
3. Attention-Based Keyword Biasing
This is the core contribution. The target keyword is encoded into a matrix. During inference, the network computes attention over these keyword phonemes at each decoding step. This generates a context vector that biases the Joint Network toward the expected keyword. An <eokw> (end-of-keyword) token is used during training to signal the completion of the target phrase.
Experimental Results
The system was trained on 18,000 hours of anonymized Google voice-search data, augmented with noise and reverberation to ensure robustness. Evaluation focused on personal names with three or more syllables (e.g., "Olivia", "Erica").
The performance was measured by the False Reject (FR) rate at a strict threshold of 0.05 False Alarms (FA) per hour (one accidental trigger every 20 hours).
- CTC Baseline: 13.4% FR rate.
- Standard RNN-T: 11.1% FR rate.
- Biased RNN-T (Proposed): 8.9% FR rate.
The proposed system outperformed the CTC baseline by 39% relatively. Notably, it also significantly outperformed a full embedded LVCSR system (29.8% FR), which suffered from OOV errors on the custom names.
Conclusion
The integration of phoneme-based modeling and attention-based biasing transforms the RNN-T into a highly effective tool for arbitrary keyword spotting. By explicitly modeling word boundaries and dynamically attending to target phonemes, the system provides a robust, low-latency solution for personalized wake-word detection on mobile devices.
Summary updated