TL;DR
This paper investigates how to effectively adapt general-purpose, instruction-tuned Large Language Models (LLMs) to the domain of symbolic music using ABC notation. By comparing Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO), the authors reveal a stark trade-off: while SFT dramatically boosts music understanding and token-level generation, it severely degrades the model's general language capabilities, whereas DPO preserves general knowledge better but struggles with raw music generation.
What Problem Does This Paper Address?
Symbolic music (represented as text formats like ABC notation) shares structural parallels with natural language, making LLMs a promising candidate for music generation and reasoning. However, music possesses unforgiving structural, syntactic, and long-range constraints—a single local token error can invalidate an entire musical sequence.
While music-specialized LLMs exist, a pragmatic question remains for researchers: Can we take an off-the-shelf, general-purpose instruction-tuned LLM and successfully adapt it to symbolic music using standard NLP fine-tuning practices? Furthermore, what happens to the model's original capabilities (like logic, history, or law) when we force it to learn the language of music?
Methods
The authors use an off-the-shelf instruction-tuned backbone (LLaMA 3.1 Instruct 8B) and evaluate two primary adaptation strategies using ABC notation (a compact ASCII-based text format for music):
- Supervised Fine-Tuning (SFT): Training the model via standard next-token prediction on unified music instruction data.
- Direct Preference Optimization (DPO): To bypass the need for expensive human preference data, the authors develop an automated ABC Degradation Pipeline. This pipeline applies musically motivated corruptions (such as random pitch swapping, key signature changes, and bar truncations) to a piece of music while maintaining valid ABC syntax. This creates paired "good" vs. "bad" musical samples for contrastive preference learning.
These approaches are compared against the unadapted base model and ChatMusician, a baseline LLM pretrained from scratch on music.
Datasets
The authors curated a unified instruction-style dataset spanning both composition (generation) and concept-focused musical reasoning (understanding). The data sources include:
- MusicPile-sft (filtered to remove non-musical text descriptions)
- PDMX
- Distant Listening Corpus (DLC)
- Open Lieder
- Open String Quartets
The datasets were categorized into Short (target length $\le$ 500 tokens) and Long sequences to evaluate performance under different context constraints.
Key Insights and Ideas
- The "Alignment Tax" is Heavy: Fine-tuning an LLM on music acts as a double-edged sword. SFT significantly improves music-domain scores but causes a catastrophic drop in general-domain knowledge, effectively turning a versatile assistant into a narrow music specialist.
- DPO Acts as a Capability Shield: Because DPO uses a contrastive objective rather than raw likelihood maximization, it acts as a regularizer. It preserves the model's general-domain capabilities much better than SFT, though it pays a penalty in token-level generation precision.
- Disconnection in Evaluation Metrics: The authors found that token-level metrics like Perplexity (PPL) do not always correlate with global musical quality metrics like Fréchet Music Distance (FMD). A model can exhibit poor token-level perplexity but still generate globally coherent musical structures, highlighting a major gap in how we evaluate AI music.
Key Results
- General Knowledge Retention: On the Massive Multitask Language Understanding (MMLU) benchmark, the base LLaMA 3.1 model scores 0.59. SFT causes this score to plummet to 0.27–0.29 (comparable to the music-native ChatMusician at 0.24). DPO mitigates this loss, retaining a score of up to 0.33.
- Music Understanding: On the Musicpile understanding task, SFT yields massive improvements, dropping token-level perplexity from 693.9 (Base) down to 36.3 (Short-trained).
- Generation Performance: For generation tasks (e.g., ABCTunes), SFT achieves a tight token-level fit with a perplexity of 9.3. Conversely, DPO struggles significantly with generation, yielding a poor perplexity of 517.3, proving that weak preference optimization is insufficient for teaching an LLM how to compose from scratch.
Limitations and Future Work
- Synthetic Preferences: The DPO training relies on automated, rule-based degradations rather than human feedback, which may bias the model toward fixing specific, artificial error patterns.
- Format Constraints: The study is limited to ABC notation. More complex, polyphonic, or verbose formats (like MusicXML or
**kern) remain unexplored. - Future Work: The authors propose vocabulary expansion as a vital next step. By introducing music-specific tokens (e.g., dedicated tokens for barlines, voice separators, or common ornaments), they aim to reduce token fragmentation and improve generation efficiency without destroying the model's underlying language capabilities.
Summary updated