Abstract
Speaker diarization can be described as the process of extracting sequential speaker embeddings from an audio stream and clustering them according to speaker identities. Nowadays, deep neural network based approaches like x-vector have been widely adopted for speaker embedding extraction. However, in the clustering back-end, probabilistic linear discriminant analysis (PLDA) is still the dominant algorithm for similarity measurement. PLDA works in a pair-wise and independent manner, which may ignore the positional correlation of adjacent speaker embeddings. To address this issue, our previous work proposed the long short-term memory (LSTM) based scoring model, followed by the spectral clustering algorithm. In this paper, we further propose two enhanced methods based on the self-attention mechanism, which no longer focuses on the local correlation but searches for similar speaker embeddings in the whole sequence. The first approach achieves state-of-the-art performance on the DIHARD II Eval Set (18.44% DER after resegmentation), while the second one operates with higher efficiency.
Introduction
Speaker diarization is the critical task of partitioning an audio stream into segments and identifying "who spoke when." A standard diarization pipeline typically involves several stages: voice activity detection (VAD), segmentation, speaker embedding extraction (e.g., x-vectors), similarity measurement (scoring), and clustering.
The industry-standard scoring method, Probabilistic Linear Discriminant Analysis (PLDA), treats segment pairs as independent. This approach fails to account for the inherent structure of human conversation, where speaker turns and temporal proximity provide valuable context. While previous attempts used Long Short-Term Memory (LSTM) networks to capture local dependencies, these models are computationally expensive and struggle with long-range global context.
Proposed Methods
To overcome the limitations of pairwise and sequential models, this paper proposes two scoring strategies based on the self-attention mechanism. These models utilize Transformer-style encoders to capture global correlations across the entire audio sequence.
1. Attentive Vector-to-Sequence (Att-v2s)
The Att-v2s model processes a target embedding $x_i$ by comparing it against the full sequence of embeddings $x_1, ..., x_n$. By "paying attention" to the entire conversation, the model can identify similar segments regardless of their temporal distance. This global search capability allows the model to refine scores for short or noisy segments by leveraging more robust information from other parts of the recording.
2. Attentive Sequence-to-Sequence (Att-s2s)
The Att-s2s model is optimized for computational efficiency. Unlike Att-v2s, which requires multiple passes, Att-s2s generates the complete similarity matrix $S$ in a single forward pass. It employs a learnable matrix $P$ to compute all pairwise scores simultaneously ($ZPZ^T$), where $Z$ represents the contextualized embeddings from the encoder.
Experimental Evaluation
The proposed models were evaluated using a Deep ResNet extractor trained on VoxCeleb 1 & 2. The scoring models were trained on the AMI and ICSI meeting corpora (approx. 170 hours) and tested on the challenging DIHARD II dataset.
Key Results
- Accuracy: The Att-v2s model achieved a Diarization Error Rate (DER) of 18.44% on the DIHARD II Eval set, matching state-of-the-art performance and significantly outperforming the 25.99% baseline.
- Efficiency: The Att-s2s model demonstrated a massive speed advantage, processing the evaluation set in 24 seconds, compared to 148 minutes for Att-v2s and 67 minutes for the LSTM-based model. This represents a 370x speedup over the sequential attentive approach.
Conclusion
Self-attentive scoring models represent a significant advancement in speaker diarization backends. By capturing global context, these models improve accuracy and, in the case of Att-s2s, offer the efficiency required for large-scale production environments. Future research will address overlapping speech detection and improve robustness for speakers with limited total speaking time.
Summary updated