Abstract
Text-dependent speaker verification (TDSV) requires the simultaneous verification of a speaker's identity and the specific phrase spoken. While deep neural networks (DNNs) have excelled in text-independent tasks using global average pooling, this approach often fails in TDSV by discarding crucial temporal and phonetic information. This paper proposes a novel architecture that replaces standard pooling with a differentiable alignment mechanism (HMM or GMM) to generate "supervectors." Additionally, we introduce a differentiable approximation of the Area Under the ROC Curve (aAUC) as a loss function. Our results on the RSR2015 dataset demonstrate that this end-to-end system significantly outperforms traditional triplet loss baselines, achieving an Equal Error Rate (EER) of 0.56%.
Introduction
In text-dependent speaker verification, the system must reject not only imposters with different voices but also the correct speaker saying the wrong phrase, or imposters saying the correct phrase. Modern DNNs typically use global average pooling to compress audio into fixed-length embeddings (e.g., x-vectors). While effective for capturing voice characteristics, this averaging destroys the phonetic sequence, making it difficult for the network to verify what was said. Furthermore, standard training objectives like cross-entropy or triplet loss are only proxies for the ultimate evaluation metric: the Area Under the ROC Curve (AUC).
Proposed Methodology
We propose a three-stage neural network architecture designed to preserve phonetic structure and directly optimize detection performance.
1. Front-End Feature Extraction
A 1D Convolutional Neural Network (CNN) is used to extract acoustic features. To prevent overfitting on smaller TDSV datasets, we employ a teacher-student training paradigm ("Bayesian Dark Knowledge") and Random Erasing data augmentation.
2. Differentiable Alignment (Pooling Layer)
Instead of global averaging, we introduce a layer that aligns acoustic frames to specific phonetic states. We evaluated two methods: HMM-based frame-to-state alignment and GMM-based alignment with Maximum a Posteriori (MAP) adaptation. This process produces a "supervector" that retains the temporal structure of the phrase alongside speaker traits.
3. aAUC Back-End Optimization
The system is structured as a Triplet Neural Network. To move beyond proxy losses, we define a differentiable approximation of the AUC (aAUC). By replacing the non-differentiable step function in the AUC calculation with a steep sigmoid, the entire system can be trained end-to-end to maximize the ROC area directly.
Experimental Setup and Results
Experiments were conducted on the RSR2015 (Part I) dataset, focusing on the "Impostor-Correct" condition—the most challenging scenario where an imposter speaks the correct target phrase.
- Baseline Performance: A standard CNN with global average pooling yielded an EER of 8.88%.
- Impact of Alignment: Replacing average pooling with HMM or GMM alignment drastically reduced the EER to approximately 1.74%–2.03%.
- aAUC vs. Triplet Loss: For the GMM-MAP architecture, switching from standard Triplet Loss to the proposed aAUC loss further reduced the EER from 0.72% to 0.56%, with a final AUC of 99.98%.
Discussion and Key Insights
The primary takeaway is that averaging destroys text-dependence. By embedding classical alignment techniques (HMM/GMM) as differentiable layers, we bridge the gap between classical signal processing and deep learning. Furthermore, the success of the aAUC loss highlights the importance of training models directly on the metrics used for evaluation. By smoothing the AUC function, the network learns to better manage the trade-off between false alarms and misses.
Limitations and Future Work
Despite the performance gains, the current system requires training phrase-specific HMM/GMM models, which limits scalability for open-vocabulary systems. Additionally, the small size of TDSV datasets necessitates heavy regularization. Future research will explore self-attention mechanisms for phonetic alignment and the application of aAUC loss to larger, text-independent datasets.
Summary updated