Skip to main content
QUICK REVIEW

[Paper Review] Attention is All You Need in Speech Separation

Cem Subakan, Mirco Ravanelli|arXiv (Cornell University)|Oct 25, 2020
Speech and Audio ProcessingComputer Science32 references10 citations
TL;DR

This paper proposes SepFormer, an RNN-free Transformer-based architecture for monaural speech separation that replaces recurrent networks with a multi-scale self-attention mechanism. By leveraging dual-path processing and stride-based downsampling, it achieves state-of-the-art performance—22.3 dB SI-SNRi on WSJ0-2mix and 19.5 dB on WSJ0-3mix—while enabling full parallelization, significantly reducing training time and memory usage compared to RNN-based models.

ABSTRACT

Recurrent Neural Networks (RNNs) have long been the dominant architecture in sequence-to-sequence learning. RNNs, however, are inherently sequential models that do not allow parallelization of their computations. Transformers are emerging as a natural alternative to standard RNNs, replacing recurrent computations with a multi-head attention mechanism. In this paper, we propose the SepFormer, a novel RNN-free Transformer-based neural network for speech separation. The SepFormer learns short and long-term dependencies with a multi-scale approach that employs transformers. The proposed model achieves state-of-the-art (SOTA) performance on the standard WSJ0-2/3mix datasets. It reaches an SI-SNRi of 22.3 dB on WSJ0-2mix and an SI-SNRi of 19.5 dB on WSJ0-3mix. The SepFormer inherits the parallelization advantages of Transformers and achieves a competitive performance even when downsampling the encoded representation by a factor of 8. It is thus significantly faster and it is less memory-demanding than the latest speech separation systems with comparable performance.

Motivation & Objective

  • To develop a speech separation model that eliminates recurrent neural networks (RNNs) to enable full parallelization of computations.
  • To achieve state-of-the-art performance on standard WSJ0-2mix and WSJ0-3mix datasets without relying on RNNs.
  • To improve computational efficiency by reducing memory usage and inference time while maintaining high separation quality.
  • To explore the effectiveness of multi-scale self-attention in modeling both short- and long-term dependencies in speech signals.
  • To demonstrate that pure Transformer-based architectures can outperform RNN-based models in monaural source separation.

Proposed method

  • The model uses a learned-domain masking framework with a fully convolutional encoder to extract time-frequency representations from the input mixture.
  • The masking network is built from a dual-path Transformer architecture, where local and global dependencies are modeled using separate Intra- and Inter-Transformer blocks.
  • The Intra-Transformer processes local chunks in parallel, while the Inter-Transformer attends across chunks to model long-range context, both using multi-head self-attention.
  • The model employs a stride of 8 in the encoder, reducing sequence length and enabling faster inference without significant performance loss.
  • Dynamic mixing is applied to improve generalization, and the decoder reconstructs time-domain sources using overlap-add with learned masks.
  • The architecture is trained end-to-end using SI-SNR loss, with automatic mixed precision and batch size of 1 for fair comparison.

Experimental results

Research questions

  • RQ1Can a pure Transformer-based architecture achieve state-of-the-art performance in monaural speech separation without using RNNs?
  • RQ2How does multi-scale self-attention in a dual-path framework compare to RNNs in modeling long-term dependencies in speech separation?
  • RQ3To what extent does downsampling the encoded representation by a factor of 8 affect performance and efficiency?
  • RQ4Can the parallelization capabilities of Transformers significantly reduce training and inference time compared to RNN-based models?
  • RQ5Does dynamic mixing improve generalization in the context of speech separation with self-attention mechanisms?

Key findings

  • SepFormer achieves a state-of-the-art SI-SNRi of 22.3 dB on the WSJ0-2mix dataset, outperforming previous RNN-based models.
  • On the WSJ0-3mix dataset, the model reaches 19.5 dB SI-SNRi and 19.7 dB SDRi, setting a new SOTA benchmark.
  • The model trains faster than DPRNN and DPTNet, reaching 17 dB SI-SNRi in under 24 hours, compared to two days for DPRNN.
  • Inference is significantly faster and more memory-efficient than DPRNN, DPTNet, and Wavesplit, even with 26M parameters.
  • The model maintains competitive performance with a stride of 8 in the encoder, reducing sequence length and accelerating computation.
  • Dynamic mixing improves performance, and the model shows minimal degradation with increased downsampling, unlike RNN-based counterparts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.