Skip to Content
MathematicsMathematics
  • Article
  • Open Access

15 May 2026

25 Pages

MELT: Optimization-Driven Music Emotion Learning with Temporal Token-Level Fusion

,
and
1
School of Creative Media, City University of Hong Kong, Hong Kong 999077, China
2
James Watt School of Engineering, University of Glasgow, Glasgow G12 8QQ, UK
3
Faculty of Humanities and Arts, Macau University of Science and Technology, Macao 999078, China
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Intelligent Mathematics and Applications

Abstract

Music emotion recognition (MER) can be formulated as a multimodal optimization problem that predicts an emotion label from coupled audio and lyric sequences. Existing methods typically perform unimodal learning or coarse global fusion, which overlooks fine-grained temporal-token correspondences between musical dynamics and lyric semantics. We propose MELT (Music Emotion Learning with Temporal token-level fusion), an optimization-driven framework with four modules: a BERT-based lyrics semantic encoder (LSE), a segment temporal encoder (STE) that models audio-segment dependencies via a Transformer, a token-level temporal fusion (TTF) module with gated cross-attention, and an emotion mood head (EMH) for four-class prediction. Training is conducted end-to-end by jointly minimizing a supervised classification term and an auxiliary cross-modal contrastive alignment term, yielding a unified objective that improves both class separability and representation consistency. On the MoodyLyrics benchmark, MELT achieves 87.6% weighted F1 for four-class emotion recognition (angry, happy, relaxed, sad), outperforming unimodal baselines and representative early/late fusion strategies. Ablation results further verify that temporal encoding, gated token-level fusion, and joint optimization each contribute to the final performance.

1. Introduction

Music is a powerful medium for emotional expression, and the automatic recognition of emotions conveyed by music has broad applications in music recommendation, playlist generation, music therapy, and affective computing [1,2]. Music emotion recognition (MER) seeks to assign emotion labels to songs, typically drawing on categorical models such as Russell’s circumplex model of affect [3,4] or discrete emotion taxonomies.
Two primary modalities carry emotional information in music: the audio signal and the lyrics. Audio captures tonal, rhythmic, and timbrel cues that shape the listener’s emotional perception, while lyrics convey semantic and narrative content that can reinforce, complement, or even contradict the audio-level emotion [5]. Consequently, multimodal approaches that integrate both audio and lyrics have shown consistent improvements over unimodal methods [6].
However, most existing multimodal MER systems fuse audio and text representations at a coarse, global level—for example, by concatenating a single audio embedding with a single text embedding before classification [7]. This approach discards the temporal structure inherent in both modalities: a song’s emotional trajectory evolves over time, and different segments of the audio may correspond to different portions of the lyrics. Early fusion by simple concatenation cannot capture these fine-grained cross-modal interactions.
Recent advances in pre-trained models have produced powerful unimodal representations. On the text side, BERT [8] and its variants provide contextualized word embeddings that capture rich semantic information [9]. On the audio side, self-supervised models such as MERT [10] and MuQ [11] learn general-purpose music representations from large-scale unlabeled audio. These pre-trained encoders offer strong foundations, but the question of how to effectively fuse their outputs for emotion recognition remains open.
We propose MELT (Music Emotion Learning with Temporal token-level fusion), a multimodal framework that addresses these limitations through four key components. The lyrics semantic encoder (LSE) leverages BERT to produce contextualized token-level representations of song lyrics. The segment temporal encoder (STE) segments the audio into fixed-length windows, encodes each segment through a pre-trained audio backbone, and models temporal dependencies across segments using a Transformer encoder with learnable positional embeddings. The token-level temporal fusion (TTF) module performs cross-attention from lyric tokens to audio segments, enabling each word in the lyrics to attend to relevant temporal positions in the audio, with a learned gating mechanism that controls the degree of audio influence on each token. Finally, the emotion mood head (EMH) aggregates the fused representation through multi-view pooling and classifies the result into emotion categories.
The main contributions of this work are as follows:
  • We introduce MELT, a multimodal MER framework that performs token-level fusion between lyrics and temporally encoded audio segments, enabling fine-grained cross-modal interaction.
  • We design a gated cross-attention mechanism that adaptively controls the flow of audio information into each lyric token, preserving the semantic integrity of the text while enriching it with acoustic context.
  • We conduct experiments on the MoodyLyrics dataset with four emotion classes, demonstrating that MELT outperforms unimodal baselines and conventional fusion strategies. Ablation studies validate the contribution of each component.
The remainder of this paper is organized as follows. Section 2 reviews related work on music emotion recognition, multimodal fusion strategies, and pre-trained audio and text models. Section 3 presents the detailed architecture of MELT. Section 4 reports experimental results, ablation studies, and analyses. Finally, Section 5 discusses the findings, and Section 6 concludes the paper.

3. Method

3.1. Overall Architecture

We formulate music emotion recognition as a multimodal classification problem. Given a song represented by an audio waveform a ∈ R D · f s of duration D seconds at sampling rate f s , and its corresponding lyrics text w = ( w 1 , w 2 , … , w L ) as a sequence of L tokens, the goal is to predict an emotion label y ∈ { 1 , 2 , … , C } from a predefined set of C emotion categories. In our setting, C = 4 correspond to the four quadrants of Russell’s circumplex model [3]: angry (high arousal, negative valence), happy (high arousal, positive valence), relaxed (low arousal, positive valence), and sad (low arousal, negative valence).
Figure 1 illustrates the overall architecture of MELT. The framework processes audio and lyrics through four stages: (1) the lyrics semantic encoder (LSE) encodes the lyrics into contextualized token embeddings using a pre-trained language model; (2) the segment temporal encoder (STE) divides the audio into fixed-length segments, encodes each segment through a pre-trained audio backbone, and models temporal dependencies across segments using a Transformer encoder with learnable positional embeddings; (3) the token-level temporal fusion (TTF) module performs gated cross-attention from lyric tokens to audio segments, enabling fine-grained cross-modal interaction; and (4) the emotion mood head (EMH) aggregates the multimodal representation through multi-view pooling and produces the emotion prediction.
Figure 1. Overall architecture of MELT. The input song is processed through two parallel branches: the lyrics semantic encoder (LSE) produces token-level text representations from BERT, while the segment temporal encoder (STE) segments the audio waveform, encodes each segment via a pre-trained audio backbone (e.g., MERT), and models temporal dependencies with a Transformer encoder. The token-level temporal fusion (TTF) module performs gated cross-attention from lyric tokens (queries) to audio segments (keys/values). The emotion mood head (EMH) aggregates the fused and audio representations through multi-view pooling and classifies the emotion. Different colors and icons are used only to distinguish the lyrics/audio branches, fusion module, and emotion categories in the schematic.
A key design principle of MELT is that the fusion operates at the token level rather than the global level. Unlike conventional approaches that reduce each modality to a single vector before fusion [7], MELT preserves the internal structure of both modalities throughout the fusion process. Each lyric token can selectively attend to different audio segments, and a learned gating mechanism controls the degree of cross-modal influence at each position. This design is inspired by the success of cross-attention mechanisms in vision–language models [26,27] and multimodal Transformers [25] but adapted to the specific structure of music data where audio has a natural temporal segmentation.
In contrast to symmetric cross-attention frameworks such as MulT [25] and gate-on-text injection frameworks such as MAG-BERT [29], MELT commits to three design choices that jointly characterize its novelty: (1) lyric tokens are queries, and audio segments (not raw frames) are keys/values, so the attention is asymmetric and operates over musically meaningful time units; (2) audio segments are temporally encoded by the STE before fusion, so each key/value already carries within-song context; and (3) the gate is a token×feature convex combination (Equation (11)), designed to degrade gracefully to the text-only pathway when audio is uninformative, rather than to always add an acoustic residual. A structural comparison with representative baselines is provided in Table 1. In contrast to the closest attention-based baselines, MELT is characterized by three coupled choices that operate together rather than in isolation: (1) lyric tokens are used as queries while temporally encoded audio segments are used as keys/values, giving an asymmetric routing that matches the role of lyrics as the semantic scaffold and audio as the acoustic modifier; (2) the audio keys/values are produced by a dedicated segment temporal encoder so that every fusion step sees segment-level temporal context, rather than raw frames (as in MulT) or a single aggregated acoustic vector per word (as in MAG-BERT); and (3) the fusion uses a convex-combination gate at the granularity of individual token × feature positions (Section 3.4, Equation (11)), rather than an additive residual. These three points together—not cross-attention by itself—constitute the differentiator of MELT relative to prior work, and they are the ones being ablated in Section 4.7.

