Removing Speaker Information from Speech Representation using Variable-Length Soft Pooling

Injune Hwang, Kyogu LeearXiv 2024 · OpenReview

Abstract

Recently, there have been efforts to encode the linguistic information of speech using a self-supervised framework for speech synthesis. However, predicting representations from surrounding representations can inadvertently entangle speaker information in the speech representation. This paper aims to remove speaker information by exploiting the structured nature of speech, composed of discrete units like phonemes with clear boundaries. A neural network predicts these boundaries, enabling variable-length pooling for event-based representation extraction instead of fixed-rate methods. The boundary predictor outputs a probability for the boundary between 0 and 1, making pooling soft. The model is trained to minimize the difference with the pooled representation of the data augmented by time-stretch and pitch-shift. To confirm that the learned representation includes contents information but is independent of speaker information, the model was evaluated with libri-light's phonetic ABX task and SUPERB's speaker identification task.

Introduction

Modern self-supervised learning (SSL) models, such as HuBERT or wav2vec 2.0, excel at capturing speech nuances but often entangle linguistic content with speaker identity. For applications like Text-to-Speech (TTS) or silent speech reconstruction, isolating linguistic content is critical. Existing disentanglement methods often rely on fixed-rate downsampling or complex clustering. This research proposes a representation that is "speaker-agnostic" by leveraging the inherent discrete structure of speech—phonemes with varying durations.

Methodology

The proposed framework integrates Contrastive Predictive Coding (CPC) with a novel Variable-Length Soft Pooling module.

  1. Boundary Prediction: A boundary predictor network ($g_{bnd}$) estimates the probability of transitions between frames. These probabilities form a cumulative sum, serving as a timeline for linguistic events.
  2. Soft Pooling: Instead of fixed-rate averaging, the model employs attention pooling with Gaussian kernels. These kernels are positioned based on predicted boundaries, allowing the extraction of segments corresponding to varying-length linguistic units.
  3. Contrastive Learning with Augmentation: To ensure speaker invariance, the model is trained on time-stretched and pitch-shifted audio. Time-stretching is particularly effective; since it alters duration but preserves phoneme order, the model must identify consistent "content boundaries" across different speeds to minimize contrastive loss.
  4. Dual Loss Objective: Training balances a standard CPC loss (for information richness) and a contrastive loss ($L_{contr}$) on pooled segments (for content consistency across augmentations).
Overview of the proposed framework featuring CPC, Soft Pooling, and data augmentation.

Results and Analysis

The model was evaluated on LibriSpeech (training), Libri-light (Phonetic ABX), and SUPERB (Speaker Identification).

Speaker Disentanglement and Phonetic Clarity

The proposed model significantly reduces speaker information while maintaining phonetic quality. As shown in the evaluation results, the model achieved a Speaker Identification (SID) accuracy of 17.7%, compared to 26.3% for the CPC baseline. Notably, removing the CPC loss entirely dropped SID to 5.18%, indicating near-total speaker disentanglement, albeit with some loss in phonetic detail. In the Phonetic ABX task, the model achieved a 7.61% error rate, outperforming the baseline.

Comparison of phonetic discrimination (ABX) and speaker identification (SID) performance across models.

Emergent Segmentation

A key finding is the emergence of phoneme segmentation without manual labels. The model identifies boundaries with a ~74% F1 score on the TIMIT dataset. This suggests that the objective of matching content across different temporal augmentations naturally leads the model to discover the underlying discrete structure of speech. Qualitative analysis further shows that attention heads naturally cluster around content-rich sections of audio, while silent segments are handled by fewer, broader kernels.

Conclusion

This work demonstrates that variable-length soft pooling, combined with temporal augmentations, effectively strips speaker information from speech representations. While a performance gap remains compared to larger models like ContentVec in phonetic discrimination, the proposed method offers a lightweight and label-free approach to speech disentanglement. Future work will explore scaling the model and incorporating quantization to further refine the learned linguistic units.

Summary updated

BibTeX
@misc{hwang2024removing,
  author = {Injune Hwang and Kyogu Lee},
  title = {{Removing Speaker Information from Speech Representation using Variable-Length Soft Pooling}},
  year = {2024},
  eprint = {2404.00856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00856},
}
Figure