收藏切换
R3DG: Retrieve, Rank, and Reconstruction with Different Granularities for Multimodal Sentiment Analysis
收藏切换
PDF
Yan Zhuang1, Yanru Zhang1, 2, Jiawen Deng1, *, Fuji Ren1, 2, *
Research. Vol 8 Article ID 0729
Less
收藏切换
Research. Vol 8 Article ID 0729
• Research Article •
R3DG: Retrieve, Rank, and Reconstruction with Different Granularities for Multimodal Sentiment Analysis
Full
Yan Zhuang1, Yanru Zhang1, 2, Jiawen Deng1, *, Fuji Ren1, 2, *
Affiliations
  • 1College of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China.
  • 2Shenzhen Institute for Advanced Study, University of Electronic Science and Technology of China, Shenzhen 518000, China.
Published: 2025-07-20 doi: 10.34133/research.0729
Outline
收藏切换

Multimodal sentiment analysis (MSA) aims to assess emotional states by integrating information from text, audio, and video. However, the heterogeneous nature of these modalities presents substantial challenges for accurate sentiment prediction. Existing approaches typically align pairs of modalities using attention mechanisms or contrastive learning, which are computationally expensive. Additionally, they often rely on a single granularity of alignment, either by averaging features over all time steps or aligning features at each individual time step. These approaches overlook the fact that emotional expression can vary across individuals and contexts, requiring multiple granularities to capture emotion effectively. To address these challenges, we propose a novel framework, Retrieve, Rank, and Reconstruction with Different Granularities (R3DG). R3DG segments the audio and video modalities into multiple representations at varying granularities based on their temporal durations. It then selects the most relevant representations that align closely with the text modality. To preserve the original information, R3DG reconstructs the audio and video data using the selected representations. Finally, the fused audio, video, and text features are aligned and combined for sentiment prediction, reducing the need for multiple alignment steps. Extensive experiments on 5 benchmark MSA datasets demonstrate that R3DG outperforms existing methods and achieves substantial reductions in computational time. Code is available at https://github.com/YetZzzzzz/R3DG.

