Skip to main content
QUICK REVIEW

[Paper Review] Hybrid Transformers for Music Source Separation

Simon Rouard, Francisco Massa|arXiv (Cornell University)|Nov 15, 2022
Speech and Audio ProcessingComputer Science5 citations
TL;DR

This paper proposes Hybrid Transformer Demucs (HT Demucs), a cross-domain Transformer-based architecture that replaces innermost convolutional layers in Hybrid Demucs with self- and cross-attention mechanisms operating over time and spectral domains. By leveraging 800 additional training songs, sparse attention kernels, and per-source fine-tuning, it achieves a new state-of-the-art SDR of 9.20 dB on MUSDB18 HQ, outperforming prior methods by up to 0.45 dB.

ABSTRACT

A natural question arising in Music Source Separation (MSS) is whether long range contextual information is useful, or whether local acoustic features are sufficient. In other fields, attention based Transformers have shown their ability to integrate information over long sequences. In this work, we introduce Hybrid Transformer Demucs (HT Demucs), an hybrid temporal/spectral bi-U-Net based on Hybrid Demucs, where the innermost layers are replaced by a cross-domain Transformer Encoder, using self-attention within one domain, and cross-attention across domains. While it performs poorly when trained only on MUSDB, we show that it outperforms Hybrid Demucs (trained on the same data) by 0.45 dB of SDR when using 800 extra training songs. Using sparse attention kernels to extend its receptive field, and per source fine-tuning, we achieve state-of-the-art results on MUSDB with extra training data, with 9.20 dB of SDR.

Motivation & Objective

  • To investigate whether long-range contextual information from Transformers improves music source separation beyond local acoustic features.
  • To evaluate the effectiveness of hybrid temporal-spectral attention mechanisms in a bi-U-Net architecture for MSS.
  • To determine the data and architectural requirements for training effective Transformer-based models in low-data regimes typical of music source separation.
  • To explore the impact of sparse attention and fine-tuning on extending receptive field and boosting performance.

Proposed method

  • Replace the innermost convolutional layers of Hybrid Demucs with a cross-domain Transformer Encoder that applies self-attention within time and spectral domains and cross-attention across them.
  • Use a bi-U-Net architecture with shared encoder-decoder paths, integrating the Transformer Encoder in the bottleneck.
  • Apply sparse attention with Locally Sensitive Hashing to extend the receptive field to 12.2 seconds without OOM errors.
  • Train on a combined dataset of 87 MUSDB18 songs and 800 extra songs from an internal collection.
  • Use data augmentation techniques including remixing and repitching to improve robustness and generalization.
  • Apply per-source fine-tuning with gradient clipping and weight decay to further improve performance.

Experimental results

Research questions

  • RQ1Does incorporating long-range attention via Transformers improve music source separation performance compared to local convolutional models?
  • RQ2How much additional training data is required to effectively train a Transformer-based MSS model given the small size of MUSDB18?
  • RQ3Can sparse attention mechanisms enable effective modeling of longer audio contexts (e.g., 12.2 seconds) without memory overflow?
  • RQ4To what extent do data augmentation and per-source fine-tuning enhance performance in low-data settings?
  • RQ5How do architectural choices such as depth, dimension, and context length affect model performance and training stability?

Key findings

  • HT Demucs outperforms the original Hybrid Demucs by 0.45 dB in SDR when trained on the same 87 MUSDB18 songs, demonstrating the benefit of Transformer modeling.
  • With 800 extra training songs, HT Demucs achieves 8.80 dB SDR, a 0.46 dB improvement over the baseline.
  • Using sparse attention kernels to extend context to 12.2 seconds yields an additional 0.14 dB gain in SDR, reaching 8.94 dB.
  • Per-source fine-tuning improves SDR by 0.25 dB, culminating in a final SDR of 9.20 dB on the MUSDB18 HQ test set.
  • The remixing data augmentation technique has the largest impact, causing a 0.7 dB drop in SDR when disabled.
  • The model achieves a real-time factor of 2.04 on a single CPU core, indicating feasible inference speed despite increased complexity.

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.