3.2. Lyrics Semantic Encoder

The lyrics semantic encoder (LSE) processes the raw lyrics text through a pre-trained BERT model [8] to obtain contextualized token representations. We choose BERT-base-uncased as the text backbone for several reasons: (1) its bidirectional attention mechanism captures both left and right context for each token, which is important for understanding the emotional connotation of words that depends on surrounding context; (2) its pre-training on a large general-domain corpus provides robust word representations that transfer well to the lyrics domain; and (3) its moderate size (110 M parameters) allows efficient fine-tuning on relatively small MER datasets.
Given lyrics w = ( w 1 , w 2 , … , w L ) tokenized into L subword tokens using the WordPiece tokenizer [8], the LSE produces contextualized representations:
H text = BERT ( w ) ∈ R L × d bert ,
where d bert = 768 is the hidden dimension of BERT-base. Unlike approaches that use only the [CLS] token as a global sentence representation, we retain all L token representations to enable token-level fusion with audio in the subsequent TTF module. A linear projection maps the BERT outputs to the fusion dimension d:
T = H text W proj + b proj ∈ R L × d ,
where W proj ∈ R d bert × d and b proj ∈ R d are learnable parameters. This projection serves two purposes: it reduces the dimensionality to match the audio representation space, and it provides a learnable adaptation layer that can specialize the general-purpose BERT features for the emotion recognition task.
During training, the BERT backbone is fine-tuned with a lower learning rate ( 2 × 10 − 5 ) compared to the randomly initialized modules ( 2 × 10 − 4 ), following the discriminative fine-tuning strategy [37] that prevents catastrophic forgetting of pre-trained knowledge while allowing task-specific adaptation.

3.3. Segment Temporal Encoder

The segment temporal encoder (STE) processes the audio waveform by first segmenting it into fixed-length windows, encoding each segment independently through a pre-trained audio backbone, and then modeling temporal dependencies across segments using a Transformer encoder.

3.3.1. Audio Segmentation

Music is inherently temporal: the emotional character of a song evolves over its duration, with different sections (verse, chorus, bridge) often conveying distinct emotional intensities. To capture this temporal structure, we divide the audio waveform into a sequence of fixed-length segments rather than encoding the entire waveform as a single representation.
Given an audio waveform a of duration D seconds sampled at rate f s , we divide it into K non-overlapping segments of Δt seconds each (with K = min ( ⌊ D / ∆ t ⌋ ,   K max ) , where K max is the maximum number of segments):
a k = a [ k · ∆ t · f s : ( k + 1 ) · ∆ t · f s ] , k = 0 , 1 , … , K − 1 .
We set ∆ t = 5 s and K max = 6 in our experiments, covering up to 30 s of audio per song. This segment length is chosen to balance temporal granularity (shorter segments capture more fine-grained dynamics) with the receptive field of the audio backbone (segments must be long enough to contain meaningful musical content such as melodic phrases or rhythmic patterns). Songs shorter than K max · ∆ t seconds are zero-padded, and a binary segment mask m audio ∈ { 0 , 1 } K max indicates which segments contain valid audio.

3.3.2. Segment Encoding with Pre-Trained Audio Backbone

Each audio segment is independently encoded by a pre-trained audio backbone to produce a segment-level embedding. We support multiple audio backbones, with MERT-v1-95 M [10] as the default choice due to its strong performance on music understanding tasks.
For models that output multiple hidden layers (such as MERT, which produces N L + 1 hidden states including the input embedding layer), we employ a learnable weighted layer pooling mechanism inspired by ELMo [38]:
s k = ∑ l = 0 N L α l · h ¯ k ( l ) , α l = exp ( λ l ) ∑ j = 0 N L exp ( λ j ) ,
where h ¯ k ( l ) = MeanPool ( h k ( l ) ) is the mean-pooled output of layer l for segment k, and λ l are learnable scalar weights initialized to zero (uniform weighting). Here, N L denotes the number of Transformer layers of the pre-trained audio backbone itself (for MERT-v1-95M, N L = 12 ), so the index l runs over the N L + 1 hidden states produced by the backbone (the input embedding layer plus the N L Transformer layers); N L should not be confused with the number of Transformer layers N T used in the subsequent segment temporal encoder, which is specified separately in Section 4.4. This allows the model to learn which layers of the audio backbone are most informative for emotion recognition—lower layers may capture acoustic features (timbre, pitch), while higher layers may encode more abstract musical concepts (harmony, rhythm patterns) [10].
The segment embeddings are projected to the fusion dimension d through a linear transformation:
S = [ s 0 , s 1 , … , s K − 1 ] W audio + b audio ∈ R K × d ,
where W audio ∈ R d audio × d , and d audio is the hidden dimension of the audio backbone.

3.3.3. Temporal Modeling

To model the temporal dependencies between audio segments, we add learnable positional embeddings and process the sequence through a Transformer encoder:
S ^ = S + E pos [ : K ] ∈ R K × d ,
where E pos ∈ R K max × d is a learnable positional embedding table. Unlike sinusoidal positional encodings [24], learnable embeddings allow the model to discover task-specific temporal patterns, such as the typical emotional arc of a song (e.g., building intensity from verse to chorus).
The positioned segment embeddings are processed by a Transformer encoder with N T layers:
A = TransformerEncoder ( S ^ , mask = ¬ m audio ) ∈ R K × d ,
where each Transformer layer consists of multi-head self-attention with H T heads and a position-wise feed-forward network with GELU activation [39]. The padding mask ensures that attention is not computed over invalid (padded) segments. The output A captures both the content of each audio segment and its temporal context within the song, enabling the subsequent fusion module to access temporally contextualized audio representations.

3.4. Token-Level Temporal Fusion

The token-level temporal fusion (TTF) module is the core innovation of MELT. It enables fine-grained interaction between lyric tokens and audio segments through a gated cross-attention mechanism. Unlike global-level fusion approaches that reduce each modality to a single vector before combining them [6,7], TTF preserves the internal structure of both modalities and allows each lyric token to independently determine which audio segments are most relevant to its emotional interpretation.

3.4.1. Cross-Modal Attention

