Introduction
Keyword spotting (KWS) is a critical component for modern edge devices, enabling hands-free interaction through "wake words" like "Hey Siri" or "OK Google." Because these systems must run continuously, power efficiency is paramount. Traditional KWS frameworks often rely on frame-synchronous decoding, processing every millisecond of audio regardless of content. This approach is computationally expensive and redundant, as much of the audio stream consists of silence or background noise.
This paper introduces TDT-KWS, a framework based on the Token-and-Duration Transducer (TDT). By predicting both the keyword tokens and their temporal durations, TDT-KWS enables the system to skip irrelevant audio frames, achieving significant gains in both inference speed and detection accuracy.
Methodology
The TDT-KWS framework incorporates two primary innovations to address the limitations of standard Recurrent Neural Network Transducers (RNN-T).
Token-and-Duration Transducer (TDT)
Unlike a standard Transducer that predicts a token for every frame, the TDT architecture predicts a joint distribution over a token $y$ and a duration $d$. This duration represents the number of input frames the predicted token "covers." This allows the decoder to "jump" forward in time, bypassing redundant computations. The model utilizes a lightweight encoder based on Deep Feedforward Sequential Memory Networks (DFSMN), a stateless predictor, and a joiner layer to maintain a small footprint suitable for edge deployment.
KWS-Specific Decoding
Standard speech recognition decoding algorithms are designed for open-vocabulary tasks, exploring a vast search space of possible word sequences. TDT-KWS employs a task-specific decoding algorithm that constrains the search strictly to the target keywords. By treating every time step as a potential starting point, the algorithm can detect keywords seamlessly within a continuous audio stream while minimizing false alarms.
Experimental Results
The system was evaluated using the "Hey Snips" dataset and a newly constructed "LibriKWS-20" benchmark, which features 20 distinct keywords embedded in continuous speech. To test robustness, the authors augmented the data with the WHAM! noise dataset.
Accuracy and Speedup
TDT-KWS demonstrates a substantial performance advantage over traditional models. On the LibriKWS-20 dataset, the proposed system achieved a 98.3% macro-recall, significantly higher than the 82.5% achieved by standard RNN-T greedy search.
In terms of efficiency, TDT-KWS achieved inference speedups ranging from 2.15x to 4.19x compared to RNN-T. The speedup is particularly pronounced for simpler wake words where the model can confidently skip large segments of audio.
Robustness to Noise
A key finding of the study is that the frame-skipping mechanism enhances robustness to acoustic noise. In low Signal-to-Noise Ratio (SNR) environments, TDT-KWS maintains higher recall than its frame-synchronous counterparts. The authors suggest that by skipping frames, the model effectively filters out transient noise and focuses on the core phonetic structure of the keyword.
Conclusion
TDT-KWS represents a significant step forward for on-device keyword spotting. By transitioning from frame-synchronous to frame-asynchronous decoding via the Token-and-Duration Transducer, the system achieves a rare "win-win": it is both faster and more accurate than state-of-the-art RNN-T models. Its inherent resilience to noise makes it particularly well-suited for real-world applications in challenging acoustic environments. Future research will explore extending this framework to open-vocabulary keyword spotting and further optimizing the skip-duration trade-offs.
Summary updated