
torchaudio.models.ConvTasNet
Audio and speech250 ops5M params
Conv-TasNet separates speakers on the raw waveform: learned encoder, dilated 1-D conv masks, linear decoder.
Audio and speech · 250 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}