Siamese Neural Network with Joint Bayesian Model Structure for Speaker Verification

Xugang Lu, Peng Shen, Yu Tsao, Hisashi KawaiarXiv 2021 · DOI

Abstract

Generative probability models are widely used for speaker verification (SV). However, these models often lack discriminative feature selection capabilities. As a hypothesis test, SV can be viewed as a binary classification task suitable for a Siamese neural network (SiamNN) with discriminative training. Traditional SiamNN approaches often focus solely on pair-wise sample distances, ignoring the rich discriminative information in the joint distribution of samples. This paper proposes a novel SiamNN that incorporates the joint distribution of samples based on a Joint Bayesian (JB) generative model. We design a SiamNN with dense layers to approximate the factorized affine transforms used in the JB model. By initializing the SiamNN with parameters from a pre-trained JB model and fine-tuning with pair-wise samples, we achieve significant performance improvements. Experiments on the Speakers in the Wild (SITW) and VoxCeleb datasets demonstrate that our proposed model outperforms state-of-the-art SV models by a large margin.

Introduction: Bridging Generative and Discriminative Models

Speaker Verification (SV) aims to determine if two speech segments originate from the same individual. Historically, this field has relied on generative models like Probabilistic Linear Discriminant Analysis (PLDA) or Joint Bayesian (JB) models. While these models excel at capturing the underlying statistical distributions of voices, they are not inherently designed to discriminate between similar-sounding speakers or ignore irrelevant acoustic noise.

Conversely, Siamese Neural Networks are powerful discriminative learners. However, standard SiamNN architectures for SV typically rely on simple distance metrics between voice embeddings (like X-vectors), potentially discarding the nuanced probabilistic relationships captured by classical joint distribution models. This research introduces a hybrid architecture that integrates the structural strengths of JB models into a discriminative neural network framework.

Proposed Methodology: The JB-SiamNN

The core innovation lies in mapping the mathematical structure of a Joint Bayesian model directly into a neural network architecture.

Structural Integration

The authors factorized the Log-Likelihood Ratio (LLR) formula of the JB model into affine transforms. They then designed a Siamese network where specific layers mimic these transforms. As shown in Figure 1, the architecture moves beyond a generic "black box" by explicitly modeling the components of the JB framework.

Architecture of the proposed Siamese Neural Networks: (a) MD_net and (b) JB_net.

Initialization and Training

A critical step in the process is "warm-starting" the network. Instead of random initialization, the SiamNN's weights are set using parameters learned from a standard generative JB model. Following this initialization, the network undergoes discriminative fine-tuning as a binary classifier (Same vs. Different speaker) using an Empirical Bayes Risk objective. This allows the model to refine the classical JB "rules" to better handle real-world variability.

Experimental Results

The model was evaluated using X-vector embeddings on the VoxCeleb (training) and Speakers in the Wild (SITW) datasets. SITW is particularly challenging due to its unconstrained, noisy environments.

Performance Gains

The "JB-initialized SiamNN" consistently outperformed both classical baselines and randomly initialized neural networks. On the SITW Dev set, the proposed method achieved an Equal Error Rate (EER) of 2.66%, a significant improvement over the 3.00% achieved by standard PLDA.

Performance comparison on the SITW Dev set showing the impact of JB initialization.

Key Insights

  • The Power of Inductive Bias: Using a statistical model to define the network's architecture provides a powerful prior that guides the model toward more effective solutions.
  • Initialization is Crucial: As seen in the results table, a SiamNN with random initialization (4.16% EER) actually performed worse than the classical LDA+PLDA baseline (3.00% EER). The performance leap is contingent on the JB-based initialization.
  • Cross-Term Importance: Analysis indicated that the "cross-term" in the JB formula is vital for discriminative power, and optimizing this component yielded the most significant gains.

Conclusion and Future Directions

By combining the structural rigor of generative models with the discriminative power of deep learning, this approach sets a new benchmark for speaker verification. While currently based on Gaussian assumptions, future work will explore non-Gaussian distributions to further enhance robustness in extreme acoustic environments characterized by heavy distortion or background noise.

Summary updated

BibTeX
@misc{lu2021siamese,
  author = {Xugang Lu and Peng Shen and Yu Tsao and Hisashi Kawai},
  title = {{Siamese Neural Network with Joint Bayesian Model Structure for Speaker Verification}},
  year = {2021},
  eprint = {2104.03004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.03004},
}
Figure