Multi-Source Music Generation with Latent Diffusion

Zhongweiyang Xu, Debottam Dutta, Yu-Lin Wei, Romit Roy Choudhury

TL;DR

The Multi-Source Latent Diffusion Model (MSLDM) generates separate, mutually coherent instrument tracks (piano, drums, bass, and guitar) within a shared latent space rather than synthesizing raw waveforms. By combining a continuous neural audio autoencoder with score-based latent diffusion, MSLDM eliminates waveform noise artifacts, boosts musical coherence, and enables both full-song composition and flexible accompaniment generation.

What Problem Does This Paper Address?

Most generative music systems output a single, flattened audio mixture. While this sounds fine for casual listening, it prevents producers and creators from editing individual stems (e.g., turning down the drums, swapping a bassline, or soloing the guitar).

Previous attempts at multi-track generation—most notably the Multi-Source Diffusion Model (MSDM)—operate directly in the raw waveform domain. However, waveform diffusion struggles with high-dimensional audio: it is computationally heavy, prone to audible Gaussian noise artifacts, and frequently generates musically sparse or completely empty audio tracks.

Methods

MSLDM shifts multi-source modeling into a compressed, continuous latent space using a two-stage approach:

  1. SourceVAE: The authors adapt the high-fidelity Descript Audio Codec (DAC) architecture. They remove the discrete vector quantization (VQ) bottleneck, add a KL-divergence penalty to ensure a smooth, continuous Gaussian prior, and downsample the temporal dimension by a factor of $D=320$. A single shared VAE encodes each instrument source into an 80-channel continuous latent vector ($C=80$).
  2. Multi-Source Latent Diffusion: Instead of running independent models for each instrument, the latent representations of all $K=4$ sources are concatenated channel-wise ($KC = 320$ channels). A 1D U-Net is trained under the EDM (Elucidating Diffusion Models) score-matching framework to model their joint distribution.
  3. Flexible Inference:
  4. Total Generation: Unconditionally samples all four instrument latents simultaneously from noise, then decodes each latent independently via the VAE decoder.
  5. Partial Generation: Implements score-based imputation to generate complementary accompaniments conditioned on one or more provided stems (e.g., generating drums and bass to fit a given piano and guitar riff).
[Instrument Tracks] ---> [Shared SourceVAE Encoder] ---> [Latent Stems: KC=320]
                                                               |
                                                   [Joint Latent Diffusion]
                                                               |
[Synthesized Mixture] <-- [Mix Stems] <-- [Shared Decoder] <-- [Denoised Latents]

Datasets

  • Slakh2100: A standard benchmark dataset containing 145 hours of MIDI-synthesized music with separated, instrument-labeled tracks. The authors focus on the four primary instruments: piano, drums, bass, and guitar, resampled to 22,050 Hz.
  • No new datasets were introduced.

Key Insights and Ideas

  • Latent compression enables melody and harmony: Compressing audio by $320\times$ frees the diffusion backbone from spending capacity on fine waveform sample synthesis, allowing it to capture macro-level musical dynamics, melodies, and cross-instrument harmony.
  • Stem modeling beats mixture modeling: Directly training a latent diffusion model on complete music mixtures (MixLDM) yields poor quality and high Fréchet Audio Distance (FAD). Jointly modeling separated stems provides clearer compositional structure than forcing a model to disentangle a dense mix implicitly.
  • Joint modeling is critical for cohesion: An ensemble of isolated single-instrument models (ISLDM) can generate clean individual timbres, but the instruments sound musically dissonant and out of sync when mixed. Concatenating latents forces the diffusion network to learn cross-track harmonic dependencies.

Key Results

The authors compared MSLDM and a larger variant (MSLDM-Large, 1.65B parameters) against MSDM, MixLDM, and ISLDM on an NVIDIA RTX A6000 GPU:

  • Inference Speed: MSLDM generates a 12-second 4-track mixture in 5.44 seconds, compared to 7.92 seconds for MSDM.
  • Partial Generation (Accompaniment): On overall sub-FAD across all instrument combinations (lower is better), MSLDM (0.98) and MSLDM-Large (0.70) drastically outperform the waveform-based MSDM (1.79) and independent ISLDM (1.34).
  • Mixture Quality: MixLDM produced the worst mixture FAD, validating that multi-source modeling yields higher musical fidelity than direct mixture modeling.
  • Human Listening Tests: MSLDM and MSLDM-Large scored significantly higher than MSDM and baselines on subjective metrics:
  • Total Generation: Superior audio quality and perceived harmonic coherence.
  • Partial Generation: Significantly higher accompaniment quality and musical density (avoiding the "empty track" problem common in MSDM).

Limitations and Future Work

  • Synthetic Training Data: The model is trained and evaluated on Slakh2100, which consists of synthetic MIDI audio rather than acoustic multi-track studio recordings.
  • Fixed Track Set: The architecture is currently hard-coded to a 4-instrument setup (piano, drums, bass, guitar) and cannot dynamically accommodate arbitrary instrumentation or vocal tracks.
  • Future Directions: The authors suggest generalizing MSLDM to support more instruments and exploring the framework for weakly-supervised music source separation.

Summary updated

BibTeX
@inproceedings{xu2024multi,
  author = {Zhongweiyang Xu and Debottam Dutta and Yu-Lin Wei and Romit Roy Choudhury},
  title = {{Multi-Source Music Generation with Latent Diffusion}},
  booktitle = {Audio Imagination @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=bxzUnfWrgk},
}
Figure