Analyzable Chain-of-Musical-Thought Prompting for High-Fidelity Music Generation
Max W. Y. Lam, Yijin Xing, Weiya You, Jingcheng Wu, Zongyu Yin, Fuqiang Jiang, Hangyu Liu, Feng Liu, Xingda Li, Wei-Tsung Lu, Hanyu Chen, Tong Feng, Tianwei Zhao, Chien-Hung Liu, Xuchen Song, Yang Li, Yahui Zhou
TL;DR
This work addresses the gap between autoregressive music generation and the human creative process by introducing MusiCoT, an analyzable chain-of-musical-thought prompting framework. MusiCoT leverages CLAP embeddings as intermediate, continuous 'musical thoughts' and a residual vector quantization scheme to produce coarse-to-fine tokens that guide a diffusion-based acoustic model within the MeLoDy framework. It introduces dual-sampling strategies—Dual-Temperature Sampling and Dual-Scale Classifier-Free Guidance—to improve generation quality without increasing latency, and enables music referencing and structural analysis. Experiments show that MusiCoT improves subjective and objective metrics, achieving high fidelity and offering practical benefits for long-context, reference-enabled music prompting.
Abstract
Autoregressive (AR) models have demonstrated impressive capabilities in generating high-fidelity music. However, the conventional next-token prediction paradigm in AR models does not align with the human creative process in music composition, potentially compromising the musicality of generated samples. To overcome this limitation, we introduce MusiCoT, a novel chain-of-thought (CoT) prompting technique tailored for music generation. MusiCoT empowers the AR model to first outline an overall music structure before generating audio tokens, thereby enhancing the coherence and creativity of the resulting compositions. By leveraging the contrastive language-audio pretraining (CLAP) model, we establish a chain of "musical thoughts", making MusiCoT scalable and independent of human-labeled data, in contrast to conventional CoT methods. Moreover, MusiCoT allows for in-depth analysis of music structure, such as instrumental arrangements, and supports music referencing -- accepting variable-length audio inputs as optional style references. This innovative approach effectively addresses copying issues, positioning MusiCoT as a vital practical method for music prompting. Our experimental results indicate that MusiCoT consistently achieves superior performance across both objective and subjective metrics, producing music quality that rivals state-of-the-art generation models. Our samples are available at https://MusiCoT.github.io/.
