Introduction
General-purpose music representation models, such as CLAP or MuLan, have demonstrated impressive performance across a wide array of musical genres. However, these models often struggle with "homogeneous" domains, specifically solo piano music. Because they are primarily trained on datasets dominated by multi-instrumental or vocal-centric tracks, solo piano pieces often appear semantically identical to these models. Furthermore, existing piano-specific models are typically unimodal, focusing exclusively on either MIDI or audio, thereby neglecting the complementary information available across different modalities.
PianoBind addresses this gap by introducing a specialized multimodal joint embedding model designed for pop-piano music. By aligning audio, symbolic MIDI, and natural language descriptions into a shared embedding space, PianoBind captures fine-grained semantic nuances—such as mood and style—that general-purpose models frequently overlook.
Methodology
PianoBind utilizes a trimodal architecture consisting of three dedicated encoders:
- Audio Encoder: A modified ResNet-50 architecture that processes mel-spectrograms.
- Symbolic Encoder: Based on MidiBERT-Piano, designed to handle note-level information including pitch, duration, and position.
- Text Encoder: A RoBERTa model used for processing semantic descriptions and tags.
The model's effectiveness stems from three core innovations:
- Trimodal Contrastive Learning: The system is trained to maximize cosine similarity between music (audio/MIDI) and corresponding text using an InfoNCE loss. The researchers found that aligning Audio-to-Text and MIDI-to-Text was sufficient for capturing semantic meaning.
- Sequential Multi-Source Training: To handle varying data quality, the authors employed a "Pre-train then Fine-tune" strategy. The model is first pre-trained on a large, weakly-labeled dataset and subsequently fine-tuned on a smaller, expert-annotated dataset.
- Multimodal Item Embedding: During evaluation, audio and MIDI embeddings are fused (via average fusion) to create a more robust representation for retrieval tasks.
Datasets
The study utilized the PIAST dataset, specifically curated for pop-piano:
- PIAST-YT: A large-scale collection of approximately 7,367 tracks from YouTube with automatically collected metadata.
- PIAST-AT: A high-quality subset of 1,986 tracks featuring expert-annotated tags for genre, mood, and style.
- EMOPIA-Caps: A new dataset introduced for out-of-domain evaluation. The authors used GPT-4o, refined by music experts, to transform raw emotion tags from the EMOPIA dataset into natural language captions.
Key Insights
- Fine-Tuning Superiority: In low-resource domains, sequential training (Pre-train -> Fine-tune) significantly outperforms "Combined Training." Mixing all data at once allows larger, noisier datasets to drown out high-quality signals from smaller expert sets.
- Modality Complementarity: Audio captures expressive timbre and dynamics, while MIDI provides clear harmonic and melodic structure. Fusing these modalities at inference time consistently improves retrieval performance.
- The Value of Trimodal Learning: Including MIDI during training helps regularize the embedding space, leading to better text-to-audio retrieval performance than audio-text bimodal models alone.
Results
PianoBind significantly outperforms state-of-the-art general-purpose models in text-to-music retrieval. On the in-domain PIAST-AT test set, PianoBind achieved a Median Rank (MedR) of 10 and an R@10 of 52.76%, nearly doubling the performance of unimodal baselines. It also demonstrated strong generalization, maintaining a MedR of 10 on the out-of-domain EMOPIA-Caps dataset.
Conclusion and Future Work
While PianoBind sets a new benchmark for pop-piano representation, the authors note limitations regarding dataset scale and genre bias. Currently focused on pop-piano, the model lacks representation for classical or avant-garde styles. Future work will focus on expanding the diversity and scale of piano-text datasets to develop a more universal piano foundation model.
Summary updated