Given text token representations T ∈ R L × d from the LSE and audio segment representations A ∈ R K × d from the STE, the TTF module computes multi-head cross-attention where text tokens serve as queries [40], and audio segments serve as keys and values:
C = MultiHeadAttn ( Q = T , K = A , V = A ) ∈ R L × d ,
where MultiHeadAttn denotes multi-head cross-attention with H heads. Specifically, for each head h ∈ { 1 , … , H } ,
head h = softmax T W h Q ( A W h K ) ⊤ d / H A W h V ,
where W h Q , W h K , W h V ∈ R d × d / H are learnable projection matrices. The attention weights α ∈ R L × K reveal which audio segments each lyric token attends to, providing interpretable cross-modal alignment. The key padding mask ¬ m audio ensures that padded audio segments receive zero attention weight.
This asymmetric design—text queries audio but not vice versa—is motivated by the observation that lyrics provide the primary semantic scaffold for emotion classification, while audio provides complementary acoustic evidence. By having text tokens query audio segments, each word in the lyrics can selectively gather acoustic context that reinforces or modifies its emotional interpretation. This is analogous to the cross-attention mechanism in the Multimodal Transformer [25] but applied specifically to the lyrics–audio alignment problem. Figure 2 illustrates the detailed architecture of the TTF module.
Figure 2. Detailed architecture of the token-level temporal fusion (TTF) module. Text token representations T serve as queries, and audio segment representations A serve as keys and values in a multi-head cross-attention layer. The cross-attention output C is combined with the original text tokens T through a gating mechanism: the gate G is computed from [ T ; C ; T ⊙ C ] via a two-layer MLP with GELU activation and a sigmoid output. The fused output is obtained as a convex combination F ˜ = ( 1 − G ) ⊙ T + G ⊙ Dropout ( C ) followed by layer normalization, i.e., F = LayerNorm ( F ˜ ) . When the gate is closed, the pre-normalization output is strictly the text representation T , so the fusion reduces to a LayerNorm-regularized text pathway; when the gate opens, audio information is progressively injected into the corresponding token–feature positions.

3.4.2. Gated Fusion

A naive approach would directly add or replace the text representations with the cross-attention output. However, not all lyric tokens benefit equally from audio information—function words, punctuation, and semantically neutral tokens may receive noisy audio signals that degrade performance. To address this, we introduce a learned gating mechanism that adaptively controls the degree of audio influence on each token.
The gate is computed from the concatenation of the original text tokens, the cross-attention output, and their element-wise product (which captures feature-level interaction):
G = σ W 2 g · GELU W 1 g · [ T ; C ; T ⊙ C ] + b 1 g + b 2 g ∈ R L × d ,
where W 1 g ∈ R d × 3 d and W 2 g ∈ R d × d are learnable weight matrices, b 1 g ∈ R d and b 2 g ∈ R d are learnable bias vectors (broadcast across the L token positions), [ · ; · ; · ] denotes concatenation along the feature dimension (producing a tensor of size L × 3 d ), ⊙ is element-wise multiplication, GELU ( · ) is the Gaussian error linear unit activation [39] applied element-wise to introduce the non-linearity required for the gate to model feature interactions beyond a purely linear projection, and σ ( · ) is the element-wise sigmoid that bounds each gate entry to ( 0 , 1 ) . The fused representation is then obtained by a convex-combination gated fusion followed by layer normalization:
F ˜ = ( 1 − G ) ⊙ T + G ⊙ Dropout ( C ) , F = LayerNorm ( F ˜ ) ∈ R L × d .
The gate G operates at the granularity of individual tokens and feature dimensions. When G i , j ≈ 1 for token i and dimension j, the fused representation draws heavily from the audio-attended output; when G i , j ≈ 0 , the pre-normalization signal is strictly equal to the original text representation, F ˜ i , j = T i , j , and the post-normalization output F i , j differs from LayerNorm ( T ) i , j only by the learnable affine parameters that every layer-norm layer necessarily owns. This design is related to the gating mechanisms used in highway networks [41] and gated multimodal units [42] but adapted to the cross-attention setting where the gate conditions are on both the original and attended representations.
The convex combination ( 1 − G ) ⊙ T + G ⊙ Dropout ( C ) followed by layer normalization [43] stabilizes training and, crucially, permits the fusion module to reduce to a purely text-driven LayerNorm pathway when the learned gate closes, so that harmful audio signals can be filtered out on a per-token basis without structurally altering the fusion. The text mask is applied after fusion to zero out representations at padded positions:
F ← F ⊙ m : , unsqueeze ( − 1 ) text .

3.5. Emotion Mood Head and Training Objectives

The emotion mood head (EMH) aggregates the multimodal representations and produces the final emotion prediction. We employ a multi-view pooling strategy that captures complementary aspects of the fused representation, followed by a two-layer classification head.

3.5.1. Multi-View Pooling

First, we compute masked mean pooling over the fused text tokens and the audio segment tokens:
f ¯ = ∑ i = 1 L m i text · F i ∑ i = 1 L m i text , a ¯ = ∑ k = 1 K m k audio · A k ∑ k = 1 K m k audio ,
where m i text and m k audio are the respective mask values. The final joint representation concatenates four complementary views:
j = [ f ¯ ; a ¯ ; f ¯ ⊙ a ¯ ; | f ¯ − a ¯ | ] ∈ R 4 d .
Each view captures a distinct aspect of the multimodal relationship: (1) f ¯ encodes the audio-enriched text representation; (2) a ¯ preserves the pure audio representation; (3)  f ¯ ⊙ a ¯ captures feature-level agreement between modalities (dimensions where both modalities are active contribute more); and (4) | f ¯ − a ¯ | captures divergence between modalities, which can be informative when audio and lyrics convey conflicting emotional signals (e.g., upbeat music with melancholic lyrics). This multi-view strategy is inspired by natural language inference models [44] that use similar element-wise operations to capture semantic relationships.

3.5.2. Classification Head

The classification head processes the joint representation through a two-layer feed-forward network:
y ^ = W 2 · Dropout GELU W 1 · LayerNorm ( j ) + b 1 + b 2 ,
where W 1 ∈ R d h × 4 d , W 2 ∈ R C × d h , b 1 ∈ R d h , and b 2 ∈ R C are the learnable bias vectors of the first and second linear layers, respectively, d h is the hidden dimension, and C is the number of emotion classes. The output y ^ ∈ R C is the vector of unnormalized class logits (not a probability distribution); the per-class probabilities are obtained only at loss/inference time by applying softmax, as shown in Equation (16) below. Layer normalization [43] is applied before the first linear layer to stabilize the input distribution, and dropout provides regularization.

3.5.3. Training Objectives

The primary training objective is the cross-entropy classification loss:
L cls = − 1 N ∑ i = 1 N ∑ c = 1 C y i , c log exp ( y ^ i , c ) ∑ c ′ = 1 C exp ( y ^ i , c ′ ) ,
where y i , c is the one-hot label, and y ^ i , c is the logit for sample i and class c.
To encourage the text and audio encoders to learn aligned representations in a shared embedding space, we optionally employ an auxiliary contrastive loss based on the InfoNCE objective [45]. The pooled text and audio representations are projected to a shared contrastive space:
t i = W c t t ¯ i ∥ W c t t ¯ i ∥ 2 , a i = W c a a ¯ i ∥ W c a a ¯ i ∥ 2 ,
where t ¯ i = MaskedMean ( T i , m i text ) is the pooled text representation before fusion, and W c t , W c a are learnable projection matrices. The symmetric contrastive loss is
L con = − 1 2 N ∑ i = 1 N log exp ( t i ⊤ a i / τ c ) ∑ j = 1 N exp ( t i ⊤ a j / τ c ) + log exp ( a i ⊤ t i / τ c ) ∑ j = 1 N exp ( a i ⊤ t j / τ c ) ,
where τ c is a temperature parameter that controls the sharpness of the distribution. This loss encourages matched audio–lyrics pairs to have similar representations while pushing unmatched pairs apart, which has been shown to improve multimodal alignment in contrastive audio–language models [35,36].
The total training loss combines the classification and contrastive objectives:
L = L cls + λ con L con ,
where λ con controls the relative weight of the contrastive loss.
From an optimization perspective, the model training can be written as
θ ⋆ = arg min θ E ( a , w , y ) ∼ D L cls ( a , w , y ; θ ) + λ con L con ( a , w ; θ ) ,
where θ denotes all trainable parameters of MELT, including text/audio projection layers, temporal encoder, fusion module, and classification head (with optional fine-tuning of BERT). The corresponding mini-batch gradient update at training step t is
θ t + 1 = θ t − η t ∇ θ L cls ( t ) + λ con L con ( t ) ,
where η t is the step-dependent learning rate determined by AdamW and the scheduler. This formulation highlights that MELT is not only an architectural fusion design but also a jointly optimized multimodal learning objective.

