Attention Back-End for Automatic Speaker Verification with Multiple Enrollment Utterances

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

Introduction

Automatic Speaker Verification (ASV) systems aim to determine if a test voice sample belongs to a claimed speaker by comparing it against a reference template. This template is created during an "enrollment" phase using one or more voice samples. While multiple enrollment utterances should theoretically enhance system robustness, traditional back-ends often struggle to leverage this additional data effectively. Common methods like simple vector averaging or Probabilistic Linear Discriminant Analysis (PLDA) frequently fail to capture intra-speaker variations—the natural shifts in a person's voice caused by emotion, health, or varying acoustic environments. This paper introduces a novel attention-based back-end designed to model these complex relationships across multiple recordings.

Proposed Architecture

The core of the proposed system is a two-stage attention mechanism that replaces traditional linear aggregation methods. This architecture, illustrated in Figure 1, processes a set of enrollment embeddings to produce a single, highly representative "master" vector.

Architecture of the proposed attention back-end for speaker verification.

Two-Stage Attention Mechanism

  1. Scaled-Dot Self-Attention (SDSA): Referred to as Multi-head attention I in the architecture, this layer analyzes the stack of enrollment embeddings to learn intra-relationships. It acts as a filter, identifying consistent speaker dimensions across utterances while de-emphasizing transient noise or acoustic variations.
  2. Feed-Forward Self-Attention (FFSA): Labeled as Multi-head attention II, this layer aggregates the refined embeddings into the final master vector ($h$).

Scoring and Calibration

The final verification score is derived from the cosine similarity between the test embedding ($q$) and the master enrollment vector ($h$). A crucial component of this pipeline is a learnable Logistic Regression (LR) layer, which calibrates these similarity scores into well-defined probabilities. The model is trained using a hybrid loss function combining Binary Cross-Entropy (BCE) and Generalized End-to-End (GE2E) loss to optimize both classification accuracy and embedding separation.

Experimental Results

The researchers evaluated the attention back-end on the CNCeleb dataset, a challenging "in-the-wild" benchmark featuring multi-session enrollment across 11 different genres (e.g., vlogs, singing, interviews).

As shown in Figure 6, the proposed attention back-end consistently outperformed both Cosine Similarity and PLDA baselines across various state-of-the-art speaker encoders.

Performance comparison on the CNCeleb dataset across different speaker encoders.

Key performance highlights include:

  • ECAPA-TDNN Encoder: The system achieved its best result with an Equal Error Rate (EER) of 8.93%.
  • TDNN Encoder: The proposed model reached an EER of 10.12%, a significant improvement over the 12.09% achieved by PLDA and 19.86% by simple averaging.
  • Detection Cost: On the CNCeleb dataset, the attention back-end reduced the minimum Detection Cost Function (minDCF) by approximately 7.8% relative to PLDA.

Discussion and Key Insights

A significant finding is that utterance-level attention is complementary to frame-level attention. Even when using advanced encoders like ECAPA-TDNN that already employ internal attention, the proposed back-end provides unique gains by modeling variations across different recordings. Furthermore, the inclusion of score calibration via Logistic Regression proved essential for achieving these competitive metrics.

While the architecture was optimized for multi-utterance scenarios, additional tests on the VoxCeleb dataset demonstrated that it remains competitive with PLDA even in single-utterance cases, indicating strong generalization capabilities. Future work may explore the computational efficiency of these mechanisms for real-time applications and their effectiveness in cross-lingual verification tasks.

Summary updated

BibTeX
@misc{zeng2021attention,
  author = {Chang Zeng and Xin Wang and Erica Cooper and Xiaoxiao Miao and Junichi Yamagishi},
  title = {{Attention Back-End for Automatic Speaker Verification with Multiple Enrollment Utterances}},
  year = {2021},
  eprint = {2104.01541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.01541},
}
Figure