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

Chang Zeng, Xin Wang, Erica Cooper, Junichi Yamagishi · DOI

TL;DR

This paper introduces a novel attention-based back-end for Automatic Speaker Verification (ASV) designed to better leverage multiple enrollment utterances. By using a two-stage self-attention mechanism to learn intra-speaker variations, the model consistently outperforms traditional PLDA and cosine similarity methods across various state-of-the-art speaker encoders.

What Problem Does This Paper Address?

Automatic Speaker Verification (ASV) is the task of confirming a person's identity based on their voice. In real-world applications, a user often provides several "enrollment" recordings to register their identity.

Standard back-end methods, like Probabilistic Linear Discriminant Analysis (PLDA) or simple cosine similarity, typically handle these multiple recordings by simply averaging their embedding vectors. However, this "mean" approach discards valuable information about intra-speaker variation—the differences in a person's voice caused by different background noises, emotional states, or recording devices. The authors argue that a back-end should be able to dynamically weight these recordings, focusing on the most representative features while ignoring outliers or noise.

Methods

The authors propose a back-end architecture that replaces static averaging with a learnable attention pipeline, as illustrated in Figure 1.

Fig. 1. Back-end architecture. Dashed boxes show detailed imple- mentation of two multi-head attention blocks.

The process works in three main stages:

  1. Multi-head Scaled-Dot Self-Attention (SDSA): The enrollment embeddings are stacked into a matrix. The SDSA block learns the relationships between these utterances, producing bias parameters that emphasize or de-emphasize specific recordings and even specific dimensions within those embeddings.
  2. Multi-head Feed-Forward Self-Attention (FFSA): This second block aggregates the modified embeddings into a single, highly representative speaker vector ($h$).
  3. Scoring & Calibration: The representative vector is compared to a test utterance ($q$) using cosine similarity. Crucially, a learnable Logistic Regression (LR) layer is added to calibrate the final score, transforming it into a probability.

The system is trained using a hybrid loss function: a weighted sum of standard Binary Cross-Entropy (BCE) and a modified Generalized End-to-End (GE2E) loss, which helps minimize intra-class distance while maximizing inter-class distance.

Datasets

The researchers evaluated their model on two distinct datasets:

  • VoxCeleb1 & 2: A massive English dataset primarily used here to test the "single enrollment" case. This ensures the model remains robust even when the multi-utterance advantage isn't available.
  • CNCeleb1 & 2: A challenging "in-the-wild" Chinese dataset featuring 11 different genres (e.g., interviews, singing, vlogs). This is the primary benchmark for the multi-enrollment case, as it contains significant inter-session variations.

Key Insights and Ideas

  • Attention over Averaging: The core "aha" moment is that treating multiple enrollments as a sequence to be "attended to" allows the model to learn which parts of which utterances are most reliable for verification.
  • SDSA is the Heavy Lifter: Through an ablation study (Table 4), the authors found that the Scaled-Dot Self-Attention (SDSA) component is more critical for performance than the FFSA aggregation step. It is better at capturing the complex intra-variations of the speaker.
  • Calibration is Essential: The inclusion of a simple Logistic Regression layer for score calibration proved vital. Without it, the Equal Error Rate (EER) skyrocketed in some tests, showing that raw attention scores need proper scaling to be useful for decision-making.

Key Results

The attention back-end showed clear superiority in multi-enrollment scenarios on the CNCeleb dataset (Table 3).

Table 3. CNCeleb verification performance results of two encoders with different back-ends
  • Performance Gains: Using a standard TDNN encoder, the proposed model achieved an EER of 10.12%, significantly outperforming the PLDA baseline of 12.09%.
  • State-of-the-Art Synergy: When paired with the advanced ECAPA-TDNN encoder, the attention back-end reached an EER of 8.93%, compared to 9.51% for PLDA.
  • Robustness: On the VoxCeleb dataset (single enrollment), the model achieved an EER of 3.26%, which is highly competitive with PLDA's 3.14% (Table 2), proving it generalizes well across different enrollment counts.

Limitations and Future Work

While the model excels with multiple enrollments, the authors acknowledge that its performance is comparable to, but not significantly better than, PLDA for single-utterance cases. The paper does not deeply explore the computational cost of the attention mechanism compared to simple averaging, though self-attention generally introduces more parameters and latency.

Future research could look into integrating this utterance-level attention more closely with the frame-level attention mechanisms already present in modern speaker encoders like ECAPA-TDNN to create a more unified end-to-end attention architecture.

Summary updated

BibTeX
@misc{zeng2021attention,
  author = {Chang Zeng and Xin Wang and Erica Cooper 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