TL;DR
MuMu-LLaMA is a new multi-modal framework that enables Large Language Models (LLMs) to both understand and generate music in the context of text, images, and videos. By introducing a massive, 167-hour well-annotated dataset and a novel adapter-based architecture, the researchers have significantly outperformed existing state-of-the-art models in music-centric reasoning and creation.
What Problem Does This Paper Address?
While LLMs have become adept at "seeing" (images/videos) and "hearing" (speech/general audio), the specific domain of multi-modal music remains a frontier. Most existing models can handle text-to-music, but they struggle with complex cross-modal tasks, such as generating a soundtrack that matches the specific mood and instruments shown in a video.
The primary bottleneck has been data. There is a severe lack of comprehensive, high-quality datasets that pair music with detailed annotations across other modalities. General-purpose multi-modal models like NExT-GPT exist, but their performance on music is often lackluster because they haven't been exposed to the specialized nuances of musical structure, tempo, and instrumentation.
Methods
The authors propose MuMu-LLaMA, a framework that uses LLaMA as a central "reasoning bridge" between various sensory encoders and generative decoders.
The Architecture:
- Multi-modal Encoders: The system uses specialized "eyes" and "ears": MERT for music, ViT for images, and ViViT for videos.
- Understanding Adapters: To feed this data into LLaMA, the authors developed custom adapters. For music and video, they used a combination of 1D Convolution, RNNs, and Attention mechanisms to capture temporal dependencies (how sounds and scenes change over time). Static images bypass the RNN to save on computation.
- LLM as a Bridge: Modality-specific features are injected into different layers of the 32-layer LLaMA structure (e.g., video features at layers 18-23, images at 24-29, and music at 30-35).
- Music Generation: The model doesn't generate audio directly; it produces "specialized audio tokens" that are then translated by an output projection layer into embeddings for pre-trained decoders like AudioLDM 2 or MusicGen.
Training Strategy:
The model underwent a three-stage training regimen:
- Stage 1: Training adapters to understand captions for music, images, and video.
- Stage 2: Training the output projector to generate music based on text captions.
- Stage 3: Fine-tuning the entire system using LoRA (Low-Rank Adaptation) on music-oriented instruction datasets.
Datasets
The researchers introduced a new, massive multi-modal music dataset totaling 167.69 hours. They used advanced visual models (LLaVA and Video-LLaVA) to automatically generate high-quality annotations.
- MUCaps: 51.43 hours of text-music pairs.
- MUImage: 40.33 hours of image-music pairs.
- MUVideo: 40.29 hours of video-music pairs.
- MUEdit: 35.64 hours of music pairs designed for editing tasks (changing speed, pitch, or adding/removing instruments).
Key Insights and Ideas
- Temporal Modeling is Non-Negotiable: The ablation studies showed that the RNN and Attention layers in the adapters were critical. Without them, the model's ability to understand the sequential nature of music dropped significantly.
- LLMs are Great Music Directors: By using LLaMA as a bridge, the model can follow complex, natural language instructions (e.g., "Add a guitar melody to compliment the piano") rather than relying on rigid, keyword-based prompts.
- AI-Assisted Annotation Works: Leveraging other SOTA models (LLaVA/Mistral) to annotate the music dataset allowed the authors to scale their data collection far beyond what manual human labeling would permit, without sacrificing the "richness" of the descriptions.
Key Results
MuMu-LLaMA consistently outperformed state-of-the-art models across four major tasks:
- Music Understanding: On the MusicQA benchmark, it beat models like SALMONN and the original MU-LLaMA across all metrics (BLEU, METEOR, ROUGE, BERT-Score).
- Text-to-Music: It achieved a lower Frechet Audio Distance (FAD) of 9.982 (lower is better) and a higher CLAP score of 0.312 compared to MusicGen and AudioLDM 2.
- Multi-modal Generation: In Image-to-Music and Video-to-Music tasks, it significantly outperformed the CoDi model.
- Subjective Preference: In a blind test with 45 participants, MuMu-LLaMA was preferred 58.2% of the time for text-to-music and over 80% of the time for image/video-to-music tasks.
Limitations and Future Work
The authors identify a major bottleneck: the model's reliance on pre-trained decoders (MusicGen/AudioLDM 2). Because MuMu-LLaMA only provides the "conditioning" for these decoders, it is limited by their inherent generative capabilities.
Future work will focus on refining the model's grasp of complex musical nuances and improving the alignment between the generated music and diverse multi-modal inputs to make the transitions and thematic links even more seamless.
Summary updated