Disentangling Textual and Acoustic Features of Neural Speech Representations

Hosein Mohebbi, Grzegorz Chrupala, Willem H. Zuidema, Afra Alishahi, Ivan TitovarXiv 2024

Abstract

Neural speech models build deeply entangled internal representations, which capture a variety of features (e.g., fundamental frequency, loudness, syntactic category, or semantic content of a word) in a distributed encoding. This complexity makes it difficult to track the extent to which such representations rely on textual and acoustic information, or to suppress the encoding of acoustic features that may pose privacy risks (e.g., gender or speaker identity) in critical, real-world applications. In this paper, we build upon the Information Bottleneck principle to propose a disentanglement framework that separates complex speech representations into two distinct components: one encoding content (i.e., what can be transcribed as text) and the other encoding acoustic features relevant to a given downstream task. We apply and evaluate our framework to emotion recognition and speaker identification downstream tasks, quantifying the contribution of textual and acoustic features at each model layer. Additionally, we explore the application of our disentanglement framework as an attribution method to identify the most salient speech frame representations from both the textual and acoustic perspectives.

Introduction

Modern Neural Speech Models (NSMs) such as Wav2Vec2, HuBERT, and Whisper generate powerful representations of audio signals. However, these internal vectors are highly entangled, mixing phonetic content with speaker-specific traits like gender, emotion, and identity. This entanglement hinders interpretability—making it unclear if a model's decision is based on what was said or how it was said—and complicates privacy-preserving interventions where one might wish to retain linguistic meaning while removing sensitive biometric data.

Methodology: The Two-Stage VIB Framework

To address this, we propose a two-stage disentanglement framework based on the Variational Information Bottleneck (VIB). The VIB principle aims to create a compressed representation that retains only the information necessary for a specific task while discarding irrelevant noise.

Overview of the two-stage disentanglement framework. Stage 1 extracts textual content ($z^{textual}$), while Stage 2 extracts task-specific acoustic features ($z^{acoustic}$) by leveraging the frozen textual representation.
  • Stage 1 (Textual Bottleneck): The model processes speech representations to perform Automatic Speech Recognition (ASR) using a Connectionist Temporal Classification (CTC) loss. A VIB constraint forces the model to discard non-transcription information (e.g., pitch), resulting in a "textual" latent vector ($z^{textual}$).
  • Stage 2 (Acoustic Bottleneck): The model is trained on a downstream task (e.g., emotion recognition). It utilizes the frozen $z^{textual}$ from Stage 1. The VIB constraint here encourages the model to isolate additional acoustic information in the speech signal not present in the text, yielding an "acoustic" latent vector ($z^{acoustic}$).

Experimental Setup

The framework was evaluated using standard benchmarks:

  • LibriSpeech & Common Voice 17.0: For Stage 1 transcription and speaker identification.
  • IEMOCAP: For emotion recognition.
  • RAVDESS: For qualitative visualization, featuring identical sentences spoken with varied emotions.

Key Results and Discussion

Successful Disentanglement

Probing experiments confirmed effective separation. The $z^{textual}$ vectors excelled at text prediction but performed at chance levels for speaker gender or pitch. Conversely, $z^{acoustic}$ vectors captured speaker traits effectively while "forgetting" linguistic content.

Visualization of Latent Spaces

t-SNE visualizations on the RAVDESS dataset provide clear evidence of this partitioning. As shown in the figure below, textual representations cluster by the words spoken, whereas acoustic representations cluster by emotion, independent of the linguistic content.

t-SNE visualization of $z^{textual}$ and $z^{acoustic}$ representations. Left: $z^{textual}$ clusters by transcription. Right: $z^{acoustic}$ clusters by emotion.

Impact of Fine-Tuning

A significant finding is that fine-tuning models like Wav2Vec2 for ASR causes them to lose acoustic information in final layers, effectively becoming "text-processing" engines and sacrificing the rich prosodic data present in their pre-trained states.

Conclusion

This framework demonstrates that complex neural speech representations can be successfully decomposed into specialized textual and acoustic components without significant performance loss. This separation enhances model interpretability and offers a path toward privacy-preserving speech processing. Future work will explore broader modality applications and more robust privacy guarantees against adversarial attacks.

Summary updated

BibTeX
@misc{mohebbi2024disentangling,
  author = {Hosein Mohebbi and Grzegorz Chrupala and Willem H. Zuidema and Afra Alishahi and Ivan Titov},
  title = {{Disentangling Textual and Acoustic Features of Neural Speech Representations}},
  year = {2024},
  eprint = {2410.03037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03037},
}
Figure