GETMusic: Generating Music Tracks with a Unified Representation and Diffusion Framework

Ang Lv, Xu Tan, Peiling Lu, Wei Ye, Shikun Zhang, Jiang Bian, Rui Yan · Submission to ICLR 2024 · Rejected

Abstract

Symbolic music generation—the process of creating musical notation such as MIDI—has traditionally relied on task-specific models that struggle with flexibility and multi-track coordination. We present GETMusic, a unified framework designed to generate any combination of instrument tracks through a novel 2D representation called GETScore and a discrete diffusion model named GETDiff. By treating music generation as a "fill-in-the-blanks" task, GETMusic enables versatile co-creation, allowing users to provide arbitrary source tracks and generate harmonious targets. Our results demonstrate that GETMusic outperforms existing autoregressive models in both musical quality and computational efficiency.

Introduction

In the field of AI-driven music composition, symbolic generation focuses on the structural elements of music—pitch, duration, and rhythm—rather than raw audio waveforms. While significant progress has been made, most current models are constrained by their architecture to specific "one-to-one" tasks, such as generating a piano accompaniment for a single melody. These models lack the flexibility to handle diverse "source-to-target" scenarios, such as generating a full band arrangement from a vocal line and a guitar riff.

The primary hurdle lies in representation. Sequence-based models often interleave tokens from different instruments, leading to confusion in track identity. Conversely, image-based models (like pianorolls) are computationally expensive due to their inherent sparsity. GETMusic addresses these challenges by introducing a unified framework that maintains track separation while ensuring temporal alignment.

Methods

GETScore: A Unified 2D Representation

To overcome the limitations of linear token sequences, we developed GETScore. This representation organizes music into a 2D grid where the vertical axis represents distinct instrument tracks (e.g., Lead, Bass, Drums) and the horizontal axis represents time, quantized into 16th-note increments.

To maintain efficiency without losing harmonic complexity, GETScore utilizes compound tokens. When a single track plays multiple notes simultaneously (a chord), these notes are merged into a single token. This approach prevents the representation from becoming overly bulky while preserving the vertical context necessary for harmony.

GETDiff: Discrete Diffusion for Music

Generation is handled by GETDiff, a discrete diffusion model. Unlike traditional autoregressive models that predict notes sequentially from start to finish, GETDiff employs a non-autoregressive denoising process:

  1. Forward Process: During training, the model takes a complete GETScore and randomly masks specific tracks or segments.
  2. Denoising Process: The model learns to predict the masked (hidden) tokens by analyzing the provided source tracks.
  3. Inference: At runtime, the model starts with "noise" (masked areas) and iteratively refines them into coherent musical structures.

Because GETDiff predicts all notes simultaneously across a time window, it is significantly faster than sequential models and better at maintaining long-term structural consistency.

Dataset and Training

GETMusic was trained on a massive dataset of 1,569,469 MIDI files sourced from Musescore. Following a rigorous cleaning process to remove low-quality or overly simplistic files, the final training set consisted of 137,812 GETScores, totaling approximately 2,800 hours of music.

The model supports six primary instrumental categories: bass, drum, guitar, piano, string, and melody. Additionally, a dedicated track for chord progressions was included to provide the model with explicit harmonic guidance during the generation process.

Results and Key Insights

Versatility and Harmony

By keeping tracks separate yet temporally aligned, GETMusic excels at maintaining "vertical" harmony—the relationship between different instruments at the same moment in time. The use of condition flags allows the model to distinguish between user-provided source tracks and the target tracks it needs to generate. This enables "zero-shot" flexibility, where the model can handle any of the 665 possible track combinations without requiring task-specific fine-tuning.

Performance Metrics

We compared GETMusic against PopMAG (an autoregressive model) and Museformer (an unconditional generator). GETMusic demonstrated superior performance across several dimensions:

  • Musical Quality: GETMusic achieved significantly higher Chord Accuracy (CA), indicating that generated tracks are more harmonically consistent with the source material.
  • Distributional Accuracy: The pitch and duration distributions of GETMusic’s output closely mirrored human-composed music, as measured by KL Divergence.
  • Human Evaluation: In blind listening tests, human evaluators assigned GETMusic scores between 3.35 and 3.52 out of 5, consistently outperforming PopMAG’s scores of 2.88–3.14.
  • Efficiency: GETMusic is approximately 5x faster than PopMAG, capable of generating a full multi-track piece in 4.8 seconds compared to 23.3 seconds for the baseline.

Limitations and Future Work

While GETMusic represents a significant step toward universal music co-creation, it currently has limitations. The model is restricted to a fixed ensemble of six instrument categories and does not yet capture performance nuances like "velocity" (dynamics) or subtle tempo variations that characterize human performance. Future iterations may expand the instrument library and incorporate multimodal inputs, such as using lyrics as a source track to enable direct lyric-to-melody generation.

Summary updated

Abstract

Symbolic music generation aims to create musical notes, which can help users compose music, such as generating target instrument tracks based on provided source tracks. In practical scenarios where there’s a predefined ensemble of tracks and various composition needs, an efficient and effective generative model that can generate any target tracks based on the other tracks becomes crucial. However, previous efforts have fallen short in addressing this necessity due to limitations in their music representations and models. In this paper, we introduce a framework known as GETMusic, with “GET” standing for “GEnerate music Tracks.” This framework encompasses a novel music representation “GETScore” and a diffusion model “GETDiff.” GETScore represents musical notes as tokens and organizes tokens in a 2D structure, with tracks stacked vertically and progressing horizontally over time. At a training step, each track of a music piece is randomly selected as either the target or source. The training involves two processes: In the forward process, target tracks are corrupted by masking their tokens, while source tracks remain as the ground truth; in the denoising process, GETDiff is trained to predict the masked target tokens conditioning on the source tracks. Our proposed representation, coupled with the non-autoregressive generative model, empowers GETMusic to generate music with any arbitrary source-target track combinations. Our experiments demonstrate that the versatile GETMusic outperforms prior works proposed for certain specific composition tasks.
BibTeX
@inproceedings{lv2025getmusic,
  author = {Ang Lv and Xu Tan and Peiling Lu and Wei Ye and Shikun Zhang and Jiang Bian and Rui Yan},
  title = {{GETMusic: Generating Music Tracks with a Unified Representation and Diffusion Framework}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1127},
}
Figure