Abstract
Disentangled representation learning in speech processing aims to extract independent features for speaker identity and linguistic content. While the Factorized Hierarchical Variational Autoencoder (FHVAE) is a popular framework for this task, its reliance on weak temporal constraints often results in "leaky" representations where identity and content information are blurred. This paper proposes an enhanced FHVAE that incorporates a contrastive learning objective during training. By utilizing triplet-based loss to explicitly cluster speaker embeddings, the model achieves significantly better disentanglement. Evaluations on TIMIT and VCTK datasets demonstrate improvements in speaker verification, speech recognition, and voice conversion quality, all without increasing computational costs at inference time.
Introduction
Extracting independent sets of features for "who" is speaking (speaker identity) and "what" is being said (linguistic content) is a fundamental challenge in speech processing. The FHVAE framework addresses this by assuming that speaker identity varies slowly across utterances (sequential features), while content varies rapidly within segments (segmental features). However, the original FHVAE objective only encourages intra-utterance consistency, failing to explicitly model inter-utterance speaker similarities or differences. This often leads to suboptimal separation, where identity information leaks into content variables and vice versa.
Methodology: Contrastive Learning in FHVAE
The authors introduce a "training-only" modification to the FHVAE architecture. While the model maintains its dual-encoder structure—one for content features ($z_1$) and one for identity features ($z_2$)—the loss function is augmented with a contrastive term ($L_{cont}$).
The Triplet Objective
The core of the proposed improvement is the use of triplet-based contrastive learning. As illustrated in Figure 1, the model is trained using positive pairs (different utterances from the same speaker) and negative pairs (utterances from different speakers). The model is penalized if identity embeddings from the same speaker are far apart or if embeddings from different speakers are too close.
This objective forces the model to learn a more robust and discriminative speaker space. Crucially, because this is a change to the training loss only, the resulting model remains identical in size and speed to the original FHVAE during inference, making it highly suitable for production environments.
Experimental Results
The method was evaluated on the TIMIT and VCTK datasets, comparing it against the baseline FHVAE and the state-of-the-art AutoVC model.
Qualitative Analysis: t-SNE Visualization
The impact of contrastive learning is most evident in the latent space organization. Figure 2 compares the t-SNE plots of speaker embeddings for the baseline FHVAE and the proposed method. The proposed approach produces much tighter and more distinct clusters for individual speakers, indicating a superior capture of identity information and reduced overlap between different speakers.
Quantitative Performance
The proposed method outperformed the baseline across several key metrics:
- Speaker Verification: The Equal Error Rate (EER) on TIMIT dropped from 3.13% to 2.73%.
- Content Extraction: The Word Error Rate (WER) improved from 27.5% to 26.3%. This suggests that by better isolating identity information, the content variable becomes less noisy, leading to better speech recognition accuracy.
- Voice Conversion: On the VCTK dataset, the proposed method achieved a conversion quality score of 0.678, significantly outperforming the AutoVC baseline of 0.648.
Discussion and Conclusion
The results demonstrate that disentanglement is often a zero-sum game; improving the speaker identity variable through contrastive learning simultaneously enhances the content variable. This "free upgrade" provides performance gains with zero additional computational overhead at deployment. Future work may focus on automating the balancing of scaling factors for the contrastive loss and exploring the model's robustness to extreme voice variations, such as heavy accents or significant pitch differences.
Summary updated