arXiv:2610.31202cs.SDOct 2026

Manuscript Offprint

arXiv:2610.31202

Predicting Music Valence and Arousal via Textual and Multimodal In-Context Learning in Large Language Models

Chi-En Dai, Chih-Pin Tan, Yi-Hsuan Yang

ABSTRACT

While arousal can be reliably predicted from musical audio, emotional valence remains difficult to model due to its subjective and context-dependent nature. In this work, we investigate the potential of in-context learning (ICL) with large language models to advance continuous valence and arousal prediction. Rather than predicting emotion scores directly, our framework leverages contextual demonstrations from an auxiliary dataset to refine the initial predictions produced by a small, task-specific base model. We systematically evaluate a text-based ICL variant using lyrics and generated audio captions, alongside a multimodal variant that incorporates raw audio signals. Using the entire MER60 dataset strictly as a held-out test set, our experiments demonstrate substantial performance gains, particularly for valence. Text-based ICL improves the valence R2R^{2} from 0.110 to 0.427 with 80 demonstration shots, while the multimodal variant achieves 0.346 with only 10 shots. These findings suggest that training-free ICL offers an effective inference-time strategy for current language models to predict continuous music emotion.

Index Terms— Music emotion recognition

1. INTRODUCTION

Music emotion recognition (MER) aims to estimate the perceived emotional response of listeners [1, 2]. Emotions are typically modeled using categorical labels or continuous dimensions. In this work, we focus on the continuous valence-arousal framework [3, 4], where arousal indicates emotional energy and valence measures emotional positivity or negativity. While numerous classical [5, 6] and deep learning methods [7, 8] have been proposed to predict valence and arousal from musical audio, valence prediction remains challenging due to its highly abstract and context-dependent nature [5, 9].

Recently, large language models (LLMs) and their multimodal counterparts (MLLMs) have demonstrated remarkable capabilities across diverse tasks [10–13]. However, their direct zero-shot performance in continuous valence–arousal prediction from musical audio remains largely unexplored. In our pilot study, we employed MER60 [14], a benchmark dataset of 60 Western pop songs compiled before 2011, to test two representative models: GPT-5 (a text-based LLM) and Qwen3-Omni 30B [13] (an MLLM). Evaluating with the coefficient of determination ( R2R^{2}), where 1.0 indicates perfect prediction and negative values signal severe performance degradation [15], GPT-5 achieved RA2=0.699R_{A}^{2} = 0.699 for arousal but RV2=−0.801R_{V}^{2} = -0.801 for valence. Similarly, Qwen3-Omni 30B obtained RA2=0.764R_{A}^{2} = 0.764 and RV2=0.037R_{V}^{2} = 0.037. While both models perform competitively on arousal—approaching established baselines in the literature (e.g., RA2=0.800R_{A}^{2} = 0.800 reported in [6])—their zero-shot valence predictions fail dramatically, falling far below prior audio-based benchmarks (e.g., RV2=0.270R_{V}^{2} = 0.270 in [6]). Crucially, because the songs in MER60 have been released for over 15 years, likely the text descriptions or audio clips related to them were already included in the massive pre-training corpora of the LLM/MLLM. The fact that zero-shot valence prediction remains poor indicates that potential song exposure or text-based memorization alone is insufficient for zero-shot valence reasoning, highlighting the need for explicit, context-guided alignment.

The goal of this work is therefore to study whether we can effectively improve the ability of current LLMs and MLLMs to predict valence from music. More specifically, since training such large-scale models from scratch is computationally prohibitive, we ask whether we can leverage the prominent in-context learning (ICL) paradigm [16,17]. By exposing pretrained LLMs and MLLMs to contextual demonstrations consisting of music audio and emotion labels from an auxiliary dataset (specifically, CH818 [18]) that is completely disjoint from our test set (i.e., MER60), we aim to boost their valence prediction performance. Because this ICL approach operates entirely at inference time and requires no weight updates or task-specific fine-tuning [16], it provides a straightforward, flexible, and practical solution for MER.

Specifically, text-only LLMs cannot process raw audio signals directly, necessitating text-based “surrogates” to represent the musical content of demonstration songs during ICL. Therefore, as our first research question, we evaluate the effectiveness of song lyrics versus automatic audio captions as surrogates. We consider lyrics under the assumption that they convey rich semantic and thematic context essential for valence perception. Similarly, for audio captions, large audio-language models (e.g., Qwen-Audio [19]) can be prompted to extract high-level descriptions such as emotional atmosphere and mood dynamics. Furthermore, while MLLMs can in-

Figure

Fig. 1: Overview of the proposed framework. A base audio model produces initial valence–arousal (VA) predictions, which are refined via in-context learning using either a text-only LLM (bottom) or a multimodal LLM (top).

gest raw audio signals directly, we similarly evaluate whether augmenting the audio input with lyrics enhances valence prediction in a multimodal ICL setting.

As our second research question, we study whether incorporating a small, task-specific deep learning model trained explicitly for valence prediction can further improve result. The core idea is that a compact base model can collaborate with the large language models by simplifying the in-context learning task. Specifically, instead of asking the language model to predict absolute valence values from scratch, we use the base model's initial prediction as an anchor and prompt the LLM/MLLM to estimate a residual offset. This predicted delta is then added to the base estimate to refine the final emotion scores. This base model is trained using the entire auxiliary dataset CH818, ensuring that the overall framework maintains strict cross-dataset generalization.

To provide further insights, we systematically investigate key factors such as the required number of demonstration shots and the impact of LLM/MLLM model capacity. Furthermore, we conduct all experiments for both valence and arousal to examine whether the observed gains are dimension-specific. Our findings show that ICL can indeed greatly improve the valence prediction capabilities of current LLMs and MLLMs, though current text-based and multimodal architectures exhibit different optimal configurations.

References (28)