[Paper Review] MIDI-LLaMA: An Instruction-Following Multimodal LLM for Symbolic Music Understanding
MIDI-LLaMA aligns MusicBERT MIDI embeddings with Llama-3-8B in a two-stage training pipeline to create an instruction-following multimodal LLM for symbolic music, outperforming a text-only ABC notation baseline on question answering and music captioning.
Recent advances in multimodal large language models (MLLM) for audio music have demonstrated strong capabilities in music understanding, yet symbolic music, a fundamental representation of musical structure, remains unexplored. In this work, we introduce MIDI-LLaMA, the first instruction-following MLLM for symbolic music understanding. Our approach aligns the MIDI encoder MusicBERT and Llama-3-8B via a two-stage pipeline comprising feature alignment and instruction tuning. To support training, we design a scalable annotation pipeline that annotates GiantMIDI-Piano with fine-grained metadata, resulting in a MIDI-text dataset. Compared with the baseline trained on converting MIDI into ABC notation under the same instruction-tuning procedure, MIDI-LLaMA substantially outperforms in captioning and semantic alignment in question answering. Human evaluation further confirms the advantages of MIDI-LLaMA in music understanding, emotion recognition, creativity, and overall preference. These findings demonstrate that incorporating symbolic music into large language models enhances their capacity for musical understanding.
Motivation & Objective
- Address the scarcity of symbolic music–text data for multimodal LLMs by creating a large-scale symbolic music–text dataset.
- Develop an end-to-end architecture that fuses symbolic MIDI embeddings with a language model via a trainable projection.
- Demonstrate that symbolic-music embeddings improve understanding, emotion recognition, and captioning over text-only baselines.
- Provide human evaluation to validate improvements in music understanding and emotional expressivity.
Proposed method
- Use MusicBERT as the MIDI encoder and Llama-3-8B as the language backbone.
- Introduce a two-stage training pipeline: first align MIDI embeddings with the LLM via a projection layer on instruction-tuning data; then instruction-tune with LoRA while keeping the MIDI encoder frozen.
- Create a large symbolic music–text dataset by annotating GiantMIDI-Piano with GPT-4o-derived metadata and manual verification to produce genre, style, background, expressive intent, and emotion labels.
- Segment pieces into 20-second clips to generate 29,409 clips and ~2.3 million Q&A pairs for instruction tuning.
- Compare MIDI-LLaMA to a text-only ABC-LLaMA baseline to isolate the value of symbolic MIDI embeddings.
- Evaluate using QA and music captioning tasks with BLEU, METEOR, ROUGE-L, and BERTScore; supplement with human evaluation on caption quality and emotion.
Experimental results
Research questions
- RQ1Can symbolic MIDI embeddings aligned with an LLM improve symbolic music understanding beyond text-based representations (ABC notation) in QA and captioning tasks?
- RQ2What is the impact of two-stage alignment and instruction tuning with a frozen MIDI encoder on downstream symbolic-music tasks?
- RQ3Do automated, GPT-assisted annotations provide reliable, scalable data for instruction-tuning in symbolic music?
- RQ4How do human judgments compare MIDI-LLaMA captions to a text-only baseline in terms of music understanding and emotion capture?
Key findings
- MIDI-LLaMA outperforms the ABC-LLaMA baseline on music captioning across BLEU, METEOR, ROUGE-L, and BERTScore metrics.
- In question answering, MIDI-LLaMA achieves stronger ROUGE-L and BERTScore, indicating better semantic alignment, despite surface-level lexical metrics favoring the ABC baseline in some cases.
- Zero-shot LLaMA baselines without symbolic-music alignment perform poorly, validating the need for symbolic-music embedding integration.
- Human evaluators preferred MIDI-LLaMA captions for music understanding and emotion recognition, with creativity also favored.
- The dataset and annotation pipeline yield high-quality music–text pairs, with 89% acceptance for categorical tags and 93% for descriptive annotations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.