MTGAN: Speaker Verification through Multitasking Triplet Generative Adversarial Networks
In this paper, we propose an enhanced triplet method that improves the encoding process of embeddings by jointly utilizing generative adversarial mechanism and multitasking optimization. We extend our triplet encoder with Generative Adversarial Networks (GANs) and softmax loss function. GAN is introduced for increasing the generality and diversity of samples, while softmax is for reinforcing features about speakers. For simplification, we term our method Multitasking Triplet Generative Adversarial Networks (MTGAN). Experiment on short utterances demonstrates that MTGAN reduces the verification equal error rate (EER) by 67% (relatively) and 32% (relatively) over conventional i-vector method and state-of-the-art triplet loss method respectively. This effectively indicates that MTGAN outperforms triplet methods in the aspect of expressing the high-level feature of speaker information.
This is an unofficial MTGAN implementation. It only provides a preliminary code for these neural network of this model architecture without concretely calculation such as convolutional kernel size and pooling kernel size.
In this repository, I used cosine similarity-based Tripelt loss instead of the Euclidean distance-based Triplet loss used by the authors of this paper.
Private dataset. Anybody using this code can download Voxceleb dataset as substitution.
I substituted the private dataset with Voxceleb1 Dev dataset to train both original triplet model and MTGAN model. The models is evaluated on Voxceleb1 Test dataset.
In original_triplet directory, I implemented a simple triplet loss which uses a randomly hard sampling strategy. It is treated as a contrastive experiment to MTGAN so the encoder of it is same with MTGAN.
After 500 epochs, the model is converged. Changing trend of loss function is shown as the following picture.
Triplet loss
Number of non zero triplets
EER
EER: 9.020%
I used KALDI sre16 scripts to build an I-Vector system.
EER: 5.509%
Another neural network-based system was built with augmenting data by using MUSAN.
EER: 4.32%
Continuing...
Email: [email protected]
WeChat: zengchang-_-