Online Neural Diarization of Unlimited Numbers of Speakers Using Global and Local Attractors

Shota Horiguchi, Shinji Watanabe, Paola Garcia, Yuki Takashima, Yohei Kawaguchi · DOI

This paper presents EEND-GLA (End-to-End Neural Diarization with Global and Local Attractors), a significant step forward in making neural speaker diarization systems both scalable to any number of speakers and capable of running in real-time streaming environments.

TL;DR

EEND-GLA overcomes the "speaker count ceiling" of traditional end-to-end diarization models by combining local block-based attractor estimation with unsupervised clustering. By introducing a novel block-wise speaker-tracing buffer, the authors enable this flexible, unlimited-speaker diarization to work in online, low-latency scenarios with state-of-the-art accuracy.

What Problem Does This Paper Address?

Speaker diarization—answering "who spoke when"—is a fundamental task in speech processing. While traditional "cascaded" systems (which separate speech detection, embedding extraction, and clustering) can handle an unlimited number of speakers, they struggle with overlapping speech and are difficult to optimize as a single unit.

End-to-end neural diarization (EEND) models solved the overlap problem by treating diarization as a multi-label classification task. However, these models have a major flaw: they are usually limited to the number of speakers seen during training (typically 2 to 4). If a fifth speaker enters the conversation, the model often fails to recognize them. Furthermore, adapting these models for online (streaming) use while maintaining speaker identity across chunks is a significant engineering challenge.

Methods

The authors propose a hybrid approach that retains the benefits of neural models while reintroducing the flexibility of clustering.

1. EEND-GLA Architecture

The core innovation is the use of Local Attractors.

  • Global Path: The model calculates "global attractors" for the entire sequence, which works well for few speakers.
  • Local Path: The audio is split into short blocks (e.g., 5 seconds). The model calculates "local attractors" for each block. Because a 5-second window rarely contains more than 4 speakers, the neural model can easily handle each block.
  • Clustering: These local attractors are transformed into "relative speaker embeddings" using a Transformer decoder. These embeddings are then clustered (using a constrained K-means variant) to link speakers across different blocks.

![Fig.

  1. End-to-end neural diarization with global and local attractors (EEND-GLA).](/figures/art_1ac5204e4c93460795e59dfcbe6d8cf6)

2. Online Inference with BW-STB

To make this work in real-time, the authors developed the Block-Wise Speaker-Tracing Buffer (BW-STB).

  • It maintains a FIFO buffer for the most recent frames to ensure low latency.
  • It uses a Sampling buffer to store representative blocks from the past, ensuring long-term speaker consistency.
  • They introduced speaker-balanced sampling, which prevents the buffer from being dominated by the most talkative person, ensuring the model doesn't "forget" infrequent speakers.

3. Training Tweaks

The authors improved Variable Chunk-size Training (VCT). Instead of just masking data, they reshaped minibatches to include various sequence lengths, making the model much more robust at the very start of a recording when little context is available.

Datasets

The models were trained and evaluated on a mix of simulated and real-world data:

  • Simulated: Mixtures of 1 to 6 speakers created from NIST SRE and Switchboard corpora.
  • Real-world:
    • CALLHOME: A standard benchmark for telephone conversations (2–7 speakers).
  • DIHARD II & III: Challenging datasets featuring diverse acoustic environments and up to 10 speakers.

Key Insights and Ideas

  • The "Aha" Moment in Latent Space: The authors used t-SNE to visualize frame-wise embeddings (see Figure 2). They discovered that even when a model is trained on only 4 speakers, the encoder successfully separates 5 or 6 speakers in the embedding space. The failure happens in the "attractor" stage—the model simply doesn't know how to "look for" more speakers than it was trained to see.
  • Local Truth, Global Picture: By forcing the model to look at short blocks, the "speaker counting" problem becomes trivial for the neural network. The complexity is shifted to the clustering stage, which is better suited for handling an unknown number of identities.
  • Efficiency: Despite the added clustering, the system remains fast. The real-time factor is well below 1.0 on a standard CPU, meaning it can process audio much faster than it is recorded.

![Fig.

  1. t-SNE visualization showing that embeddings separate even unseen numbers of speakers.](/figures/art_2a4dcbf55a9941ebbe85843d1480b1dc)

Key Results

  • Breaking the Speaker Limit: On simulated 6-speaker data, EEND-GLA achieved a Diarization Error Rate (DER) of 17.98%, compared to 33.28% for the standard EEND-EDA model.
  • Online Superiority: On the CALLHOME dataset, the proposed online system reached a DER of 14.29%, a massive improvement over the previous online EEND baseline of 19.51%.
  • Real-world Robustness: On DIHARD III (a very difficult set), EEND-GLA-Large achieved a DER of 19.49%, performing on par with the best conventional cascaded systems while being significantly simpler to implement.

Limitations and Future Work

  • Fixed Thresholding: The system currently switches between global and local attractors based on a fixed threshold ($N=4$). A more dynamic switching mechanism could improve performance in borderline cases.
  • Clustering Complexity: While the current clustering is efficient, very long recordings (hours long) might eventually hit the $O(n^3)$ bottleneck of the eigenvalue decomposition used for speaker counting.
  • Domain Adaptation: While the model performs excellently on telephone data, there is still a performance gap in high-noise, "no-collar" evaluation settings like DIHARD, suggesting room for better acoustic robustification.

Summary updated

BibTeX
@article{horiguchi2023online,
  author = {Shota Horiguchi and Shinji Watanabe and Paola Garcia and Yuki Takashima and Yohei Kawaguchi},
  title = {{Online Neural Diarization of Unlimited Numbers of Speakers Using Global and Local Attractors}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2023},
  doi = {10.1109/taslp.2022.3233237},
}
Figure