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:
- Forward Process: During training, the model takes a complete GETScore and randomly masks specific tracks or segments.
- Denoising Process: The model learns to predict the masked (hidden) tokens by analyzing the provided source tracks.
- 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