arXiv is now an independent nonprofit! Learn more
License: CC BY-SA 4.0
arXiv:2510.15409v1 [eess.AS] 17 Oct 2025

Towards Blind Data Cleaning: A Case Study in Music Source Separation

Azalea Gui∗1,2   Woosung Choi2   Junghyun Koo2   Kazuki Shimada2 Takashi Shibuya2   Joan Serrà2   Wei-Hsiang Liao2   Yuki Mitsufuji2,3 Thanks: $ˆ*$ Work done during an internship at Sony AI. [azalea@hydev.org]
Abstract

The performance of deep learning models for music source separation heavily depends on training data quality. However, datasets are often corrupted by difficult-to-detect artifacts such as audio bleeding and label noise. Since the type and extent of contamination are typically unknown, cleaning methods targeting specific corruptions are often impractical. This paper proposes and evaluates two distinct, noise-agnostic data cleaning methods to address this challenge. The first approach uses data attribution via unlearning to identify and filter out training samples that contribute the least to producing clean outputs. The second leverages the Fréchet Audio Distance to measure and remove samples that are perceptually dissimilar to a small and trusted clean reference set. On a dataset contaminated with a simulated distribution of real-world noise, our unlearning-based methods produced a cleaned dataset and a corresponding model that outperforms both the original contaminated data and the small clean reference set used for cleaning. This result closes approximately 66.7% of the performance gap between the contaminated baseline and a model trained on the same dataset without any contamination. Unlike methods tailored for specific artifacts, our noise-agnostic approaches offer a more generic and broadly applicable solution for curating high-quality training data.

Index Terms: 
Music Source Separation, Data Cleaning, Data Attribution, Unlearning, Audio Signal Processing
address: 1 University of Toronto   2 Sony AI   3 Sony Group Corporation

1 Introduction

While the quantity of training data is widely recognized as a key driver of performance, data quality is often overlooked. In practice, the presence of noise negatively affects a model’s performance and generalization [1]. This issue is evident in music source separation, where label noise (incorrect or ambiguous instrument labels) and audio bleeding (faint residual sounds from other instruments) are common in raw recordings. The recent Sound Demixing Challenge 2023 - Music Demixing Track (MDX23) highlighted this vulnerability, showing that bleeding and label noise can lead to a significant degradation in model performance [2]. Participants in MDX23 employed various approaches to mitigate the impact of these artifacts, such as loss truncation [3, 4, 5], using noise-robust loss [6], and filtering data through inference SDR scores [6]. This collective experience highlights an important lesson: model performance is often constrained by data quality, regardless of architectural advancements.

Crucially, unlike in a curated challenge dataset, the exact type and extent of contamination in a large real-world dataset are often unknown (i.e., blind), making targeted cleaning solutions impractical. While certain issues (e.g., label noise) can be addressed by training classification models to filter suspicious samples [7], other artifacts (e.g., bleeding) are far more insidious. They are difficult to detect automatically, and challenging to quantify and remove without time-consuming manual labor. Thus, such artifacts pose a significant bottleneck to creating large-scale clean datasets.

We formulate this challenge as blind data cleaning, where we aim to clean potentially noisy training datasets without prior knowledge of the underlying corruption. In this paper, we conduct a case study for blind data cleaning in music source separation with noisy datasets. We define the task as follows: given a noisy dataset with NN samples, our goal is to clean it without any prior knowledge about the type or extent of corruption, assuming access to only limited information, such as a small amount MM of clean data (i.e., MNM\ll N). A cleaning method is evaluated by training a conventional music source separation model (without any noise-robust learning methods [3, 5, 6, 8]) on the cleaned dataset and measuring the resulting model’s performance.

To advance towards blind data cleaning, we propose two noise-agnostic approaches: a data-attribution-based method and a distributional-metric-based method. The former utilizes data attribution via unlearning [9, 10] to identify training samples that contribute the least to producing clean outputs. The underlying philosophy is that noisy or problematic training samples are expected to have smaller contributions to learning. Following recent unlearning-based data attribution methods that adopt the mirrored influence hypothesis [9, 10], we invert the setup: instead of unlearning training samples to quantify their influence, we unlearn clean samples to estimate the influence of each training sample. The second approach leverages a distributional metric (e.g., the Fréchet Audio Distance [11, 12]) to measure the similarity between the distribution of embeddings of training samples and that of a clean reference set. One advantage of such metrics is that they operate on distributions rather than individual samples, allowing us to identify samples with out-of-distribution embeddings, even when they have different lengths. By design, the proposed methods are not tailored to a specific artifact or task, offering a potentially robust solution for curating high-quality data across diverse domains. Moreover, they can be applied in conjunction with existing methods.

2 Methods

2.1 Data Cleaning via Unlearning-based Data Attribution