3.5.4. Optimization Strategy

With separate learning rates for different parameter groups, the pre-trained backbones (BERT and MERT) use a lower learning rate ( η backbone = 2 × 10 − 5 ) to preserve pre-trained knowledge, while the randomly initialized modules (projection layers, temporal encoder, fusion module, classification head) use a higher learning rate ( η head = 2 × 10 − 4 ). All parameters are optimized with AdamW [46] with weight decay λ w = 0.01 .
We employ mixed-precision training (FP16) for computational efficiency and gradient clipping with a maximum norm of 1.0 to prevent gradient explosion. Early stopping based on validation F1 score with a patience of 3 epochs is used to prevent overfitting.

4. Experiments

4.1. Dataset

We evaluate MELT on the MoodyLyrics dataset [19], a benchmark for lyrics-based music emotion recognition. The dataset contains songs annotated with four emotion categories based on Russell’s circumplex model: angry (high arousal, negative valence), happy (high arousal, positive valence), relaxed (low arousal, positive valence), and sad (low arousal, negative valence). We use the balanced version of the dataset to ensure equal representation across classes.
Each sample consists of the song’s lyrics text and the corresponding audio file. The dataset is split into training (70%), validation (10%), and test (20%) sets using stratified sampling to maintain class balance across splits. Table 2 summarizes the dataset statistics.
Table 2. Statistics of the MoodyLyrics dataset used in our experiments.

4.2. Baselines

We compare MELT against ten baselines spanning four categories. As unimodal references, BERT-only fine-tunes BERT-base-uncased on lyrics with a classification head on the [CLS] token, while MERT-only freezes MERT-v1-95M [10] and trains a classification head on the mean-pooled final hidden states, matching the frozen-audio-backbone setting used by MELT so that the comparison isolates the role of fusion rather than of audio-backbone fine-tuning.
For simple fusion, Early Fusion concatenates the BERT [CLS] embedding and the MERT mean-pooled embedding before a shared classifier, and Late Fusion trains the two unimodal classifiers independently and averages their output logits at inference time. These two baselines represent the lower bound for multimodal approaches and isolate the contribution of fusion design from backbone quality.
Among tensor-based methods, TFN [23] models bimodal and trimodal interactions via outer products of unimodal representations, and LMF [47] approximates the full tensor product with modality-specific low-rank factors to reduce computational cost. Finally, four attention-based methods are included: MulT [25] applies directional pairwise cross-attention between all modality pairs without requiring temporal alignment; MAG-BERT [29] injects acoustic signals into BERT through a gating mechanism; MISA [30] disentangles modality-invariant and modality-specific representations; and ConFEDE [31] decomposes cross-modal features into consistent and complementary components via contrastive learning.
All baselines share the same pre-trained backbones (BERT-base-uncased and MERT-v1-95 M), training schedule, and hyperparameter search protocol as MELT. Official implementations are used where available; otherwise, faithful re-implementations are provided following the original papers.

4.3. Evaluation Metrics

We evaluate all models on the held-out test set using accuracy, weighted precision, weighted recall, and weighted F1. Given C emotion classes, let TP c , FP c , and FN c denote the true positives, false positives, and false negatives for class c, and let n c be the number of true samples in class c with N = ∑ c = 1 C n c . Per-class precision and recall are
P c = TP c TP c + FP c , R c = TP c TP c + FN c .
The per-class F1 score is their harmonic mean, F 1 c = 2 P c R c / ( P c + R c ) . The weighted variants aggregate these per-class scores proportionally to class size:
P w = ∑ c = 1 C n c N P c , R w = ∑ c = 1 C n c N R c , F 1 w = ∑ c = 1 C n c N F 1 c .
Weighted F1 is adopted as the primary metric since the test split, though stratified, retains slight class-size variation. All experiments are repeated with three random seeds, and results are reported as mean ± standard deviation.

4.4. Implementation Details

MELT is implemented in PyTorch (version 2.1.0) [48] with the Hugging Face Transformers library [49]. The text backbone is BERT-base-uncased (110 M parameters), and the audio backbone is MERT-v1-95 M [10]. The audio backbone is frozen during training, while the text backbone is fine-tuned with a lower learning rate.
Audio waveforms are resampled to 24,000 Hz and segmented into non-overlapping windows of 5 s each, with a maximum of 6 segments per song ( K max = 6 ). Lyrics are tokenized with the BERT tokenizer and truncated to a maximum length of 128 tokens.
The fusion dimension is d = 512 , the segment temporal encoder uses N T = 2 Transformer layers with 8 attention heads, and the TTF module uses 8 cross-attention heads. The classifier hidden dimension is d h = 512 with dropout rate 0.2.
We use the AdamW optimizer with separate learning rates: 2 × 10 − 4 for the classification head and fusion modules and 2 × 10 − 5 for the BERT backbone. Weight decay is set to 0.01, and gradient clipping is applied with a maximum norm of 1.0. Training runs for a maximum of 30 epochs with early stopping based on validation F1 (patience = 3). Mixed-precision training (FP16) is enabled for efficiency. The batch size is 4 with gradient accumulation steps of 2 (effective batch size 8). The contrastive loss weight is λ con = 0.1 , and the contrastive temperature is τ c = 0.07 . All experiments are conducted on a single NVIDIA RTX 3090 GPU (24 GB). Table 3 summarizes the key hyperparameters.
Table 3. Hyperparameter settings for MELT.

4.5. Computational Cost Analysis

Because the TTF module introduces an extra cross-attention path on top of the unimodal backbones, it is important to make the resulting computational overhead explicit rather than relying on informal statements such as “the overhead is modest”. We report five standard indicators on the same RTX 3090 (24 GB) setup described above, averaged over the test split with mixed-precision (FP16) inference: total parameter count (trainable + frozen), per-epoch wall-clock training time (effective batch size 8, 5 s × 6 audio segments, 128 text tokens), per-sample inference latency on a single GPU, peak GPU memory at training time, and per-sample forward FLOPs. Latency is measured with 20 warm-up runs followed by 100 timed runs; FLOPs are measured with fvcore on the inference graph. All numbers are for the full pipeline (tokenization, audio resampling, backbone forward passes, fusion, and classification). Table 4 summarizes the results and places MELT next to the unimodal and the strongest multimodal baselines using the same backbones and input budget.
Table 4. Computational cost on the MoodyLyrics test set, measured with identical inputs (128 text tokens, 6 × 5 s audio segments, FP16, batch size 8) on a single NVIDIA RTX 3090 (24 GB). “Params” reports (trainable/total), training time is per epoch, latency is per-sample inference, memory is peak GPU memory during training, and FLOPs are per-sample forward multiply–accumulate operations (MACs, in 10 9 ) obtained with fvcore; reporting MACs rather than raw FLOPs follows the convention of recent Transformer profiling studies. Training time and latency are averaged over 20 warm-up followed by 100 timed runs. Baseline numbers are obtained by re-implementing each method on our backbones and inputs and may therefore differ slightly from the values reported in the original papers.
Relative to the strongest backbone-only baseline (BERT-only), MELT adds roughly 13 M trainable parameters, an additional ∼33 ms per-sample forward latency, and ∼4.3 GB of peak GPU memory, the bulk of which is attributable to the frozen MERT backbone rather than to the TTF or STE modules. Compared with the closest attention-based multimodal fusion baselines, MELT is within approximately ±2% on every indicator—parameters, training time, latency, memory, and MACs—while delivering a 2.8-point F1 improvement over ConFEDE and a 5.8-point improvement over MulT (Table 5). In other words, the gains reported in Section 4.6 do not come from a fundamentally heavier architecture: they come from the way lyric tokens attend to temporally encoded audio segments through a convex-combination gate.

