TL;DR
The paper introduces MIDI-SAG, a modular "score-to-song" generation pipeline that leverages symbolic MIDI data (beats and chords) to guide text-to-music models in creating high-quality instrumental accompaniments. By moving away from monolithic end-to-end audio generation, this framework solves the "long-form bottleneck"—maintaining rhythmic and harmonic coherence over full-length songs, even during vocal-silent sections like intros and bridges—while allowing songwriters to retain complete control over their core melodies.
What Problem Does This Paper Address?
While commercial AI tools like Suno can generate impressive songs from simple text prompts, they operate as black boxes. For professional musicians and songwriters who want to retain authorship over an exact melody (a task known as score-to-song generation), these end-to-end models are unusable.
Existing modular score-to-song systems typically chain a Singing Voice Synthesis (SVS) module with a Singing Accompaniment Generation (SAG) module. However, they suffer from a major limitation: they rely heavily on the presence of vocal audio to anchor the generation. When the vocals stop—such as during an instrumental intro, bridge, or outro—the accompaniment model loses its primary conditioning signal, leading to rhythmic drift and harmonic incoherence. Consequently, prior academic attempts have been limited to generating short snippets of 10 to 20 seconds.
Methods
The authors propose a five-stage compositional song pipeline that decomposes long-form song generation into specialized, controllable modules:
- Structure Planning: Takes the full-song lyrics and MIDI to define a global musical form, establishing temporal boundaries and semantic labels (e.g., intro, verse, chorus).
- Vocal Synthesis: A pre-trained SVS module (FastSpeech) converts the lyrics and MIDI into a high-fidelity vocal audio track.
- Harmonic Roadmapping: An off-the-shelf melody harmonization module (AccoMontage2) analyzes the melody's MIDI to suggest a compatible chord progression for the entire song.
- MIDI-Informed Generation: The core MIDI-SAG module—an adapted Stable Audio Open text-to-music model—synthesizes the accompaniment. Instead of relying on raw vocal audio, it is conditioned on text prompts, symbolic beats, chords, and structure simultaneously using lightweight adapters (MuseControlLite).
- Long-Form Inference: To generate multi-minute tracks beyond the model's standard 47-second window, the system uses section-anchored slicing and backward outpainting. For instance, to fix the "cold start" problem of generating an empty intro, the model uses the subsequent verse's generated audio as a backward acoustic reference.
Datasets
- Singing Voice Synthesis (SVS): Trained from scratch on a 10-hour internal corpus featuring two licensed singers (one male, one female) with aligned MIDI, phonemes, and mel-spectrograms.
- Singing Accompaniment Generation (SAG): Fine-tuned on a 2.5k-hour dataset of Mandarin pop music, source-separated into isolated vocal and backing tracks, with automated text captioning provided by AudioFlamingo 3.
- Evaluation: Benchmarked using a 200-sample test set generated via GPT-5 (specifying lyrics and style metadata) and the standard MUSDB18 music separation dataset.
Key Insights and Ideas
- Symbolic Priors Beat Raw Audio: Traditional SAG models try to track beats and harmony from dry, raw vocal audio, which is notoriously error-prone. Extracting precise beat timings and chord progressions directly from the input symbolic MIDI provides a flawless musical roadmap that spans both vocal and non-vocal sections.
- Solving the Intro Dilemma via Backward Outpainting: Generating an instrumental intro from scratch often yields poor results because there is no prior audio context. By reversing the outpainting direction—using the energy and style of the first verse to inform the intro—the model achieves seamless stylistic continuity.
- Extreme Data Efficiency: While state-of-the-art audio models require tens of thousands of hours of data and massive compute clusters, MIDI-SAG was successfully trained on a single consumer-grade GPU (NVIDIA RTX 3090) in just 9 days using only 2.5k hours of audio, thanks to its modular adapter-based design.
Key Results
- Rhythmic and Harmonic Stability: In 47-second generation tests, MIDI-SAG achieved a Rhythm F1 score of 0.9534 and a Key Accuracy of 0.7700, vastly outperforming standard audio-conditioned SAG baselines (which scored 0.2216 and 0.1850, respectively).
- Long-Form Consistency: When extended to full-length songs (90–120 seconds) using the long-form inference strategy, performance remained remarkably stable, maintaining a Rhythm F1 of 0.9134 and Key Accuracy of 0.8200.
- Accompaniment Quality: On the 10-second accompaniment task (using the MUSDB18 dataset), MIDI-SAG achieved an Accompaniment Prompt Adherence (APA) score of 0.595, comfortably beating existing baselines like AnyAccomp (0.457) and FastSAG (0.000).
- Lyrics-to-Song Extension: When evaluated as a full lyrics-to-song pipeline, the modular approach achieved a lower Phoneme Error Rate (PER of 0.213) and higher subjective Voice Naturalness than prominent open-source end-to-end models like ACE-Step and DiffRhythm, though it trailed commercial giant Suno v4.5 in overall musicality.
Limitations and Future Work
Because the pipeline is sequential, it is susceptible to error propagation—if the melody harmonization module chooses a strange chord progression, the final accompaniment will suffer. Additionally, while the modular setup excels at lyric intelligibility and structural control, the overall acoustic richness and text-audio alignment still trail massive, end-to-end commercial models.
The authors note that these limitations are primarily due to their low-resource training constraints. Future work will focus on scaling up the dataset size and model parameters to bridge the aesthetic gap while preserving the system's fine-grained editability.
Summary updated