We propose a data cleaning method based on data attribution, motivated by the hypothesis that noisy samples contribute less to the trained model. Inspired by a recent unlearning-based data attribution method [10, 13], we use unlearning to attribute the influence of each training sample. To make influence estimation efficient, we adopt the mirrored influence hypothesis [9, 10], which states that train-to-test influence is highly correlated with test-to-train influence. Accordingly, instead of unlearning NN training samples, we unlearn a small set of MM trusted clean samples and measure the resulting impact on each training sample’s loss. This approach is computationally efficient since MNM\ll N. A low impact suggests that the training sample does not align well with the characteristics of clean data, making it a candidate for removal.

As shown in Figure 1, our unlearning-based data cleaning approach proceeds as follows. First, we train a baseline model on the raw dataset. Next, we unlearn a small set of trusted clean evaluation samples as if they were part of the training data, and compute the average attribution of each training sample with respect to these clean samples. Training samples with the lowest attribution scores are considered for removal, and a specified ratio of them is filtered out. Filtering can be done in either a unified or per-target manner. Finally, the model is retrained on the remaining samples.

Refer to caption
Figure 1: Overview of the unlearning-based data cleaning method.

Attribution by Unlearning — Following [10], we update the model parameters to maximize the loss on unlearned samples in order to forget them. A simple mathematical form can be written as

θθ+α(x,θ),\theta^{\prime}\leftarrow\theta+\alpha\nabla\mathcal{L}(\vec{x},\theta),

where θ\theta represents the model weights before an unlearning step, θ\theta^{\prime} represents the updated model weights, α\alpha is the learning rate, and (x,θ)\nabla\mathcal{L}(\vec{x},\theta) is the gradient of the loss function with respect to the current weights and the unlearned sample xx.

However, this naive implementation is prone to catastrophic forgetting, where the model not only forgets the characteristics of a single data point, but also loses generalization ability on the rest of the dataset [14, 15]. To mitigate this, we adopt the regularization strategy of elastic weight consolidation (EWC), which preserves pretraining knowledge through the Fisher Information Matrix (FIM) [15, 10]. Similar to [10], the final update rule can be written as

θθ+αN𝐅1(x,θ),\theta^{\prime}\leftarrow\theta+\frac{\alpha}{N}\mathbf{F}^{-1}\nabla\mathcal{L}(\vec{x},\theta),

where 𝐅\mathbf{F} corresponds to the pre-calculated FIM, and NN is the number of original training samples.

The FIM quantifies the importance of each model parameter to the inference task. Parameters with high 𝐅\mathbf{F} values are crucial, and modifying them would degrade model performance. Thus, EWC reduces changes to these crucial parameters during unlearning to avoid catastrophic forgetting [10, 15]. The FIM is computed with a diagonal approximation, which can be written as

𝐅ii=1NxD((x,θ)θi)2,\mathbf{F}_{ii}=\frac{1}{N}\sum_{x\in D}\left(\frac{\partial\mathcal{L}(\vec{x},\theta)}{\partial\theta_{i}}\right)^{2},

where 𝐅ii\mathbf{F}_{ii} is the ii-th element on the diagonal of the FIM, DD represents the training dataset, N=|D|N=|D| is its total number of samples, and θi\frac{\partial\mathcal{L}}{\partial\theta_{i}} is the gradient of the loss with respect to a single model parameter θi\theta_{i}.

To compute data attribution using this formulation, we first compute the reference training loss for each training song xix_{i} (i=1,,Ni=1,\dots,N) on the baseline model θ\theta, which produces NN baseline losses, each denoted as i\mathcal{L}_{i}. Then, we unlearn a set of MM clean samples yjy_{j} (j=1,,Mj=1,\dots,M), forming MM unlearned models, each denoted as θj\theta^{\prime}_{j}. Finally, we compute the attribution by measuring the change in loss of each training sample xix_{i} after unlearning, by evaluating xix_{i} on θj\theta^{\prime}_{j}, which gives us a total of N×MN\times M losses i,j\mathcal{L}^{\prime}_{i,j}. We subtract the final loss from the initial loss to measure the loss change Δi,j=i,ji\Delta\mathcal{L}_{i,j}=\mathcal{L}^{\prime}_{i,j}-\mathcal{L}_{i}. For architectures such as Open-Unmix [16], where each target is an independent model, the procedure above is repeated for each target t{vocals,bass,drums,other}t\in\{\text{vocals},\text{bass},\text{drums},\text{other}\}.

Unified vs Per-target Filtering — After computing the attribution scores Δ\Delta\mathcal{L} for each training sample relative to each clean sample (and target), we can filter the dataset in two ways: a unified approach, which uses a single ranking for all stems, or a per-target approach, which creates an independent cleaned dataset for each target instrument model. In the unified approach, we calculate a single attribution score for each training song by averaging its Δ\Delta\mathcal{L} across all clean samples and targets:

Δi=1MjΔi,j.\Delta\mathcal{L}_{i}=\frac{1}{M}\sum_{j}\Delta\mathcal{L}_{i,j}.

All songs are ranked by this score. Songs at the bottom 1r1-r are removed, where r(0,1]r\in(0,1] denotes the proportion of data retained after cleaning. The resulting dataset is used to retrain all target models.