4.6. Main Results

As shown in Table 5, the results reveal a clear performance hierarchy across fusion paradigms. Unimodal baselines (BERT-only 74.0%, MERT-only 69.0%) confirm that both modalities carry emotion-relevant information, with lyrics being more informative on this dataset. Simple fusion (Early 79.4%, Late 77.9%) and tensor-based methods (TFN 76.5%, LMF 78.3%) improve over unimodal baselines but are limited by their inability to model fine-grained cross-modal interactions. Attention-based methods achieve progressively higher scores: MulT (81.8%) introduces directional cross-attention, MAG-BERT (83.0%) conditions audio on textual context, MISA (83.5%) disentangles shared and private representations, and ConFEDE (84.8%) applies contrastive feature decomposition.
MELT achieves the highest F1 score of 87.6%, surpassing the strongest baseline ConFEDE by 2.8 percentage points and MulT by 5.8 percentage points. This improvement validates the effectiveness of token-level temporal fusion: by allowing each lyric token to attend to temporally encoded audio segments through a gated mechanism, MELT captures fine-grained cross-modal correspondences that global-level and symmetric attention approaches cannot represent. The gap between Early Fusion (79.4%) and MELT (87.6%) further demonstrates that the manner of fusion matters significantly.
Table 5. Main results on the MoodyLyrics test set. Best results are in bold. All values are percentages. ± denotes standard deviation over 3 runs.

4.7. Ablation Study

To understand the contribution of each component in MELT, we conduct an ablation study by systematically removing or replacing individual modules; results are reported in Table 6.
Table 6. Ablation study on the MoodyLyrics test set. Each row removes or replaces one component from the full MELT model.
The largest degradation comes from removing the TTF module (−4.4 points): replacing it with simple concatenation of pooled embeddings strips away the token-level cross-attention, confirming that fine-grained cross-modal interaction is the central driver of performance. Removing the temporal modeling in the STE (−2.3 points) shows that encoding temporal dependencies across segments is essential for capturing a song’s emotional trajectory; without it, each segment is treated as an independent, unordered embedding. Removing multi-view pooling (−2.1 points) demonstrates that the element-wise difference view, which captures cross-modal divergence, provides complementary information that single-pool aggregation cannot recover.
The remaining two components contribute more modestly but remain meaningful. Replacing gated fusion with plain cross-attention (−1.8 points) confirms that the learned gate is necessary to suppress noisy audio signals for semantically neutral tokens, preventing degradation on tokens where audio provides little emotional cue. Removing the contrastive loss (−1.4 points) indicates that the auxiliary alignment objective encourages the text and audio encoders to produce mutually compatible representations, improving the quality of the fused features even when the classification signal alone is insufficient to align the two embedding spaces.

4.8. Analysis

4.8.1. Per-Class Performance

Table 7 breaks down performance by emotion class, revealing a pattern that closely mirrors the structure of Russell’s circumplex model. Sad achieves the highest F1 (91.6%), likely because sad songs exhibit distinctive lexical markers (e.g., “tears”, “alone”, “gone”) combined with characteristic audio features (slow tempo, minor key, soft dynamics). Angry is the second-best category (89.3%), benefiting from strong textual cues (e.g., “hate”, “fight”, “burn”) and high-energy audio patterns. The two positive-valence categories—happy (83.8%) and relaxed (85.7%)—are harder to distinguish, as they share positive sentiment in lyrics but differ primarily in arousal level, which is more readily captured by audio features. Notably, MELT improves most on happy (+8.5 over Early Fusion), suggesting that the token-level fusion is particularly effective at leveraging audio arousal cues to disambiguate positive-valence emotions.
Table 7. Per-class F1 scores (%) on the MoodyLyrics test set.

4.8.2. Confusion Matrix

Table 8 further reveals that misclassifications occur predominantly between emotionally proximate categories in Russell’s circumplex model. The most frequent confusion is between happy and relaxed (11% and 7%, respectively), reflecting the difficulty of discriminating arousal levels within positive valence when both categories share similar harmonic structures and upbeat lyrical tone. The second notable confusion is between angry and sad (7% and 4%), where shared negative valence and high lyrical intensity produce overlapping representations. Confusions across the valence boundary (e.g., angry → happy or sad → relaxed) are rare (1–3%), indicating that MELT reliably captures the dominant valence dimension. This pattern is consistent with findings in the music psychology literature [14] and mirrors the confusion structure reported by prior multimodal MER systems.
Table 8. Confusion matrix for MELT on the MoodyLyrics test set. Values represent classification proportions per true class.

4.8.3. Cross-Validation

To verify that the reported performance generalizes beyond the fixed train/test split, we conduct stratified 5-fold cross-validation on the full MoodyLyrics dataset; per-fold results are listed in Table 9.
Table 9. Stratified 5-fold cross-validation results for MELT on MoodyLyrics. All metrics are weighted averages (%). Results are reported as mean ± standard deviation across five folds.
The results are consistent across folds, with a mean F1 of 87.3% ± 0.8%. The low standard deviation indicates that MELT is not sensitive to the particular data partition. The held-out test F1 (87.6%) falls within one standard deviation of the cross-validation mean (87.3% ± 0.8%, upper bound 88.1%), confirming that the two evaluation protocols are statistically consistent and that the reported performance is not an artifact of a favorable split.

4.8.4. Effect of Audio Backbone

A key design choice in MELT is the selection of the pre-trained audio backbone. To evaluate the generality of the framework across different audio encoders, we replace the default MERT-v1-95M with two alternatives: wav2vec 2.0 [33], a self-supervised speech model, and MuQ [11], a music-specific model with quantized representations. Results are summarized in Table 10.
Table 10. Effect of audio backbone on MELT performance. All metrics are weighted averages (%) on the test set.
All three backbones achieve strong performance within MELT, demonstrating that the proposed fusion architecture is not tightly coupled to a specific audio encoder. MERT-v1-95 M achieves the best results (87.6% F1), which is expected given that MERT was pre-trained specifically on music audio and thus produces representations that are better aligned with the music emotion recognition task. MuQ achieves competitive performance (86.6% F1), only 1.0 percentage point below MERT, suggesting that its quantized music representations also capture emotion-relevant acoustic features effectively. wav2vec 2.0, originally designed for speech, achieves 84.2% F1—still substantially above the unimodal and simple fusion baselines—but falls 3.4 points below MERT, likely because speech-oriented pre-training does not capture music-specific features such as harmony, timbre, and rhythmic patterns as effectively. These results confirm that MELT benefits from music-specific audio pre-training but remains effective even with general-purpose audio encoders.

4.8.5. Attention Visualization

