All models

torchaudio.models.ConvTasNet

Conv-TasNet separates speakers on the raw waveform: learned encoder, dilated 1-D conv masks, linear decoder.

Audio and speech · 250 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 (10 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
5M
Operations
250
Framework
PyTorch
Recurrent
No
Published
IEEE/ACM Transactions on Audio, Speech, and Language Processing 2019
Cited by
2,049 (as of 17 October 2026)
Authors
Yi Luo, Nima Mesgarani
License
BSD-3-Clause
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
m10576
Graph hash
4366a0484b1b4dbc95fc5e523c07337ca416a43fdccd47f4b1240987ce27d2a6
Skeleton hash
de760b5976fa58f28e974571c074d82d13f1f973b867bc63e5df55a177cf53ce
Architecture hash
2571e6a58af561b26c46fcebe13000d567858a05d68fa69437a330c924dcaf99
Diagram SHA-256
573a6e68068944fc537151d9caf099ed36da82711953ad357a7d737f16a28dec
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

Conv-TasNet is a fully-convolutional time-domain audio separation network, a deep learning framework for end-to-end speech separation that works on the raw waveform instead of a spectrogram. The paper's complaint about earlier methods is that formulating separation in the time-frequency representation decouples the phase and magnitude of the signal, is suboptimal for speech separation, and adds the long latency of calculating spectrograms.

The network has three processing stages: encoder, separation, and decoder. A linear encoder generates a representation of the speech waveform optimized for separating individual speakers, separation is achieved by applying a set of weighting functions (masks) to the encoder output, and a linear decoder inverts the modified representations back to waveforms. The masks come from a temporal convolutional network (TCN) of stacked 1-D dilated convolutional blocks, which lets the network model the long-term dependencies of the speech signal while keeping a small model size. Each block is a 1x1-conv followed by a depthwise convolution, with nonlinear activation and normalization between them, and two linear 1x1-conv paths serving as the residual path and the skip-connection path. The activation is the parametric rectified linear unit (PReLU), and the normalization depends on causality: global layer normalization (gLN) for the non-causal case, and a cumulative layer normalization (cLN) designed for the causal system.

The earlier TasNet used a deep LSTM separator, and Conv-TasNet replaces those deep LSTMs with stacked dilated 1-D convolutional blocks, motivated by the success of temporal convolutional network models, and swaps standard convolution for depthwise separable convolution to cut parameters further. On two-speaker mixtures the system surpasses several ideal time-frequency magnitude masks, judged by both objective distortion measures and subjective quality assessment by human listeners. Using a causal configuration leads to a significant drop in the performance, which is worth remembering because the SpeechBrain MaskNet member traced here is configured causal. The members traced here are two torchaudio builds of the full encoder, separator and decoder and one SpeechBrain MaskNet, the TCN separator on its own, which returns the masks for the C target sources rather than audio.

Key idea. Conv-TasNet replaces the deep LSTM separator of TasNet with stacked dilated 1-D convolutional blocks so that every stage of processing is convolutional. The result surpasses several ideal time-frequency magnitude masks in two-speaker separation while having a significantly smaller model size and a shorter minimum latency.

  • conv-tasnet
  • convtasnet
  • conv tasnet
  • tasnet
  • time-domain speech separation
  • speech separation
  • source separation
  • speaker separation
  • wsj0-2mix
  • temporal convolutional network
  • tcn
  • speechbrain
  • torchaudio
  • libri2mix
  • masknet
  • luo mesgarani

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

Cite the paper

@misc{luo2019convtasnetsurpassingidealtimefrequency,
      title={Conv-TasNet: Surpassing Ideal Time-Frequency Magnitude Masking for Speech Separation}, 
      author={Yi Luo and Nima Mesgarani},
      year={2019},
      eprint={1809.07454},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      doi={https://doi.org/10.1109/TASLP.2019.2915167},
      url={https://arxiv.org/abs/1809.07454}, 
}