On Loss Functions and Evaluation Metrics for Music Source Separation

Enric Gusó, Jordi Pons, Santiago Pascual, Joan Serrà

Abstract

Music source separation relies heavily on objective functions for training and metrics for evaluation. This study benchmarks a wide variety of loss functions—ranging from time-domain to adversarial approaches—and compares their performance against human perception. Results indicate that spectrogram-based losses with logarithmic compression or scale-invariance, such as $L2_{freq}$ and $SISDR_{freq}$, align most closely with subjective quality ratings, challenging the industry's reliance on standard Signal-to-Distortion Ratio (SDR).

Introduction

Isolating individual instruments from a mixed audio track is a fundamental challenge in audio engineering. While numerous deep learning models have been developed for this task, the choice of loss function is often arbitrary or based on mathematical convenience rather than perceptual quality. Furthermore, the standard evaluation metric, Signal-to-Distortion Ratio (SDR), is frequently criticized for its lack of correlation with how humans actually perceive audio quality. This research bridges the gap between mathematical optimization and human judgment by systematically evaluating different training objectives and their impact on separation quality.

Methodology

The researchers utilized a modified version of the OpenUnmix model, termed jOpenUnmix, to predict time-frequency masks for vocals, drums, bass, and other components. The experimental framework involved training the model using a diverse set of loss functions categorized into four main groups: time-domain, spectrogram-based, adversarial, and deep feature losses.

Taxonomy of audio source separation loss functions evaluated in the study.

The models were trained on the MUSDB18 dataset, with additional data from the Million Song Dataset, iKala, and FreeSound used for adversarial training. Beyond objective metrics, a subjective evaluation was conducted with 15 participants who provided Mean Opinion Scores (MOS) for the separated audio.

Key Insights and Results

The study revealed several critical findings regarding the effectiveness of different loss functions and the reliability of evaluation metrics.

The Power of Logarithmic Compression

Loss functions that incorporate logarithmic compression (e.g., $LOGL1_{freq}$) or scale-invariance ($SISDR_{freq}$) consistently outperformed standard time-domain $L1/L2$ losses. Log-scaling allows the model to better account for low-energy components and phase discrepancies that are perceptually significant despite being numerically small in a linear scale.

Perceptual Correlation

A significant finding was the discrepancy between standard objective metrics and human preference. While $SISDR_{freq}$ achieved the highest mean SDR (5.61 dB), human listeners preferred $L2_{freq}$ (MOS of 59.09) and $LOGL1_{freq}$ (MOS of 58.96). The correlation analysis showed that spectrogram-based metrics like $L1_{freq}$ and $SISDR_{freq}$ are much more reliable proxies for human judgment than the traditional SDR.

Absolute correlation of various objective metrics with human Mean Opinion Scores (MOS).

Limitations of Mask-based Training

Directly optimizing for masks ($L1_{mask}$) proved ineffective. The researchers attribute this to the instability of mask definitions in silent or low-energy regions of the audio mixture, which complicates the training process compared to optimizing the reconstructed signal directly.

Conclusion

This benchmark demonstrates that spectrogram-based losses are generally superior for training mask-predicting source separation models. Specifically, $L2_{freq}$ and $LOGL1_{freq}$ provide the best balance of objective performance and subjective quality. Future research should investigate whether these findings extend to end-to-end waveform models and explore hybrid loss functions that combine adversarial training with deep feature analysis.

Summary updated

Abstract

We investigate which loss functions provide better separations via benchmarking an extensive set of those for music source separation. To that end, we first survey the most representative audio source separation losses we identified, to later consistently benchmark them in a controlled experimental setup. We also explore using such losses as evaluation metrics, via cross-correlating them with the results of a subjective test. Based on the observation that the standard signal-to-distortion ratio metric can be misleading in some scenarios, we study alternative evaluation metrics based on the considered losses.
BibTeX
@inproceedings{guso2022loss,
  author = {Enric Gusó and Jordi Pons and Santiago Pascual and Joan Serrà},
  title = {{On Loss Functions and Evaluation Metrics for Music Source Separation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=TDosrBYCd9},
}
Figure