Abstract
Speaker recognition systems often struggle in real-world environments where background noise masks critical acoustic signatures. This paper introduces a novel two-stage attention mechanism that sequentially processes audio features in both the frequency and time domains. By mimicking high-quality digital filter design, the proposed "Frequency-then-Time" (F-T) cascade creates a refined mask to block noise more effectively than standard single-stage models. Experimental results on the VoxCeleb1 dataset demonstrate that this approach significantly outperforms strong baselines like X-vectors and ResNet-34, particularly in challenging high-noise scenarios such as "babble" interference.
Introduction
While deep learning has advanced speaker identification, performance degrades significantly "in the wild" due to ambient noise, music, or competing voices. Most existing attentive models focus exclusively on the temporal domain, identifying which frames are most important. However, noise often corrupts specific frequency bands as well as specific time intervals. To achieve true robustness, a model must simultaneously determine which frequencies are reliable and which moments in time are most informative for identifying a speaker's unique voice.
Methodology
The authors propose a two-stage attention framework compatible with standard backbones like Time Delay Neural Networks (TDNNs) and Convolutional Neural Networks (CNNs). The framework consists of two primary modules:
- Frequency Attention Model (FAM): This module assigns weights to different frequency components by using max-pooling and statistics-pooling to capture salient spectral information.
- Time Attention Model (TAM): A self-attention layer that assigns weights to individual frames across the temporal dimension, highlighting speaker-characteristic moments.
The researchers explored two integration strategies: a Parallel scenario where both models run simultaneously, and a Sequential (Cascade) scenario. Inspired by the engineering principle that cascading lower-order filters often yields superior results to a single high-order filter, the Frequency-then-Time (F-T) cascade emerged as the most effective configuration.
Experimental Setup
The models were trained and evaluated using the VoxCeleb1 dataset, a benchmark for "in the wild" speaker recordings. Data was augmented using the MUSAN corpus to simulate three noise types: general ambient noise, music, and "babble" (multiple overlapping voices). Performance was measured across five Signal-to-Noise Ratios (SNRs) ranging from 0dB (extreme noise) to 20dB (cleaner signal).
Results and Discussion
The proposed F-T model achieved superior results across nearly all noise conditions. On clean data, the CNN-based F-T model reached 92.0% identification accuracy. More importantly, its relative advantage grew in noisier environments. In the most difficult scenario—0dB babble noise—the F-T model provided a relative improvement of over 3% compared to standard TDNN and ResNet baselines.
Key insights from the results include:
- Sequence Matters: The F-T sequence consistently outperformed the Time-then-Frequency (T-F) sequence. This suggests that in noisy conditions, spectral information is more stable; applying temporal attention first may inadvertently discard useful frames before frequency-domain noise has been mitigated.
- Filter Analogy: The two-stage process acts as a sophisticated mask, refining the feature map $H$ into a cleaner representation for the segment-level feature extractor.
Conclusion
The two-stage attention model provides a significant boost to noise robustness in speaker recognition by addressing interference in both the spectral and temporal domains. While highly effective on VoxCeleb1, future work will focus on scaling the approach to larger datasets like VoxCeleb2 and exploring its interaction with modern architectures such as Transformers and Conformers.
Summary updated