completed Jan 2024 - Jul 2025

Adaptive Multi-Speaker Diarization using End-to-End Neural Networks

#Speaker Diarization #Speech Processing #Deep Learning #RWKV #Sinhala #Tamil #Dataset
Adaptive Multi-Speaker Diarization using End-to-End Neural Networks

Overview

Speaker diarization, the task of determining "who spoke when" in an audio stream, underpins meeting transcription, call center analytics, and conversation analysis in medical, business and security settings. End-to-End Neural Diarization (EEND) models handle overlapping speech and a variable number of speakers better than traditional clustering pipelines, but state-of-the-art variants rely on Transformer components whose memory use grows quadratically with the length of the audio, while the LSTM-based attractor module of EEND-EDA struggles to remember speakers that appear early in long recordings.

This project proposes RWKV-EEND, which replaces the LSTM encoder-decoder in the encoder-decoder attractor (EDA) module of EEND-EDA with RWKV (Receptance Weighted Key Value) blocks. RWKV combines the parallel training of Transformers with the linear time and memory cost of recurrent networks, using time-mixing and channel-mixing sub-blocks to capture long-range temporal dependencies. Attractors are generated iteratively with a probabilistic stopping condition, so no fixed upper bound on the number of speakers is required. Two variants, RWKV-v4 and RWKV-v6, were trained on simulated conversations built from the LibriSpeech and MUSAN corpora and evaluated on CALLHOME. In parallel, the team created SiTa, a Sinhala and Tamil speaker diarization dataset collected from YouTube, and built a diarization-plus-transcription pipeline that combines Pyannote, Whisper and a diarization-aware language model.

Motivation & Objectives

Many real-world conversations involve more than two speakers, and manually determining the number of speakers in a recording is impractical. Most existing models either constrain the number of speakers or, when they can estimate it dynamically, incur quadratic memory cost during inference. Resources for low-resource South Asian languages such as Sinhala and Tamil are also scarce. The project pursued the following objectives:

Efficient Attractor Calculation – Develop an EEND-based speaker diarization model with a computationally efficient attractor calculation module that reduces memory complexity.

Benchmarking – Evaluate the model against state-of-the-art EEND models, including SA-EEND, EEND-EDA and DiaPer, using the Diarization Error Rate (DER).

Sinhala and Tamil Dataset – Create a speaker diarization dataset for Sinhala and Tamil and evaluate it on existing diarization models.

Real-World Pipeline – Develop a real-time and offline speaker diarization and transcription solution for real-world conversations.

Impact & Results

Performance

On the CALLHOME benchmark, EEND-RWKV-v6 achieved a DER of 20.17%, improving on SA-EEND (26.32%) and EEND-EDA (23.74%) and approaching DiaPer (18.89%), while EEND-RWKV-v4 reached 22.82%. On simulated LibriSpeech conversations, RWKV-v6 obtained 17.41% DER compared with 18.31% for EEND-EDA. RWKV-v6 also recorded the lowest speaker confusion on CALLHOME (7.82%). GPU memory analysis showed that Transformer-based models such as DiaPer scale quadratically with input length, whereas RWKV-EEND scales linearly, with up to 40% reduction in GPU memory consumption at 15-minute inputs compared to DiaPer. On the SiTa dataset, the modular Pyannote-based systems achieved DERs of 6.0–6.6% on both Sinhala and Tamil, in line with their reported VoxConverse results, while DiaPer reached 14.3% (Sinhala) and 11.5% (Tamil), attributed to its lack of voice activity detection and tendency to overfit.

Key Contributions

RWKV-EEND Model

An end-to-end neural diarization model that replaces the LSTM-based encoder-decoder attractor module with RWKV time-mixing and channel-mixing blocks, delivering accuracy competitive with Transformer-based models at linear memory cost.

SiTa Dataset

An in-the-wild, audio-only speaker diarization dataset of 60 Sinhala videos (about 10 hours) and 14 Tamil videos (about 2 hours) drawn from discussions, interviews, debates, quiz and children's programs, annotated with a semi-automated Pyannote 3.1 and VGG Image Annotator pipeline and double-annotation checks keeping inter-annotator DER below 1%.

Diarization and Transcription Pipeline

A pipeline that runs Pyannote diarization and Whisper transcription in parallel, streams speaker-labelled transcripts over WebSocket, and refines them offline with CTC forced alignment and a diarization-aware language model.

Real-world Impact

RWKV-EEND demonstrates that recurrent-style linear attention can make end-to-end diarization practical for long-form audio in resource-constrained environments, opening a path towards real-time and low-resource diarization systems. SiTa provides a much-needed benchmark for speaker diarization in the low-resource Sinhala and Tamil languages, including code-mixed speech, and highlights language-specific challenges such as overlap and the staccato rhythm of Sinhala speech. Planned future work includes adopting RWKV-v7, extending RWKV-based solutions to real-time diarization, and expanding SiTa with more diverse sources.

Gallery

Project Poster - Adaptive Multi-Speaker Diarization (Final Year Project Showcase 2025)

Project Poster - Adaptive Multi-Speaker Diarization (Final Year Project Showcase 2025)

Proposed RWKV-EEND architecture with RWKV encoder-decoder attractor module

Proposed RWKV-EEND architecture with RWKV encoder-decoder attractor module

GPU memory consumption during inference across audio lengths for EEND-EDA, DiaPer and RWKV-based models

GPU memory consumption during inference across audio lengths for EEND-EDA, DiaPer and RWKV-based models

Project Team

T

Thulasithan Gnanenthiram

Undergraduate Researcher

Researched improvements to end-to-end speaker diarization models with a focus on deep learning.

S

Shamila Jeewantha

Undergraduate Researcher

Worked on EEND speaker diarization models with an interest in efficient computing and audio processing.

U

Upeksha Jayawickrama

Undergraduate Researcher

Researched improvements to speaker diarization models, applying machine learning to multi-speaker audio.

Awards & Recognition

Publication at CHiPSAL @ COLING 2025

January 2025

The SiTa dataset was published at the First Workshop on Challenges in Processing South Asian Languages, held with the 31st International Conference on Computational Linguistics (COLING 2025)

“SiTa - Sinhala and Tamil Speaker Diarization Dataset in the Wild”

Uthayasanker Thayasivam, Thulasithan Gnanenthiram, Shamila Jeewantha, Upeksha Jayawickrama

First Workshop on Challenges in Processing South Asian Languages (CHiPSAL 2025), pp. 83–92

International Committee on Computational Linguistics