Analyzing the Representational Geometry of Acoustic Word Embeddings

Badr M. Abdullah, Dietrich KlakowarXiv 2023 · DOI

Abstract

Acoustic Word Embeddings (AWEs) map variable-length spoken word segments into fixed-dimensional vector spaces. While their utility in speech technology is well-established, the underlying geometric properties of these representations remain poorly understood. This paper investigates how neural architectures and training objectives shape the representational geometry of AWEs. Using metrics from machine learning and neuroscience, we find that the learning objective exerts a dominant influence over the resulting vector space compared to the specific architecture. We also observe that AWE models exhibit high degrees of anisotropy, though discriminative performance correlates strongly with increased spatial uniformity.

Introduction

Acoustic Word Embeddings are essential for tasks such as query-by-example search and speech recognition. Unlike text embeddings that capture semantic relationships, AWEs are designed to capture phonetic similarity—mapping different utterances of the same word to nearby points in a high-dimensional space. Despite their success, the "black box" nature of these models leaves questions about how they utilize their vector space and whether they rely on superficial shortcuts like word length. This study applies a "surgical" analysis to these models to uncover the factors shaping their internal maps.

Methodology

The researchers compared two fundamental architectures: Recurrent Neural Networks (RNNs) using Gated Recurrent Units (GRUs) and Convolutional Neural Networks (CNNs). These were evaluated across four distinct training objectives:

  1. Autoencoder (AE): Reconstruction of the input audio.
  2. Correspondence Autoencoder (CAE): Reconstruction of a different instance of the same word.
  3. Phonologically Guided Encoder (PGE): Mapping audio to phoneme sequences.
  4. Contrastive Siamese Encoder (CSE): Using triplet loss to explicitly cluster same-word embeddings.

Analysis was conducted using the LibriSpeech dataset. To quantify the geometry, the authors employed the Category Discriminability Index (CDI) to measure cluster separation and Isotropy scores to measure how evenly embeddings fill the vector space.

Representational Geometry and Category Separation

A central finding is that the training objective dictates the geometry far more than the architecture. As shown in the density plots of cosine similarities, models trained with contrastive objectives (CSE) achieve much sharper separation between within-category and cross-category pairs than simple reconstruction models (AE).

Distribution of within-category and cross-category cosine similarities across different models and objectives.

While both RNNs and CNNs follow similar trends across objectives, RNNs generally produce more distinct clusters. Interestingly, the study found that even randomly initialized encoders exhibit some inherent structure, though training is required to make these spaces useful for word discrimination.

Isotropy and Performance Correlation

A significant challenge in embedding spaces is anisotropy, where vectors cluster into a "narrow cone," leaving most of the mathematical space empty. The study found that all AWE models are highly anisotropic, with isotropy scores remaining below 0.10 (where 1.0 represents perfect uniformity).

Isotropy scores across models (a) and the correlation between isotropy and mean Average Precision (b).

However, there is a strong positive correlation ($r \approx 0.90$) between geometric metrics like isotropy or CDI and actual task performance (mAP). As models become better at distinguishing words, they naturally begin to spread out and utilize more of the available dimensions. RNNs consistently demonstrated higher isotropy and better performance than CNNs across all supervised objectives.

Discussion and Conclusion

The analysis reveals that AWE models do not just learn "pure sound"; they are heavily influenced by word length (phoneme count) as a proxy for identity. Furthermore, while Contrastive (CSE) models are the most performant, they are also the least consistent—different training runs result in significantly different geometric configurations.

In conclusion, this work demonstrates that the "how" of training (the objective) is more critical than the "what" (the architecture) in defining the phonetic map of spoken words. By treating these models as digital subjects of geometric analysis, we gain deeper insights into the mechanisms of machine hearing.

Summary updated

BibTeX
@misc{abdullah2023analyzing,
  author = {Badr M. Abdullah and Dietrich Klakow},
  title = {{Analyzing the Representational Geometry of Acoustic Word Embeddings}},
  year = {2023},
  eprint = {2301.03012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.03012},
}
Figure