Attention-Based Encoder-Decoder End-to-End Neural Diarization With Embedding Enhancer

Zhengyang Chen, Bing Han, Shuai Wang, Yanmin Qian

TL;DR

This paper introduces AED-EEND, a streamlined attention-based encoder-decoder system for end-to-end speaker diarization. By incorporating a novel Embedding Enhancer module and an iterative decoding strategy, the system achieves new state-of-the-art (SOTA) performance on major benchmarks like CALLHOME, DIHARD II, and AMI, while effectively generalizing to recordings with an unknown number of speakers.

What Problem Does This Paper Address?

Speaker diarization—the task of determining "who spoke when"—is notoriously difficult in "cocktail party" scenarios involving overlapping speech and a variable number of participants.

Traditional systems are modular (VAD → Embedding → Clustering), which makes them complex and poor at handling overlapping speech. Recent End-to-End Neural Diarization (EEND) models solve the overlap problem but often struggle to generalize when the number of speakers in a test recording differs from what was seen during training. Furthermore, many EEND models rely on complex "attractor" modules that are difficult to train. The authors aim to simplify this architecture while making it more robust to unseen speaker counts and realistic data distributions.

Methods

The authors propose several key innovations to the EEND framework:

  1. AED-EEND Architecture: They replace the standard LSTM-based attractor decoders with a Transformer-based (and later Conformer-based) encoder-decoder. This allows the model to better capture long-range dependencies and local speech nuances.
  2. Embedding Enhancer (EE): This is a novel module that creates a feedback loop. While the decoder normally uses frame-level embeddings to create "speaker attractors," the EE module uses those attractors to refine the frame-level embeddings via cross-attention. This helps the model "clean up" its internal representations.
  3. Teacher-Forcing Training: To solve the "permutation problem" (where the model doesn't know which output head corresponds to which speaker), they use ground-truth labels during training to sample enrollment areas, leading to much faster convergence.
  4. Iterative Decoding: During inference, the model doesn't try to guess everyone at once. Instead, it predicts one speaker, masks them out, and then looks for the next "unpredicted" speaker. They introduced a "Local Spectral Clustering" (SC-Decode-Local) heuristic to make this process fast and accurate even for long recordings.

Datasets

The study utilizes a mix of simulated and real-world data:

  • Simulated Data: They compare "Simulated Mixtures" (SM), which have high overlap ratios (~30-34%), with "Simulated Conversion" (SC), which uses statistics from real data to create more realistic overlap ratios (~10-14%).
  • Real-world Benchmarks: Evaluation is performed on CALLHOME (telephone speech), AMI (meeting room speech), and DIHARD II (diverse, noisy environments).

Key Insights and Ideas

  • The Overlap Mismatch: A major "aha moment" was realizing that standard simulation datasets have significantly higher overlap than real-world speech. By training on the more realistic "SC" data, the model's performance on real benchmarks improved significantly.
  • Enhancer as a Generalizer: The Embedding Enhancer module proved critical for handling "unseen" speaker counts. It allows the model to generalize from a training set of 1–4 speakers to a test set of 5 or 6 speakers more effectively than previous methods.
  • Conformer Superiority: Replacing the Transformer encoder with a Conformer (which combines Transformers with Convolutional layers) provided a consistent boost, particularly in the AMI meeting dataset, likely due to better modeling of local acoustic patterns.

Key Results

The AED-EEND-EE system achieved new SOTA Diarization Error Rates (DER) across all major benchmarks (without using oracle VAD):

  • CALLHOME: 10.08% DER (Previous bests were typically >11%).
  • DIHARD II: 24.64% DER.
  • AMI: 13.00% DER.

Additionally, the model proved to be a highly competitive speech type detector, outperforming specialized toolkits like Pyannote in detecting overlapping speech regions (achieving an F1-score of 81.76% on AMI Eval).

Limitations and Future Work

  • Speaker Counting: While the system is excellent at diarization, its raw "speaker counting" accuracy is slightly lower than the EEND-EDA baseline. The authors suggest that future work could integrate the counting strengths of EEND-EDA into the AED-EEND framework.
  • Simulation Gap: Although the "SC" simulation method helped, there is still a performance gap between simulated and real data, suggesting that even more sophisticated data synthesis (or more diverse real-world training data) is needed.
  • Complexity: While simpler than some hybrid systems, the iterative decoding process adds computational overhead compared to single-pass models.

Summary updated

BibTeX
@article{chen2024attention,
  author = {Zhengyang Chen and Bing Han and Shuai Wang and Yanmin Qian},
  title = {{Attention-Based Encoder-Decoder End-to-End Neural Diarization With Embedding Enhancer}},
  journal = {IEEE/ACM Transactions on Audio, Speech, and Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=WNpYENhGTK},
}
Figure