All models

ECAPA-TDNN

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

Audio and speech · 270 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 (24 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
270
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
m826
Graph hash
436f0cf2aaf8527a1dec4db4c9c5be5d6618dfcbfff1c113677d723c50106c77
Skeleton hash
ae7d287555bbcc203ba9232e0ce9b7946176997e4d5ea496b32fb9d2fb8d5832
Architecture hash
ea75130e0e3303b5fb754ab5e345cd781a16becef2e9599de359bffe795aff8f
Diagram SHA-256
2f59297d1e8d36a03a79f44ee762ed681e148b107ca1e712a25dcc54dc919f34
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}, 
}