TL;DR
This paper introduces a novel cross-domain retrieval framework that automatically recommends music based on the emotional tone of a user's speech without requiring text transcription. By introducing an "Emotion Similarity Regularization" term ($\mathcal{L}_{EmoSim}$), the model successfully maps speech and music into a shared embedding space that preserves continuous emotional relationships rather than relying on rigid, discrete emotion categories.
What Problem Does This Paper Address?
Imagine reading an audiobook or speaking to a smart assistant, and having the perfect background music automatically fade in to match your mood. To achieve this, a system must perform speech-to-music retrieval based on emotion.
However, two major hurdles stand in the way:
- The Modality Gap & Lack of Paired Data: Speech and music do not naturally co-occur in a way that provides clean, paired training datasets. Researchers must rely on separate speech and music datasets.
- Mismatched Taxonomies: Speech datasets might categorize emotions as joy or frustration, while music datasets use labels like tender or exciting. Previous solutions used discrete mappings (e.g., forcing joy $\rightarrow$ happy), but this discards the nuanced, continuous nature of human emotion and ignores how close different emotions are to one another.
This paper addresses these gaps by creating a textless framework that aligns speech and music in a joint embedding space using continuous emotion distributions.
Methods
The authors frame speech-to-music matching as a supervised cross-domain retrieval task. The architecture consists of frozen, pre-trained encoders for feature extraction followed by trainable projection Multi-Layer Perceptrons (MLPs) that map features into a joint embedding space.
The core innovation is the training loss configuration, which combines three elements:
- Conventional Triplet Loss ($\mathcal{L}_{Cross}$): Minimizes the distance between a speech query (anchor) and a semantically similar music track (positive) while maximizing the distance to an dissimilar track (negative).
- Structure-Preserving Constraints ($\mathcal{L}_{SP}$): Optimizes the relationships between individual items and their respective emotion tags using GloVe word embeddings.
- Emotion Similarity Regularization ($\mathcal{L}_{EmoSim}$): Inspired by deep imbalanced regression techniques, this novel term ensures that the continuous geometric distances between emotions in the valence-arousal space are directly reflected in the final feature embedding space. Instead of treating emotions as discrete buckets, it forces the network to learn that tender music is closer to sad speech than to angry speech.
Datasets
The model was validated across three distinct speech datasets and one large-scale music dataset:
Speech Datasets:
- IEMOCAP: ~12 hours of acted, dyadic emotional speech categorized into 6 emotional classes.
- RAVDESS: A multimodal database of emotional speech and song featuring 24 actors enacting statements across 8 emotions.
- Hi,KIA: A short-length wake-up word dataset containing Korean-accented utterances across 4 emotional states (anger, happy, sad, neutral).
Music Dataset:
- AudioSet (Music Mood subset): Human-labeled 10-second YouTube clips categorized into 7 mood classes (happy, funny, sad, tender, exciting, angry, scary). Because AudioSet lacks a "neutral" label, the authors innovatively used randomly generated color noise as a proxy positive pair for neutral speech.
The relationships between these dataset vocabularies were mapped using continuous valence-arousal values derived from the VAD Lexicon.
Key Insights and Ideas
- Audio Modality is Sufficient: One of the most significant findings is that acoustic features alone (via Wav2vec 2.0) are powerful enough for emotion-based retrieval. On datasets rich in linguistic information like IEMOCAP, the audio-only model performed comparably to text-based models, proving that speech-to-text transcription is not a strict prerequisite for emotional music matching.
- Preserving the Emotion Topology Matters: Standard triplet loss can create strange cluster artifacts—for instance, accidentally placing scary music embeddings near happy speech clusters. By enforcing continuous emotion similarity ($\mathcal{L}_{EmoSim}$), the model preserves a logical global topology (e.g., keeping scary music closer to angry and frustrated speech).
Key Results
The models were evaluated using Mean Reciprocal Rank (MRR), Precision at 5 (P@5), and Normalized Discounted Cumulative Gain (nDCG@5), which accounts for continuous emotion relevance levels.
- Superiority of EmoSim: Incorporating the $\mathcal{L}_{EmoSim}$ regularization term consistently yielded the highest performance and lowest standard deviation across all datasets.
- Wake-up Word Performance: On the challenging, short-length Hi,KIA dataset, the
Triplet + EmoSimaudio model achieved an impressive nDCG@5 of 0.93±0.02, outperforming the standard baseline Triplet model (0.91±0.03). - Multimodal Fusion: When both text and audio were available (via late fusion), performance saw a clear improvement over any single modality, achieving an nDCG@5 of 0.90±0.01 on IEMOCAP.
Limitations and Future Work
While effective, the authors note a few limitations:
- The Neutral Music Gap: AudioSet lacks explicit "neutral" mood tags, forcing the use of artificial color noise during training. Real-world neutral music datasets would improve robustness.
- Modality Expansion: The current framework focuses on audio and text. The authors suggest extending this cross-domain approach to include visual data (e.g., video frames or facial expressions) and exploring more sophisticated hierarchical fusion methods.
Summary updated