Yan Zhuang, Yanru Zhang, Jiawen Deng, Fuji Ren. R3DG: Retrieve, Rank, and Reconstruction with Different Granularities for Multimodal Sentiment Analysis[J]. Research, 2025 , 8 (7) : 0729 - . DOI: 10.34133/research.0729
Multimodal sentiment analysis (MSA) aims to evaluate emotional states by integrating information from text, audio, and video modalities [1,2]. With the rapid advancements in deep learning and human–computer interaction, MSA has gained increasing attention. However, the heterogeneity between these modalities presents challenges: while texts provide rich global context [3–5], audio and video offer fragmented, continuous data. To address these challenges, most existing methods attempt to align pairs of modalities [6–8]. For example, LNLN [8] aligns audio and video with text to capture multimodal interactions, and MulT [9] aligns pairs of modalities at each time step, which can be seen in Fig. 1B.
While effective, these methods often use a fixed alignment granularity. Some align at a coarse-grained level, pooling representations over all time steps [10–12], while others use fine-grained, step-by-step alignment [9,13] . Both approaches overlook the variability of emotional expression across individuals and contexts, which requires multiple granularities to accurately capture emotional cues. For example, coarse-grained methods may miss subtle emotional cues like “head nod”, “frown”, or “high pitch”, especially in long videos. On the other hand, fine-grained alignment can lead to fragmented representations, where emotional events are divided into multiple time steps, creating data redundancy. Furthermore, these methods are computationally expensive due to the need for extensive attention-based alignment.
Additionally, some methods align modalities based on word-level synchronization [10,12], such as P2FA [14], as shown in Fig. 1A. This process synchronizes word occurrences in audio and video with the corresponding text. While these methods ensure consistent alignment of acoustic and visual features with text, they still suffer from the limitation of using a fixed granularity. Furthermore, many of these alignment-based methods require substantial computational resources. For example, pairwise cross-modal alignment requires multiple rounds of attention-based computations, while contrastive learning methods often involve time-consuming pre-training.
To address these challenges, we propose a novel framework called Retrieve, Rank, and Reconstruction with Different Granularities (R3DG). As illustrated in Fig. 1C, R3DG segments video and audio into representations at multiple granularities and selects those most similar to the “[CLS]” token of BERT textual representations [15]. To preserve the original information in the selected representations, R3DG reconstructs them and minimizes the loss between the reconstructed and original representations. Since the selected video and audio representations are highly similar to the textual representations, this step implicitly aligns them, eliminating the need for explicit alignment between these modalities and text. However, as there is no direct alignment between video and audio, we first align and fuse these representations before aligning, fusing, and predicting with the textual representation. This process minimizes the number of alignment steps, thereby reducing computational costs by limiting the need for attention-based alignment across the video, audio, and text modalities.
The key contributions of our work are as follows:
• We introduce the R3DG framework, which effectively aligns audio and video modalities with text for MSA.
• R3DG integrates representations of varying granularities from video and audio, enhancing its ability to capture emotional nuances across modalities.
• R3DG achieves state-of-the-art performance on multiple datasets while substantially reducing computational time.
To comprehensively assess the applicability of R3DG and its performance across different alignment settings, we evaluate it on 5 datasets across 3 tasks. The first task is MSA, which involves both sentiment intensity assessment and sentiment categorization. For this task, we use the MOSI [1] and MOSEI [2] datasets, and evaluate the models in both unaligned and word-level aligned settings. The second task is multimodal emotion recognition (MER), which focuses on classifying emotions into 7 categories using the unaligned CHERMA [16] dataset. The final task is multimodal humor detection (MHD), which aims to detect humorous content using the word-level aligned UR-FUNNY [17] and MUStARD [18] datasets. Detailed descriptions of these datasets are provided in Materials and Methods.
For the MSA task, we evaluate performance using the following metrics: (a) MAE (mean absolute error) to quantify differences between predicted and actual values; (b) Corr (correlation) to assess the relationship between regression values and ground truth; (c) Acc-2 for binary classification accuracy; (d) Acc-7 for 7-class classification accuracy; and (e) F1 score for binary classification tasks. Notably, Acc-2 and F1 scores are reported using segmental notations such as “negative/non-negative” and “negative/positive”, respectively. “Non-negative” encompasses scores equal to or above zero, while “positive” specifically refers to scores greater than zero. For the MHD task, we report the Acc-2 results based on the UR-FUNNY and MUStARD datasets. In the MER task, we report the F1 score for each emotion category, as well as the averaged F1 score across all 7 classes.
To provide a thorough comparison, we selected a diverse set of baseline models and evaluated them alongside R3DG across multiple datasets. These baselines can be broadly grouped into 2 major categories: fusion-based methods and alignment-based methods, depending on their core strategies for handling multimodal data.
Fusion-based models focus on effectively integrating information from different modalities. These include methods that model modality interactions explicitly or apply low-rank fusion and mutual information maximization techniques. For instance, TFN [19] captures unimodal, bimodal, and trimodal interactions through a 3-way Cartesian product, while LMF [20] processes each modality separately before applying low-rank fusion. E-MIB [21] reduces noise by enforcing an information bottleneck on unimodal representations. Other models, such as MAG-BERT [22], utilize pre-trained BERT-based transformers [15] to fuse audio and video with text, and SELF-MM [23] jointly trains multimodal and unimodal tasks to generate self-supervised subtask labels. While methods like ICCN [24], SPT [25], and AGM [26] learn the relations between the modalities before fusing them.
Alignment-based models, on the other hand, emphasize bridging gaps between heterogeneous modalities. These can be further divided into 3 subcategories: (a) Representation decomposition methods separate features into modality-specific and modality-shared components. For example, MISA [27] and FDMER [28] separate representations into distinct subspaces, while models like DFT [29], PMR [30], LFMIM [16], and BCFN [31] use shared transformers to capture common information across modalities. (b) Contrastive learning methods align modalities by encouraging similar representations for semantically related inputs. HyCon [11] clusters cross-modal samples with the same label, MCL [10] calculates correlations based on label consistency, and CONFEDE [12] further disentangles representations into similarity and dissimilarity components. (c) Cross-modal attention methods directly model interactions between modalities using attention mechanisms. Examples include MulT [9], TETFN [32], LNLN [8], ALMT [33], MIL [34], and MSG [35]. In the approaches mentioned above, all models use single-level granularity alignment. For instance, MulT aligns modalities at the finest granularity, where each time step’s representation is aligned, while models like CONFEDE and MCL align modalities by averaging representations across all time steps and using a global representation.
In this section, we analyze the performance of R3DG and baseline models on the MSA task, which can be seen in Tables 1 and 2. For the MOSI dataset, in both the unaligned and word-level aligned settings, R3DG achieves the best results in “negative/positive” Acc-2 and F1 scores. In the unaligned setting, R3DG outperforms MulT, which aligns the finest-grained local representations at each timestep. This demonstrates the effectiveness of R3DG in leveraging multiple granularities. Additionally, R3DG achieves the highest Acc-7 score in this setting, indicating its ability to better capture sentiment intensity across various emotional levels. In the word-level alignment setting for MOSI, R3DG ranks first or second across all metrics, outperforming models like MCL, CONFEDE, and MulT, which use a single granularity for alignment. This confirms the advantage of using multiple granularities for modality alignment, even when word-level alignment is applied.
For the MOSEI dataset, Table 2 illustrates that R3DG continues to outperform other models. In the unaligned setting, it achieves the best overall performance, surpassing existing models in Acc-7, Corr, “negative/positive” Acc-2, and F1. In the word-level alignment setting, R3DG also shows strong performance, surpassing replicated models like CONFEDE and MCL, which incorporate additional alignment through label information and contrastive learning. These results provide strong evidence of the effectiveness of R3DG in handling MSA across various settings.
In this section, we compare the performance of R3DG and baseline models on the MER task, which can be seen in Table 3. R3DG achieves the second-best performance in the “Fear” and “Disgust” categories, while outperforming all other models in the remaining emotion categories. This strong performance can be attributed to the varying duration of different emotions. Single-granularity models often struggle to capture the diverse emotional cues accurately. However, R3DG’s use of multi-granularity representations allows it to cover a wider range of temporal selections, making it more adept at identifying various emotional cues. Overall, R3DG outperforms the current best models by 1.97% across all categories, demonstrating the advantage of using multi-granular representations to align diverse emotional cues and deliver more robust performance. In contrast, other alignment methods rely on a single granularity, limiting their ability to capture the full range of emotional categories effectively.
In this section, we compare the performance of R3DG and baseline models on the MHD task, which can be seen in Table 4. R3DG shows a marked performance advantage, with a 1.51% improvement on the UR-FUNNY dataset and a 4.41% improvement on the MUStARD dataset. Both datasets provide contextual information for each utterance, with an average context duration of about 15 s, while the target utterances typically span only around 5 s, leading to longer video content. This advantage highlights the limitations of methods that rely on single-granularity representations across the time dimension. Methods that use coarse-grained global representations often fail to capture short-term emotional fluctuations because they average over large portions of neutral content, while fine-grained representations may split emotional events across multiple representations, introducing new errors. In contrast, R3DG effectively integrates multi-granular information, selecting the most relevant aspects to improve performance.
Despite R3DG demonstrating strong performance across multiple datasets, it is important to further investigate whether R3DG truly utilizes information from the video and audio modalities, and which modality is more crucial. Additionally, we explore whether performance changes when similarity is considered without retaining sufficient original information. In this section, we conduct a detailed analysis to address these questions.
We first examine the importance of each modality across the datasets in Table 5. By systematically removing one modality at a time, we assess the impact on performance. For example, a model labeled “V+A” excludes the textual modality and uses only audio and video for fusion, along with their corresponding retrieval, ranking, reconstruction, and fusion components. The complete model, which includes all 3 modalities, is referred to as “V+A+T”. Table 5 shows that the removal of any modality leads to a performance drop across all datasets. Notably, excluding the textual modality causes the largest decline in performance, particularly on the MOSI and MOSEI datasets. This is partly because other modalities rely on the textual modality to select similar representations, and replacing it with an average representation loses important information. Additionally, the textual modality tends to dominate sentiment prediction in datasets like MOSI and MOSEI [36,37]. In contrast, the CHERMA dataset is less reliant on text, with audio and visual modalities playing a more marked role.
Next, we analyze whether more granular representations lead to better performance. We compared coarse-grained global representations and fine-grained local representations. Specifically, we examined global representations obtained through max-pooling over the time dimension for all modalities, denoted as Retri1, which aligns with methods like MAG-BERT [22]. We also explored using the finest-grained local representations by selecting the top 40 representations, referred to as Retriall. This is in contrast to models like MulT [9], which use a single granularity in unaligned settings. Our ablation experiments consistently show that finer-grained top-k representations lead to better performance than global representations, achieving state-of-the-art results on the CHERMA dataset. However, on the MOSI and MOSEI datasets, using a single granularity is suboptimal compared to integrating multiple granularities, highlighting the benefits of multi-granularity integration.
We then investigate whether the number of representations chosen for fusion impacts performance. Specifically, we examined 2 ranking strategies. In the first experiment, labeled “Random”, we randomly selected k representations from all granularity levels. In the second experiment, labeled Allgran, we fused all representations across granularities without selection. Our results show that models using all representations across granularities perform better than those relying on random selection. However, they still underperform compared to R3DG selecting the most relevant top-k local representations. This finding emphasizes the importance of effectively selecting and prioritizing key local representations when integrating features from multiple granularities.
Finally, we evaluate the impact of excluding the reconstruction component, which attempts to retain the original information of selected representations. Our results indicate that omitting the reconstruction component yields performance results similar to those of the full R3DG model. This suggests that the top-k representations already capture a sufficient amount of information. Additionally, in datasets like MOSI and MOSEI, varying video lengths often lead to zero-padding during feature extraction, which may enhance performance. In contrast, datasets like CHERMA, which have more uniform feature values and consistent video durations, show a more noticeable performance drop when the reconstruction component is removed.
Although Table 5 highlights the importance of each component of R3DG in its performance, there are still several aspects that need further investigation. For instance, while R3DG incorporates representations from different granularities of the video and audio modalities, questions remain about how many local representations from each granularity should be selected for alignment. Additionally, it is unclear where these selected representations are located within the original samples and whether there is any overlap of information between representations of different granularities. Furthermore, the specific contribution of the reconstruction component to R3DG’s overall performance also requires closer examination. This section delves into these questions in greater detail.
In this section, we investigate the effect of selecting varying numbers of local representations from the audio and video modalities on the CHERMA dataset, denoted by different values of km, where m∈av represents the audio (a) and video (v) modality. The default configuration involves granularities of [5, 10, 15, 20], resulting in a total of 50 local representations. As shown in Fig. 2A, increasing the number of selected local representations substantially improves R3DG’s performance by providing more information. Specifically, for the audio modality, selecting 10 representations yields the highest average prediction accuracy, while for the video modality, selecting 15 representations results in the best performance. These findings demonstrate the effectiveness of selecting different numbers of local representations for different modalities and granularities.
In this section, we analyze the distribution of indices for the selected local representations to examine their locations and determine whether there is any overlap in the information they provide. Specifically, we visualize the frequency of selection and the average cosine similarity of indices across the unaligned MOSI and UR-FUNNY datasets. The analysis is conducted using the default settings with granularities of [5, 10, 15, 20], resulting in a total of 50 local representations across both the video and audio modalities.
As shown in Fig. 3, indices selected more frequently tend to exhibit higher cosine similarities. In particular, representations with more substantial temporal coverage—such as the top 5—are selected more often and have higher average cosine similarities. On the other hand, representations with shorter time spans, located toward the end of the axis, are selected less frequently and show lower similarity. In the MOSI dataset, for example, the most frequently selected indices in the audio modality correspond to the initial representations of each granularity, such as indices 0, 5, 15, and 30. These indices are selected more than 3 times as often as others and exhibit the highest cosine similarities, suggesting that there is some overlap in the information they provide.
In the video modality, across both datasets, we observe that while the selection frequency of indices varies, their cosine similarity tends to decrease as the granularity becomes finer. This indicates that finer granularities capture more specific details, but these details may diverge from the broader context, particularly in longer videos, where padding is often applied to maintain a consistent input length. This padding can result in sparse, less informative representations at the end of the video.
In this section, we examine the contribution of the reconstruction to R3DG’s overall performance through varying weights of Lre. As shown in Fig. 2B, increasing the weight values results in fluctuating declines in performance. The best performance is achieved with a weight value of 0.1, while performance noticeably worsens when the weight reaches 1.0. On average, lower weight values tend to correlate with better relative performance, while higher weight values generally lead to poorer results.
Existing alignment methods typically rely on single-granularity approaches, but they often require multiple attention-based alignments, each with a time complexity of ON2, leading to substantial computational cost. For example, the MulT model aligns representations across all time steps, resulting in a time complexity of OMLMV+MLMA+MAMVN2, where Mm is the time length of modality m, m∈LAV. Similarly, models like CONFEDE not only include the above alignment time complexity but also require pre-training on various datasets, further increasing their computational overhead.
In contrast, R3DG reduces this computational burden by performing alignment just twice: once between the video and audio modalities, and then aligning the fused representations with the text modality. This results in a total time complexity of only O2N2, much lower than the time required by MulT and CONFEDE.
To provide a more intuitive comparison, we evaluate the computational complexity of R3DG relative to several baseline models, considering both time and space requirements. For space complexity, we analyze the number of parameters in each model. In terms of time complexity, we compare the total runtime of each model over 100 epochs under the same experimental settings, including a batch size of 128. As shown in Table 6, R3DG has a slightly higher parameter count than the other models. However, it demonstrates strong runtime efficiency. For instance, in word-level alignment settings, R3DG completes the task in just 384 s. Among all models, only SPT has a comparable runtime at 392 s, while others require at least 500 s. In unaligned settings, R3DG finishes in 857 s—slightly longer than SELF-MM but substantially faster than other models, which require over 1,500 s. This efficiency is due to R3DG’s design, which selects a subset of local representations for fusion before applying cross-attention for alignment. By reducing the number of attention computations, R3DG effectively lowers the overall computational cost. While SELF-MM is slightly faster in unaligned settings and also performs well, R3DG achieves better overall results, particularly on datasets like MOSEI. These findings highlight R3DG’s ability to balance computational efficiency with strong performance, making it a compelling choice for MSA.
To better illustrate the effectiveness of R3DG, we present a detailed analysis using an example from the MOSI dataset, comparing the selected representations under both word-level aligned and unaligned settings, as shown in Fig. 4. The aim is to demonstrate how the selected local representations are distributed for the example sentence: “ITS KIND OF LIKE QUITE FAKE LIKE I JUST I COULDNT BELIEVE IT I WAS LIKE WHAT WHAT ARE YOU DOING.” Each box in the visualization represents a local representation, with its length indicating the granularity of the feature. Overlapping boxes within a column signify information overlap, while the numbers (e.g., 1, 2) indicate the most and second-most similar local representations for each modality.
We observe distinct differences in the top 8 similarity scores for both audio and video modalities between the aligned and unaligned settings. In the unaligned settings, similarity scores are generally higher, suggesting that word-level alignment might smooth out subtle variations and potentially lead to the loss of key information. In the video modality, while there is marked information overlap in both settings, the selection of features differs. In the word-level alignment setting, the selected representations are concentrated in the first 40% of the timeline. Conversely, in the unaligned setting, more emphasis is placed on the first 20% of the timeline, focusing on finer-grained features such as “upward eyebrows”, which are not prioritized in the aligned setting.
The differences in the audio modality between the 2 settings are even more pronounced. In the word-level alignment setting, features are selected throughout most of the audio timeline, corresponding to changes in intonation and emphasized speech. However, in the unaligned setting, there is greater focus on the final segment of the audio, capturing a noticeable tone of surprise, which aligns more closely with the sentiment expressed in the text. Other parts of the audio timeline are given less attention in this setting.
This example demonstrates R3DG’s high ability to identify multimodal similarities at various granularities and showcases its robustness in handling both word-level alignment and unaligned scenarios.
While R3DG exhibits competitive overall performance across multiple datasets, certain limitations are observed in specific scenarios that require fine-grained sentiment recognition. For instance, on the MOSI and MOSEI datasets, R3DG performs slightly lower than some state-of-the-art models on fine-grained metrics such as MAE, Corr, and Acc-7. Similarly, on the CHERMA dataset, R3DG shows reduced effectiveness in distinguishing subtle emotions like “Fear” and “Disgust”, though it handles more salient emotions such as “Sadness” and “Happy” well. These cases reveal a limitation in R3DG’s current ability to consistently capture nuanced sentiment distinctions.
This limitation may be partly attributed to redundancy in the representation selection process. As illustrated in Fig. 4A, highly similar representations often cluster within narrow temporal segments, which can limit the diversity of the information captured. Such concentration may restrict the R3DG’s ability to attend to temporally distributed cues that are crucial for identifying subtle emotional variations.
To address this, a potential enhancement lies in encouraging temporal diversity during representation selection. By retaining the most informative representations while reducing redundancy—especially among those with high similarity in close time spans—R3DG can be guided to leverage a broader context, which may improve its performance in fine-grained classification tasks.
Overall, despite these task-specific limitations, R3DG remains a strong and generalizable framework for MSA. Future work will focus on refining the representation learning mechanism to improve its sensitivity to nuanced affective expressions.
This paper introduces the R3DG framework for MSA. By effectively aligning audio and video modalities to the text modality with varying granularities, R3DG not only reduces computational complexity but also enhances the ability to capture nuanced emotional fluctuations across different modalities. The ability to segment and select the most relevant audio and video representations, while preserving critical information through reconstruction, allows for more accurate and efficient sentiment prediction. Experimental results demonstrate that R3DG achieves state-of-the-art performance in multiple multimodal tasks, including sentiment analysis, emotion recognition, and humor detection, outperforming existing methods. Ablation studies further confirm R3DG’s superiority, highlighting its robust performance despite the reduced computational cost. Looking ahead, future work will focus on automating the selection of modality importance and granularity, further enhancing R3DG’s adaptability to diverse real-world applications.
In order to comprehensively evaluate the performance of R3DG, 5 datasets are selected, including MOSI [1], MOSEI [2], UR-FUNNY [17], MUStARD [18], and CHERMA [16]. These datasets are categorized based on their respective task objectives: MOSI and MOSEI for MSA, UR-FUNNY and MUStARD for MHD, and CHERMA for MER. Specifically, MSA aims to predict sentiment polarity and categorize it based on predefined ranges. MOSI comprises 2,198 utterances extracted from YouTube videos, each averaging 4.2 s in duration, with regression labels ranging from −3 (strong negative) to 3 (strong positive). MOSEI is an expanded version of MOSI, consisting of 23,453 utterances with consistent label information. R3DG in unaligned settings aligns with previous studies [9], while word-level alignment settings follow similar methodologies [10,11]. MHD focuses on binary classification to determine whether content contains humor. This task involves the UR-FUNNY [17] and MUStARD [18] datasets, which uniquely include contextual information. UR-FUNNY consists of 9,588 TED utterances, with durations averaging 14.7 s for contexts and 4.58 s for punchlines. MUStARD comprises 690 utterances from TV shows, with context durations averaging 13.95 and 5.22 s, respectively. MER addresses multi-class emotion recognition, evaluating emotional categories using the CHERMA [16] dataset. This dataset includes 7 emotions: “Happy”, “Sadness”, “Fear”, “Angry”, “Surprise”, “Disgust”, and “Neutrality”, sourced from 28,717 Chinese utterances across various media websites.
MSA aims to utilize diverse, heterogeneous data modalities to determine the category or polarity of emotions. These modalities typically encompass text, video, and audio [1,38]. We focus exclusively on tasks involving these 3 modalities. To facilitate analysis, we represent the features of each modality as Um∈ℝTm×dm, where m∈tav denotes the modality, and dm and Tm represent the respective dimensionality and sequence length. Given ith utterance with representation Ut,iUa,iUv,i, MSA predicts its emotion intensity or category ŷi. For MSA task with the MOSI and MOSEI datasets, ŷi is the regression values, while for the MHD task and MER task, the ŷi is the logits for each emotion category.
As shown in Fig. 5, the R3DG framework consists of three submodules: retrieve and rank module, reconstruction module and multimodal fusion module. Due to differences in sampling methods across modalities and the large volume of data in video and audio modalities, as well as substantial data overlap, the retrieve and rank module is designed to segment audio and video data into distinct representations at various granularities and assess their similarity to textual features. It subsequently ranks and selects the top several performing representations for fusion, employing learnable parameters to optimize integration across modalities, as shown in Fig. 6. This approach ensures effective alignment and enhances the coherence between modalities.
Specifically, for utterances with representations UtUaUv, we first extract the unimodal representations of each modality. To be consistent with prior research [9–11], we adapt the similar methods to get these representations.
For text representations, we use the BERT [15] as the text encoder and choose the [CLS] token of the last layer as the text representations, then a fully connected layer is adapted to reduce the dimension and get the final representations. The above process can be seen in the following equation:
X̂t=BERTUtWt⊤+bt,
where X̂t∈ℝht, ht is the hidden dimension of the text modality, and Wt∈ℝht×dt and bt∈ℝht are learnable parameters in the fully connected layer.
For audio and video representations, we extract the local representations of different granularities. Specifically, the temporal convolutional networks (Conv1D) and transformer encoder are firstly adapted to make sure that each element of the input sequences tends to the neighbor elements and the whole sequence, as the following equation shows:
X̂m=TEConv1DUm,
where m∈av denotes the modality, and the TE is the transformer encoder comprising a series of N layers, each with self-attention, normalization, and fully connected sublayers. For the input representation Um, the query, key, and value are set as Q,K,V=Um in the self-attention layer:
Zm =SELF ATTENTIONUm 
=softmaxQmKm⊤dkVm
=softmaxUmWQmWVm⊤Um⊤dkUmWVm,
where X̂m∈ℝTm×hm, and hm is the hidden dimension of the modality m,m∈av.
To retrieve the appropriate representations of the audio and video modalities, we use the AdaptiveMaxPool1d function to obtain the different granularities of the representations. Specifically, for each granularity, we obtain the local representations by setting the different number to the stride and kernels. Suppose we use s different granularities, and each has gmj,j∈12…s local representations, the jth output of modality m is obtained by:
Lmj=AdaptiveMaxPool1dgmjX̂m,
where Lmj∈ℝgmj×hm denotes the local representations with the granularity gmj of the modality m. Thus, we obtain Sm=∑j=1sgmj local representations. Besides, we also extract the global representation by maxpooling function using all time steps for reconstruction, thus the gmj=1. Note that the global representation is only used for the reconstruction module, not for other modules, which means that the global representation will not be retrieved, ranked, and fused. Here, we use Gm∈ℝhm,m∈av to denote it.
All local representations are stacked together for further ranking:
Lmall=ConcatLm1…Lms,
where Lmall∈ℝSm×hm.
After getting the local representations of different granularities of the audio and video modalities, we rank these representations based on their similarities with the text representations. Specifically, we choose the top km local representations of modality m, and use the learnable weights to fuse them. Note that the learnable weights are learnable tensors, denoted as Wm,m∈av.
Fm=TopKkmSimLmallX̂tSoftmaxWm⊤,
where Sim denotes the cosine similarity, and km denotes the number of the selected local representations of the modality m. Here, Wm∈ℝkm, and TopK denotes the function to choose the top km most similar local representations and concatenate them, thus Fm∈ℝhm.
The varying lengths of videos and audios introduce challenges in selecting local representations. Focusing excessively on finer-grained features can overlook global information, posing potential issues. Moreover, due to granularity differences, selected local representations inevitably exhibit information overlaps. The reconstruction module aims to distribute these potentially overlapped local representations more uniformly across the entire input sequence and duration, rather than being confined to specific token positions. It not only maintains granularity and unique information in these local representations but also ensures relative global coverage.
Specifically, we use the fully connected layer for reconstruction and use the mean squared error (MSE) to reduce the gap between the fused local representations and global representations:
Lre=MSEFmWmr⊤+bmrGm,
where Wmr∈ℝhm×hm and bmr∈ℝhm are trainable parameters in the fully connected layer, and m∈av denotes the modality.
In the retrieve and rank module, we select several local representations from video and audio modalities that exhibit the highest similarity to textual representations. Although this process effectively aligns textual representations with video and audio modalities, it lacks the direct alignment between video and audio. Therefore, in this module, we decompose multimodal fusion into 2 stages: first, integrating video and audio modalities, followed by fusing the combined result with textual modality. Specifically, we employ transformer encoder layers and linear layers for integration.
Specifically, the fused local representations of audio and video modalities, Fa and Fv, are stacked and feed into transformer encoder layer and sequential network subsequently:
Fusea,v=SNa,vConcatTEa,vStackFaFv.
Then, the aligned and fused representations Fusea,v are aligned and fused with the text representations, which can be formulated as:
Fuseall=SNallConcatTEallStackX̂tFusea,v.
The fused representations of all 3 modalities are finally fed into a fully connected layer for prediction.
ŷ=FCcFuseall,
where TEa,v and TEall use the cross attention to align different modalities by setting the query input layer Q=Zk, and the keys K and values V to Zl given the 2 input Zk and Zl:
Zk,l=CROSSATTENTIONZkZl
=softmaxQZkKZl⊤dkVZl
=softmaxZkWQZkWVZl⊤Zl⊤dkZlWVZl,
where SNa,v and SNall are sequential networks of a linear layer, a dropout layer, and a ReLU activation layer.
In this section, the optimization objectives of our R3DG framework is introduced, which consists of reconstruction loss Lre and task-specific losses Ltask. The Lre, as defined by Eq. 9, encompasses the MSE between the reconstructed part of fused local representations and the maxpooling of the entire input sequence. Given that MSA involves both classification and regression tasks, we employ different Ltask accordingly.
For classification tasks, we utilize cross-entropy loss as
Lcla=1M∑i=1M−yilogŷi.
For regression tasks, we opt for L1 loss:
Lreg=1M∑i=1Myi−ŷi,
where ŷi is the predicted value, yi is the true label, and M is the number of all samples.
To strike a balance between reconstruction and task losses, we adopt a weighted approach, defined as:
L=Ltask+αLre,
where α is a hyperparameter.
In the aforementioned 5 datasets, UR-FUNNY and MUStARD employ word-level alignment, CHERMA remains unaligned, while MOSI and MOSEI incorporate both unaligned and word-level aligned data. The feature extraction methods for aligned and unaligned data are identical, differing only in the additional postprocessing steps. Therefore, we do not distinguish between these modalities in the current context. Word-level alignment involves manually averaging the occurrence times of words across speech and audio features to obtain synchronized alignments [39]. Specifically, the forced alignment model is utilized to extract word timings from both punch lines and contexts [14]. Subsequently, acoustic and visual features for the entire video are captured, and each word’s timing dictates the extraction of relevant segments of these features. These segmented feature arrays are separately averaged across the temporal dimension, resulting in acoustic and visual feature vectors for each word.
For the text modality, except for CHERMA where we utilize the official Chinese BERT embeddings [40], all other datasets maintain consistency with previous work [11,12,27,41] by employing the final layer’s [CLS] token from BERT-base [15,42] for representation. Regarding the audio modality, we utilize COVAREP [43], an acoustic analysis toolkit, to extract features including Mel-frequency cepstral coefficients, pitch, and voiced/unvoiced segmentation features for MOSI, MOSEI, UR-FUNNY, and MUStARD datasets. For CHERMA, pre-trained wav2vec [44] is employed for feature extraction. In the visual modality, we employ Facet for extracting facial expression-related information for MOSI and MOSEI, and OpenFace [45,46] for UR-FUNNY and MUStARD datasets. For CHERMA, pre-trained ResNet18 [47] is utilized. It is noteworthy that the UR-FUNNY and MUStARD datasets include additional contextual information. Following the prior studies [39], we concatenated this contextual data with the original utterances before feeding them into modality specific networks for representation.
In our experiments, we define several key parameters. The learning rate is denoted by lr, the batch size by bsz, and the weight of the reconstruction loss by α. The hidden dimensionalities of the audio, video, and text modalities are represented by hm,m∈tav. Parameters ka and kv specify the number of most similar local representations selected for the audio and video modalities, respectively. N represents the number of transformer encoder layers, while ga and gv define the granularity settings for the audio and video modalities.
All experiments were conducted using the PyTorch framework on a GTX 3090 GPU with CUDA 11.5 and Torch version 1.12.1. The AdamW optimizer [48] was used for model training. Hyperparameter tuning was performed via grid search to identify the optimal configuration that minimizes validation loss across all tasks. Given the diversity of the datasets, distinct hyperparameters were required for each. We explored a range of hyperparameter values, including batch sizes from {64, 96, 128, 168, 192}, learning rates from {8e−6, 9e−6, 1e−5, 2e−5, 3e−5, 4e−5, 5e−5}, reconstruction loss weight α from {0.05, 0.1, 0.15, 0.2, 0.25, 0.3}, hidden dimensions hm,m∈tav from {64, 96, 128, 160, 192}, transformer encoder layers N from {3, 4, 5, 6}, and selected top ka and kv representations for the audio and video modalities from {8, 9, 10, 11, 12, 13, 14, 15}. The granularity values ga and gv for audio and video were chosen from {[5, 10, 15, 20], [10, 20, 30, 40]}.
  • National Natural Science Foundation of China(U24A20250)
  • National Natural Science Foundation of China(62176048)
  • Natural Science Foundation of Sichuan Province(2024NSFTD0042)
  • Natural Science Foundation of Sichuan Province(2024YFG0006)
  • Natural Science Foundation of Sichuan Province(2024NSFSC0506)