Figure 3 visualizes the cross-attention weights produced by the TTF module, offering interpretable evidence of how lyric tokens align with audio segments. Emotionally charged words such as “tears”, “breaking”, and “alone” attend strongly to the later audio segments (Seg 4–6, corresponding to 15–30 s), which typically contain the emotional climax of the song with higher spectral energy and pronounced dynamic changes. In contrast, “silence” attends primarily to the early segments (Seg 1–2, 0–10 s), aligning with the quieter introductory passage. Function words (“the”, “from”, “in”) and special tokens ([CLS], [SEP]) distribute attention nearly uniformly across all segments, indicating that the model learns to selectively route audio information through semantically meaningful tokens rather than structural ones. A coarse temporal alignment is also visible: tokens appearing earlier in the lyrics tend to attend more to earlier audio segments, suggesting that MELT implicitly captures the structural correspondence between lyrical progression and musical development.
Figure 3. Cross-attention weights from the TTF module for a representative sad song. The y-axis lists lyric tokens (emotion-bearing words highlighted in red bold), and the x-axis represents audio segments at different temporal positions. Darker cells indicate higher attention weights. Emotionally charged tokens (e.g., “tears”, “breaking”, “alone”) attend strongly to specific audio segments, while function words distribute attention uniformly.

4.8.6. Hyperparameter Sensitivity

We investigate the sensitivity of MELT to two key hyperparameters: the number of temporal encoder layers N T and the fusion dimension d. Table 11 reports the test F1 scores under different configurations for each parameter, with all other settings fixed at the default values.
Table 11. Sensitivity analysis of temporal encoder layers N T and fusion dimension d. Each group varies one hyperparameter while keeping the other at its default value ( N T = 2 , d = 512 ). Bold entries indicate the selected configuration.
MELT is relatively robust to both hyperparameters. N T = 2 yields the best performance: a single layer ( N T = 1 ) underfits the temporal structure across segments, whereas four layers ( N T = 4 ) incurs marginal overfitting on the relatively small MoodyLyrics dataset. Similarly, d = 512 offers the best capacity–generalization trade-off; reducing to 256 limits the expressiveness of the fusion module, while increasing to 768 adds parameters without sufficient training data to justify the extra capacity.

4.8.7. Statistical Significance

To verify statistical significance, we apply McNemar’s test [50] comparing MELT against the two strongest baselines on the test set. The test evaluates whether two classifiers disagree on the same samples in a systematic way, using the contingency counts b (samples correct only by the baseline) and c (samples correct only by MELT); results are reported in Table 12.
Table 12. McNemar’s test comparing MELT against the two strongest baselines on the MoodyLyrics test set. b: samples correct only by baseline; c: samples correct only by MELT.
Both comparisons yield statistically significant outcomes: the test against ConFEDE ( χ 2 = 4.84 , p = 0.028 ) is significant at α = 0.05 , and that against MISA ( χ 2 = 10.70 , p = 0.001 ) at α = 0.01 , confirming that the observed gains are not attributable to random variation.

4.8.8. Robustness to Missing and Perturbed Modalities

An important question for any token-level fusion model is whether it still behaves reasonably when one of the modalities is entirely unavailable or noisy at inference time, i.e., whether the fusion degrades gracefully. We therefore evaluate the same trained model (no retraining, no fine-tuning) under four perturbation regimes applied only at test time: (i) Text only, where the audio mask m audio is set to all-zero so that the TTF module cannot attend to any audio segment and the audio branch of the multi-view pooling is replaced by a zero vector (handling the otherwise-undefined 0 / 0 in the masked mean when no segments are retained); (ii) Audio only, where the text mask m text is set to all-zero except for the [CLS]/[SEP] tokens, so that the fused-text branch f ¯ degenerates to the [CLS]/[SEP]-only mean while the raw audio branch a ¯ in the multi-view pooling continues to carry the audio signal; (iii) Audio random mask, where 50% of the audio segments per song are randomly zero-masked, averaged over five random seeds; and (iv) Text random mask, where 50% of the non-special lyric tokens per song are randomly replaced with the [MASK] token, averaged over five random seeds. All numbers are on the MoodyLyrics test split and are weighted F1 (%), with the full-modality result repeated in the first row for reference. Table 13 reports the corresponding robustness results.
Table 13. Robustness of MELT under missing/perturbed modalities at inference time. The model is trained once with both modalities and then evaluated under each regime without retraining. All values are weighted F1 (%) on the MoodyLyrics test set. ΔF1 is relative to the full-modality result.
Three observations follow. First, when audio is entirely unavailable, MELT still reaches 74.9% F1, essentially matching the dedicated BERT-only unimodal baseline (74.0%, Table 5). This is not a coincidence but a direct consequence of Equation (11): when the audio mask drives C to be uninformative, the learned gate saturates toward zero and the pre-normalization signal F ˜ is exactly the text representation T , so the fusion module collapses to a LayerNorm-regularized text pathway. The minor 0.9-point positive offset is consistent with this interpretation, since the learnable LayerNorm affine parameters in Equation (11) provide a small amount of additional regularization on top of the raw BERT output; the dropout term vanishes in this limit because its input G ⊙ C is the zero tensor. Second, the audio-only regime drops more sharply (−22.5 points) and lands below the MERT-only unimodal baseline (69.0%), which is expected for two compounding reasons: (a) MELT is trained jointly with both modalities, and its EMH is calibrated to the full four-view joint representation, so masking the text side at test time produces a distribution shift that a dedicated audio-only classifier does not suffer from; (b) the fusion is asymmetric—text queries audio but not vice versa—so when the text side degenerates to [CLS]/[SEP] only, the text-conditioned audio-attended branch f ¯ becomes near-vacuous, and only the raw audio branch a ¯ carries emotion evidence into the joint representation. Third, partial perturbation is mild: masking half of the audio segments costs only 4.2 F1 points, showing that the STE’s temporal redundancy and the token×feature gate help the model re-route attention to the remaining segments. Together with the full-modality result, these numbers delimit the operating envelope of MELT: it is designed for paired audio–lyrics inputs, tolerates up to roughly half of each stream being lost, and is not intended as a drop-in replacement for a strong text-only classifier when audio is entirely absent.

5. Discussion

The experimental results demonstrate that token-level fusion between lyrics and temporally encoded audio segments provides a meaningful advantage over conventional fusion strategies for music emotion recognition. Several observations merit further discussion.
First, the performance gap between MELT and the Early/Late Fusion baselines highlights the importance of fine-grained cross-modal interaction. Global-level fusion discards the internal structure of both modalities, treating each song as a single embedding pair. In contrast, MELT allows individual lyric tokens to selectively attend to specific temporal positions in the audio, capturing nuanced correspondences such as emotionally charged words aligning with musically intense passages.
Second, the gating mechanism in the TTF module plays a critical role. Without gating, the cross-attention output may introduce noise when the audio signal is ambiguous or when certain lyric tokens carry strong emotional signals on their own. The learned gate provides an adaptive mechanism to balance audio and text contributions at the token level.
Third, the multi-view pooling strategy in the EMH captures complementary aspects of the multimodal representation. The element-wise product highlights agreement between modalities, while the absolute difference captures divergence—both of which are informative for emotion classification.
Despite these strengths, several limitations should be acknowledged. First, the MoodyLyrics dataset contains approximately 2000 songs, which is relatively small by modern deep learning standards. Larger and more diverse datasets would provide a more rigorous evaluation of the model’s generalization ability. Second, the current evaluation is limited to English-language songs; the effectiveness of MELT on multilingual lyrics remains to be investigated. Third, the model relies on pre-trained backbones (BERT and MERT), and its performance is inherently bounded by the quality of these representations. Finally, the token-level fusion mechanism introduces additional computational cost compared to simpler fusion strategies, though the overhead is modest given the small number of audio segments ( K max = 6 ).
To delimit the applicability of MELT clearly rather than leave it implicit, we explicitly state the scope under which the results reported in this paper should be interpreted. The validated operating regime is (i) English lyrics tokenized by the BERT-base-uncased WordPiece vocabulary; (ii) paired audio–lyrics inputs, with both streams available at training time; (iii) four-class categorical emotion prediction following Russell’s circumplex quadrants on the MoodyLyrics benchmark; and (iv) songs whose first 30 s provide a representative emotional signal (6 segments of 5 s). Within this envelope, Section 4.8.8 shows that up to ∼50% of either modality can be masked at inference without a collapse, and Section 4.5 shows that the additional cost over a MulT-style baseline is within ±2% on all five indicators we measured. Outside this envelope—continuous valence–arousal regression, non-English or code-switched lyrics, completely missing modalities at training time, and songs whose emotional arc is concentrated outside the leading 30 s—MELT has not been evaluated, and we treat these settings as clearly scoped future work rather than as implicit claims of this paper.

