Abstract
Traditional Query-by-Example (QbE) speech search approaches usually use methods based on frame-level features, while state-of-the-art approaches tend to use models based on acoustic word embeddings (AWEs) to transform variable length audio signals into fixed length feature vector representations. However, these approaches cannot meet the requirements of the search quality as well as speed at the same time. In this paper, we propose a novel fast QbE speech search method based on separable models to fix this problem. First, a QbE speech search training framework is introduced. Second, we design a novel model inference scheme based on RepVGG which can efficiently improve the QbE search quality. Third, we modify and improve our QbE speech search model according to the proposed model inference scheme. Experiments on keywords dataset shows that our proposed method can improve the GPU Real-time Factor (RTF) from 1/150 to 1/2300 by just applying separable model scheme and outperforms other state-of-the-art methods.
Introduction
Query-by-Example (QbE) speech search is the task of locating occurrences of a spoken query within a larger audio database. Traditional methods often rely on Dynamic Time Warping (DTW) to compare frame-level features, a process that is computationally intensive. Modern alternatives utilize Acoustic Word Embeddings (AWEs) to map audio segments to fixed-length vectors, enabling faster comparisons.
However, efficiency remains a bottleneck. Most AWE-based frameworks employ a "sliding window" approach, executing a full neural network pass for every overlapping segment of the search audio. This redundancy significantly slows down processing for long audio files. This paper addresses the need for a system that maintains high search accuracy while achieving real-time performance on large-scale datasets.
Methodology
The proposed method introduces three primary innovations to optimize the balance between speed and quality.
1. RepVGG-based Architecture
The system utilizes RepVGG as its backbone. RepVGG is characterized by a multi-branch structure during training, which enhances feature learning. During inference, these branches are re-parameterized into a streamlined, single-branch VGG-style network. This transition significantly reduces computational overhead without sacrificing the representational power gained during training.
2. Separable Model Scheme
The core innovation is the "separable model" architecture. Instead of processing every sliding window of raw audio through the entire network, the model is decoupled into two stages:
- Encoder: Processes the entire audio file once to generate a high-dimensional feature map ($H'$).
- Embedding Layer: A sliding window is applied directly to this feature map. Only these localized slices are passed through the final embedding and pooling layers.
By exploiting the translational equivalence of convolutions, this scheme eliminates redundant encoding calculations, leading to a massive increase in throughput.
3. Competitive Mechanism
To refine search results, the authors implement a post-processing stage involving T-norm (Test-Normalization) to mitigate biases between test audio and query templates, and Non-Maximum Suppression (NMS). NMS ensures that when multiple overlapping windows detect the same keyword, only the most confident match is retained, thereby reducing false positives.
Experimental Results
The model was evaluated using internal Mandarin ASR data and cross-lingual Cantonese datasets.
- Efficiency: The implementation of the separable model scheme improved the GPU Real-time Factor (RTF) from 1/150 to 1/2300, representing a 15x speedup over previous state-of-the-art AWE methods.
- Accuracy: On Mandarin keywords, the RepVGG-based model achieved an F1 score of 76.4, surpassing the SE-ResNet34 baseline.
- Robustness: The model demonstrated strong cross-lingual performance on Cantonese audio, indicating that the learned acoustic embeddings capture language-agnostic phonetic information.
- Ablation: Results confirmed that NMS and normalization are critical for precision, effectively managing the "competition" between candidate matches.
Conclusion
This paper presents a highly efficient QbE speech search framework. By decoupling feature encoding from embedding extraction and leveraging RepVGG's inference efficiency, the system achieves unprecedented search speeds. While transitioning to a separable model requires specific retraining of the embedding layer to handle edge context without padding, the performance gains make it a viable solution for large-scale audio retrieval. Future work will explore extending this separable logic to other sequential tasks like speaker clustering and broader cross-lingual applications.
Summary updated