All models

speechbrain_ecapa_tdnn_xvector

Speaker-embedding TDNN with SE-Res2Net blocks and attentive statistics pooling.

Audio and speech · 273 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (39 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
20.8M
Operations
273
Framework
PyTorch
Recurrent
No
Published
Interspeech 2020
Cited by
1,554 (as of 17 October 2026)
Authors
Brecht Desplanques, Jenthe Thienpondt, Kris Demuynck
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10123
Graph hash
be30494e44fa27c414496c8dd7db9c1214cfc2b4ca21348927683d8e587a52f3
Skeleton hash
c209eee6807628da10db31e25a483d09050f08c9bb369c26f04f4d27ece8b421
Architecture hash
33a0595b48d662aabcf6461364847f1c6c1896c62c84c933bfbbf8dcc09c2582
Diagram SHA-256
1fa0e091d77da163d5c0910d3ae0feca34a63d791f2399d60041963a1b7ec1d2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

ECAPA-TDNN is a speaker verification network that upgrades the x-vector time delay neural network with ideas borrowed from face verification and computer vision. The starting point is the x-vector architecture, a Time Delay Neural Network (TDNN) that applies statistics pooling to project variable-length utterances into fixed-length speaker characterizing embeddings. The name spells out the three changes: Emphasized Channel Attention, Propagation and Aggregation.

First, the initial frame layers are restructured into 1-dimensional Res2Net modules with impactful skip connections, with Squeeze-and-Excitation blocks inside them to model channel interdependencies. The SE block expands the temporal context of the frame layer by rescaling the channels according to global properties of the recording. Second, for each frame the network concatenates the output feature maps of all the SE-Res2Blocks before pooling, which the paper calls Multi-layer Feature Aggregation. The residual connection in each SE-Res2Block is also defined as the sum of the outputs of all the previous blocks, a summation rather than a concatenation to restrain the model parameter count. Third, the statistics pooling gets channel-dependent frame attention, which enables the network to focus on different subsets of frames during each of the channel's statistics estimation.

The paper studies two setups with either 512 or 1024 channels in the convolutional frame layers. The bottleneck in the SE-Block and the attention module is 128 wide, the Res2Block scale is 8, and the final fully-connected layer has 192 nodes. Training uses AAM-softmax with a margin of 0.2 and softmax prescaling of 30. The proposed architecture significantly outperforms all baselines while using fewer model parameters. The larger system gives an average relative improvement of 18.7% in EER and 12.5% in MinDCF over the best scoring baseline for each test set. In the ablation, incorporating the SE-modules in the Res2Blocks results in relative improvements of 20.5% in EER and 11.9% in the MinDCF.

The three members traced here are the same SpeechBrain ECAPA_TDNN class, a combination of convolutional and residual blocks whose embeddings are extracted using attentive statistical pooling. That pretrained system is trained on Voxceleb 1+ Voxceleb2 training data with Additive Margin Softmax Loss. Its reported EER on the Voxceleb1-test set (Cleaned) is 0.80%.

Key idea. Three upgrades to the x-vector TDNN for speaker verification: 1-D squeeze-excitation Res2Net frame blocks, multi-layer feature aggregation, and channel-dependent attentive statistics pooling.

  • ECAPA-TDNN
  • ECAPA TDNN
  • ECAPA
  • speaker verification
  • speaker embedding
  • speaker recognition
  • x-vector
  • TDNN
  • SE-Res2Block
  • attentive statistics pooling
  • SpeechBrain
  • spkrec-ecapa-voxceleb
  • VoxCeleb

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{desplanques2020ecapatdnnemphasizedchannelattention,
      title={ECAPA-TDNN: Emphasized Channel Attention, Propagation and Aggregation in TDNN Based Speaker Verification}, 
      author={Brecht Desplanques and Jenthe Thienpondt and Kris Demuynck},
      year={2020},
      eprint={2005.07143},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      doi={https://doi.org/10.21437/Interspeech.2020-2650},
      url={https://arxiv.org/abs/2005.07143}, 
}