Abstract
We introduce a simple neural encoder architecture that can be trained using an unsupervised contrastive learning objective which gets its positive samples from data-augmented k-Nearest Neighbors search. We show that when built on top of recent self-supervised audio representations, this method can be applied iteratively and yield competitive SSE as evaluated on two tasks: query-by-example of random sequences of speech, and spoken term discovery. On both tasks our method pushes the state-of-the-art by a significant margin across 5 different languages. Finally, we establish a benchmark on a query-by-example task on the LibriSpeech dataset to monitor future improvements in the field.
Introduction
Recent advancements in self-supervised learning, such as Wav2Vec 2.0 and HuBERT, have significantly improved speech processing by extracting high-quality features from raw audio. However, these features are typically "frame-level," representing short durations (e.g., 20ms). Many downstream applications, including spoken term discovery and unsupervised alignment, require "word-level" Speech Sequence Embeddings (SSEs) that represent variable-length segments (100ms to 1000ms). Generating effective SSEs without human labels is challenging due to variations in speech rate and the lack of explicit segment boundaries.
Methodology
The authors propose a two-stage unsupervised pipeline to learn robust SSEs. The architecture consists of a 1D convolutional layer, a Transformer layer, and a max-pooling layer to produce fixed-size embeddings.
1. Stretch-Invariant Pre-training
The initial phase focuses on teaching the model tempo invariance. By applying time-stretching data augmentation (slowing down or speeding up audio segments), the model generates synthetic "positive pairs" for training with a contrastive loss (NTXEnt).
2. Iterative k-NN Self-Labeling
Following pre-training, the model is used to encode a large audio corpus. The FAISS library facilitates a k-Nearest Neighbors (k-NN) search to identify acoustically similar segments. These discovered pairs serve as new positive samples for iterative retraining, allowing the model to transition from basic acoustic similarity to deeper phonetic representations.
Evaluation and Results
The method was evaluated on LibriSpeech and the Zerospeech Challenges (2017/2020) across five languages: English, Xitsonga, Mandarin, French, and Buckeye.
LibriSpeech Benchmark
A new "phoneme-ngram MAP" task was introduced to evaluate SSEs on random phoneme sequences from unsegmented audio. On this benchmark, the proposed model achieved a Mean Average Precision (MAP) of 0.398, nearly doubling the performance of the previous state-of-the-art unsupervised model, CAE-Siamese (0.21).
Cross-Lingual Performance
The iterative k-NN approach demonstrated significant robustness across diverse languages. In the Zerospeech Spoken Term Discovery task, the model outperformed existing methods on the Normalized Edit Distance (NED) and Coverage (COV) metrics by a substantial margin.
Key Insights
- Augmentation Strategy: Time-stretching proved to be the most effective augmentation for speech, analogous to cropping in computer vision.
- Feature Synergy: Optimal performance was achieved using features from layer 8 of Wav2Vec 2.0 (Base), which provides a balanced phonetic representation.
- Iterative Refinement: The k-NN search acts as an effective unsupervised pseudo-labeler, refining embeddings through successive training cycles.
Conclusion
This work sets a new state-of-the-art for unsupervised speech sequence embeddings. While a performance gap remains compared to supervised systems, the iterative k-NN method provides a powerful framework for learning word-level representations without labels. Future research will focus on integrating these embeddings into fully unsupervised speech segmentation systems.
Reference: Algayres, R., Nabli, A., Sagot, B., & Dupoux, E. (2022). Speech Sequence Embeddings using Nearest Neighbors Contrastive Learning. Proc. Interspeech 2022, 2123-2127.
Summary updated