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.
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.
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.
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.
Project Poster - Adaptive Multi-Speaker Diarization (Final Year Project Showcase 2025)
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
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