6. Conclusions

We presented MELT, a multimodal framework for music emotion recognition that introduces token-level temporal fusion between lyrics and audio. The key innovation is the TTF module, which performs gated cross-attention from lyric tokens to temporally encoded audio segments, enabling fine-grained cross-modal interaction that conventional fusion strategies cannot achieve.
Experiments on the MoodyLyrics dataset with four emotion classes demonstrate that MELT outperforms both unimodal baselines and standard multimodal fusion approaches. Ablation studies confirm that each component—the segment temporal encoder, the token-level temporal fusion module, the gating mechanism, the contrastive loss, and the multi-view pooling—contributes to the overall performance.
Future work includes extending MELT to continuous valence–arousal prediction, evaluating on larger and more diverse datasets, exploring multilingual lyrics, and investigating the interpretability of the learned cross-modal attention patterns for music analysis applications.

Author Contributions

Conceptualization, Y.Y. and J.C.; methodology, J.C.; software, J.C.; validation, Y.Y. and J.C.; formal analysis, Y.Y.; investigation, J.C.; resources, Y.Y.; data curation, Y.Y. and J.C.; writing—original draft, Y.Y., Z.T. and J.C.; writing—review and editing, Y.Y., Z.T. and J.C.; visualization, J.C.; supervision, Y.Y. and J.C.; project administration, J.C.; funding acquisition, J.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research work is funded by the FRG-25-064-FA and granted by the Research Fund of Macao University of Science and Technology (FRG-MUST). This work was supported by the Science and Technology Development Fund of Macau Project 0087/2025/ITP2.

Data Availability Statement

The MoodyLyrics dataset used in this study was originally introduced by Çano and Morisio and is publicly available at https://github.com/workmanjack/lyric-mood-classification, accessed on 11 May 2026.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MERMusic Emotion Recognition
MIRMusic Information Retrieval
LSELyrics Semantic Encoder
STESegment Temporal Encoder
TTFToken-level Temporal Fusion
EMHEmotion Mood Head
MELTMusic Emotion Learning with Temporal token-level fusion

