Papers
Topics
Authors
Recent
Search
2000 character limit reached

Blockwise EDA-EEND for Streaming Diarization

Updated 8 January 2026
  • The paper presents a novel streaming diarization architecture that integrates a causal Transformer encoder with blockwise recurrent LSTM attractor modules for online processing.
  • It processes audio in fixed-length blocks using localized left-context attention, ensuring linear-time computation and low latency in meeting and conversational settings.
  • Experimental results demonstrate competitive diarization error rates across 1-4 speakers, balancing latency and accuracy compared to offline systems.

Blockwise Encoder–Decoder–Attractor EEND (BW-EDA-EEND) is a neural architecture for streaming end-to-end speaker diarization that supports a variable number of speakers. BW-EDA-EEND processes input incrementally by combining a causal (left-context) Transformer encoder with blockwise recurrent LSTM attractor modules, allowing linear-time computation and low-latency diarization outputs. The system generalizes the original offline EDA-EEND framework by adapting both the embedding computation and attractor inference to operate on short, locally contextualized audio blocks, thereby enabling online diarization for realistic meeting and conversational settings (Han et al., 2020).

1. Encoder–Decoder–Attractor (EDA) Framework

BW-EDA-EEND builds on the EDA-EEND model, whose core architecture comprises:

  • Transformer Encoder: Maps an input feature sequence X=[x1,,xT]RT×FX=[x_1,\dots,x_T]\in\mathbb{R}^{T\times F} to frame embeddings E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}.
  • LSTM Encoder: Consumes EE and emits final state (h0,c0)(h_0, c_0).
  • LSTM Decoder: Recursively generates a sequence of attractors {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D, where each asa_s functions as a speaker-specific prototype.
  • Speaker Activity Scoring: Computes speaker activity Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}, where A=[a1,,aS]RS×DA=[a_1,\dots,a_S]\in\mathbb{R}^{S\times D} and σ\sigma denotes the elementwise sigmoid.
  • Attractor Existence Probabilities: For each attractor asa_s, a scalar E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}0 determines whether to stop decoding attractors based on a threshold E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}1.

Attractors are learned end-to-end and serve as fixed points representing speaker identities, so the dot product E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}2 directly reflects the likelihood of speaker E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}3 speaking at frame E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}4. This enables joint overlap detection, speaker counting, and diarization without external clustering.

The original EDA-EEND operates in batch mode, requiring access to all frames before producing outputs. BW-EDA-EEND restructures this paradigm for blockwise, streaming deployment.

2. Incremental Blockwise Transformer Encoding

The BW-EDA-EEND model segments the input into E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}5 consecutive, non-overlapping blocks of E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}6 frames each, E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}7 with E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}8. For block E=[e1,,eT]RT×DE=[e_1,\dots,e_T]\in\mathbb{R}^{T\times D}9 and Transformer layer EE0, hidden states EE1 are computed by:

  • Query Construction: EE2, with EE3.
  • Key/Value Construction: Keys and values are the concatenation of the current and previous EE4 blocks’ hidden states at the previous layer,

EE5

  • Attention Update: EE6.

This left-contextualized attention restricts each block’s attention scope to its recent EE7 predecessors and itself, controlling both latency and memory. The full context is approximated in an online fashion analogous to the memory mechanism in Transformer-XL.

The resulting computation for each block is EE8, and across the sequence is EE9 (for (h0,c0)(h_0, c_0)0 blocks), guaranteeing linear complexity in input length (h0,c0)(h_0, c_0)1 for fixed (h0,c0)(h_0, c_0)2 and (h0,c0)(h_0, c_0)3.

3. Attractor Computation: Unlimited-Latency and Limited-Latency Modes

BW-EDA-EEND provides two core modes, each representing a different latency-accuracy tradeoff:

  • Unlimited-Latency (UL): Embeddings are computed blockwise, but all blocks are concatenated at the end. Attractors are decoded over the entire utterance through a single LSTMEncoder and LSTMDecoder, yielding diarization output after all audio is consumed.
  • Limited-Latency (LL): At each block (h0,c0)(h_0, c_0)4, attractors (h0,c0)(h_0, c_0)5 are decoded using an LSTM over only the most recent (h0,c0)(h_0, c_0)6 blocks’ embeddings (i.e., (h0,c0)(h_0, c_0)7). The decoder state is recurrent across blocks, ensuring speaker labels are non-decreasing in number—no speaker “disappears” once discovered. Diarization outputs for segment (h0,c0)(h_0, c_0)8 are computed blockwise, with maximum latency of one block.

