TL;DR
The Multi-Source Diffusion Model (MSDM) is a unified framework that bridges the gap between music generation and source separation. By learning the joint probability distribution of multiple instruments playing together, the model can synthesize coherent multi-track songs from scratch, "fill in" missing instruments for an existing track (source imputation), or separate a mixed song into its original stems with state-of-the-art accuracy.
The Problem: Disconnected Audio Models
In the realm of AI audio, researchers typically treat generation (creating new music) and separation (isolating instruments from a mix) as two entirely distinct problems.
Generative models usually learn the distribution of audio mixtures. While they can produce impressive, cohesive music, they "collapse" the individual instrument information, making it impossible to extract a specific bassline or drum track later. Conversely, source separation models usually learn to map a mixture directly to its constituent stems, or they learn independent models for each instrument. The problem with independent models is that they ignore context: a bassline sounds the way it does because it follows the rhythm of the drums. Modeling them independently loses the interdependence that makes music feel coherent.
The authors argue that a truly general audio model should be able to do both. Humans can imagine a full band playing together (synthesis) and pick out the guitar part from a song (analysis) using the same underlying understanding of how music works.
Methods: The Multi-Source Diffusion Model
The core innovation of this paper is the Multi-Source Diffusion Model (MSDM). Instead of learning the distribution of a single audio file, it learns the joint score of multiple sources (e.g., bass, drums, guitar, piano) that share a musical context.
Key Techniques
- Joint Diffusion: The model is trained using denoising score matching on an aggregated vector of all instrument waveforms. This allows the model to learn not just what a "piano" sounds like, but what a "piano playing with these specific drums" sounds like.
- Dirac Likelihood for Separation: This is the paper's most significant mathematical contribution to inference. Previous diffusion-based separation methods used a Gaussian likelihood to "nudge" the generated sources toward the mixture. The authors introduce a Dirac delta function approach. Since we know a mixture is exactly the sum of its parts, they derive a posterior score that enforces this constraint strictly. This "sharpens" the conditioning, leading to much cleaner separation without the "muffleness" often seen in generative separation.
Versatility: One Model, Three Tasks
Because the model understands the joint distribution of the instruments, it can perform multiple tasks at inference time without needing task-specific retraining.
- Total Generation: Synthesizing a complete multi-track composition from pure noise.
- Partial Generation (Source Imputation): Providing a subset of tracks (e.g., a drum track) and asking the model to generate matching accompaniment (e.g., a piano track). This acts as "audio inpainting."
- Source Separation: Treating the mixture as a hard constraint (using the Dirac likelihood) and sampling from the generative model to isolate the individual stems.
Datasets and Key Results
The model was primarily trained on Slakh2100, a standard dataset containing 145 hours of multi-track audio synthesized from MIDI using professional-grade virtual instruments, focusing on Bass, Drums, Guitar, and Piano. It was also tested on MUSDB18-HQ, a smaller dataset of real studio recordings, to evaluate out-of-distribution performance.
- Separation Quality: On the Slakh2100 benchmark, MSDM achieved an SI-SDRi of 16.48 dB, outperforming the popular Demucs regressor (16.11 dB). It significantly outperformed previous diffusion-based separation methods that relied on Gaussian likelihoods.
- Generation Quality: In subjective listening tests, users rated MSDM’s generated music as more coherent and higher quality than a standard diffusion model trained only on mixtures.
- Creative Imputation: The model successfully generated plausible accompaniments. For example, given a bass and piano track, it could generate drums and guitar that matched the rhythm and key of the provided stems.
Limitations and Future Work
While highly versatile, MSDM has a few limitations. It requires multi-track data (stems) for training; while mixtures are abundant, high-quality stems are harder to find, limiting the model's scale compared to mixture-only models. Additionally, like most diffusion models, MSDM requires multiple iterative steps to generate audio, making inference slower than "one-shot" regression models.
Future directions include extending the model to handle more than four instruments, incorporating MIDI information for finer user control, and exploring non-additive relationships between sources.
Summary updated