Joint speaker encoder and neural back-end model for fully end-to-end automatic speaker verification with multiple enrollment utterances

Chang Zeng, Xiaoxiao Miao, Xin Wang, Erica Cooper, Junichi Yamagishi

Abstract

Automatic Speaker Verification (ASV) systems traditionally rely on a stage-wise approach, separating front-end feature extraction from back-end scoring. This paper proposes a fully end-to-end (E2E) joint model that optimizes both components simultaneously. By leveraging hierarchical attention mechanisms—specifically Multi-head Scaled Dot Self-Attention and Feed-Forward Self-Attention—the model effectively integrates multiple enrollment utterances. Combined with a hybrid loss function incorporating Focal Loss and embedding-level mixup, the proposed system achieves significant performance gains on the challenging multi-genre CNCeleb dataset, outperforming traditional stage-wise and existing E2E methods.

Introduction

Automatic Speaker Verification (ASV) is the process of confirming a speaker's identity based on their voice. Modern ASV systems typically follow a "stage-wise" architecture. As shown in Figure 1, a front-end (e.g., a ResNet or TDNN) extracts a speaker embedding, which is then processed by a back-end (e.g., PLDA) to produce a similarity score.

Standard stage-wise ASV framework consisting of a front-end speaker encoder and a back-end scoring model.

However, this approach has two primary drawbacks. First, separate optimization of the front-end and back-end can lead to suboptimal performance as the components are not jointly tuned for the final verification task. Second, handling multiple enrollment utterances remains a challenge. Traditional methods often use simple averaging or concatenation, which fails to account for acoustic variations and the relative importance of different speech samples.

Methods

The proposed solution is a Fully End-to-End Joint Model that integrates the speaker encoder and the scoring back-end into a single differentiable framework.

Hierarchical Attention Mechanism

The core innovation lies in how the model processes multiple enrollment utterances. Instead of simple averaging, the system employs a hierarchical attention structure. As detailed in Figure 4, this includes Multi-head Scaled-dot Self-attention (SDSA) and Feed-Forward Self-attention (FFSA). These layers allow the model to dynamically weigh different segments and utterances, focusing on the most representative acoustic features while suppressing noise.

Detailed architecture of the proposed fully end-to-end joint model, highlighting the hierarchical attention mechanism for multiple enrollment utterances.

Training Strategy and Loss Functions

The model follows a two-stage training process:

  1. Pre-training: The speaker encoder is first trained using a standard classification task.
  2. Joint Fine-tuning: The encoder is concatenated with the neural back-end and fine-tuned using verification-based metrics.

To improve robustness, the authors introduce Embedding-level Mixup, applying data augmentation directly to the speaker embeddings. The training objective uses a hybrid loss function: a modified Generalized End-to-End (AGE2E) loss combined with Focal Loss. Focal Loss is particularly effective in ASV because it addresses the class imbalance between positive (same speaker) and negative (different speaker) trials by focusing on "hard" examples.

Results and Discussion

The model was evaluated on the CNCeleb dataset, which is notably difficult due to its multi-genre nature (interviews, singing, movies). This environment creates significant acoustic mismatches between enrollment and test utterances.

Key findings include:

  • Superior Performance: Using an ECAPA-TDNN encoder, the joint model achieved an Equal Error Rate (EER) of 8.04%, a 21.4% relative improvement over the standard GE2E baseline (10.23%).
  • Scalability: The model demonstrates excellent scaling with the number of enrollment utterances ($K$). As $K$ increased from 1 to 5, the EER dropped from 17.57% to 7.96%, significantly outperforming traditional averaging methods.
  • Robustness: The attention mechanism proved superior to simple averaging, as it allows the model to treat enrollment samples as dynamic "anchors" rather than static points.

Conclusion

This research demonstrates that joint optimization of the speaker encoder and back-end, coupled with hierarchical attention, provides a powerful framework for multi-enrollment ASV. While the system effectively handles genre mismatch, future work will focus on addressing other types of environmental mismatch and integrating anti-spoofing measures to enhance security against deepfake audio attacks.

Summary updated

BibTeX
@inproceedings{zeng2022joint,
  author = {Chang Zeng and Xiaoxiao Miao and Xin Wang and Erica Cooper and Junichi Yamagishi},
  title = {{Joint speaker encoder and neural back-end model for fully end-to-end automatic speaker verification with multiple enrollment utterances}},
  booktitle = {Comput. Speech Lang},
  year = {2022},
}
Figure