TL;DR
This paper introduces a cross-modal retrieval system that automatically matches music to text-based stories by aligning their emotional content. By leveraging shared embedding spaces—ranging from manually defined valence-arousal coordinates to data-driven metric learning—the researchers successfully bridge the gap between mismatched emotion vocabularies in text and music datasets.
What Problem Does This Paper Address?
Content creators often use music to amplify the emotional impact of a story, but finding the "right" track in a massive library is a tedious task requiring significant expertise. While we have datasets for both text emotion and music mood, they rarely speak the same language. For instance, a text dataset might label a sentence as "fearful," while a music dataset might label a corresponding track as "scary."
This "modality gap" is exacerbated by heterogeneous taxonomies: the specific words used to describe emotions differ across domains. Standard classification models fail here because they can't retrieve a "scary" song if the input query is labeled "fearful." The authors aim to create a unified space where semantically similar emotions from different modalities are mapped to nearby coordinates.
Methods
The authors formalize the task as a cross-modal retrieval problem and investigate six different deep learning strategies to bridge the gap:
- Classification & Multi-head Classification: Baselines that attempt to predict discrete labels.
- Valence-Arousal (VA) Regression: Mapping both text and music into the well-known 2D emotional space (Valence: positive-to-negative; Arousal: intensity).
- Word2Vec Regression: Mapping modalities into a high-dimensional, pre-trained word embedding space.
- Metric Learning (Two-branch & Three-branch): Instead of using a pre-defined space, these models learn a shared embedding space from scratch.
The Three-branch metric learning approach is particularly novel. While standard two-branch models only optimize the distance between text and music, the three-branch model adds a third "tag" branch. This helps preserve the "neighborhood structure" within each modality—ensuring that "angry" and "exciting" music stay relatively close because they share acoustic characteristics, even if their text labels are different.
For feature extraction, the team used DistilBERT for text and a ResNet architecture (trained on mel-spectrograms) for audio.
Datasets
The study utilized several established datasets to train and evaluate the cross-modal alignment:
- Text: Alm’s affect dataset (1,383 sentences from classic stories like Grimm’s Fairy Tales) and the ISEAR dataset (7,666 sentences categorized into seven emotions).
- Music: A subset of AudioSet consisting of 16,995 music clips categorized into 7 mood categories (happy, funny, sad, tender, exciting, angry, and scary).
Key Insights and Ideas
- The Taxonomy Bridge: The core "aha moment" is that you don't need identical labels if you have a shared map. By using Valence-Arousal or Word2Vec, the model understands that "joy" (text) and "happy" (music) belong in the same neighborhood.
- Preserving Modality Structure: Simple two-branch metric learning can "collapse" the internal relationships of a modality. The three-branch approach acts as an anchor, ensuring that the learned space respects the inherent emotional distances within music and text independently while aligning them.
- Data-Driven vs. Manual: While manual VA mapping is highly effective, it's limited by human-defined lexicons. Data-driven metric learning is more flexible and can potentially scale to much broader, non-emotional vocabularies (e.g., matching "ocean" text to "watery" sounds).
Key Results
The researchers evaluated their models using Precision at 5 (P@5) and Mean Reciprocal Rank (MRR).
- VA Regression proved to be a very powerful baseline, often achieving the highest scores (e.g., 0.6100 P@5 on Alm’s dataset with manual mapping). This highlights the robustness of the valence-arousal model for emotional tasks.
- Three-branch Metric Learning performed comparably to VA regression but offers the advantage of being fully data-driven. It consistently outperformed the two-branch version, proving that the additional "tag" branch helps the model learn a more nuanced emotional space.
- Classification Failed: As expected, simple classification models performed poorly or failed entirely when faced with non-overlapping vocabularies between the test and training sets.
Limitations and Future Work
The authors note that their current approach relies on mapping text emotion to music mood, which is a specific subset of the music retrieval problem. The datasets used are also relatively small in terms of vocabulary size.
Future work could involve:
- Moving beyond basic emotion labels to more complex narrative elements.
- Exploring how these embedding spaces handle "ambiguous" emotions where a story might be both "sad" and "hopeful."
- Generalizing the metric learning framework to other cross-modal tasks that require even broader taxonomies.
Summary updated