Self-Supervised Acoustic Word Embedding Learning via Correspondence Transformer Encoder

Jingru Lin, Xianghu Yue, Junyi Ao, Haizhou Li

Abstract

Acoustic Word Embeddings (AWEs) are fixed-length vector representations of spoken words that aim to capture phonetic content while remaining invariant to speaker-specific traits such as pitch, accent, and speed. This paper presents the Correspondence Transformer Encoder (CTE), a self-supervised framework designed to learn robust AWEs without human-labeled transcripts. By utilizing a teacher-student Transformer architecture trained on word-level correspondences, CTE achieves state-of-the-art results on low-resource languages and demonstrates superior cross-domain generalization compared to larger frame-level models.

Introduction

The primary challenge in speech processing is the inherent variability of spoken language. The same word can sound drastically different depending on the speaker's characteristics. Traditional supervised methods for learning AWEs require extensive transcribed data, which is often unavailable for many of the world's languages. To address this, we propose the Correspondence Transformer Encoder (CTE), which learns embeddings by identifying and matching different instances of the same word in an unsupervised or self-supervised manner.

Methodology: The Correspondence Transformer Encoder

The CTE framework employs a "Teacher-Student" architecture based on Transformer encoders. The core idea is to train a student model to produce representations that match those of a teacher model when presented with different acoustic realizations of the same word.

The CTE architecture utilizes a teacher-student framework to learn word-level correspondences.

Key components of the architecture include:

  • Teacher-Student Framework: The student model is fed one instance of a word, while the teacher model is fed another instance of the same word (discovered via Unsupervised Term Discovery). The student is optimized to minimize the cosine distance between its output and the teacher's.
  • Exponential Moving Average (EMA): To ensure training stability, the teacher's weights are updated as a slow-moving average of the student's weights rather than through direct backpropagation.
  • Multi-Layer Averaging: The student aims to predict the average representation of the top $K$ layers of the teacher, providing a richer training signal than the final layer alone.
  • Fixed-Length Representation: Similar to the [CLS] token in BERT, an "all-ones" vector is prepended to the input sequence. The output at this position serves as the final fixed-dimensional embedding.

Experimental Results

The CTE model was evaluated on several datasets, including LibriSpeech (English), the Buckeye Corpus (conversational English), and the NCHLT corpus (Xitsonga). The latter served as a critical test for performance in low-resource settings.

Performance comparison of CTE against baseline models on English and Xitsonga datasets.

As shown in the results table, the CTE base model achieved an Average Precision (AP) of 46.7% on the Xitsonga test set, establishing a new state-of-the-art for this low-resource language. Notably, CTE outperformed HuBERT, a significantly larger model pre-trained on 60,000 hours of data, in word-discrimination tasks. This suggests that CTE's focus on word-level correspondence is more efficient for capturing semantic and phonetic word structures than frame-level pre-training.

Key Insights

Beyond raw performance, the study revealed several important characteristics of the learned embeddings:

  1. Speaker Disentanglement: Visualization of the embeddings showed that the model successfully clusters instances of the same word together, effectively filtering out speaker-specific "noise."
  2. Phonetic Awareness: Despite no explicit phoneme training, the distance between embeddings correlates strongly with the Phoneme Sequence Edit Distance (PSED), indicating that the model naturally learns internal phonetic structures.
  3. Robustness to Noise: The framework remains effective even when training pairs are generated by automated, imperfect Unsupervised Term Discovery systems.

Conclusion

The Correspondence Transformer Encoder provides a powerful, self-supervised approach to learning acoustic word embeddings. By focusing on word-level correspondences, it achieves high performance and robustness, particularly in low-resource and cross-domain scenarios. Future work will explore scaling the model and integrating these embeddings into downstream applications such as query-by-example search and full speech recognition systems.

Summary updated

BibTeX
@inproceedings{lin2023self,
  author = {Jingru Lin and Xianghu Yue and Junyi Ao and Haizhou Li},
  title = {{Self-Supervised Acoustic Word Embedding Learning via Correspondence Transformer Encoder}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-359},
}
Figure