Typical settings for experiments use (h0,c0)(h_0, c_0)9 s blocks (100 frames at 100 ms sampling), and either {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D0 (neighbor block context) or {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D1 (full left context).

4. Complexity Analysis

Denoting {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D2 as the total number of frames, {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D3 the block size, {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D4, and {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D5 the context window, the main computational properties are:

  • Time Complexity: Per-block attention costs {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D6, so total runtime is {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D7, i.e., linear in {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D8 for fixed {a1,,aS+1}RD\{a_1,\dots,a_{S+1}\}\subset \mathbb{R}^D9 and asa_s0.
  • Space Complexity: Requires asa_s1 storage for caching hidden states from the previous asa_s2 blocks, in addition to model parameters.

The blockwise approach enables practical streaming on long audio without quadratically growing compute or memory as in full self-attention.

5. Objective Functions and Learning

Diarization is formulated as binary prediction per frame and speaker:

  • Activity Prediction:

asa_s3

  • Diarization Loss:

asa_s4

  • Attractor Existence Loss:

For asa_s5:

asa_s6

  • Total Loss:

asa_s7, typically with asa_s8.

During training, the stop attractor at asa_s9 is targeted for probability 0, preventing overcounting. Losses are summed over active speakers and frames.

6. Experimental Protocols and Results

The experimental evaluation covers simulated and real data:

  • Datasets: Simulated 1–4 speaker mixtures (from Switchboard, SRE, MUSAN noise, RIRs) and CALLHOME English (2–6 speaker calls, with 250 adaptation and test samples).
  • Features: 23-dimensional log-Mel with Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}07 frame context, subsampled to 100 ms (yielding 345-dimensional input per frame).
  • Model: 4-layer Transformer (256 units, 4 heads), LSTM encoder/decoder with Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}1.
  • Training schedule: Pretrain on 2-speaker simulated, finetune on 1–4 speaker simulated, adapt on CALLHOME adaptation.

Diarization error rates (DER) reflect the trade-offs of streaming approaches:

Model 1 spk 2 spks 3 spks 4 spks
Offline x-vector 37.4% 7.7% 11.5% 22.4%
Offline EDA-EEND 0.27% 4.18% 9.66% 14.2%
BW-EDA-EEND-UL (Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}2) 0.28% 4.22% 11.2% 21.0%
BW-EDA-EEND-UL (Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}3) 0.30% 4.42% 13.4% 22.7%
BW-EDA-EEND-LL (blockwise, Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}4) 1.03% 6.10% 12.6% 19.2%

On CALLHOME 2-speaker test, DERs are: offline x-vector (15.45%), offline EDA-EEND (9.02%), BW-EDA-EEND-UL (Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}5), and BW-EDA-EEND-LL (Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}6 with cross-block shuffling).

These results show small DER degradations (≤2%) relative to offline EDA-EEND for up to 2 speakers in unlimited-latency mode and slightly larger gaps for more than 2 speakers. In all cases, BW-EDA-EEND outperforms classical clustering for up to 4 speakers with sufficient context.

7. Practical Implementation and Limitations

Efficient implementation in blockwise streaming can be summarized by the following outlined steps (LL mode) at each block:

Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}8

Heuristics for attractor-to-speaker assignment across blocks (cosine reordering, averaging, speaker-order shuffling) are critical to prevent catastrophic error rate increases.

Trade-offs include the accuracy-latency relationship (UL mode is more accurate but higher latency; LL mode offers near-realtime output at the expense of DER increases by 2–3%), and the complexity-context relationship (increased Y^=σ(EAT)(0,1)T×S\hat{Y}=\sigma(EA^{T})\in(0,1)^{T\times S}7 yields better accuracy but higher per-block complexity and memory).

Open challenges include long-session attractor consistency (“speaker ID drift”), improved realistic simulation (e.g., moving to LibriCSS-style mixtures), extension to far-field data, reducing latency below the block level, and developing end-to-end learned heuristics for attractor management and attention parameterization.

BW-EDA-EEND establishes a practical framework for streaming neural diarization with competitive accuracy and algorithmic scalability on variable numbers of speakers (Han et al., 2020).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Blockwise EDA (BW-EDA-EEND).