Abstract
Traditional speaker verification systems often rely on simple statistics pooling to aggregate frame-level features into utterance-level embeddings. This paper proposes a serialized multi-layer multi-head attention mechanism that progressively refines these representations. By stacking attention layers and utilizing an input-aware query, the model captures complex hierarchical vocal characteristics more effectively. Experimental results on the VoxCeleb and SITW datasets demonstrate significant performance gains, including a nearly 10% relative improvement in Equal Error Rate (EER) over standard attentive pooling baselines.
Introduction
In speaker verification, the primary challenge is to transform variable-length audio signals into fixed-length, discriminative "fingerprints" known as speaker embeddings. The x-vector architecture has long been the industry standard, typically employing a statistics pooling layer to calculate the mean and standard deviation across an entire utterance. However, this approach treats all frames with equal importance, failing to account for non-informative segments like noise or silence.
While attention-based pooling has been introduced to weight frames dynamically, most existing methods utilize shallow, single-layer structures. These are often insufficient for capturing the intricate, hierarchical nature of human speech. This paper explores the adaptation of Transformer-style multi-head attention for the specific task of feature aggregation, introducing a serialized architecture designed to learn increasingly refined speaker representations.
Proposed Methodology: Serialized Multi-Head Attention
The core innovation is the Serialized Multi-Layer Multi-Head Attention framework. Unlike standard Transformers that process multi-head attention in parallel, this model stacks $N$ identical layers in a sequence.
1. Serialized Architecture
The model consists of a frame-level feature processor followed by $N$ serialized attention layers (typically $N=4$ to $6$). Each layer contains a self-attention module and a feed-forward network. This sequential arrangement allows the network to propagate and refine attentive statistics through multiple stages, building a deeper utterance-level representation than is possible with parallel heads.
2. Input-Aware Query
Standard attention mechanisms often use a fixed, trainable query vector. In contrast, this paper introduces an "input-aware" query. By first performing a simple statistics pooling on the input sequence, the model generates a context-specific query. This ensures the attention mechanism is tailored to the global characteristics of the specific audio clip being processed.
3. Hierarchical Aggregation and Residual Connections
To maximize the information captured, the model aggregates weighted statistics from multiple layers. Residual skip connections and layer normalization are employed throughout the stack to maintain training stability and preserve the original signal integrity across the deep network.
Experimental Evaluation
The proposed model was trained on the VoxCeleb2 dataset, which contains over one million utterances. Evaluation was conducted on several challenging benchmarks:
- VoxCeleb1-E & VoxCeleb1-H: Extended and Hard test sets designed to evaluate robustness.
- SITW (Speakers in the Wild): Real-world audio characterized by diverse noise conditions.
To maintain efficiency, the authors reduced the dimensionality of frame-level features from 512 to 256 before the attention stage, allowing for a deeper 6-layer stack without significantly increasing the total parameter count.
Results and Discussion
The serialized attention approach consistently outperformed traditional x-vectors and standard attentive pooling methods across all metrics.
As shown in the results table, the 6-layer model ($N=6$) achieved the best performance, reaching an EER of 3.99% on VoxCeleb1-H. This represents a 9.7% relative improvement over the baseline attentive statistic pooling. Similar gains were observed in the Minimum Decision Cost Function (MinDCF), indicating more reliable speaker discrimination.
Key Insights
- Depth Enhances Pooling: Stacking attention layers is more effective for feature aggregation than increasing the number of parallel heads. It allows the model to learn "refined features" that correlate more strongly with speaker identity.
- Contextual Focus: The input-aware query prevents a "one-size-fits-all" attention strategy, allowing the model to adapt its focus based on the unique acoustic environment of each utterance.
- Scalability: The performance improved monotonically as $N$ increased from 4 to 6, suggesting that deeper aggregation networks are better at capturing robust speaker characteristics.
Conclusion
This research demonstrates that serialized multi-layer attention is a powerful tool for neural speaker embedding. By moving beyond shallow pooling layers, the proposed architecture achieves state-of-the-art results on competitive benchmarks like VoxCeleb and SITW. Future work may explore the integration of this mechanism with more advanced front-end architectures like ResNet or ECAPA-TDNN to further push the boundaries of speaker recognition accuracy.
Summary updated