1.
Zadeh A, Zellers R, Pincus E, Morency LP. Mosi: Multimodal corpus of sentiment intensity and subjectivity analysis in online opinion videos. arXiv. 2016. https://doi.org/10.48550/arXiv.1606.06259
2.
Zadeh AB, Liang PP, Poria S, Cambria E, Morency LP. Multimodal language analysis in the wild: Cmu-mosei dataset and interpretable dynamic fusion graph. In: Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Melbourne (Australia): Association for Computational Linguistics; 2018. p. 2236–4226.
3.
Deng J, Chen Z, Sun H, Zhang Z, Wu J, Nakagawa S, Ren F, Huang M. Enhancing offensive language detection with data augmentation and knowledge distillation. Research. 2023;6:0189.
4.
Deng J, Ren F. Hierarchical network with label embedding for contextual emotion recognition. Research. 2021;2021:3067943.
5.
Zhou Y, Ren F. CERG: Chinese emotional response generator with retrieval method. Research. 2020;2020:2616410.
6.
Sun K, Xie Z, Ye M, Zhang H. Contextual augmented global contrast for multimodal intent recognition. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Piscataway (NJ): IEEE; 2024. p. 26963–26973.
7.
Jin T, Lin W, Wang Y, Li L, Cheng X, Zhao Z. Rethinking the multimodal correlation of multimodal sequential learning via generalizable attentional results alignment. In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics; 2024. p. 5247–5265.
8.
Zhang H, Wang W, Yu T. Towards robust multimodal sentiment analysis with incomplete data. arXiv. 2024. https://doi.org/10.48550/arXiv.2409.20012
9.
Tsai YHH, Bai S, Liang PP, Kolter JZ, Morency LP, Salakhutdinov R. Multimodal transformer for unaligned multimodal language sequences. In: Proceedings of the conference. Association for Computational Linguistics. Meeting. Vol. 2019. NIH Public Access. 2019:6558. doi: 10.18653/v1/P19-1656
10.
Mai S, Sun Y, Zeng Y, Hu H. Excavating multimodal correlation for representation learning. Inf Fusion. 2023;91:542–555.
11.
Mai S, Zeng Y, Zheng S, Hu H. Hybrid contrastive learning of tri-modal representation for multimodal sentiment analysis. IEEE Trans Affect Comput. 2022;14:2276–2289.
12.
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 (Volume 1: Long Papers). Toronto (Canada): Association for Computational Linguistics; 2023. p. 7617–3760.
13.
Zadeh A, Liang PP, Mazumber N, Poria S, Cambria E, Morency L-P. Memory fusion network for multi-view sequential learning. Proc AAAI Conf Artif Intell. 2018;32(1): doi.org/10.1609/aaai.v32i1.12021.
14.
Yuan J, Liberman M. Speaker identification on the SCOTUS corpus. J Acoust Soc Am. 2008;123:3878.
15.
Devlin J, Chang MW, 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: Human Language Technologies, Volume 1 (Long and Short Papers). Minneapolis (MN): Association for Computational Linguistics; 2019. p. 4171–4186.
16.
Sun J, Han S, Ruan YP, Zhang X, Zheng S-K, Liu Y, Huang Y, Li T. Layer-wise fusion with modality independence modeling for multi-modal emotion recognition. In: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Toronto (Canada): Association for Computational Linguistics; 2023. p. 658–670.
17.
Hasan MK, Rahman W, Zadeh A, Zhong J, Tanveer MI, Morency LP, Hoque M. UR-FUNNY: A multimodal language dataset for understanding humor. arXiv. 2019. https://doi.org/10.48550/arXiv.1904.06618
18.
Castro S, Hazarika D, Perez-Rosas V, Zimmermann R, Mihalcea R, Poria S. Towards multimodal sarcasm detection (an obviously perfect paper). arXiv. 2019. https://doi.org/10.48550/arXiv.1906.01815
19.
A. Zadeh, M. Chen, S. Poria, E. Cambria, L.-P. Morency. Tensor fusion network for multimodal sentiment analysis. In: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. Copenhagen (Denmark): Association for Computational Linguistics; 2017. p. 1103–1114.
20.
Liu Z, Shen Y, Lakshminarasimhan VB, Liang PP, Zadeh AB, Morency LP. Efficient low rank multimodal fusion with modality-specific factors. In: Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Melbourne (Australia): Association for Computational Linguistics; 2018. p. 2247–2256.
21.
Mai S, Zeng Y, Hu H. Multimodal information bottleneck: Learning minimal sufficient unimodal and multimodal representations. IEEE Trans Multimed. 2022;25:4121–4134.
22.
Rahman W, Hasan MK, Lee S, Zadeh AB, Mao C, Morency L-P, Hoque E. Integrating multimodal information in large pretrained transformers. In: Proceedings of the conference. Association for Computational Linguistics. Meeting. Vol. 2020. NIH Public Access. 2020. p. 2359.
23.
Yu W, Xu H, Yuan Z, and Wu J. Learning modality-specific representations with self-supervised multi-task learning for multimodal sentiment analysis. In: Proceedings of the AAAI Conference on Artificial Intelligence. Washington (USA): AAAI Press; 2021. Vol. 35, p. 10790–10797.
24.
Sun Z, Sarma P, Sethares W, Liang Y. Learning relationships between text, audio, and video via deep canonical correlation for multimodal language analysis. In: Proceedings of the AAAI Conference on Artificial Intelligence. Washington (USA): AAAI Press; 2020. Vol. 34, p. 8992–8999.
25.
Cheng J, Fostiropoulos I, Boehm B, Soleymani M. Multimodal phased transformer for sentiment analysis. In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Punta Cana (Dominican Republic): Association for Computational Linguistics; 2021. p. 2447–2458.
26.
Li H, Li X, Hu P, Lei Y, Li C, Zhou Y. Boosting multi-modal model performance with adaptive gradient modulation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. Piscataway (NJ): IEEE; 2023. p. 22214–22224.
27.
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. New York (USA): Association for Computing Machinery; 2020. p. 1122–1131.
28.
Yang D, Huang S, Kuang H, Du Y, and Zhang L. Disentangled representation learning for multimodal emotion recognition. In: Proceedings of the 30th ACM International Conference on Multimedia. New York (USA): Association for Computing Machinery; 2022. p. 1642–1651.
29.
Deng H, Yang Z, Hao T, Li Q, Liu W. Multimodal affective computing with dense fusion transformer for inter-and intra-modality interactions. IEEE Trans Multimed. 2022;25:6575–6587.
30.
Lv F, Chen X, Huang Y, Duan L, Lin G. Progressive modality reinforcement for human multimodal emotion recognition from unaligned multimodal sequences. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; 2021. p. 2554–2562.
31.
Ruan YP, Han S, Li T, Wu Y. Fusing Modality-specific representations and decisions for multimodal emotion recognition. In: ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE; 2024. p. 7925–7929.
32.
Wang D, Guo X, Tian Y, Liu J, He L, Luo X. TETFN: A text enhanced transformer fusion network for multimodal sentiment analysis. Pattern Recogn. 2023;136:Article 109259.
33.
Zhang H, Wang Y, Yin G, Liu K, Liu Y, Yu T. Learning language-guided adaptive hyper-modality representation for multimodal sentiment analysis. In: The 2023 Conference on Empirical Methods in Natural Language Processing. Singapore: Association for Computational Linguistics; 2023.
34.
Zhang Y, Yu Y, Zhao D, Li Z, Wang B, Hou Y, Tiwari P, Qin J. Learning multi-task commonness and uniqueness for multi-modal sarcasm detection and sentiment analysis in conversation. IEEE Trans Artif Intell. 2023;5(3):1349–1361.
35.
Lin R, Hu H. Dynamically shifting multimodal representations via hybrid-modal attention for multimodal sentiment analysis. IEEE Trans Multimed. 2023;26:2740–2755.
36.
Zong D, Ding C, Li B, Li J, Zheng K, Zhou Q. AcFormer: An aligned and compact transformer for multimodal sentiment analysis. In: Proceedings of the 31st ACM International Conference on Multimedia. New York (USA): Association for Computational Linguistics; 2023. p. 833–842.
37.
Mai S, Xing S, Hu H. Analyzing multimodal sentiment via acoustic-and visual-LSTM with channel-aware temporal convolution network. IEEE/ACM Trans Audio Speech Lang Process. 2021;29:1424–1437.
38.
Liang PP, Lyu Y, Fan X, Tsaw J, Liu Y, Mo S, Yogatama D, Morency L-P, Salakhutdinov R. High-modality multimodal transformer: Quantifying modality & interaction heterogeneity for high-modality representation learning. Trans Machine Learning Res. 2022.
39.
Hasan MK, Lee S, Rahman W, et al. Humor knowledge enriched transformer for understanding multimodal humor. In: Proceedings of the AAAI Conference on Artificial Intelligence. Washington (USA): AAAI Press; 2021. Vol. 35, p. 12972–12980.
40.
Cui Y, Che W, Liu T, Qin B, Yang Z. Pre-training with whole word masking for chinese bert. IEEE/ACM Trans Audio Speech Lang Process. 2021;29:3504–3514.
41.
Tsai YHH, Li T, Liu W, Liao P, Salakhutdinov R, Morency LP. Integrating auxiliary information in self-supervised learning. arXiv. 2021. https://doi.org/10.48550/arXiv.2106.02869
42.
Kenton JDMWC, Toutanova LK. BERT: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of NAACL-HLT. Minneapolis (MN): Association for Computational Linguistics; 2019. p. 4171–4186.
43.
Degottex G, Kane J, Drugman T, Raitio T, Scherer S. COVAREP—A collaborative voice analysis repository for speech technologies. In: 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE; 2014. p. 960–964.
44.
Zhang B, Lv H, Guo P, et al. Wenetspeech: A 10000+ hours multi-domain mandarin corpus for speech recognition. In: ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE; 2022. p. 6182–6186.
45.
Baltrusaitis T, Robinson P, Morency LP. Openface: an open source facial behavior analysis toolkit. In: 2016 IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE; 2016. p. 1–10.
46.
Baltrusaitis T, Zadeh A, Lim YC, Morency LP. Openface 2.0: Facial behavior analysis toolkit. In: 2018 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2018). IEEE; 2018. p. 59–66.
47.
He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. IEEE; 2016. p. 770–778.
48.
Loshchilov I, Hutter F. Decoupled weight decay regularization. In: International Conference on Learning Representations. Vancouver, BC (Canada): International Conference on Learning Representations; 2018.
Year 2025 volume 8 Issue 7
PDF
31
19
Cite this Article
BibTeX
Article Info
doi: 10.34133/research.0729
  • Receive Date:2024-12-11
  • Online Date:2026-10-30
  • Published:2025-07-20
Article Data
Affiliations
History
  • Received:2024-12-11
  • Revised:2025-05-13
  • Accepted:2025-05-13
Funding
National Natural Science Foundation of China(U24A20250)
National Natural Science Foundation of China(62176048)
Natural Science Foundation of Sichuan Province(2024NSFTD0042)
Natural Science Foundation of Sichuan Province(2024YFG0006)
Natural Science Foundation of Sichuan Province(2024NSFSC0506)
Affiliations
    1College of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China.
    2Shenzhen Institute for Advanced Study, University of Electronic Science and Technology of China, Shenzhen 518000, China.

Corresponding:

* Address correspondence to: (J.D.);
References
Share
https://castjournals.cast.org.cn/joweb/research/EN/10.34133/research.0729
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT