Learning Disentangled Speech Representations with Contrastive Learning and Time-Invariant Retrieval

Yimin Deng, Huaizhen Tang, Xulong Zhang, Ning Cheng, Jing Xiao, Jianzong Wang · DOI

Introduction

Voice Conversion (VC) is the process of altering the speaker identity of an utterance while maintaining the original linguistic content. The core challenge in this field is disentanglement: speech is a complex, composite signal where linguistic content (phonemes), speaker identity (timbre), and prosody (rhythm and emotion) are deeply intertwined.

Existing VC methods often suffer from "leakage," where speaker characteristics persist in the content representation or linguistic details bleed into the speaker representation. This results in converted audio that either sounds like a hybrid of two speakers or fails to preserve the original message clearly. Furthermore, many current solutions rely on large, pre-trained "black box" speaker recognition models. The CTVC framework addresses these issues by using contrastive learning and a novel retrieval mechanism to achieve cleaner disentanglement without external dependencies.

Methodology

The CTVC framework introduces two primary innovations to improve the separation of speech components:

1. Similarity-Based Content Compression

Standard models typically process speech signals frame-by-frame, which can retain unnecessary acoustic detail. CTVC utilizes a forced aligner (such as MFA) during the training phase to identify phoneme boundaries. It then applies a contrastive similarity loss to the content encoder. This loss forces the model to produce highly similar representations for frames within the same phoneme and distinct representations for frames belonging to different phonemes. This process effectively "compresses" the hidden features into a purer linguistic signal.

2. Time-Invariant Retrieval (TIR) for Timbre

To capture speaker identity while ignoring the specific words being spoken, the authors propose Time-Invariant Retrieval (TIR). The underlying intuition is that while linguistic content changes rapidly, timbre remains constant across an utterance. By maximizing the Mutual Information (MI) between two random, different segments of the same speaker's speech using an InfoNCE loss, the speaker encoder is forced to discard time-varying content and focus exclusively on the global, time-invariant "style" of the voice.

3. Adversarial Training

To ensure the content encoder does not "cheat" by hiding speaker information within its representations, the framework employs a Gradient Reversal Layer (GRL). This creates an adversarial game where a classifier attempts to identify the speaker from the content features, while the content encoder is optimized to make that identification as difficult as possible.

Experimental Setup and Results

The model was trained and evaluated on AISHELL-3, a large-scale multi-speaker Mandarin Chinese corpus containing approximately 85 hours of recordings from 218 native speakers. The evaluation included both "Many-to-Many" conversion and "One-Shot" conversion (generalizing to voices never heard during training).

Key Performance Metrics

CTVC was compared against several baselines, including VQVC+ and F0-AutoVC, using both objective metrics like Mel-Cepstral Distortion (MCD) and subjective human listening tests (Mean Opinion Score/MOS and Voice Similarity Score/VSS).

  • Many-to-Many VC: CTVC achieved an MCD of 7.31 (lower is better) and a MOS of 3.75, outperforming all baselines.
  • One-Shot VC: For unseen speakers, the model maintained a high MOS of 3.66 and a VSS of 3.42, significantly higher than the baseline scores which typically ranged between 3.0 and 3.2.
  • Ablation Studies: Removing either the TIR mechanism or the adversarial GRL led to a measurable decline in speaker similarity, confirming that these specific constraints are the primary drivers of the model's performance.

Discussion and Future Work

CTVC demonstrates that leveraging the temporal nature of speech—specifically the global nature of timbre versus the local nature of phonemes—allows for a more concise and elegant architecture. By learning speaker representations from scratch using the TIR strategy, the model avoids the complexity of massive pre-trained embeddings.

However, some areas for future exploration remain:

  • Prosody and Emotion: Current research focuses on timbre and content; future iterations could investigate how to better transfer subtle emotional nuances.
  • Forced Alignment Dependency: The training phase currently requires external tools for phoneme-level durations.
  • Language Generalization: While successful on Mandarin, testing the framework on non-tonal languages or cross-lingual conversion is a necessary next step.

Summary updated

BibTeX
@inproceedings{deng2024learning,
  author = {Yimin Deng and Huaizhen Tang and Xulong Zhang and Ning Cheng and Jing Xiao and Jianzong Wang},
  title = {{Learning Disentangled Speech Representations with Contrastive Learning and Time-Invariant Retrieval}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=NTUGIq61VP},
}
Figure