Speech2Vec: A Sequence-to-Sequence Framework for Learning Word Embeddings from Speech

Yu-An Chung, James R. Glass

Introduction

Word embeddings are a cornerstone of modern Natural Language Processing (NLP), providing dense vector representations that capture semantic relationships between words. Traditionally, these embeddings (e.g., Word2Vec, GloVe) are learned from large-scale text corpora. However, relying solely on text introduces two significant limitations: the "ASR bottleneck," where errors in automatic transcription propagate into the embeddings, and the loss of paralinguistic information such as prosody, tone, and rhythm—elements inherent in speech but absent in text.

Speech2Vec addresses these challenges by learning semantic word embeddings directly from audio signals. Unlike previous acoustic word embedding techniques that focused primarily on phonetic similarity, Speech2Vec is designed to capture semantic meaning by leveraging the contextual relationships between spoken words.

Methodology

The Speech2Vec framework utilizes a sequence-to-sequence (seq2seq) architecture based on Recurrent Neural Networks (RNNs). This approach allows the model to process variable-length audio segments, represented as sequences of Mel-Frequency Cepstral Coefficients (MFCCs). The core of the model is an encoder-decoder structure where the encoder compresses an input audio segment into a fixed-length vector—the word embedding—and the decoder attempts to reconstruct target audio segments from this vector.

The authors adapted two classic training methodologies from the Word2Vec paradigm:

  1. Skipgrams: The model takes the audio segment of a target word and attempts to reconstruct the audio segments of its neighboring words.
  2. Continuous Bag-of-Words (CBOW): The model takes the audio segments of surrounding context words and attempts to reconstruct the audio segment of the central target word.
Architectures for Speech2Vec using skipgrams (a) and CBOW (b) frameworks.

By forcing the model to reconstruct context from a single vector, the latent space is incentivized to organize itself based on semantic information rather than just acoustic properties.

Experimental Setup

The model was trained on a 500-hour subset of the LibriSpeech corpus, comprising read English speech from over 1,200 speakers. Audio was featurized using 13-dimensional MFCCs. To evaluate the semantic quality of the learned embeddings, the authors utilized 13 standard word similarity benchmarks, including WS-353, SimLex-999, and the Rare-Word dataset. These benchmarks measure the correlation between the cosine similarity of model-generated vectors and human-assigned similarity scores.

Results and Discussion

Experimental results indicate that Speech2Vec successfully captures semantic information from raw audio. Notably, the skipgram-based variant significantly outperformed the CBOW variant, mirroring trends observed in text-based word embedding research.

Comparison with Text-Based Models

When compared against Word2Vec models trained on the exact transcriptions of the audio data, Speech2Vec (skipgram) achieved superior performance in 8 out of the 13 benchmarks. This suggests that the acoustic signal contains rich, multi-modal information that plain text cannot fully represent. Furthermore, the model demonstrated optimal performance with relatively low dimensionality (50–100 dimensions), suggesting a highly efficient encoding of semantic information.

Qualitative Analysis

A t-SNE visualization of the learned embeddings reveals clear semantic clustering. For instance, words with positive connotations (e.g., "magnificent," "splendid") are grouped together, distinct from clusters of words with negative connotations (e.g., "disgusting," "horrible").

t-SNE visualization of Speech2Vec embeddings, demonstrating semantic clustering of positive (green) and negative (red) adjectives.

Stability and Frequency

A variance study conducted by the authors showed that as the frequency of a word increases in the training set, the representations of its various acoustic instances converge toward a stable canonical vector. This indicates that the model is robust to the inherent variability of spoken language, though the current evaluation still requires averaging multiple instances of a word to create a single canonical embedding.

Conclusion and Future Work

Speech2Vec demonstrates the feasibility of learning high-quality semantic word embeddings directly from speech, bypassing the need for error-prone ASR systems. By capturing prosodic and other paralinguistic cues, these embeddings offer a more comprehensive representation of language than text-based alternatives.

Current limitations include the reliance on forced alignment for word segmentation during training, which requires transcripts. Future research will focus on moving toward unsupervised segmentation and evaluating these acoustic embeddings on downstream tasks such as speech-based visual question answering and spoken language understanding.

Summary updated

BibTeX
@inproceedings{chung2018speech,
  author = {Yu-An Chung and James R. Glass},
  title = {{Speech2Vec: A Sequence-to-Sequence Framework for Learning Word Embeddings from Speech}},
  booktitle = {Interspeech},
  year = {2018},
  doi = {10.21437/interspeech.2018-2341},
}
Figure