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

Whole-Song Hierarchical Generation of Symbolic Music Using Cascaded Diffusion Models

Ziyu Wang, Lejun Min, Gus Xia

Introduction

Generating full-length, structured musical compositions remains a significant challenge in AI. While current models excel at short phrases, they often struggle with long-term coherence, losing track of key, rhythm, and the repetitive-yet-varied structures (like verse-chorus-verse) essential to human music. This paper introduces a framework that mimics human composition through a compositional hierarchy, utilizing cascaded diffusion models to generate coherent pop songs from global form down to specific piano textures.

The Hierarchical Music Language

To manage the complexity of full-length songs, the authors decompose music into four levels of abstraction:

  1. Form: The global blueprint defining phrase types and key changes.
  2. Reduced Lead Sheet: A simplified sketch of melody and basic chords.
  3. Lead Sheet: The finalized melody and chord progression.
  4. Accompaniment: Detailed piano textures and secondary melodies.

This top-down approach ensures that local musical details are always grounded in a global structural plan, effectively turning music generation into a "sketch-to-photo" problem.

Cascaded Diffusion Architecture

The system employs a series of diffusion models, where each level is conditioned on the output of the level above it. This architecture treats musical layers as multi-channel images (piano rolls), leveraging the strengths of computer vision-style diffusion for symbolic music.

The four-stage cascaded generation process, moving from global form to detailed accompaniment.

To handle long durations (up to 256 measures), the model uses autoregressive inpainting. It generates segments using a sliding window approach, ensuring smooth transitions by conditioning on previously generated segments. Additionally, cross-attention mechanisms allow for flexible external control, enabling users to specify rhythmic patterns or chord progressions without compromising the overall musicality.

Evaluation and Results

The model was trained on the POP909 dataset, which consists of 909 MIDI arrangements of Chinese pop songs. Evaluation focused on both structural logic and musical quality.

Objective Metrics

The researchers introduced Inter-Phrase Latent Similarity (ILS) to quantify how well the model maintains long-term structural relationships (e.g., ensuring two "Verse" sections are musically related). The cascaded diffusion model significantly outperformed baselines like Polyffusion and Transformer-XL across all musical components, as shown in the table below.

Objective comparison of structural similarity (ILS) metrics against ground truth and baseline models.

Subjective Quality

In double-blind listening tests with 57 participants, the system's output received higher ratings for Musicality, Naturalness, and Boundary Clarity than existing flat diffusion or Transformer models. Participants noted that the generated songs felt more like complete compositions rather than disconnected musical fragments.

Discussion and Future Work

By baking structural inductive bias into the architecture, the authors achieved linear time complexity relative to song length, making the model highly scalable. However, limitations remain: the current system is optimized for 4/4 pop music and occasionally struggles with "resolving" song endings. Future research will aim to expand the hierarchy to multi-track arrangements (drums, bass, strings) and transition from symbolic MIDI to direct audio generation.

Summary updated

BibTeX
@inproceedings{wang2024whole,
  author = {Ziyu Wang and Lejun Min and Gus Xia},
  title = {{Whole-Song Hierarchical Generation of Symbolic Music Using Cascaded Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=sn7CYWyavh},
}
Figure