In the per-target approach, we rank training samples separately for each target tt based on their mean attribution for that target:

Δi(t)=1MtjtΔi,j,\Delta\mathcal{L}_{i}^{(t)}=\frac{1}{M_{t}}\sum_{j\in t}\Delta\mathcal{L}_{i,j},

where MtM_{t} is the number of clean tracks corresponding to target tt. Then, we create an independent cleaned dataset for each target by removing the bottom 1r1-r proportion of the samples with the lowest attribution scores for that target. Each target model is then retrained on its respective cleaned dataset.

2.2 Data Cleaning using a Distributional Metric

We also propose a data cleaning method based on distributional metrics. Unlike sample-level metrics such as mean squared error, distributional metrics compare across sample populations, allowing us to quantify the similarity more accurately between datasets of different sizes. In this work, we use the Fréchet Audio Distance (FAD) [11, 12], a widely used distributional metric for evaluating audio quality. FAD leverages a pretrained model to capture high-level audio features. Inspired by its effectiveness in assessing audio quality, we propose a straightforward filtering method using FAD to identify and remove noisy samples from a training dataset.

Our FAD-based data cleaning method begins by quantifying the perceptual dissimilarity of each training song to a small and clean reference set. Using the per-song FAD method detailed in [12], we compare the set of embedding time-frames from one song to all time-frames across all songs in the reference set. We use MERT [17] and CLAP [18] as the underlying embeddings for this calculation since they were found to be the most effective in capturing musical differences [12]. After computing a score for each song, we use the same approach to rank, filter, and retrain as detailed in the unified unlearning approach.

3 Evaluation

3.1 Experiment Setup

To evaluate our two data cleaning methods, we created a semi-synthetic dataset named “Mixed23” to simulate contamination with multiple types of errors found in real recordings. To ensure the performance gap was clearly observable, the prevalence and intensity of artifacts were made more pronounced than what is typical in studio recordings. The dataset comprises N=200N=200 songs: 100 clean samples from the MUSDB18-Training set [19], 50 samples with label noise from SDXDB23_LabelNoise [2], and 50 samples with audio bleeding from SDXDB23_Bleeding [2]. The M=50M=50 samples from MUSDB18-Test is used as the clean reference in unlearning, FAD, and MLP.

The Open-Unmix model architecture [16] was selected for experimentation due to its simplicity and training efficiency. To ensure a robust evaluation of our methods, we trained each model with three different seeds for 500 epochs without early stopping, and picked the epoch with the best validation loss on the MUSDB18-Test set. We evaluated them with the SDR metric [20] on the hidden evaluation dataset of the Music Demixing Challenge 2021, which consists of 27 out of 30 tracks in MDXDB21 [21]. We take the median SDR across test songs and report the average performance across three seeds.

3.2 Baseline Cleaning Approaches

We compare our proposed methods with several baselines, including Open-Unmix models trained on the contaminated Mixed23 dataset and the original MUSDB18 [19] training dataset containing 100 clean samples. In addition, inspired by Koo et al. [7], we developed a classifier-based baseline method leveraging prior knowledge about label noise and bleeding. Specifically, we use a 4-class multi-layer perceptron (MLP) instrument classification model trained on 50 clean songs from MUSDB18-Test. The MLP model is designed to classify individual 768-dimensional audio frame embeddings extracted using the MERT-v1-95M model [17]. The MLP has an input layer that projects these embeddings into a 256-dimensional hidden space, followed by a single hidden layer with a ReLU activation and a dropout rate of 0.5. A final linear layer maps the hidden representation to one of the four output classes: vocals, bass, drums, or other. The model then predicts and averages the class probabilities over all frames of a given song. Songs are then sorted based on the average predicted probability for their correct instrument class (i.e., for a vocal stem, the probability of the ‘vocals’ class). Similar to our unlearning filtering method, a percentage of the songs with the lowest probability is removed. We experimented with different ratios rr for this baseline MLP approach.

4 Results

4.1 Finding the Optimal Ratio

In our experiments, we discovered that the ratio rr for filtering out low-attribution samples is dependent on the specific characteristics of the dataset and the model architecture. Therefore, independently for each considered method, we performed the filtering process with multiple ratios, ranging from removing 5% to 50% of the data. The results are shown in Figure 2. The best rr for cleaning the Mixed23 dataset on the Open-Unmix model is determined to be r=0.75r=0.75 (where 25% of data is removed), achieving a mean SDR of 4.91 dB. We applied the same method to find the optimal ratio for FAD and MLP as well, with r=0.5r=0.5 found to be optimal for both approaches.

Figure 2: SDR vs. data cleaning ratio for unified unlearning via Open-Unmix on the Mixed23 dataset.

4.2 Result Comparison

Table 1: SDR scores of different training datasets on the Open-Unmix model. Each SDR score is the mean of three seeds.
Training Dataset Cleaning Method Extra Pretrained Model