Learned complex masks for multi-instrument source separation

Andreas Jansson, Rachel M. Bittner, Nicola Montecchio, Tillman WeydearXiv 2021

Abstract

Traditional music source separation systems often rely on magnitude-only masks, reusing the original mixture's phase for the separated components. This approach frequently results in audible "phase artifacts," particularly when instruments overlap in frequency. This paper introduces a method for music source separation that utilizes complex-valued masks within a U-Net architecture. By enabling the model to estimate both magnitude and phase adjustments, the system can effectively cancel interfering sounds. Experimental results show significant improvements in subjective audio quality and better handling of spectrally overlapping instruments like bass and percussion.

Introduction: The Phase-Copying Problem

In audio source separation—the process of "de-mixing" a song into individual tracks like vocals, bass, and drums—most state-of-the-art systems operate in the frequency domain using spectrograms. A common shortcut in these systems is to estimate a "mask" applied only to the magnitude of the sound, while the phase (the timing and alignment of the wave) is simply copied from the original mixture.

While this "phase-copying" works reasonably well for speech, it often fails in musical contexts. Because musical instruments frequently play in the same key and follow the same beat, their frequencies overlap significantly. Reusing the mixture's phase leads to artifacts: the separated bass might sound "tinny," or ghostly echoes of vocals may bleed into the drum track. This research aims to resolve these issues by training a neural network to predict a complex-valued mask capable of rotating and shifting phase to neutralize interference.

Methodology

The proposed system is built upon a U-Net architecture, a convolutional neural network known for its "hourglass" shape and skip connections that preserve fine-grained spatial details.

The U-Net architecture used for complex-valued source separation, showing the encoder-decoder structure and skip connections.

The researchers compared two primary masking strategies:

  1. Non-complex masking: The network takes the magnitude of the spectrogram as input and predicts a real-valued mask (0 to 1), reusing the original phase.
  2. Complex masking: The network treats the real and imaginary parts of the complex spectrogram as separate input channels. It predicts a complex mask that can rescale magnitude (using a tanh activation) and rotate the phase. Mathematically, this allows the model to "subtract" or cancel out the phase of interfering instruments.

Additionally, the team utilized a time-domain Signal-to-Distortion Ratio (SDR) loss function, which optimizes for the quality of the reconstructed waveform directly rather than just the visual appearance of the spectrogram.

Experimental Setup

  • Datasets: The model was trained on an internal set of approximately 2,000 professional multi-track recordings (vocals, guitar, bass, percussion, and "other"). Validation was performed using the MUSDB18 industry-standard benchmark.
  • Data Augmentation: To ensure robustness, the researchers applied track-level changes during training, including time-stretching, pitch-shifting, and various audio effects like reverb and phasers.

Key Insights and Results

Phase as a Cancellation Tool

A central finding of this work is that complex masks do more than just estimate phase; they use it as a tool for interference cancellation. By rotating the phase of the mask, the model can effectively neutralize components of the mixture belonging to other instruments.

Visual analysis of learned masks compared to reference sources, illustrating how the model applies magnitude and phase corrections across different instruments.

The Bass and Percussion Advantage

The benefits of complex masking are most pronounced in low-frequency ranges where bass and drums often occupy the same frequencies. Magnitude-only masks struggle to separate these overlapping zones, whereas complex masks can interleave phase corrections to achieve much cleaner separation.

Subjective and Quantitative Performance

While numerical improvements in SDR were present, the most striking results came from listening tests. Human evaluators preferred the complex-masking model with SDR loss 65% of the time for sound quality and 58% of the time for isolation. Analysis of the learned masks showed that the model makes significant phase corrections specifically at note "onsets," resulting in audio that sounds crisper and more defined.

Limitations and Future Work

Despite these improvements, the approach does not yet surpass the absolute state-of-the-art (SOTA) models in the SiSEC evaluation campaign. One limitation is that while inputs and outputs are complex-valued, the internal layers of the U-Net still use standard real-valued convolutions. Future research may explore truly complex-valued layers to see if deeper structural understanding of phase leads to even better separation. Furthermore, the "Other" category remains a challenge, as it is currently treated as a residual rather than a specifically modeled source.

Summary updated

BibTeX
@misc{jansson2021learned,
  author = {Andreas Jansson and Rachel M. Bittner and Nicola Montecchio and Tillman Weyde},
  title = {{Learned complex masks for multi-instrument source separation}},
  year = {2021},
  eprint = {2103.12864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.12864},
}
Figure