Abstract
Learning to recognize new keywords with just a few examples is essential for personalizing keyword spotting (KWS) models to a user's choice of keywords. However, modern KWS models are typically trained on large datasets and restricted to a small vocabulary of keywords, limiting their transferability to a broad range of unseen keywords. Towards easily customizable KWS models, we present KeySEM (Keyword Speech EMbedding), a speech embedding model pre-trained on the task of recognizing a large number of keywords. Speech representations offered by KeySEM are highly effective for learning new keywords from a limited number of examples. Comparisons with a diverse range of related work across several datasets show that our method achieves consistently superior performance with fewer training examples. Although KeySEM was pre-trained only on English utterances, the performance gains also extend to datasets from four other languages indicating that KeySEM learns useful representations well aligned with the task of keyword spotting. Finally, we demonstrate KeySEM's ability to learn new keywords sequentially without requiring to re-train on previously learned keywords. Our experimental observations suggest that KeySEM is well suited to on-device environments where post-deployment learning and ease of customization are often desirable.
Introduction
Most modern Keyword Spotting (KWS) systems, such as "Hey Siri" or "OK Google," are rigid, typically trained on massive datasets for a tiny, fixed vocabulary. This rigidity poses a significant challenge for personalization: enabling a device to recognize a brand-new "wake word" using only 5 to 10 spoken examples—a problem known as few-shot learning. Existing approaches often require extensive retraining, use self-supervised models not optimized for specific word shapes, or rely on complex meta-learning frameworks that are difficult to deploy on-device.
To address this, researchers from Google and IIT Bombay introduced KeySEM (Keyword Speech EMbedding). KeySEM is designed to learn new keywords from just a handful of examples by leveraging highly discriminative speech representations learned through a massive supervised pre-training task.
Methods
The core of KeySEM is a supervised pre-training strategy. Instead of using unlabeled audio or a small set of words, the model is trained to classify speech segments into one of 15,200 unique keywords extracted from the LibriSpeech corpus.
Architecture and Adaptation
KeySEM utilizes a compact CNN-based architecture (similar to MatchBoxNet) that maps a 2-second audio clip into a 96-dimensional embedding vector. By forcing the model to distinguish between 15,000 different words during pre-training, it learns to capture fine-grained phonetic nuances essential for KWS. To learn a new keyword, the KeySEM "backbone" is frozen, and only a tiny linear classification layer is trained on top. This approach is extremely efficient, requiring only 96 parameters per new keyword, and avoids "catastrophic forgetting."
Results and Analysis
KeySEM was evaluated across several benchmarks, including Google Speech Commands (V2), a new LibriKWS set with 150 held-out keywords, and multilingual datasets from Common Voice (Japanese, Esperanto, Polish, and Portuguese).
Embedding Quality
A key insight is that supervised pre-training on a massive vocabulary is superior to self-supervised methods for this task. As shown in the PCA visualizations, KeySEM’s embeddings are much more clustered and distinct compared to models like TRILL, which are not task-aligned for keyword discrimination.
Performance in Low-Data Scenarios
KeySEM demonstrates dominance in low-data regimes. When trained on only 5 examples per keyword, it achieved 86.5% accuracy on Speech Commands, compared to 45.3% for standard models. In challenging "test-other" scenarios involving noisier data, KeySEM offered absolute gains of up to 61% over previous embedding-based methods.
Sequential Learning and Generalization
KeySEM maintains high accuracy when learning words one after another. By training only a linear head on fixed embeddings, the model remains stable across a sequence of learned words, as evidenced by the consistent F1 scores across multiple labels.
Furthermore, despite being trained only on English, KeySEM provided significant performance boosts for KWS in languages like Japanese and Polish, suggesting it learns universal phonetic features that transfer well across linguistic boundaries.
Conclusion
KeySEM represents a significant step toward customizable, on-device keyword spotting. By scaling the pre-training vocabulary to 15,000 words, the model learns robust representations that generalize across languages and enable efficient few-shot learning. Future work may explore more sophisticated incremental learning techniques and pre-training on multilingual corpora to further enhance global performance.
Summary updated