Streaming Keyword Spotting Boosted by Cross-layer Discrimination Consistency
Yu Xi, Haoyu Li, Xiaoyu Gu, Hao Li, Yidi Jiang, Kai Yu
TL;DR
This work tackles wake-word detection with a streaming, non-autoregressive CTC-based framework. It introduces a frame-synchronous streaming decoding algorithm that confines the search to the keyword, avoiding full ASR or WFST graphs, and enhances discrimination with Cross-layer Discrimination Consistency (CDC) that leverages intermediate and final CTC branches. By integrating Intermediate CTC regularization and a CDC-based refinement, the method achieves substantial improvements over ASR and graph-based baselines, including robust performance under noisy and out-of-domain conditions, with low false-alarm rates. The approach is practical, easy to implement, and demonstrates strong potential for deployment on resource-constrained devices.
Abstract
Connectionist Temporal Classification (CTC), a non-autoregressive training criterion, is widely used in online keyword spotting (KWS). However, existing CTC-based KWS decoding strategies either rely on Automatic Speech Recognition (ASR), which performs suboptimally due to its broad search over the acoustic space without keyword-specific optimization, or on KWS-specific decoding graphs, which are complex to implement and maintain. In this work, we propose a streaming decoding algorithm enhanced by Cross-layer Discrimination Consistency (CDC), tailored for CTC-based KWS. Specifically, we introduce a streamlined yet effective decoding algorithm capable of detecting the start of the keyword at any arbitrary position. Furthermore, we leverage discrimination consistency information across layers to better differentiate between positive and false alarm samples. Our experiments on both clean and noisy Hey Snips datasets show that the proposed streaming decoding strategy outperforms ASR-based and graph-based KWS baselines. The CDC-boosted decoding further improves performance, yielding an average absolute recall improvement of 6.8% and a 46.3% relative reduction in the miss rate compared to the graph-based KWS baseline, with a very low false alarm rate of 0.05 per hour.
