Introduction
Keyword Spotting (KWS) systems, which power ubiquitous voice assistants like "Hey Siri" or "OK Google," typically rely on a "train-once-deploy-everywhere" paradigm. Models are trained on massive datasets in the cloud and then frozen before deployment on battery-powered edge devices. However, this approach suffers from two primary limitations: rigidity, as users cannot easily add personalized keywords, and an accuracy ceiling, where generic models struggle with diverse accents and specific environmental noises.
To overcome these challenges, this research introduces a self-learning framework that enables ultra-low-power (ULP) audio sensors to personalize KWS models post-deployment. By performing on-device fine-tuning on a GAP9 microcontroller, the system achieves significant accuracy improvements without requiring manually labeled data beyond a few initial setup examples.
The Self-Learning Pipeline
The proposed framework operates in three distinct phases designed for execution at the extreme edge.
- On-Device Calibration: The process begins with the user providing just three examples of a target keyword. The system computes a "prototype" vector (average embedding) and establishes two distance thresholds: a conservative one for identifying "positives" and a strict one for "negatives."
- Pseudo-Labeling: While in operation, the device continuously monitors the environment. It calculates the distance between incoming audio embeddings and the keyword prototype. Audio falling below the low threshold is marked as a pseudo-positive, while audio exceeding the high threshold is labeled a pseudo-negative. Uncertain data in the "gray zone" between thresholds is discarded to maintain training quality.
- Incremental Training: The system utilizes these pseudo-labeled samples to fine-tune the underlying Deep Neural Network (DNN) using triplet loss. This optimization forces the model to cluster keyword-like sounds closer to the prototype while pushing non-keyword sounds further away in the embedding space.
Hardware Implementation
The system is implemented on the GreenWaves GAP9 MCU, a specialized multi-core processor designed for energy-efficient AI at the edge.
The GAP9 utilizes a heterogeneous architecture consisting of a low-power "Fabric Controller" (FC) for basic tasks and a "Cluster" of nine RISC-V cores equipped with a convolutional accelerator for intensive neural network computations. This design allows the device to remain in a low-power state for "always-on" listening, only activating the high-performance cluster for feature extraction and inference.
Experimental Evaluation
The framework was evaluated using several datasets:
- HeySnips & HeySnapdragon: Standard public datasets for wake-word detection.
- HeySnips-REC: A custom benchmark created by replaying HeySnips audio in a real office environment to test robustness against background noise and reverberation.
- MSWC: Used for initial pre-training of the generic feature extractors.
Key Results
The self-learning approach yielded substantial performance gains across various model sizes. For the compact DS-CNN-S model, accuracy improved by 19.2% on HeySnips and 16.0% on HeySnapdragon compared to non-personalized baselines. Larger models, such as ResNet15, achieved up to 94.6% accuracy after self-learning.
From a power perspective, the "always-on" labeling task consumes between 6.1 mW and 8.2 mW. In optimized scenarios with a sleep mode, average power consumption can drop below 1 mW, potentially enabling months of battery life on a small cell.
Conclusion and Future Work
This work demonstrates that on-device learning is not only feasible but highly effective for personalizing KWS on ULP hardware. The use of triplet loss provides robustness against pseudo-labeling errors, and the heterogeneous processing architecture ensures energy sustainability. Future research will explore multi-keyword scenarios, further memory optimization for activation storage, and testing across a broader range of environmental conditions and microphone hardware.
Summary updated