Improved Audio Embeddings by Adjacency-Based Clustering with Applications in Spoken Term Detection

Sung-Feng Huang, Yi-Chen Chen, Hung-yi Lee, Lin-Shan LeearXiv 2018

Abstract

Embedding audio signal segments into vectors with fixed dimensionality is attractive because all following processing will be easier and more efficient, for example modeling, classifying or indexing. Audio Word2Vec previously proposed was shown to be able to represent audio segments for spoken words as such vectors carrying information about the phonetic structures of the signal segments. However, each linguistic unit (word, syllable, phoneme in text form) corresponds to unlimited number of audio segments with vector representations inevitably spread over the embedding space, which causes some confusion. It is therefore desired to better cluster the audio embeddings such that those corresponding to the same linguistic unit can be more compactly distributed. In this paper, inspired by Siamese networks, we propose some approaches to achieve the above goal. This includes identifying positive and negative pairs from unlabeled data for Siamese style training, disentangling acoustic factors such as speaker characteristics from the audio embedding, handling unbalanced data distribution, and having the embedding processes learn from the adjacency relationships among data points. All these can be done in an unsupervised way. Improved performance was obtained in preliminary experiments on the LibriSpeech data set, including clustering characteristics analysis and applications of spoken term detection.

1. Introduction

In the field of speech processing, audio embeddings serve as the critical bridge between raw acoustic signals and machine learning models. Ideally, these fixed-length mathematical summaries should be invariant to non-linguistic factors; for instance, the word "apple" should yield nearly identical vectors regardless of the speaker's pitch, accent, or recording environment.

Previous methods, such as Audio Word2Vec, utilized autoencoders to compress audio segments into phonetic representations. However, these embeddings often suffered from a "spread" problem, where vectors for the same linguistic unit were widely distributed across the embedding space. This dispersion is primarily caused by the model's sensitivity to acoustic noise and speaker-specific traits. For low-resource languages lacking large labeled datasets, this lack of compactness makes pattern recognition and search tasks, such as Spoken Term Detection (STD), significantly more difficult.

2. Methodology

To address the spread problem, we propose a multi-stage unsupervised framework designed to "tighten" audio embeddings by isolating phonetic content and leveraging the natural adjacency of data points.

2.1 Feature Disentanglement

The framework employs two distinct encoders: a phonetic encoder ($E_p$) and a speaker encoder ($E_s$). To ensure the phonetic vector ($v_p$) captures only linguistic information, an adversarial speaker discriminator ($D_s$) is introduced. The training objective is to "fool" the discriminator, preventing it from identifying the speaker based on the phonetic embedding, thereby stripping away residual acoustic artifacts.

Figure 1: The proposed architecture utilizes separate encoders for phonetic and speaker characteristics, using an adversarial discriminator to ensure feature disentanglement.

2.2 Adjacency-Based Siamese Training

Siamese networks typically require labeled pairs to learn similarity. In an unsupervised setting, we utilize adjacency as a proxy for labels. Within each training mini-batch, the model assumes that the nearest neighbors in the vector space represent the same linguistic unit (positive pairs), while distant points represent different units (negative pairs). To handle unbalanced data—where some words appear more frequently than others—we construct a fully connected graph for each mini-batch and select the top-$k$ shortest distances as positive pairs, preventing the forced clustering of unrelated sounds.

3. Experimental Results

The proposed methods were evaluated using the LibriSpeech corpus, focusing on 100 speakers across word, syllable, and phoneme levels.

3.1 Clustering Compactness

The effectiveness of the approach was measured by the gap ($\Delta$) between intra-class similarity (same word) and inter-class similarity (different words). As shown in the table below, our best-performing configuration (method 'd') significantly outperformed the baseline Audio Word2Vec (method 'a'). For word-level embeddings, the similarity gap improved from 0.068 to 0.200.

Figure 2: Quantitative comparison of intra-class and inter-class cosine similarities. Method (d) shows the highest compactness (Delta) across all linguistic units.

3.2 Spoken Term Detection (STD)

In practical applications, the refined embeddings (transformed into a new space $z$) yielded the highest Mean Average Precision (MAP) in Spoken Term Detection tasks. By shrinking the "cloud" of points for each linguistic unit, the model reduced overlap between similar-sounding but different words (e.g., "brother" vs. "bother"), leading to more accurate search results.

4. Conclusion

This study demonstrates that adjacency-based clustering and adversarial disentanglement can effectively improve the compactness of unsupervised audio embeddings. By explicitly separating speaker identity from phonetic content, we achieve representations that are more robust for downstream tasks. Future research will explore joint segmentation and embedding to further automate the processing of low-resource languages (such as Hokkien) that lack established linguistic analysis.

Summary updated

BibTeX
@misc{huang2018improved,
  author = {Sung-Feng Huang and Yi-Chen Chen and Hung-yi Lee and Lin-Shan Lee},
  title = {{Improved Audio Embeddings by Adjacency-Based Clustering with Applications in Spoken Term Detection}},
  year = {2018},
  eprint = {1811.02775},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.02775},
}
Figure