Multimodal Music Emotion Recognition via Dual Cross-Attention Fusion of MERT and RoBERTa
Abstract
Music Emotion Recognition (MER) aims to predict the emotion a song expresses or evokes, with uses in recommendation, playlist generation, and music therapy. Much prior work casts this as classification into discrete labels, but categorical schemes are subjective and there is no agreed-upon set of categories. We instead predict continuous valence and arousal on Russell's circumplex model. Our model encodes audio with MERT and lyrics with RoBERTa, then fuses the two representations through a dual cross-attention module followed by a regression head. We evaluate on the 9,087-song dataset of Talaghat et al., whose audio and lyrics derive from DMDD. Two experiments probe the design. An ablation removes the cross-attention components one at a time, and a fine-tuning study compares frozen encoders against unfreezing their upper layers. The best configuration uses dual cross-attention with min pooling and 5-second audio chunking. It reaches an overall $\mathbf{R}^{\mathbf{2}}$ of 0.1916 with frozen encoders and 0.1968 when the top RoBERTa layer is fine-tuned, against a previous best of 0.1797 on this dataset. Most of the gain is in valence, while arousal stays harder. The ablation shows that dual cross-attention beats either single direction and plain concatenation. Fine-tuning helped only at the top RoBERTa encoder layer under the settings tested, and unfreezing any MERT layer lowered the score.