Hybrid Spectrogram and Waveform Source Separation

Alexandre DéfossezarXiv 2021

Abstract

Source separation models either work on the spectrogram or waveform domain. In this work, we show how to perform end-to-end hybrid source separation, letting the model decide which domain is best suited for each source, and even combining both. The proposed hybrid version of the Demucs architecture won the Music Demixing Challenge 2021 organized by Sony. This architecture also comes with additional improvements, such as compressed residual branches, local attention or singular value regularization. Overall, a 1.4 dB improvement of the Signal-To-Distortion (SDR) was observed across all sources as measured on the MusDB HQ dataset, an improvement confirmed by human subjective evaluation, with an overall quality rated at 2.83 out of 5 (2.36 for the non hybrid Demucs), and absence of contamination at 3.04 (against 2.37 for the non hybrid Demucs and 2.44 for the second ranking model submitted at the competition).

Introduction

Music source separation—the "cocktail party problem" for songs—aims to isolate individual tracks (drums, bass, vocals, and "other") from a mixed recording. Historically, research has been divided into two camps: spectrogram-based models, which excel at identifying pitch-based patterns but often struggle with phase consistency, and waveform-based models, which offer high temporal precision but can produce audible artifacts in melodic sources.

While these domains are theoretically interchangeable, the practical constraints of training data mean that the "inductive bias" (the structural assumptions built into the model) matters immensely. This paper introduces Hybrid Demucs, a model that avoids forcing a choice between domains, allowing the network to leverage the best representation for each specific instrument.

The Hybrid Demucs Architecture

The core of the innovation is a dual-branch U-Net structure that processes audio in both the temporal and spectral domains simultaneously.

The Hybrid Demucs architecture featuring parallel temporal and spectral branches.

Key components of the architecture include:

  • Parallel Branches: The model features a temporal branch for raw waveforms and a spectral branch for STFT spectrograms.
  • Shared Latent Space: To ensure communication between domains, the outputs of both encoders are aligned and summed before entering a shared innermost layer.
  • Compressed Residual Branches: The standard Demucs layers are enhanced with residual branches containing dilated convolutions. For the deepest layers, the authors integrated BiLSTMs and a novel Local Attention mechanism. Unlike global attention, this version uses a penalty term to focus on nearby time steps, which is more computationally efficient and better suited for audio dependencies.
  • Stabilization Techniques: To ensure training stability in such a deep network, the authors employed Singular Value Regularization (SVD) to bound weight eigenvalues and Group Normalization to prevent gradient explosions.

Datasets and Augmentation

The model was benchmarked on MusDB HQ, the gold standard for source separation, and a hidden test set from the MDX 2021 Challenge. To improve generalization, the authors developed "Realistic Remixes." By using librosa for beat-matching and pitch-shifting, they created artificial mixes that were musically coherent, preventing the model from over-relying on specific melodic structures.

Key Results and Insights

Hybrid Demucs achieved state-of-the-art performance, ranking 1st in the MDX 2021 Challenge (Track A). Quantitatively, it delivered a 1.4 dB SDR improvement over the original non-hybrid Demucs on MusDB HQ.

Human subjective evaluation confirmed these gains. In Mean Opinion Score (MOS) tests, humans rated the hybrid model's quality at 2.83/5 (up from 2.36). The model was particularly praised for its "absence of contamination" (bleeding between tracks), scoring 3.04/5, significantly higher than its closest competitors.

The results confirm that different instruments "prefer" different domains: Hybrid Demucs is exceptionally strong on drums and bass (waveform strengths) while improving significantly on vocals (spectrogram strengths).

Conclusion and Future Work

While Hybrid Demucs represents a significant leap in quality, it doubles the encoder/decoder workload, increasing computational complexity. Interestingly, human listeners noted a slight regression in bass quality compared to older versions despite higher objective scores, suggesting that SDR metrics do not perfectly capture human perception. Future work will explore more sophisticated model blending and deeper attention mechanisms to further isolate the "Other" category, which remains the most challenging source to separate.

Summary updated

BibTeX
@misc{defossez2021hybrid,
  author = {Alexandre Défossez},
  title = {{Hybrid Spectrogram and Waveform Source Separation}},
  year = {2021},
  eprint = {2111.03600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.03600},
}
Figure