Abstract
Keyword spotting (KWS) requires efficient recognition with minimal resources, posing challenges in real-world applications. To address this, we propose a customized KWS Framework based on Triplet Contrastive Learning Pretraining (TCLP-KWS). The framework follows a two-stage training pipeline. In the pretraining stage, lightweight speech and query encoders are trained on large-scale public speech datasets to capture robust speech-phoneme relationships. By utilizing phrase-level data instead of full sentences, TCLP-KWS accelerates training and enhances fine-grained recognition of short expressions. In the fine-tuning stage, the pre-trained encoders are integrated with a self-attention-based feature extraction module and classifier, optimizing performance on keyword recognition tasks. Additionally, triplet contrastive learning is employed to align and extract features from both audio and phoneme modalities. TCLP-KWS incorporates intra-modal contrastive learning, which automatically generates hard negative pairs. This strategy improves robustness on challenging keyword distinctions, further enhancing recognition performance. Experimental results demonstrate the effectiveness of the framework in achieving high-performance keyword spotting with minimal resource requirements.
Funding Information
  • National Natural Science Foundation of China (62276098)