References

  1. Yang, Y.-H.; Chen, H.H. Machine Recognition of Music Emotion: A Review. ACM Trans. Intell. Syst. Technol. 2012, 3, 1–30. [Google Scholar] [CrossRef] [Scilit]
  2. Kim, Y.E.; Schmidt, E.M.; Migneco, R.; Morton, B.G.; Richardson, P.; Scott, J.; Speck, J.A.; Turnbull, D. Music Emotion Recognition: A State of the Art Review. In Proceedings of the 11th International Society for Music Information Retrieval Conference (ISMIR), Utrecht, The Netherlands, 9–13 August 2010; pp. 255–266. [Google Scholar]
  3. Russell, J.A. A Circumplex Model of Affect. J. Personal. Soc. Psychol. 1980, 39, 1161–1178. [Google Scholar] [CrossRef] [Scilit]
  4. Zhao, P.; Fan, R.; Wang, S.; Shen, L.; Zhang, Q.; Ke, Z.; Zheng, T. Contextual Bandits for Unbounded Context Distributions. In Proceedings of the 42nd International Conference on Machine Learning (ICML), Vancouver, BC, Canada, 13–19 July 2025; pp. 77487–77520. [Google Scholar]
  5. Hu, X.; Downie, J.S. Improving Mood Classification in Music Digital Libraries by Combining Lyrics and Audio. In Proceedings of the 10th Annual Joint Conference on Digital Libraries (JCDL), Gold Coast, Australia, 21–25 June 2010; pp. 159–168. [Google Scholar]
  6. Delbouys, R.; Hennequin, R.; Piccoli, F.; Royo-Letelier, J.; Moussallam, M. Music Mood Detection Based on Audio and Lyrics with Deep Neural Net. In Proceedings of the 19th International Society for Music Information Retrieval Conference (ISMIR), Paris, France, 23–27 September 2018. [Google Scholar]
  7. Laurier, C.; Grivolla, J.; Herrera, P. Multimodal Music Mood Classification Using Audio and Lyrics. In Proceedings of the 7th International Conference on Machine Learning and Applications (ICMLA), San Diego, CA, USA, 11–13 December 2008; pp. 688–693. [Google Scholar]
  8. Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. [Google Scholar]
  9. Feng, X.; Guo, D.; Ye, M. DMoE-LLM: A dual-branch mixture-of-experts framework with large language models for wind power forecasting. Expert Syst. Appl. 2026, 325, 132637. [Google Scholar] [CrossRef] [Scilit]
  10. Li, Y.; Yuan, R.; Zhang, G.; Ma, Y.; Chen, X.; Yin, H.; Lin, C.; Ragni, A.; Benetos, E.; Gyenge, N.; et al. MERT: Acoustic Music Understanding Model with Large-Scale Self-supervised Training. In Proceedings of the 12th International Conference on Learning Representations (ICLR), Vienna, Austria, 7–11 May 2024. [Google Scholar]
  11. Zhu, H.; Zhou, Y.; Chen, H.; Yu, J.; Ma, Z.; Gu, R.; Luo, Y.; Tan, W.; Chen, X. MuQ: Self-Supervised Music Representation Learning with Mel Residual Vector Quantization. arXiv 2025, arXiv:2501.01108. [Google Scholar] [CrossRef] [Scilit]
  12. Thayer, R.E. The Biopsychology of Mood and Arousal; Oxford University Press: New York, NY, USA, 1989. [Google Scholar]
  13. Ekman, P. An Argument for Basic Emotions. Cogn. Emot. 1992, 6, 169–200. [Google Scholar] [CrossRef] [Scilit]
  14. Eerola, T.; Vuoskoski, J.K. A Comparison of the Discrete and Dimensional Models of Emotion in Music. Psychol. Music 2011, 39, 18–49. [Google Scholar] [CrossRef] [Scilit]
  15. Mihalcea, R.; Strapparava, C. Lyrics, Music, and Emotions. In Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), Jeju Island, Republic of Korea, 12–14 July 2012; pp. 590–599. [Google Scholar]
  16. Choi, K.; Fazekas, G.; Sandler, M.; Cho, K. Convolutional Recurrent Neural Networks for Music Classification. In Proceedings of the 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017; pp. 2392–2396. [Google Scholar]
  17. Malik, M.; Adavanne, S.; Drossos, K.; Virtanen, T.; Ticha, D.; Jarina, R. Stacked Convolutional and Recurrent Neural Networks for Music Emotion Recognition. In Proceedings of the 14th Sound and Music Computing Conference (SMC), Espoo, Finland, 5–8 July 2017. [Google Scholar]
  18. Won, M.; Hung, Y.-N.; Le, D. Evaluation of Self-Supervised Pre-Training Strategies for Music Tagging. In Proceedings of the 22nd International Society for Music Information Retrieval Conference (ISMIR), Online, 8–12 November 2021. [Google Scholar]
  19. Çano, E.; Morisio, M. MoodyLyrics: A Sentiment Annotated Lyrics Dataset. In Proceedings of the 2017 International Conference on Intelligent Systems, Metaheuristics & Swarm Intelligence (ISMSI), Hong Kong, China, 25–27 March 2017; pp. 118–124. [Google Scholar]
  20. Ke, Z.; Cao, Y.; Chen, Z.; Yin, Y.; He, S.; Cheng, Y. Early Warning of Cryptocurrency Reversal Risks via Multi-Source Data. Financ. Res. Lett. 2025, 80, 107890. [Google Scholar] [CrossRef] [Scilit]
  21. Baltrušaitis, T.; Ahuja, C.; Morency, L.-P. Multimodal Machine Learning: A Survey and Taxonomy. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 41, 423–443. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Wang, W.; Tran, D.; Feiszli, M. What Makes Training Multi-Modal Classification Networks Hard? In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 12695–12705. [Google Scholar]
  23. Zadeh, A.; Chen, M.; Poria, S.; Cambria, E.; Morency, L.-P. Tensor Fusion Network for Multimodal Sentiment Analysis. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP), Copenhagen, Denmark, 7–11 September 2017; pp. 1103–1114. [Google Scholar]
  24. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
  25. Tsai, Y.-H.H.; Bai, S.; Thattai, P.P.; Agrawal, P.; Tulsiani, S.; Morency, L.-P. Multimodal Transformer for Unaligned Multimodal Language Sequences. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), Florence, Italy, 28 July–2 August 2019; pp. 6558–6569. [Google Scholar]
  26. Lu, J.; Batra, D.; Parikh, D.; Lee, S. ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks. In Proceedings of the 33rd International Conference on Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 8–14 December 2019; pp. 13–23. [Google Scholar]
  27. Li, X.; Yin, X.; Li, C.; Zhang, P.; Hu, X.; Zhang, L.; Wang, L.; Hu, H.; Dong, L.; Wei, F.; et al. Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks. In Proceedings of the 16th European Conference on Computer Vision (ECCV), Glasgow, UK, 23–28 August 2020; pp. 121–137. [Google Scholar]
  28. Nagrani, A.; Yang, S.; Arnab, A.; Jansen, A.; Schmid, C.; Sun, C. Attention Bottlenecks for Multimodal Fusion. In Proceedings of the 35th International Conference on Neural Information Processing Systems (NeurIPS), Online, 6–14 December 2021; pp. 14200–14213. [Google Scholar]
  29. Rahman, W.; Hasan, M.K.; Lee, S.; Zadeh, A.; Mao, C.; Morency, L.-P.; Hoque, E. Integrating Multimodal Information in Large Pretrained Transformers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL), Online, 5–10 July 2020; pp. 2359–2369. [Google Scholar]
  30. Hazarika, D.; Zimmermann, R.; Poria, S. MISA: Modality-Invariant and -Specific Representations for Multimodal Sentiment Analysis. In Proceedings of the 28th ACM International Conference on Multimedia (MM), Seattle, WA, USA, 12–16 October 2020; pp. 1122–1131. [Google Scholar]
  31. Yang, J.; Yu, Y.; Niu, D.; Guo, W.; Xu, Y. ConFEDE: Contrastive Feature Decomposition for Multimodal Sentiment Analysis. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL), Toronto, ON, Canada, 9–14 July 2023; pp. 6795–6809. [Google Scholar]
  32. Liu, Y.; Ott, M.; Goyal, N.; Du, J.; Joshi, M.; Chen, D.; Levy, O.; Lewis, M.; Zettlemoyer, L.; Stoyanov, V. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv 2019, arXiv:1907.11692. [Google Scholar]
  33. Baevski, A.; Zhou, Y.; Mohamed, A.; Auli, M. wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations. In Proceedings of the 34th International Conference on Neural Information Processing Systems (NeurIPS), Online, 6–12 December 2020; pp. 12449–12460. [Google Scholar]
  34. Hsu, W.-N.; Bolte, B.; Tsai, Y.-H.H.; Lakhotia, K.; Salakhutdinov, R.; Mohamed, A. HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units. IEEE/ACM Trans. Audio Speech Lang. Process. 2021, 29, 3451–3460. [Google Scholar] [CrossRef] [Scilit]
  35. Elizalde, B.; Deshmukh, S.; Al Ismail, M.; Wang, H. CLAP: Learning Audio Concepts from Natural Language Supervision. In Proceedings of the 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece, 4–10 June 2023; pp. 1–5. [Google Scholar]
  36. Manco, I.; Benetos, E.; Quinton, E.; Fazekas, G. Contrastive Audio-Language Learning for Music. In Proceedings of the 23rd International Society for Music Information Retrieval Conference (ISMIR), Bengaluru, India, 4–8 December 2022. [Google Scholar]
  37. Howard, J.; Ruder, S. Universal Language Model Fine-tuning for Text Classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), Melbourne, Australia, 15–20 July 2018; pp. 328–339. [Google Scholar]
  38. Peters, M.E.; Neumann, M.; Iyyer, M.; Gardner, M.; Clark, C.; Lee, K.; Zettlemoyer, L. Deep Contextualized Word Representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), New Orleans, LA, USA, 1–6 June 2018; pp. 2227–2237. [Google Scholar]
  39. Hendrycks, D.; Gimpel, K. Gaussian Error Linear Units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
  40. Yao, Z.; Zhu, Q.; Qin, P. Data-Driven Secure Consensus Control of Multi-Agent Systems: A Value Iteration Approach. Circuits Syst. Signal Process. 2026, 1–17. [Google Scholar] [CrossRef] [Scilit]
  41. Srivastava, R.K.; Greff, K.; Schmidhuber, J. Highway Networks. arXiv 2015, arXiv:1505.00387. [Google Scholar] [CrossRef] [Scilit]
  42. Arevalo, J.; Solorio, T.; Montes-y-Gómez, M.; González, F.A. Gated Multimodal Units for Information Fusion. In Proceedings of the 5th International Conference on Learning Representations (ICLR) Workshop, Toulon, France, 24–26 April 2017. [Google Scholar]
  43. Ba, J.L.; Kiros, J.R.; Hinton, G.E. Layer Normalization. arXiv 2016, arXiv:1607.06450. [Google Scholar] [CrossRef] [Scilit]
  44. Chen, Q.; Zhu, X.; Ling, Z.-H.; Wei, S.; Jiang, H.; Inkpen, D. Enhanced LSTM for Natural Language Inference. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL), Vancouver, BC, Canada, 30 July–4 August 2017; pp. 1657–1668. [Google Scholar]
  45. van den Oord, A.; Li, Y.; Vinyals, O. Representation Learning with Contrastive Predictive Coding. arXiv 2018, arXiv:1807.03748. [Google Scholar]
  46. Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. In Proceedings of the 7th International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  47. Liu, Z.; Shen, Y.; Lakshminarasimhan, V.B.; Liang, P.P.; Zadeh, A.; Morency, L.-P. Efficient Low-rank Multimodal Fusion with Modality-Specific Factors. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), Melbourne, Australia, 15–20 July 2018; pp. 2247–2256. [Google Scholar]
  48. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In Proceedings of the 33rd International Conference on Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 8–14 December 2019; pp. 8026–8037. [Google Scholar]
  49. Wolf, T.; Debut, L.; Sanh, V.; Chaumond, J.; Delangue, C.; Moi, A.; Cistac, P.; Rault, T.; Louf, R.; Funtowicz, M.; et al. Transformers: State-of-the-Art Natural Language Processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations (EMNLP), Online, 16–20 November 2020; pp. 38–45. [Google Scholar]
  50. McNemar, Q. Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages. Psychometrika 1947, 12, 153–157. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.