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 relative to MGE-LDM. In the random-stem setting, it improves partial-generation COCOLA by and reduces source-extraction Log-Mel L1 by . 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.