Analyzing autoencoder-based acoustic word embeddings

Yevgen Matusevych, Herman Kamper, Sharon GoldwaterarXiv 2020

TL;DR

This paper probes the internal structure of Acoustic Word Embeddings (AWEs)—fixed-size vectors that represent spoken words. The researchers demonstrate that these embeddings don't just cluster words by identity; they also capture human-like patterns, such as a sensitivity to phonetic similarity and a "word onset bias" where the beginning of a word is treated as more distinctive than the end.

What Problem Does This Paper Address?

In speech technology, we often use Acoustic Word Embeddings (AWEs) to turn variable-length audio clips of words into fixed-length mathematical vectors. While these are great for tasks like "query-by-example" (finding other instances of the same word), we haven't really known what’s happening "under the hood."

Do these vectors actually capture the phonetic structure of language? Do they ignore the speaker's voice as intended, or is that information still lurking there? Most importantly for cognitive scientists: do these machine-learned representations look anything like the way humans store words in their "mental lexicon"? This paper seeks to answer these questions by analyzing AWEs across six typologically different languages.

Methods

The authors focus on a specific model: the Correspondence-Autoencoding Recurrent Neural Network (CAE-RNN).

Unlike a standard autoencoder that tries to reconstruct its own input, a CAE-RNN is trained on pairs of different audio instances of the same word. The goal is to encode instance A and use that vector to reconstruct instance B. This setup encourages the model to ignore "noise" like background sounds or individual speaker quirks and focus on the core "word-ness."

To evaluate what the model learned, they used three probing techniques:

  1. Linear Classifiers/Regressions: Can we predict a word's duration or the speaker's identity just by looking at the AWE vector?
  2. Machine ABX Tasks: A "forced choice" test. For example, is word X closer to word A (same duration) or word B (same speaker)?
  3. Distance Analysis: Measuring how the "distance" between two vectors changes based on phonetic differences (like edit distance).

They compared the CAE-RNN against a simple Downsampling (DS) baseline, which just picks 10 equally spaced snapshots of the audio.

Datasets

The study uses the GlobalPhone corpus, a multilingual database of read newspaper articles. To ensure the findings weren't language-specific, they tested six diverse languages:

  • Spanish (ES)
  • Hausa (HA)
  • Croatian (HR)
  • Swedish (SV)
  • Turkish (TR)
  • Mandarin (ZH)

Key Insights and Ideas

  • Incomplete Abstraction: Even though the model is designed to ignore speaker identity, it doesn't do so completely. However, it is significantly better at abstracting away from the speaker than the simple baseline.
  • Duration is Fundamental: Surprisingly, AWEs are very good at preserving the absolute duration of a word. In an ABX task, the model found duration to be a more "distinctive" feature than speaker identity.
  • Phonetic Organization: The embedding space isn't random. Words that sound similar (like "cat" and "catch") are physically closer in the vector space than words that sound different (like "cat" and "dog").
  • The Word Onset Bias: This is the most striking finding. In human psychology, the beginning of a word is crucial for "lexical access" (finding the word in your memory). The CAE-RNN naturally developed a similar bias: it treats a change in the first sound of a word as a much "bigger" difference than a change at the end.

Key Results

  • Speaker Identity: AWEs reduced speaker information compared to the baseline but still performed above chance, indicating some "voice" info remains (see Figure 1).
  • Duration & Phone Count: The AWEs were excellent predictors of a word's length. They predicted absolute duration with an $R^2$ of 0.85–0.91 and the number of phones with an $R^2$ of 0.71–0.84.
Figure 1: Classification accu- racy of models predicting a word’s speaker identity.
Figure 2: Mean squared error for predicting word duration. AWEs are significantly more accurate than the baseline.
  • Onset Bias Evidence: In Figure 7, the researchers show that for the Hausa language, the distance between words is highest when they differ at the "start" and lowest when they differ at the "end." This suggests the model "pays more attention" to the beginning of words.
Figure 7: Average cosine distances between pairs of Hausa AWEs for words differing in one phone, depending on the position of that phone.

Limitations and Future Work

The authors acknowledge that these AWEs are purely acoustic—they contain no information about what a word means. In the real world, human word recognition is a mix of sound and semantics.

The authors suggest that future work should look at combining these acoustic embeddings with semantic ones. This could lead to more powerful cognitive models that better simulate how humans navigate the complex relationship between how a word sounds, how long it takes to say, and what it actually represents.

Summary updated

BibTeX
@misc{matusevych2020analyzing,
  author = {Yevgen Matusevych and Herman Kamper and Sharon Goldwater},
  title = {{Analyzing autoencoder-based acoustic word embeddings}},
  year = {2020},
  eprint = {2004.01647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.01647},
}
Figure