Incorporating Uncertainty from Speaker Embedding Estimation to Speaker Verification

Qiongqiong Wang, Kong Aik Lee, Tianchi Liu

Introduction

In the field of biometric security, Automatic Speaker Verification (ASV) has transitioned from complex generative models to streamlined deep learning architectures. These modern systems typically map variable-length speech utterances into fixed-length "embeddings"—single vector representations like the x-vector. While efficient, this approach often treats every recording with equal confidence. However, in real-world scenarios, a five-second clip recorded in a noisy environment is inherently less reliable than a long, high-quality studio recording.

Researchers from A*STAR Singapore have addressed this limitation by reintroducing uncertainty into the deep learning pipeline. Their work proposes a framework to estimate the uncertainty of a speaker embedding directly from a neural network and propagate that information into the scoring process, significantly improving reliability in challenging conditions.

The Problem: The Limitations of Point Estimates

Most modern ASV systems rely on point estimates, where a single vector represents a speaker's identity. This approach discards the "precision" or confidence level associated with that vector. Factors such as background noise, channel distortion, and short utterance duration introduce variance that point estimates cannot capture. While older generative models (like i-vectors) naturally accounted for this uncertainty, modern deep learning systems typically ignore it. The challenge lies in mathematically "handing off" the uncertainty calculated by a front-end neural network to a back-end classifier without disrupting standard processing workflows.

Proposed Methodology

The authors introduce three key components to bridge the gap between deep embeddings and probabilistic scoring:

1. The Xi-vector Framework

Instead of the standard x-vector, the researchers propose the "xi-vector" network. This architecture utilizes a Bayesian approach within its pooling layer. Rather than simply calculating the mean of speaker features, the xi-vector network estimates both the mean and the precision matrix (the inverse of uncertainty) for each utterance.

2. Uncertainty Propagation PLDA (UP-PLDA)

Probabilistic Linear Discriminant Analysis (PLDA) is the industry standard for comparing two speaker embeddings. The authors derived a new log-likelihood ratio (LLR) formula for PLDA that explicitly incorporates the utterance-dependent uncertainty matrices provided by the xi-vector front-end. This allows the back-end to "weight" the comparison based on the reliability of each embedding.

3. Embedding Length Scaling (LS)

To ensure embeddings follow a Gaussian distribution, researchers typically use Length Normalization (LN). However, LN is a non-linear transformation, which makes it mathematically difficult to propagate a covariance (uncertainty) matrix through it. To solve this, the authors developed "Length Scaling," a linear-compatible alternative. LS achieves the same distributional goals as LN but allows uncertainty information to flow unimpeded to the final scoring stage.

Experimental Evaluation

The framework was trained on the VoxCeleb2 dataset and evaluated across several rigorous benchmarks:

  • VoxCeleb1: Including the original (Vox1-O) and the "Hard" (Vox1-H) test sets.
  • Speakers in the Wild (SITW): Focused on unconstrained, real-world audio.
  • CNCeleb1-E: A challenging dataset involving significant domain mismatch, such as different languages and speaking styles compared to the training data.

Key Insights and Results

The research demonstrates that accounting for uncertainty provides a substantial performance boost, particularly in adverse conditions:

  • Significant Error Reduction: The proposed UP-PLDA with Length Scaling achieved reductions in Equal Error Rate (EER) ranging from 14.5% to 41.3% across the various test sets.
  • Robustness to Domain Mismatch: On the CNCeleb dataset, the system showed marked improvements. This suggests that uncertainty estimation helps the model handle "surprising" or out-of-distribution data by acknowledging the lower reliability of those samples.
  • The Importance of Explicit Propagation: While the xi-vector network uses uncertainty internally to refine embeddings, the authors found that explicitly passing that uncertainty to the back-end scoring (UP-PLDA) provides the most significant gains.
  • Computational Efficiency: By utilizing diagonalized covariance matrices, the authors ensured that these probabilistic calculations do not significantly increase the computational overhead of the verification process.

Conclusion and Future Work

This research highlights that knowing "how much the system doesn't know" is as valuable as the embedding itself. By identifying that standard Length Normalization acted as a bottleneck for uncertainty, the authors provided a mathematical workaround that allows for more informed biometric decisions.

Future research directions include testing the uncertainty framework with more complex neural backbones, such as ECAPA-TDNN, and exploring how uncertainty estimation can be leveraged for domain adaptation—helping models trained on one audio type perform better on another by explicitly accounting for shifts in data reliability.

Summary updated

Abstract

Speech utterances recorded under differing conditions exhibit varying degrees of confidence in their embedding estimates, i.e., uncertainty, even if they are extracted using the same neural network. This paper aims to incorporate the uncertainty estimate produced in the xi-vector network front-end with a probabilistic linear discriminant analysis (PLDA) back-end scoring for speaker verification. To achieve this we derive a posterior covariance matrix, which measures the uncertainty, from the frame-wise precisions to the embedding space. We propose a log-likelihood ratio function for the PLDA scoring with the uncertainty propagation. We also propose to replace the length normalization pre-processing technique with a length scaling technique for the application of uncertainty propagation in the back-end. Experimental results on the VoxCeleb-1, SITW test sets as well as a domain-mismatched CNCeleb1-E set show the effectiveness of the proposed techniques with 14.5%–41.3% EER reductions and 4.6%–25.3% minDCF reductions.
BibTeX
@inproceedings{wang2023incorporating,
  author = {Qiongqiong Wang and Kong Aik Lee and Tianchi Liu},
  title = {{Incorporating Uncertainty from Speaker Embedding Estimation to Speaker Verification}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=1OIvhuFX7u},
}
Figure