EEND-DEMUX: End-to-End Diarization
- The paper demonstrates a novel end-to-end diarization approach that demultiplexes latent speaker embeddings to achieve up to 24.5% DER reduction in controlled settings.
- EEND-DEMUX systematically integrates a MixtureEncoder, Demultiplexer, AttractorDecoder, and Activity Predictor to perform direct multi-speaker activity prediction without additional VAD or clustering modules.
- Extensive evaluation on Libri2Mix and Libri3Mix benchmarks confirms that the model’s innovative use of multi-head cross-attention and auxiliary losses yields robust performance across fixed and flexible speaker scenarios.
EEND-DEMUX is an end-to-end neural speaker diarization model designed to expose speaker-specific embedding streams directly from audio mixtures, enabling direct multi-speaker activity prediction without any external clustering, voice activity detection (VAD), or auxiliary embedding extractors in inference. The key innovation involves demultiplexing latent speaker information and using a multi-head cross-attention mechanism to associate frame-level latent representations with inferred speaker identities. EEND-DEMUX achieves significant diarization error rate (DER) reductions over previous end-to-end approaches, demonstrating efficacy in both fixed and flexible speaker-count settings (Mun et al., 2023).
1. Model Architecture
EEND-DEMUX systematically processes an input log-Mel feature sequence through four principal modules:
- MixtureEncoder: Receives input and produces mixture embeddings via four Transformer encoder blocks (four heads, ).
- Demultiplexer: Transforms via parallel 2-layer 1D-CNN branches (kernel size 5, Conv BatchNorm ReLU per layer), producing , yielding a tensor .
- AttractorDecoder: Computes prototype embeddings by temporal average pooling, , refines speaker separation using a multi-head self-attention (MHSA) block, and finally, via multi-head cross-attention (MHCA) between prototypes and the original mixture (0 prototypes, 1), obtains speaker attractors 2.
- Activity Predictor: For each frame 3 and speaker 4, produces posteriors 5. A speaker-existence probability 6 is also predicted; inference discards speakers with 7.
The model's data flow can be summarized as: 8 MixtureEncoder 9 0 Demultiplexer 1 2 3 AttractorDecoder (4, prototypes) 5 6 7 dot-product + sigmoid 8 framewise speaker activity 9.
2. Demultiplexed Speaker Embeddings
EEND-DEMUX introduces the demultiplexed embedding paradigm, learning to separate, or "demultiplex," speaker-specific factors directly from mixture embeddings. Each of the 0 parallel CNN branches serves as a routing operator for a candidate speaker, yielding a distinct channel 1. Unlike previous methods dependent on external speaker clustering or heuristics, EEND-DEMUX learns this separation implicitly.
The formal demultiplexing operation for each speaker 2 is
3
where layer weights and statistics are not shared across speaker channels. Stacking over 4 yields the global demultiplexed embedding tensor.
This design allows the latent space to explicitly disentangle speaker identity at each frame, facilitating direct per-speaker activity estimation.
3. Multi-Head Cross-Attention Mechanism
The attractor formation subnetwork crucially employs both multi-head self-attention (MHSA) and multi-head cross-attention (MHCA) for robust separation of speaker identities. After MHSA refines the 5 prototype embeddings in 6, MHCA uses these as queries (7), while the original mixture embeddings act as keys (8) and values (9): 0 Cross-attention operates as
1
aggregating over multiple heads then projecting to 2.
This operation bridges the demultiplexed and original mixture spaces, focusing each attractor on the relevant portion of the mixture and sharpening speaker/activity alignment.
4. Loss Functions and Latent Constraints
EEND-DEMUX combines conventional permutation-invariant diarization losses with three auxiliary constraints designed to stabilize and refine the demultiplexed embedding space:
- Diarization Loss: PIT-based binary cross-entropy across all permutations of active speaker heads 3:
4
- Existence Loss: Binary cross-entropy between true speaker presence 5 and existence predictions 6 for all 7.
- Matching (Distillation) Loss: 8 distance between each 9 and an "oracle" single-speaker embedding from a frozen SpeakerEncoder, aligned under PIT.
- Orthogonality Loss: Promotes intra-speaker cohesion and penalizes intra-frame inter-speaker similarity based on cosine similarity metrics, enhancing separability in embedding space.
- Sparsity Loss: 0 penalty to encourage sparse activations in each demultiplexed vector.
Loss weights are empirically tuned (1, 2-2, 3, 4-3, 5-5).
5. Training Regime, Inference, and Evaluation
Training uses WSJ/WHAM!-derived Libri2Mix (two speakers) and Libri3Mix (three speakers) with batch-wise PIT for label permutation. Optimization utilizes Adam with Noam scheduling, an effective batch size of 128, a peak learning rate of 6, and 30 epochs of warmup.
Inference does not require any VAD, clustering, or extra embedding extraction:
- The demultiplexer and attractor modules operate as in training.
- A speaker head is considered active if 7.
- 8 directly assign “who-when” diarization tracks.
Evaluation employs Diarization Error Rate (DER) as the principal metric: 9 with collar tolerance 0 s to ensure strict alignment.
| Experiment | Baseline DER | EEND-DEMUX DER | Relative Reduction |
|---|---|---|---|
| 2 speakers (Libri2Mix) | 6.13% | 3.79% | -24.5% |
| 3 speakers (Libri3Mix) | 6.50% | 4.91% | -18.2% |
| Flex scenario (min mode) | 4.48% | 4.39% | Best so far |
Further, ablation confirms that the three demultiplexing losses offer complementary improvements. USED[+spk] is outperformed in both min and max flexible scenarios.
6. Analysis, Advantages, and Limitations
EEND-DEMUX offers several empirical and functional advantages:
- End-to-end inference is free of external clustering, VAD, or embedding extractors, reducing potential system fragility and cascading errors.
- Explicit latent disentanglement via the demultiplexed speaker representations results in tighter, more robust speaker separation, as supported by consistent DER reductions across speaker number conditions.
- The MHCA attractor mechanism further refines alignment between mixture representations and per-speaker activity.
Limitations include the requirement to fix a maximum number of speaker heads 0 in advance, with fully unbounded diarization still unaddressed. Integration into joint ASR-diarization or multi-speaker source separation pipelines, and evaluation on real conversations or low-resource scenarios, represent open research directions.
7. Outlook and Research Directions
EEND-DEMUX's success demonstrates the feasibility of direct end-to-end diarization with latent demultiplexing and cross-attention mechanisms. Future work may focus on:
- Removing the fixed 1-speaker assumption.
- Coupling with multi-speaker ASR or audio separation for unified modeling.
- Extending methodology and evaluation to conversational, telephony, and other real-world datasets, especially those with variable/unknown speaker counts or limited data.
The model’s paradigm of learnable demultiplexed embeddings provides a template for further developments in end-to-end multi-source sequence modeling (Mun et al., 2023).