Learning Latent Representations for Speech Generation and Transformation

Wei-Ning Hsu, Yu Zhang, James R. Glass

Abstract

This paper introduces a convolutional Variational Autoencoder (VAE) designed to learn disentangled latent representations of speech in an entirely unsupervised manner. By applying vector arithmetic in the latent space, the researchers demonstrate the ability to modify speaker identity or phonetic content without requiring parallel training data. Evaluation on the TIMIT corpus shows that speaker and phonetic attributes reside in nearly orthogonal subspaces, facilitating precise transformations and high-quality reconstructions.

Introduction

Speech signals are complex, containing a dense mixture of linguistic content, speaker identity, emotion, and environmental noise. Traditionally, disentangling these factors required handcrafted features or expensive parallel datasets. This work addresses the challenge of building a model that can automatically separate "content" from "style" using raw, unlabeled audio.

Methods

The authors employ a Variational Autoencoder (VAE) with a specialized convolutional architecture tailored for speech:

  1. Convolutional Design: To account for the frequency-dependent nature of speech, the model uses 1-by-F filters in the first layer to capture spectral envelopes, followed by temporal filters.
  2. Latent Space Arithmetic: The model assumes that different attributes occupy distinct, orthogonal subspaces in the latent representation $z$. Transformations are performed by calculating a "shift vector" between attribute means (e.g., $v = \mu_{target} - \mu_{source}$) and adding it to the original latent code.
  3. Activation Functions: The use of tanh activations was found to be critical for stabilizing KL-divergence during training.

Key Insights: Orthogonality and Clustering

A central finding of this research is the natural separation of speech attributes within the latent space. By analyzing cosine similarities, the authors observed that speaker identity and phonetic content reside in nearly orthogonal subspaces. This orthogonality is the key mechanism that allows for latent arithmetic: modifying a speaker vector does not inadvertently alter the phonetic content.

Cosine similarity matrix showing the orthogonality between speaker identity and phonetic content

Furthermore, even without explicit labels during training, the latent representations of different phonemes naturally cluster based on their acoustic characteristics (e.g., vowels vs. fricatives).

Results and Evaluation

The model was evaluated on the TIMIT acoustic-phonetic corpus using both magnitude spectra and Mel-scale filter banks.

Reconstruction Quality

The VAE demonstrates superior reconstruction quality compared to standard Autoencoders (AE). While standard AEs often produce "blurred" spectrograms with unnatural vertical artifacts, the VAE's probabilistic framework encourages the learning of a smoother, more coherent speech manifold.

Comparison of spectrogram reconstructions using VAE, AE, and Fbank

Quantitative Validation

The authors used pre-trained classifiers to validate the transformations. For instance, when shifting a segment from the phone /aa/ to /ae/, the classifier's posterior for /ae/ increased from 0.45% to 29.73%. Similarly, changing speaker identity resulted in a significant jump in target speaker recognition (from 0.02% to 28.71%), while maintaining stable harmonics.

Conclusion and Future Work

While the current model performs well on fixed-length segments (200ms to 1s), real-world speech is highly dynamic. Future research will explore hierarchical recurrent models, such as Variational RNNs, to better capture multi-scale information like sentence-level prosody alongside short-term phonetic details.

Summary updated

BibTeX
@inproceedings{hsu2017learning,
  author = {Wei-Ning Hsu and Yu Zhang and James R. Glass},
  title = {{Learning Latent Representations for Speech Generation and Transformation}},
  booktitle = {Interspeech},
  year = {2017},
  doi = {10.21437/interspeech.2017-349},
}
Figure