Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

4 December 2026

31 Pages

CAG-LDM: Coherence-Aware Gated Multi-Source Latent Diffusion Model for Music Generation and Source Extraction

and
School of Computer Science and Technology, Chongqing University, Chongqing 400044, China
*
Author to whom correspondence should be addressed.

Abstract

Music generation has attracted increasing attention in recent years, driven by the rising demand for high-quality cultural and creative content in the context of rapid advancements in artificial intelligence. Current music generation models, especially the multi-source diffusion model (MSDM) series, have integrated the processes of total generation, partial generation, and source extraction. However, the prevalence of coherence-imbalanced stem combinations in multi-stem datasets hinders models from learning stable inter-stem relationships, leading to degraded harmonic and rhythmic alignment. To address this gap, we propose CAG-LDM, which maps scores from a frozen COCOLA encoder to learnable coherence tokens through a CT-Encoder, supported by auxiliary coherence prediction. We also introduce head-specific output gating to regulate the attention sink on the diffusion transformer’s timestep token. Across Slakh2100, MUSDB18, and MoisesDB, CAG-LDM reduces total-generation Fréchet audio distance (FAD) by 20.7% relative to MGE-LDM. In the random-stem setting, it improves partial-generation COCOLA by 9.11% and reduces source-extraction Log-Mel L1 by 21.25%. CAG-LDM supports training and inference on a single RTX A6000 GPU, although its 250-step sampler remains suited to offline use. Our subjective listening study further confirms the improvement.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.