The sound of my voice: speaker representation loss for target voice separation

Seongkyu Mun, Soyeon Choe, Jaesung Huh, Joon Son Chung

TL;DR

This paper introduces Speaker Representation Loss (SRL) and Triplet SRL, novel loss functions for target voice separation that leverage high-level speaker embeddings from a pre-trained encoder network. By optimizing for perceptual speaker characteristics rather than just pixel-level spectral reconstruction, this approach significantly improves speech separation quality without adding a single parameter to the deployment model.

What Problem Does This Paper Address?

Target voice separation aims to isolate a specific speaker's voice from a noisy mixture containing background noise or competing talkers. Traditional deep learning approaches, such as the VoiceFilter framework, typically optimize using a spectral reconstruction loss like Mean Squared Error (MSE) between the estimated and clean magnitude spectrograms.

However, optimizing solely at the pixel/bin level ignores high-level perceptual features. For instance, two spectrograms might look different at a fine-grained bin level due to phase or minor acoustic variations, yet still represent the exact same speaker identity. Conversely, a standard MSE loss might fail to properly reconstruct a target speaker's voice in low Signal-to-Noise Ratio (SNR) time-frequency regions. The authors bridge this gap by introducing a "content loss" for audio, ensuring the network explicitly optimizes for the target speaker's unique vocal signature.

Methods

The authors build upon the VoiceFilter architecture, which uses a pre-trained, fixed speaker encoder to extract a reference embedding (d-vector) that guides the separation network.

Instead of relying only on standard MSE reconstruction loss (shown in Figure 2), they introduce two new perceptual loss formulations:

  1. Speaker Representation Loss (SRL): This minimizes the Euclidean distance between the L2-normalized d-vector of an anchor (either the reference audio or the clean target audio) and the positive sample (the enhanced audio output). This forces the network to preserve the target speaker's identity in the separated output.
  2. Triplet SRL: To ensure the target voice is completely removed from the background noise/interfering talkers, the authors leverage the complementary nature of masking networks. They generate a residual spectrogram (the remaining audio after the target mask is applied) and treat it as a negative sample. Triplet SRL simultaneously minimizes the distance between the anchor and the enhanced audio while maximizing the distance between the anchor and the residual audio.

The overall training loss combines the traditional MSE loss with the new SRL or Triplet SRL terms, weighted by a hyperparameter $\beta$.

Fig. 1. The concept of proposed triplet SRL. All speaker en- coders indicate the same pre-trained model.
Fig. 3. Proposed loss function flow. (a) and (b) indicate our proposed speaker representation loss (SRL) and triplet SRL, which use speaker perceptual information. These are applied as additional criteria in VoiceFilter along with the existing reconstruction loss.

Datasets

  • Voice Separation Evaluation: The models were trained and evaluated using the VCTK dataset, randomly selecting 99 speakers for training and 10 for validation, following the standard VoiceFilter data generation pipeline.
  • Speaker Encoder Training: The underlying speaker encoder network (producing 512-dimensional d-vectors) was trained on the VoxCeleb2 training set and verified on the VoxCeleb1 test set, achieving a 6.0% Equal Error Rate (EER).

Key Insights and Ideas

  • Perceptual Loss for Audio: Borrowing from computer vision style transfer—where networks are penalized based on high-level feature representations rather than raw pixels—translates remarkably well to audio preprocessing.
  • The Power of the Residual: Using the residual spectrogram as a negative sample in a triplet loss framework is an elegant way to enforce clean separation. It explicitly penalizes the network if any trace of the target speaker leaks into the background/interfering audio stream.
  • Zero Inference Overhead: Because the speaker encoder is only used during the training phase to calculate the loss, the separation network achieves better performance at test time with zero additional network parameters or computational overhead.

Key Results

The authors evaluated performance using Source-to-Distortion Ratio (SDR) and Perceptual Evaluation of Speech Quality (PESQ) improvements relative to the noisy baseline.

As shown in the experimental results, every configuration utilizing the proposed speaker representation losses outperformed the baseline VoiceFilter:

  • Baseline VoiceFilter: Achieved an SDR improvement of 4.617 dB and a PESQ improvement of 0.526.
  • Best Proposed Model (+ Triplet SRL with clean audio anchor): Achieved an SDR improvement of 5.028 dB and a PESQ improvement of 0.598.

Using the clean target audio as the anchor consistently yielded slightly better results than using the reference audio anchor, likely because it guides the network using the exact source information present in the mixture.

Table showing quantitative SDR and PESQ improvements across different loss configurations.

Limitations and Future Work

  • Convergence Speed: The authors noted that in the initial training iterations, optimizing solely with the new representation loss led to slower convergence. To mitigate this, they had to implement a "warm-up" strategy, training exclusively with standard reconstruction loss for the first 5 epochs before introducing SRL.
  • Future Directions: The authors suggest that this high-level representation loss framework isn't unique to VoiceFilter. It can be readily adapted to other speech-processing tasks, such as mask-based speech enhancement and noise-robust speaker verification systems.

Summary updated

BibTeX
@inproceedings{mun2020sound,
  author = {Seongkyu Mun and Soyeon Choe and Jaesung Huh and Joon Son Chung},
  title = {{The sound of my voice: speaker representation loss for target voice separation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp40776.2020.9053521},
}
Figure