Large-Scale Training Data Attribution for Music Generative Models via Unlearning

Woosung Choi, Junghyun Koo, Kin Wai Cheuk, Joan Serrà, Marco A. Martínez-Ramírez, Yukara Ikemiya, Naoki Murata, Yuhta Takida, Wei-Hsiang Liao, Yuki Mitsufuji

TL;DR

This paper introduces the first large-scale training data attribution (TDA) framework for text-to-music diffusion transformers using machine unlearning. By unlearning a generated audio track and tracking the resulting loss shifts across the training set, the system reveals which specific training songs most influenced the generation. The authors demonstrate that this counterfactual approach identifies a much sharper, sparser set of influential training tracks than traditional embedding-similarity baselines.

What Problem Does This Paper Address?

Generative music models can synthesize remarkably convincing audio, but they risk memorizing or heavily copying copyrighted tracks without crediting original musicians. To build fair royalty and attribution systems, we need Training Data Attribution (TDA)—identifying which specific training instances most influenced a generated track.

Existing approaches fall short in music generation:

  • Black-box corroborative methods (e.g., audio embedding similarity via CLAP) rely on external representations that do not reflect the generative model's internal learning mechanics.
  • White-box counterfactual methods (like leave-one-out retraining) answer the true causal question—“How would the output change if track $x_i$ were removed from training?”—but retraining a large model $N$ times across tens of thousands of tracks is computationally impossible.

Methods

The authors adopt a counterfactual approach powered by machine unlearning and the mirrored influence hypothesis:

  1. Mirrored Influence: Instead of unlearning each training track $z_i$ individually ($N$ times), they unlearn the generated track $\hat{z}$ once and measure how the loss increases across the training set: $$\tau(\hat{z}, z_i) = \mathcal{L}(z_i, \theta_{\setminus \hat{z}}) - \mathcal{L}(z_i, \theta_0)$$
  2. Fisher-Regularized Unlearning: Directly maximizing the loss of $\hat{z}$ causes catastrophic forgetting. To prevent this, the authors regularize the weight update using a diagonal approximation of the Fisher Information Matrix (FIM) across diffusion timesteps, yielding an efficient closed-form parameter update: $$\theta = \theta_0 + \frac{1}{N} \mathbf{F}^{-1} \nabla \mathcal{L}(\hat{z}, \theta)$$
  3. Mixed Silence Masking: Music clips have variable lengths and are zero-padded up to 2 minutes. The authors discovered that unlearning padding causes the model to unlearn silence rather than musical content. They introduced a mixed masking strategy: apply a mask $M_U$ during unlearning so silence is ignored, but omit the mask $M_L$ when computing training attribution losses to remain consistent with base training.
  4. Base Generative Architecture: A latent Diffusion Transformer (DiT) operating on continuous 44.1 kHz stereo audio (encoded with a VAE to latent dimension 64, downsampling ratio 2048) conditioned on CLAP text/audio embeddings and timing metadata, trained with a $v$-objective.

Datasets

  • In-House Music Dataset: 115,000 high-quality music tracks (~4,356 hours) covering diverse styles and genres, used to train the base latent DiT model.
  • Song Describer Dataset: Public benchmark used to evaluate overall generation quality via Fréchet Distance ($FD_{\text{openl3}}$).
  • Evaluation Subsets:
  • Train-to-Train (Self-Influence): 40 diverse training tracks sampled via $k$-means clustering on CLAP embeddings to validate and tune unlearning hyperparameters.
  • Test-to-Train: 16 diverse 2-minute music pieces generated from unique text prompts to evaluate real-world attribution behavior against baselines.

Key Insights and Ideas

  • Silence Can Derail Unlearning: Without silence masks, short tracks (<30s) yielded poor attribution ranks because the unlearning algorithm focused heavily on the extensive zero-padded frames. The proposed mixed-masking strategy solved this without skewing losses on short tracks.
  • Architecture-Specific Target Layers: While prior image-generation work found that unlearning only cross-attention layers was sufficient, music DiTs required updating all transformer layers to achieve the highest top-$k$ attribution consistency without degrading audio quality ($FD_{\text{openl3}}$ remained stable at 110.5).
  • Sparse vs. Diffuse Attribution: Black-box embedding metrics (CLAP, CLEWS) and activation similarity (LPIPS) distribute attribution scores broadly across many tracks. Counterfactual unlearning, by contrast, concentrates attribution sharply onto a tiny subset of highly influential examples.

Key Results

  • Hyperparameter Sanity (Self-Influence): In the self-influence setup (unlearning a known training sample), the best configuration achieved an ideal target rank $R(z_{\text{tar}}) = 1.0$ (meaning the unlearned track was correctly retrieved as the #1 most influenced item in the entire 115k dataset).
  • Correlation with Other TDA Methods: Pearson correlation showed that unlearning correlates highest with internal feature similarity (LPIPS, $r = 0.56$), followed by external acoustic embeddings (CLAP, $r = 0.46$; CLEWS, $r = 0.32$). It exhibited almost no correlation with Representer Point Selection (RPS, $r = 0.11$).
  • Computational Cost: Unlearning a single generated sample takes ~20 minutes on one NVIDIA H100 GPU (averaging gradients over 2,048 diffusion timesteps). Evaluating the attribution loss over all 115,000 training tracks takes ~5 hours across 8 $\times$ H100 GPUs.

Limitations and Future Work

  • Heavy Inference Overhead: While far cheaper than retraining, running a 5-hour forward sweep across 8 enterprise GPUs per generated track remains too resource-intensive for real-time consumer deployment.
  • Approximation Limits: The framework relies on both the mirrored influence hypothesis and a diagonal Fisher approximation; evaluating how closely these mirror exact leave-one-out retraining on large audio models remains an open question.
  • Granularity of Musical Influence: The paper focuses on track-level attribution. Future work could investigate fine-grained attribution—such as isolating whether a track influenced the harmonic progression, timbre, rhythmic pattern, or melodic structure.

Summary updated

BibTeX
@inproceedings{choi2025large,
  author = {Woosung Choi and Junghyun Koo and Kin Wai Cheuk and Joan Serrà and Marco A. Martínez-Ramírez and Yukara Ikemiya and Naoki Murata and Yuhta Takida and Wei-Hsiang Liao and Yuki Mitsufuji},
  title = {{Large-Scale Training Data Attribution for Music Generative Models via Unlearning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qj3ps8lNIf},
}

Loading related content...

Figure