TL;DR
Compose & Embellish is a two-stage framework that solves the "rambling" problem in AI-generated music by separating high-level structure from low-level performance details. By first composing a structured lead sheet and then "embellishing" it into a full piano performance, the model achieves significantly better long-range coherence and repetitive structure than previous end-to-end models.
What Problem Does This Paper Address?
While Transformers have revolutionized symbolic music generation, they often struggle with long-range musical structure. An end-to-end model trying to generate a five-minute piano piece has to manage everything simultaneously: the high-level "blueprint" (themes and repetitions), harmonic progressions, rhythmic textures, and expressive nuances like timing and dynamics.
The result is often music that sounds "locally" impressive but "globally" incoherent—it wanders aimlessly without returning to established themes. Conversely, models that focus only on lead sheets (melody + chords) are better at structure but lack the virtuosic "feel" of a real piano performance. This paper asks: can we bridge this gap by mimicking the human composition process—writing the song first, then arranging the performance?
Methods
The authors propose a two-stage pipeline:
- COMPOSE (The Lead Sheet Model): A Transformer generates a "lead sheet" consisting of a monophonic melody and chord progressions. To enforce structure, the authors use a specific tokenization strategy that includes "phrase tokens" (e.g., labeling a section as 'A' or 'B') and "repetition markers" to explicitly signal when a theme should return.
- EMBELLISH (The Performance Model): This stage takes the generated lead sheet as a condition. It uses a Linear Transformer (Performer) to handle the long sequences required for full performances. The model generates the performance bar-by-bar, interleaving the lead sheet data with the performance data. This ensures the final output stays "faithful" to the structural blueprint provided in stage one.
A key technical advantage of this factorization is transfer learning. The COMPOSE stage can be pretrained on massive amounts of general multitrack MIDI data (where lead sheets are easily extracted), even if that data isn't piano-specific. The model is then finetuned on high-quality piano performance data.
Datasets
- LMD-full (Lakh MIDI Dataset): Used for pretraining the lead sheet model. It contains over 100,000 multitrack MIDIs with various instrumentations.
- Pop1K7: A dataset of ~1,700 transcribed piano performances of Western, Japanese, and Korean pop songs. This was used to train the performance model and finetune the lead sheet model to the target domain.
Key Insights and Ideas
- Factorization as a Regularizer: By forcing the model to generate a lead sheet first, the authors effectively "regularize" the generation process, preventing the model from getting lost in the weeds of expressive timing before the song's skeleton is finished.
- The "Structureness" Metric: The paper utilizes "Fitness Scape Plots" to quantify musical structure. These plots visualize repetitions at different timescales, allowing the authors to objectively measure how much more "structured" their model is compared to baselines.
- Pretraining on "Non-Piano" Data: One of the most important findings is that learning how a melody works from a massive, diverse dataset (like LMD-full) directly improves the quality of a specific instrument's performance (piano) later on.
Key Results
The "Compose & Embellish" (C&E) framework outperformed the state-of-the-art CP Transformer (an end-to-end model) across almost all metrics:
- Objective Structure: In long-term structureness ($SI_{long}$), C&E scored 25.8%, nearly doubling the CP Transformer's 17.9%. While still shy of real human data (34.8%), it significantly closed the gap.
- Subjective Quality: In a user study, C&E saw a massive jump in Coherence (3.53 vs 2.38) and Structureness (3.36 vs 2.33) on a 5-point Likert scale.
- Faithfulness: The performance model proved highly reliable, following the lead sheet's melody with over 98% accuracy, ensuring the intended structure was actually delivered in the final audio.
Limitations and Future Work
Despite the improvements, a "structure gap" remains between AI and human composers. The authors note that while the lead sheet model is now quite good at structure, the performance model sometimes "slips"—it might follow the melody perfectly but fail to repeat the specific accompaniment patterns or textures that a human would use to reinforce a musical theme.
Future work may involve redesigning the performance model to better capture these repetitive textures or exploring even more granular stages of arrangement. Additionally, the current system is unconditioned; adding controls for specific emotions or genres remains an open area for this specific two-stage architecture.
Summary updated