NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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 ZhouarXiv 2025 · DOI

Introduction

Recent advancements in large language models have popularized "Chain-of-Thought" (CoT) reasoning, where models generate intermediate steps to solve complex problems. Researchers at Kunlun Inc. have adapted this concept for music with MusiCoT, a framework that enables high-fidelity music generation models to "think" before they play. By generating an intermediate sequence of structural musical thoughts—discretized CLAP embeddings—before producing audio tokens, MusiCoT significantly improves musical coherence and allows for real-time analysis of instrumental arrangements.

Comparison between Vanilla AR and MusiCoT-based music generation.

The Problem: Imprecise Musical Planning

Most Autoregressive (AR) music models rely on next-token prediction. However, human composition involves high-level planning of mood, genre, and structure (e.g., "start with a piano intro, then bring in drums for the chorus"). Previous attempts to use natural language for CoT prompting often fail because human language is too imprecise to capture the nuances of short musical segments, and high-quality labeled datasets are difficult to scale.

The MusiCoT Framework

MusiCoT is built upon the MeLoDy framework, which combines a Language Model (LM) for semantic tokens with a Diffusion model for audio synthesis. The core innovation lies in the reasoning step:

  1. Latent Musical Thoughts: The model utilizes CLAP (Contrastive Language-Audio Pretraining) embeddings to represent the "essence" of 10-second audio clips.
  2. Flattened RVQ Tokens: These continuous embeddings are converted into discrete tokens via Residual Vector Quantization (RVQ), making them readable by the LM.
  3. Coarse-to-Fine Planning: The model predicts these structural tokens before the actual audio tokens, forcing it to outline the song's structure first.
  4. Dual-Sampling Strategy: To balance structural creativity with audio fidelity, the authors introduced Dual-Temperature Sampling and Dual-Scale Classifier-Free Guidance (CFG).

Experimental Setup

The model was trained on a massive dataset of approximately 10 million English songs (DISCO-10M) and 200,000 in-house tracks. Preprocessing involved Demucs for source separation and ASR for lyric transcription. Evaluation was conducted against 100 sets of ChatGPT-generated prompts and lyrics, comparing MusiCoT to commercial leaders like Suno V4 and Udio V1.5.

Results and Analysis

MusiCoT achieves state-of-the-art results across several metrics. Notably, it recorded a Fréchet Audio Distance (FAD) of 0.102, the lowest among all tested models, indicating superior audio fidelity.

Performance comparison of MusiCoT against commercial music generators.

Key insights from the evaluation include:

  • Reasoning in Latent Space: Using CLAP embeddings for reasoning is more effective than natural language. These embeddings are "analyzable," allowing users to see the planned arrangement by calculating cosine similarity with text tags like "piano" or "drums."
  • Subjective Quality: MusiCoT achieved a Mean Opinion Score (MOS) of 3.72, outperforming Udio V1.5 (3.62) and nearly matching Suno V4 (3.77).
  • Efficiency: Despite the added reasoning step, the model maintains a Real-Time Factor (RTF) of 0.27, ensuring fast generation.

Conclusion and Future Work

MusiCoT represents a significant step toward more structured and analyzable AI music generation. While currently focused on English-language tracks and limited by the resolution of pre-trained CLAP models, it demonstrates the power of latent-space reasoning. Future research may expand this framework to include more granular musical elements and multi-modal inputs.

Summary updated

BibTeX
@misc{lam2025analyzable,
  author = {Max W. Y. Lam and Yijin Xing and Weiya You and Jingcheng Wu and Zongyu Yin and Fuqiang Jiang and Hangyu Liu and Feng Liu and Xingda Li and Wei-Tsung Lu and Hanyu Chen and Tong Feng and Tianwei Zhao and Chien-Hung Liu and Xuchen Song and Yang Li and Yahui Zhou},
  title = {{Analyzable Chain-of-Musical-Thought Prompting for High-Fidelity Music Generation}},
  year = {2025},
  eprint = {2503.19611},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.19611},
}
Figure