Abstract
NotaGen is a symbolic music generation model that successfully adapts the full Large Language Model (LLM) training pipeline—pre-training, fine-tuning, and reinforcement learning—to create high-quality classical sheet music. By introducing a novel automated reinforcement learning method called CLaMP-DPO, the researchers enabled the model to align with musical aesthetics and complex prompts without requiring expensive human annotations. Experimental results demonstrate that NotaGen significantly outperforms existing baselines in human preference and prompt controllability, achieving a 41.7% voting rate against human-composed ground truths.
Introduction
While AI has made massive strides in text and image generation, symbolic music generation (creating scores in formats like MIDI or ABC notation) still struggles with "musicality." Standard models often focus on local coherence—predicting the next note—but fail to maintain long-term structure, stylistic consistency, or orchestral balance. Furthermore, the gold standard for refining LLMs, Reinforcement Learning from Human Feedback (RLHF), is prohibitively expensive and slow when applied to musical compositions. NotaGen aims to bridge this gap by applying proven LLM scaling laws and a new automated feedback mechanism to the world of classical composition.
Methodology
The authors treat music notation as a hierarchical language problem, utilizing a three-pillar approach to model training and architecture.
Hierarchical Architecture
NotaGen employs two nested GPT-2 decoders. A patch-level decoder captures temporal relationships between bars of music, while a character-level decoder handles the fine-grained auto-regressive prediction of the ABC notation characters. By dividing music into "bar-stream patches" rather than individual tokens, the model maintains better structural integrity, which is crucial for complex forms like string quartets.
The LLM Pipeline
The training process follows a standard LLM progression:
- Pre-training: The model learns the general "grammar" of music on a massive dataset of 1.6 million ABC notation sheets across various genres.
- Fine-tuning: It is refined on a curated set of 8,948 high-quality classical pieces, conditioned on specific "period-composer-instrumentation" prompts (e.g., "Baroque-Bach-Keyboard").
- CLaMP-DPO Alignment: To avoid the need for human raters, the team used CLaMP 2, a multimodal symbolic music information retrieval model. CLaMP 2 acts as an automated "critic," scoring generated music based on how well its semantic features align with real human compositions. These scores are used in a Direct Preference Optimization (DPO) framework to nudge the model toward higher-quality outputs.
Key Results and Discussion
NotaGen was evaluated against major baselines, including MuPT (a large-scale ABC-based model) and MET (a MIDI-based Transformer).
Human Preference
In A/B tests against human-composed ground truths, NotaGen achieved a 41.7% voting rate. While humans still prefer real compositions, this represents a significant leap over the baselines (MET at 23.8% and MuPT at 26.8%). Subjective evaluations from music college students confirmed that NotaGen outperformed baselines in melodic appeal, harmonic fluency, and structural coherence.
Prompt Controllability and the Perplexity Paradox
After the CLaMP-DPO process, the model’s ability to follow instrumentation prompts jumped from 78.5% to 94.6% accuracy. Interestingly, the researchers found that as musicality and controllability improved, the model's perplexity (PPL) actually increased. This suggests that traditional language modeling metrics, which reward predicting the exact next token, are poor indicators of artistic quality compared to alignment-based methods.
Limitations and Future Work
While NotaGen excels at solo piano and chamber music, it still struggles with the complexity and "blank space" (rests) inherent in large-scale orchestral scores. Additionally, the current study is strictly focused on Western classical music; future iterations could expand to jazz, pop, and various ethnic music traditions. Finally, the CLaMP 2 scoring system can occasionally be unreliable if a generated piece is syntactically corrupted, indicating that the reward signal still has room for refinement.
Summary updated