NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spectral Clustering-aware Learning of Embeddings for Speaker Diarisation

Evonne P. C. Lee, Guangzhi Sun, Chao Zhang, Philip C. Woodland · DOI

Abstract

In speaker diarisation, there is often a mismatch between the training objectives of speaker embedding models and the downstream clustering methods used during inference. This paper introduces Spectral Clustering-aware Learning of Embeddings (SCALE) to bridge this gap. SCALE augments standard metric learning with a novel affinity matrix loss that directly supervises the similarity structure of embeddings. By integrating spectral clustering refinement steps—such as Gaussian blurring and p-percentile thresholding—into the training loop, SCALE produces embeddings optimized for graph-based clustering. Experiments on the AMI meeting corpus show that SCALE achieves over 50% relative reduction in Speaker Error Rate (SER) and over 30% relative reduction in Diarisation Error Rate (DER) compared to strong baselines.

Introduction

Speaker diarisation is the process of partitioning an audio stream into segments based on speaker identity. The standard approach involves extracting speaker embeddings (d-vectors) and grouping them using unsupervised algorithms, with spectral clustering being a popular choice due to its ability to handle complex data manifolds.

However, a fundamental training-inference mismatch persists. Embedding models are typically trained using classification or metric learning losses (e.g., Angular Prototypical loss) that focus on individual speaker separation. In contrast, spectral clustering relies on the global structure of an affinity matrix and specific refinement operations like smoothing and thresholding. SCALE addresses this by making the embedding model "aware" of these downstream processes during training.

The SCALE Framework

The SCALE framework fine-tunes a pre-trained model (such as wav2vec 2.0) using a multi-objective loss function. It combines the standard Angular Prototypical (AP) Loss with a novel Affinity Matrix (AM) Loss.

Affinity Matrix Loss and Refinement

The AM loss calculates the Mean Squared Error (MSE) between an estimated affinity matrix and a binary reference matrix. To ensure the model learns features compatible with spectral clustering, SCALE simulates the clustering refinement process during training:

  1. Gaussian Blurring: This step smooths the affinity matrix, preserving local continuity between adjacent audio segments.
  2. Thresholding: Both absolute and relative (p-percentile) thresholding are used to mask the matrix. This forces the loss function to ignore "easy" pairs and focus on "difficult" ones that would survive the pruning process in actual spectral clustering.
The refinement process in SCALE: transforming a raw affinity matrix A into a refined mask M through Gaussian blurring and relative thresholding.

Experimental Results

The proposed method was evaluated on the AMI Meeting Corpus, a challenging dataset featuring multi-speaker interactions. The model underwent a two-stage fine-tuning process, first on VoxCeleb datasets and then on AMI.

  • Oracle Segmentation: SCALE reduced the Speaker Error Rate (SER) from 17.1% to 4.7% in the two-stage setup, representing a relative improvement of over 70%.
  • Automatic Segmentation: In a full pipeline with automatic voice activity detection, SCALE achieved a Diarisation Error Rate (DER) of 10.1%, a significant improvement over the 17.1% baseline.

Conclusion

By incorporating spectral clustering operations directly into the training objective, SCALE effectively mitigates the mismatch between embedding extraction and diarisation. The results demonstrate that "clustering-aware" training leads to more robust embeddings and superior diarisation performance. Future work will explore the application of SCALE to overlapping speech detection and more diverse acoustic environments.

Summary updated

BibTeX
@inproceedings{lee2022spectral,
  author = {Evonne P. C. Lee and Guangzhi Sun and Chao Zhang and Philip C. Woodland},
  title = {{Spectral Clustering-aware Learning of Embeddings for Speaker Diarisation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp49357.2023.10096993},
}
Figure