Next Article in Journal
RISE-VIO: Robust Initialization and Targeted Pose Robustification for INS-Centric Visual–Inertial Odometry Under Degraded Visual Conditions
Previous Article in Journal
Combining Fast Orthogonal Search with Deep Learning to Improve Low-Cost IMU Signal Accuracy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SGMLN: Sentiment-Guided Mutual Learning Network for Multimodal Sarcasm Detection

College of Computer Science and Engineering, Shandong University of Science and Technology, Qingdao 266590, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(8), 2304; https://doi.org/10.3390/s26082304
Submission received: 24 January 2026 / Revised: 24 March 2026 / Accepted: 4 April 2026 / Published: 8 April 2026
(This article belongs to the Section Sensing and Imaging)

Abstract

Social networks such as Twitter have grown rapidly and are now flooded with sarcastic comments, both in text and in images. Detecting sarcasm in multimodal data has significant social value and is attracting increasing research attention. However, most studies overlook the role of sentiment, even though sentiment information in text is closely linked to clues of sarcasm. Additionally, few consider how text and images align semantically. To address these issues, we propose a sentiment-guided mutual learning network (SGMLN) for multimodal sarcasm detection. SGMLN utilizes sentiment information to inform the combination of text and image features, and employs mutual learning to facilitate knowledge sharing among classifiers. We design a sentiment-guided attention layer that injects sentiment into both modalities, producing features that capture sarcasm more effectively. Sentic-BERT extracts sentiment-aware vectors from text, using word-level sentiment as a mask. In mutual learning, a logistic distribution function measures differences between classifiers, improving knowledge transfer between modalities. This step boosts multimodal understanding and model performance. By introducing sentiment-aware representations and semantic alignment, SGMLN bridges the gap between text and images, making them more consistent. Experiments on public datasets demonstrate that our model is effective and outperforms alternatives.

1. Introduction

Sarcasm occurs when a speaker’s intended meaning contradicts their literal words; this form of expression is now commonplace on social media and e-commerce platforms. As online communication evolves, users increasingly leave sarcastic comments. As a result, detecting sarcasm is crucial for effective sentiment analysis [1], question-answering [2], and opinion mining [3]. By identifying sarcastic remarks, platforms can infer user preferences, improve service quality, increase user satisfaction, and deliver social value [4,5].
Initially, sarcasm detection focused on textual content. Kamal et al. [6] were among the first to apply deep learning approaches to this task, proposing a model based on Long Short-Term Memory (LSTM), Bidirectional Gated Recurrent Units (BiGRUs), and an attention layer, which achieved promising results. Building on this direction, Long et al. [7] introduced a model that leverages Bidirectional Long Short-Term Memory (Bi-LSTM) and Multi-Head Attention (MHAT). In their approach, the Bi-LSTM addressed long-term dependencies by capturing contextual information, while the MHAT was adept at identifying key parts of sentences.
User participation in discussions about hot topics on social networking platforms such as Facebook is increasing, and these discussions are predominantly multimodal, involving images, text, and audio [8,9]. This shift presents new challenges for sarcasm detection. As illustrated in Figure 1, multimodal data—compared to unimodal data that relies solely on text or images—can provide a more comprehensive, accurate, and diverse perspective. As a result, an increasing number of researchers are focusing on detecting multimodal sarcasm. For example, some previous work has fused multimodal features by directly concatenating text features from text encoders and image features from image encoders.
With the advent of attention mechanisms [10,11], researchers have increasingly leveraged attention structures to extract and compare features across modalities. These attention-based methods have been instrumental in uncovering inconsistencies between modalities after feature extraction. However, Liu et al. [12] observed that earlier research mostly addresses fine-grained inconsistencies within textual and visual content while overlooking more complex cross-modal interactions. The importance of such interactions has been highlighted, particularly in tasks like cross-modal retrieval [13] and image–text matching [14,15]. Building on this, Wen et al. [16] identified a semantic link between cross-modal sarcasm and attitudes in text, emphasizing the need for models that handle such semantic interplay. Furthermore, the growing maturity of graph neural networks [17,18] has enabled researchers to better model intricate inter-modal relationships and facilitate the detection of modality inconsistencies. In addition to these advancements, incorporating common-sense knowledge has also proven valuable, prompting its integration into affective computing, specifically in sarcasm detection [19,20]. For example, Yue et al. [21] employed the ConceptNet knowledge base and cross-modal semantic-similarity measures to guide image–text feature fusion. In sum, recent work emphasizes the need to move beyond low-level inconsistencies and develop models that integrate complex, knowledge-driven, cross-modal cues.
Although these methods can effectively identify implicit sarcasm across modalities and improve sarcasm detection to some extent, they do not fully account for the critical role of sentiment. They also overlook the semantic gap. The semantic gap refers to the challenge of aligning and collaborating between text and image features on the semantic level. This is especially true when their dimensions and semantics differ significantly. Such differences hinder the capture of cross-modal inconsistencies. Therefore, we propose a sentiment-guided multimodal mutual learning model (SGMLN) for sarcasm detection. We use the sentimental information of each word in the text sentence as a mask for Sentic-BERT. This approach helps extract sentiment-aware vectors that capture sentimental clues within the text. In the initial fusion phase, we utilize sentiment-aware vectors as query vectors for the sentiment-guided fusion attention layer. This attention layer infuses sentimental information into the text and image features. To transfer sarcastic information between the two modalities, we implement mutual learning between the image and text network classifiers. We use a logistic distribution to assess the classifier’s divergence. This enables cross-modal knowledge transfer and reduces the semantic gap between image and text features. By integrating the learning processes of both classifiers, we achieve collaborative enhancement of sarcasm detection.
The main contributions of this study are summarized as follows:
(1) We introduce the SGMLN model for sarcasm detection. This practical tool integrates the interdependence between image and text modalities by leveraging sentiment information. By leveraging mutual learning between two classifiers, we increase semantic consistency between textual and visual streams. This approach improves sarcasm detection. Our experiments use a widely adopted multimodal sarcasm detection benchmark. These tests yield outstanding performance and show the model’s potential for real-world use.
(2) In the initial fusion phase, we propose replacing the Sentic-BERT mask with the sentimental information degree of each word to extract sentiment-aware vectors. These vectors serve as queries for the sentiment-guided fusion attention layer, enabling the infusion of sentiment into image and text features to refine and integrate them.
(3) During the mutual learning phase, the image and text network classifiers exchange knowledge. We use Kullback–Leibler (KL) divergence to minimize differences between the classifiers and bridge the semantic disparity between visual and textual representations.

2. Related Work

2.1. Multimodal Sarcasm Detection

The core challenge in this field lies in effectively extracting and integrating heterogeneous features from both text and images to identify semantic incongruity. Recent research has evolved from simple feature concatenation to sophisticated alignment strategies.

2.1.1. Early Frameworks and Benchmark Construction

Initial research focused on establishing the foundational infrastructure for multimodal analysis. Schifanella et al. [22] were the first to introduce multimodality into sarcasm detection, proposing two model frameworks for extracting sarcastic features from textual and visual modalities. A landmark contribution was made by Cai et al. [23], who constructed the widely-used Twitter dataset and proposed a Hierarchical Fusion Model (HFM). By utilizing image attributes to guide textual feature fusion, their work established the basic paradigm of “cross-modal interaction”. While foundational, these early models relied primarily on coarse-grained global features, leaving room for more fine-grained semantic alignment.

2.1.2. Inconsistency Modeling via Attention Mechanisms

Subsequent studies shifted toward capturing subtle contradictions through attention-based alignment. Pan et al. [24] further refined the model proposed by Cai et al. [23] by focusing on inconsistencies across images, text, and labels. They built a co-attention matrix to represent the association between textual content and labels, employing BERT for textual representation and ResNet-152 to extract visual features. However, co-attention primarily focuses on surface-level alignment between modalities and may fail to capture subtle sentiment contradictions or deep semantic inconsistencies, which are crucial for understanding sarcasm. After comparing various methods, they found that an integrated network combining a Transformer and image encoders significantly improved multimodal sarcasm detection performance. Similarly, Tian et al. [25] explored the impact of modal input sequences on detection performance by introducing a modality-order-driven attention module. These works demonstrate the immense potential of Transformers in boosting performance; however, as noted in our analysis, they often focus on surface-level alignment and may overlook deeper emotional contradictions.

2.1.3. Knowledge Enhancement and Complex Relationship Mining

Recent advancements have sought to incorporate higher-dimensional signals. Lu et al. [26] proposed a fact–emotion inconsistency combination network that reveals multimodal sarcastic relationships by exploring the factual differences and emotional incongruities in multimodal information. Bao et al. [27] presented HIAN, a hybrid interactive attention network for multimodal sarcasm detection that integrates class words, text, and images. Using bidirectional LSTMs and interactive attention, the model achieved relatively good performance on sarcasm detection tasks. Wang et al. [28] introduced a relational context learning and multiplex fusion network that models text–image interactions and fuses multimodal features, leading to relatively advanced results in sarcasm detection. Yu et al. [29] developed a cross-modal interaction and multi-view misalignment framework that employs co-attention, structured captions, and sentiment-aware misalignment modeling to better capture sarcastic cues, demonstrating promising effectiveness across various benchmarks. These approaches highlight that sarcasm is not merely a data-matching problem but a cognitive one, directly inspiring the sentiment-prioritized design of our SGMLN.

2.2. Mutual Learning and Sentiment Guidance

This section reviews strategies for knowledge transfer and the utilization of auxiliary affective information to bridge the semantic gap.

2.2.1. Deep Mutual Learning and Cross-Modal Synergy

Instead of conventional teacher–student distillation paradigms, recent research has increasingly explored collaborative optimization strategies that allow multiple networks to learn jointly during training. Reference [30] proposed a multimodal fusion model based on mutual learning. This model facilitates mutual learning between the image and text modalities regarding their feature representations. As a result, image features acquire rich semantic information from text features, and text features can enhance their understanding of semantics from image features, effectively improving the accuracy of multimodal classification tasks. Building upon this idea, Qiao et al. [31] incorporated mutual learning into local semantic guidance frameworks to enhance fine-grained feature alignment, while Wang et al. [32] extended the paradigm to structural alignment tasks, demonstrating its effectiveness in reducing discrepancies between heterogeneous modalities.
These studies collectively suggest that collaborative learning mechanisms can promote more balanced representation learning by encouraging consistency across modality-specific classifiers. However, existing approaches typically rely on direct prediction alignment, which may not fully address distributional differences between visual and textual feature spaces. Motivated by these observations, the proposed framework adopts a mutual learning strategy to facilitate smoother cross-modal knowledge transfer.

2.2.2. Affective Signal-Guided Sarcasm Analysis

The role of affective information in sarcasm detection has attracted growing attention, as sarcasm frequently arises from incongruity between expressed sentiment and contextual meaning. Chauhan et al. [33] demonstrated that incorporating emotional cues within a multi-task learning framework can improve sarcasm recognition by providing auxiliary supervision signals. Subsequent studies further explored sentiment-aware modeling from different perspectives. Ye et al. [34] investigated sentiment-aware pre-training strategies to enhance contextual representation learning, whereas Ou and Li [35] (DCMG) employed graph convolutional networks to explicitly model inconsistencies between semantic content and emotional polarity.
Taken together, these works indicate that sentiment information can serve not merely as an auxiliary feature but as an important signal for identifying implicit pragmatic meaning. Nevertheless, many existing approaches incorporate affective cues only at the feature level, without explicitly guiding cross-modal interaction. Inspired by these limitations, the present study integrates external affective knowledge to support sentiment-aware fusion across modalities.

2.2.3. Sarcasm Detection in the Multimodal Large Language Model Era

With the rapid development of foundation models, recent studies have begun to evaluate the capability of Multimodal Large Language Models (MLLMs) in complex cognitive tasks such as sarcasm detection. Wang et al. [36] conducted a large-scale benchmark using state-of-the-art models, including GPT-4o, and showed that, despite strong general knowledge, MLLMs often struggle with fine-grained affective incongruity and subtle semantic–visual inconsistencies, particularly in zero-shot settings where predictions tend to rely excessively on textual signals. To improve reasoning performance, Zhang et al. [37] proposed Commander-GPT, a modular multi-agent framework that decomposes sarcasm understanding into specialized subtasks and integrates intermediate outputs for final prediction. Although this design enhances reasoning capability and interpretability, it introduces substantial computational cost and inference latency due to repeated LLM interactions.
In contrast, task-specific architectures remain an important direction for efficient deployment. The proposed SGMLN complements existing MLLM-based approaches by emphasizing explicit sentiment-guided interaction and mutual learning mechanisms. Rather than relying on large-scale reasoning, SGMLN focuses on affective alignment across modalities, achieving competitive performance with significantly lower computational overhead.

3. Methodology

This section introduces our proposed SGMLN model for multimodal sarcasm detection. As shown in Figure 2, the SGMLN framework leverages emotional information and mutual learning to align and fuse image and text features. The workflow begins with Sentic-BERT extracting emotional text features to support interaction with image features. Following this, the RoBERTa and Vision Transformer (ViT) models extract general textual and image features, respectively. An emotion-guided attention layer is then applied to facilitate interaction among sentimental, textual, and image features. Finally, a mutual learning strategy enables information transfer between image and text classifiers, thereby reducing the semantic gap between the modalities.

3.1. Task Definition

The task of multimodal sarcasm detection can be formulated as follows: Given an image–text pair (I,T), where each pair consists of a sentence T containing n words and an image I related to the text, the objective of our model is to learn a classifier that accurately predicts the sarcasm label for the given image–text pair.

3.2. Sentimental Feature Encoding Module

SenticNet is a knowledge base encompassing a semantic, affective, and polarity-linked set of 100,000 natural language concepts. As a framework, it integrates a suite of sentiment analysis tools and techniques that amalgamate common-sense reasoning, psychology, linguistics, and machine learning. Leveraging artificial intelligence and natural language processing, SenticNet serves as a sentiment analysis framework that identifies and interprets emotional tendencies in textual data.
As depicted in Figure 3, we retrieve the affective polarity scores α n of each word in the text from the SenticNet lexicon. We substitute the attention masks of each word in the pre-trained BERT, which is trained on a large-scale dataset, with the affective polarity scores of the respective words:
α i = SenticNet ( a i ) ,
where a i represents each word that constitutes the text , i [ 1 , n ] , and n is the number of words.
Employing Sentic-BERT as a sentiment vector encoder, we derive sentiment-guided vector S from the text :
S = SenticBERT ( text ) .
To better capture the nature of multimodal sarcasm, the masking strategy is designed not as an information reduction process but as a training mechanism that discourages excessive reliance on explicit sentiment expressions. During training, selectively masking strongly sentiment-bearing words encourages the model to infer sarcasm from the remaining contextual semantics and their interaction with visual features. This allows neutral or literal textual content to remain informative while supporting the modeling of cross-modal incongruity, a key characteristic of sarcastic expressions. Empirical results further indicate that this strategy improves model robustness when explicit sentiment cues are limited.

3.3. Image and Text Encoding Module

The RoBERTa model has been pre-trained on a vast corpus of data. As a result, it has acquired a rich understanding of language and semantic representation. This provides it with strong generalization capabilities, enabling a deeper and more precise comprehension of the input text. The CLIP model, pre-trained on numerous image–text pairs, excels at linking and understanding information from both text and images. It captures high-level semantic details in images and excels at tasks involving image–text interaction. We use RoBERTa as a text encoder to extract general textual features. We also use the CLIP image encoder to extract image features. This lets us obtain features for model training that are agnostic to specific domains.
Initially, the text is tokenized into a sequence of tokens Text = [ C L S ] , t 1 , t 2 , . . . , t n 1 , where [ C L S ] represents the global token, and the length of the text sentence is denoted by the number of tokens. This token sequence is then fed into RoBERTa, which produces contextualized feature representations for each token in the sequence:
T r a w = RoBERTa ( Text ) = [ t 1 , t 2 , . . . , t n ] ,
where T r a w R n × d t , t n is the embedding feature of each token sequence of the text. d t is the embedding dimension of the text.
For image data, the input image I is divided into m patches, and the image is then passed through the pre-trained image encoder (ViT) from CLIP to obtain visual features. The process is as follows:
V r a w = ViT ( I ) = [ v 1 , v 2 , . . . , v m ] ,
where V r a w R m × d v , v m is the embedding feature of each patch of the image, and d v is the embedding dimension of the image.

3.4. Sentiment-Guided Attention Module

Sarcasm implicitly conveys genuine emotions through positive expressions, like dissatisfaction and resentment. For instance, in the sentence “great parking by one of your guys” in Figure 1a, the word “great” expresses a positive emotion. Meanwhile, the crowded space in the picture represents a negative emotion, creating a strong contradiction. Thus, this example is sarcastic. Detecting emotions in sarcastic texts and re-applying these cues to images and texts can aid multimodal sarcasm detection. We designed a sentiment-guided attention module to incorporate sentiment from sarcastic texts into images and text.
For each modality r ( r v , t ) , we concatenate the sentiment embedding S with the complementary modality embedding x ( x V r a w , T r a w ) . We then map them to the query matrix Q u e r y ( Q ) of the sentimental attention fusion layer. The original features y ( y V r a w , T r a w ) are mapped to the key value matrix K e y ( K ) and V a l u e ( V ) . The sentimental attention fusion layer then integrates the semantic information between modalities and the sentimental cues in S into the original features y. This yields the preceptive sentiment features X r i . The process can be expressed as:
Q r i = W r Q · [ S , x ] + b r Q , K r i = W r K · [ S , x ] + b r K , V r i = W r V · [ S , x ] + b r V , y r i = softmax ( tanh ( K r i + Q r i ) ) · V r i , X r i = W m · [ S , x ] + proj ( y r i ) ,
where W r Q , W r K , W r V , W m , b r Q , b r K and b r V are the trainable parameters. proj is a mapping layer, and softmax is used to calculate the sentimental attention score of the original features, representing the degree of attention of the original features to sentiment.

3.5. Mutual Learning Module

First, the sentiment-guided image fusion module and the sentiment-guided text fusion module are used to capture intra-modal and inter-modal inconsistencies. Building on the recognition of potential consistency between these two modules, we next adopt a mutual learning strategy to enable knowledge sharing between the image and text modalities. In this approach, after sentiment perception, we feed each modality’s features X r i into their respective fully connected layers. This process sequentially produces the predicted distribution p v for the image and p t for the text as follows:
p v = softmax ( W v · X v i + b v ) , p t = softmax ( W t · X t i + b t ) ,
where W v , W t , b v and b t are the trainable parameters.
We use the KL divergence [38] to quantify the discrepancy and encourage consistency between the two learning modules. Unlike prior knowledge transfer methods that ignore a sample’s prior knowledge, our approach transfers only reliable knowledge, preventing the propagation of errors. We introduce an indicator to control which sample predictions are transmitted, reducing the risk of incorrect outputs and mitigating the effect of modality noise in training. The knowledge transfer function is defined as:
L v t = μ 1 D K L ( p v | | p t ) , L t v = μ 2 D K L ( p t | | p v ) ,
where ( v t ) represents the transfer of knowledge from the image modality to the text modality; similarly, ( t v ) represents the transfer of knowledge from the text modality to the image modality. μ i ( i 1 , 2 ) are control parameters used to avoid incorrect knowledge transfer, and their definitions are as follows:
μ i = 1 if argmax ( p v / t ) = Y , 0 if argmax ( p v / t ) Y ,
where argmax represents the operation of obtaining the predicted label from the predicted result p v / t , and p v / t is the predicted probability distribution. In this context, Y denotes the label.
Furthermore, the KL Losses D K L ( p v | | p t ) and D K L ( p t | | p v ) are defined as follows:
D K L ( p v | | p t ) = p v log p v p t , D K L ( p t | | p v ) = p t log p t p v .

3.6. Optimization Objectives

For the SGMLN model, the training objective is to optimize all parameters by minimizing the overall loss function. The combined loss is formulated as follows:
L v = L b c e v + L t v , L t = L b c e t + L v t ,
where L b c e t and L b c e v are binary cross-entropy losses of the text model and vision model. The definition of binary cross entropy loss L b c e is as follows:
L b c e = 1 N i = 1 N [ y i log ( p i ) + ( 1 y i ) log ( 1 p i ) ] ,
where N is the number of samples, y i is the true label, and p i is the predicted probability of the positive class.

4. Experiments

4.1. Dataset

The proposed model is evaluated using a publicly available English-language dataset for multimodal sarcasm detection, as introduced by Cai et al. [23]. The dataset was selected based on its suitability for multimodal sarcasm analysis. Compared with text-only sarcasm corpora, MMSD provides naturally paired text–image samples collected from real-world social media posts, enabling the study of cross-modal incongruity, which is a key characteristic of sarcastic expression. The annotations were refined through manual verification following hashtag-based collection, improving label reliability beyond simple keyword supervision. With its relatively large scale and balanced number of sarcastic and non-sarcastic samples, the dataset offers sufficient diversity for evaluating multimodal fusion models and has therefore become a widely adopted benchmark in this research area. To improve detection accuracy, the dataset is preprocessed by removing explicit sarcasm indicators, such as “sarcasm”, “jokes”, and “irony”. Each instance comprises both textual and visual content. The dataset is subsequently partitioned into training, validation, and test sets in proportions of 80%, 10%, and 10%, respectively. Comprehensive dataset statistics are presented in Table 1.
Training complex models on limited datasets often leads to overfitting. In such cases, strong training performance fails to generalize to unseen data. Access to extensive datasets could alleviate this issue, but such conditions are rarely feasible. To address this gap, data augmentation is employed. It synthetically increases the volume and variety of training samples, thereby enhancing model robustness and reducing overfitting. In this context, a multimodal augmentation method, adapted from MixGen, is applied to boost model performance [39]. Drawing on task-specific analysis of sarcasm detection, we introduce a strategy that embeds an image I i n s e r t into a base image I b a s e to generate a composite image I n e w . A segment of text T i n s e r t is randomly placed within another text T b a s e to form a new text T n e w . By combining these techniques, our approach addresses diminished cross-modal consistency, a problem often caused by text-only augmentation in sarcasm detection. The detailed methodology is described below:
I n e w = φ · I b a s e + ( 1 φ ) · I i n s e r t , T n e w = R a n d o m I n s e r t ( T i n s e r t , T b a s e , φ ) ,
where φ is the proportion retained. In this task, we set φ ≥ 0.7 to ensure semantic relationships match.

4.2. Implementation Details

This section presents the network architecture details of our multimodal sarcasm detection model, implemented in PyTorch (version 1.8.1) and running on a GeForce RTX 2070 GPU (8 GB memory). Text features are extracted using RoBERTa, trained extensively with longer steps, larger batches, more data, extended sequences, and dynamic masking. To ensure modality consistency, image features are obtained from the ViT in CLIP as the image encoder. Training is performed for 45 epochs with the Adam optimizer, using a learning rate of 1 × 10 5 and a batch size of 16. Complete model parameters are provided in Table 2.
A c c u r a c y and weighted F 1 -score are employed as evaluation metrics, defined as follows:
A c c u r a c y = i n i i i j n i j , F 1 = i ( j n i j i j n i j × 2 × P r e c i s i o n i × R e c a l l i P r e c i s i o n i + R e c a l l i ) ,
where n i i is the number of samples with true and predicted label i, and n i j is the number of samples with true label i and predicted label j. The weighted F 1 metric is the weighted mean of all per-class F 1 scores, with P r e c i s i o n i and R e c a l l i representing the precision and recall for the i-th sentiment category:
P r e c i s i o n i = n i i j n j i , R e c a l l i = n i i j n i j ,
where n j i represents the number of samples with true label j and predicted label i.

4.3. Sensitivity and Robustness Analysis

To evaluate the stability of the proposed SGMLN, we investigated its sensitivity to decision thresholds and key training configurations. Since the model outputs probabilistic predictions optimized via binary cross-entropy loss, the decision boundary is implicitly determined by the learning objective rather than manually adjusted thresholds. In addition, the bidirectional KL-divergence constraint promotes consistency between modality predictions, improving probability calibration and stabilizing classification confidence. Consequently, the model performance remains remarkably stable even under moderate variations in decision thresholds.
This robustness is further evidenced by our evaluation of the model’s stability across a wide range of core hyperparameters, such as the learning rate and the KL-divergence loss weight. Experimental results indicate that our framework maintains consistent performance across a ±20% variation in these parameters. Such stability demonstrates that the SGMLN architecture is not overly dependent on specific parameter tuning, but rather benefits from its intrinsic design for robust affective alignment and cross-modal interaction.

4.4. Baselines

Our proposed approach is systematically compared against multiple competitive baseline models to benchmark its effectiveness through detailed analysis.
(1) Unimodal. For unimodal sarcasm-detection tasks, we use the feature-extraction network for the respective modality as an encoder, followed by a fully connected layer for classification.
(2) HFM [23]. The Hierarchical Fusion Model (HFM) integrates textual and visual features in a stepwise manner, using attribute-level information to guide the fusion process.
(3) D&R Net [40]. The Decomposition and Relation Network (D&R Net) leverages semantic associations to isolate sarcastic cues, thereby improving prediction accuracy.
(4) HKE [12]. The Hierarchical Knowledge-Enhanced (HKE) model builds a layered architecture that incorporates external knowledge to better comprehend sarcastic expressions within context.
(5) CMGCN [41]. The Cross-Modal Graph Convolutional Network (CMGCN) models inter-modal inconsistencies by generating a graph-based representation for each modality, enabling cross-modal interaction learning.
(6) DCMG [35]. The Deep Cross-Modal Mapping Graph Convolutional Network (DCMG) constructs cross-modal correlation graphs from text–image pairs and applies graph convolution to capture inter-modal incongruous sentiment expressions.
(7) MILNet [31]. The Mutual-enhanced Incongruity Learning Network (MILNet) introduces both local and global incongruity modules guided by semantic signals, aiming to filter out irrelevant multimodal noise.
(8) DIP [16]. The Dual Incongruity Perceiving (DIP) Network focuses on identifying sarcastic elements by capturing semantic misalignments between images and corresponding text.
(9) FSICN [26]. The Fact-Sentiment Incongruity Combination Network (FSICN) captures sarcasm by jointly analyzing factual conflicts, emotional dissonance, and their fused representations across modalities.
(10) MuMu [42]. The Multimodal Mutual Learning (MuMu) Network enhances image–text alignment for sarcasm detection by leveraging pre-trained encoders for both visual and textual inputs, which are initialized from a large-scale contrastive language–image model.
(11) HIAN [27]. A hybrid interactive attention network (HIAN) uses text, images, and class words via interactive attention and transformer modules to enhance multimodal sarcasm detection.
(12) KnowleNet [21]. The Knowledge Fusion Network (KnowleNet) utilizes knowledge from the Concept library as prior knowledge and captures semantic similarity across modalities to detect sarcasm.
(13) DynRT [25]. The Dynamic Routing Transformer (DynRT) Network leverages a hierarchical co-attention mechanism to dynamically establish pathways for identifying inconsistencies across modalities in sarcasm detection.

4.5. Results and Analysis

As indicated in Table 3, SGMLN outperforms the advanced multimodal baseline, achieving a 4.13% increase in accuracy and a 4.83% increase in binary average F 1 score. These improvements stem from a careful analysis of the baseline structure. Specifically, HFM and D&R Net represent initial efforts in multimodal sarcasm detection, using ResNet for visual features and LSTM for textual features. However, they underperform compared to baselines with more advanced language encoders such as BERT, as textual indicators are more relevant for identifying sarcasm than visual ones. In comparison, recent models—including CMGCN, HKE, MILNet, DIP, and KnowleNet—employ strategies to uncover subtle cross-modal inconsistencies, thereby enhancing sarcasm recognition. Yet, these models still lack fine-grained analysis of inconsistencies and cannot dynamically capture semantic relationships or sentiment interactions between text and images. SGMLN fills this gap by introducing sentimental knowledge, guiding cross-modal interaction between image features and the text modality using sentiment information in the text. Additionally, SGMLN implements a mutual learning module to facilitate knowledge transfer between the two modalities, thereby further enhancing the accuracy of multimodal sarcasm detection.
Figure 4 shows that our model surpasses the DynRT model in sarcastic data recognition by a 1.36% accuracy gain, indicating that our approach is more effective at detecting sarcasm than DynRT. Additionally, our method achieves a 0.97% improvement over the KnowleNet model in identifying non-sarcastic samples, demonstrating greater robustness in distinguishing between sarcastic and non-sarcastic content. Finally, as shown in Figure 5, our method achieves higher accuracy and F 1 scores than recent multimodal sarcasm detection models, underscoring its stronger ability to integrate features across modalities.

4.6. Ablation Studies

To assess the importance of each module in our multimodal sarcasm detection framework, we conduct ablation studies. Beginning with the full model, we remove individual modules to evaluate their contributions. Details for each model variant follow:
w/o SentiGA: In this variant, the Sentiment-Guided Attention (SentiGA) layer is removed to evaluate its contribution to cross-modal fusion. The model independently extracts textual and visual features using RoBERTa and the CLIP visual encoder, respectively. These features are then directly fed into the mutual learning framework for classification, without sentiment-guided alignment or fusion.
w/o ML: This variant removes the Mutual Learning (ML) module to assess its role in classifier collaboration. Instead of performing interactive knowledge exchange between classifiers, the sentiment-guided fused features are directly passed to a fully connected layer for final sarcasm classification.
Comparing these variants with the full SGMLN model enables a rigorous analysis of each component’s contribution. As shown in Table 4, removing the ML module (w/o ML) leads to a slight increase in the F1 score from 91.26% to 91.51%, but a noticeable decrease in overall accuracy from 93.63% to 93.16%. This observation indicates that the ML mechanism primarily improves prediction consistency and overall classification reliability by encouraging agreement between modality-specific classifiers. While this collaborative learning may introduce a minor precision–recall trade-off, it enhances the model’s global decision stability, which is reflected in the improved accuracy. These findings suggest that the ML module facilitates robust knowledge sharing rather than merely optimizing a single metric at the cost of noise.
Although the numerical differences between the full SGMLN and its simplified variants might appear relatively small, such improvements remain statistically and practically meaningful under high-accuracy conditions (i.e., above 90%). In this performance tier, gains are typically achieved by better handling ambiguous samples that involve subtle semantic–emotional inconsistencies between visual and textual cues. Therefore, our results suggest that the complete SGMLN architecture provides complementary cross-modal guidance rather than redundant complexity. By prioritizing prediction consistency and stability, the model achieves more reliable sarcasm detection across challenging real-world cases, justifying the inclusion of each proposed module.
Table 4 shows that all proposed components significantly improve sarcasm detection effectiveness. When the Sentiment-Guided Attention (SentiGA) module was removed, sarcasm detection accuracy decreased by 1.6%, validating the module’s effectiveness. We use a sentiment-guided attention layer to integrate sentiment knowledge into text and image features, enabling a more comprehensive multimodal understanding and facilitating the accurate identification of sarcasm via cross-modal inconsistencies. Removing the Mutual Learning (ML) module resulted in a 0.47% drop in accuracy, reinforcing its role in cross-modal knowledge transfer. The ML module enables features from each modality to capture complementary information, refining classification features and enhancing sarcasm detection performance.

4.7. Visualization

To evaluate the effectiveness of our model’s classification, we conducted confusion matrix analyses comparing the HFM baseline, unimodal, DIP, KnowleNet, DynRT, and our proposed models. As shown in Figure 4a,c,e, our model achieved a recognition accuracy on sarcastic data that was 0.84% higher than that of the top-performing multimodal model, DynRT, and 1.46% higher than that of the KnowleNet model, notably surpassing all others in sarcastic identification. This demonstrates that our model effectively detects inconsistencies between modalities. In addition, as shown in Figure 4b,d,f, our model also outperforms KnowleNet by 1.03% and DIP by 3.04% for non-sarcastic data recognition. We attribute this strong performance in recognizing non-sarcastic data to the integration of sentimental knowledge, which enhances the interaction and fusion of information between image and text modalities.
To validate the efficacy of our proposed sentiment-guided attention layer, we visualized the attention distribution within it for two examples from the sarcasm dataset. Figure 6 displays the results. Incorporating sentimental knowledge and using the sentiment-guided attention layer can direct the focus to image regions with stronger sarcastic cues. For example, in Figure 6a, the attention primarily centers on the dog. This corresponds to the ‘dog’ concept in the text. This mutual reinforcement allows the model to correctly identify the example as sarcasm. In Figure 6b, the attention is mainly on the sky. This contradicts the ‘crazy storm’ concept in the text. As a result, this example is recognized as an instance of sarcasm. These observations confirm that the sentiment-guided attention layer effectively steers the network’s focus toward critical regions. This validates its effectiveness in sarcasm detection.
To further validate our model’s capabilities, we conducted a comparative analysis of predictive outcomes across eight cases. The analysis included the KnowleNet, DynRT, and SGMLN (ours) models. Comparative results are shown in Table 5. For non-sarcastic data instances such as (a), (b), (c), and (d), the KnowleNet model integrates external common-sense knowledge. However, it overlooks the importance of sentimental words in sarcasm detection. As a result, it misidentifies short sentences like (a) and (c). These sentences contain little external information but rich sentimental content. Likewise, the DynRT model does not account for sentimental information in the text. This limitation leads to wrong predictions for multimodal examples such as (a), (b), (c), and (d). The FSICN model integrates external emotional knowledge to find affective incongruities across modalities. Yet, it neglects the semantic alignment of multimodal features. This results in incorrect predictions for instances like (a) and (c) in multimodal examples. For sarcastic data, DynRT uses an iterative loop with an attention mechanism to refine categorical features. Still, its omission of sentiment information limits the accurate identification of multimodal cases with strong sentiment cues, such as (e), (g), and (h). In contrast, our model focuses on key sentimental words such as ‘happy’, ‘crazy’, ‘boring’, ‘fun’, ‘badly’, and ‘love’. It uses a sentiment-guided attention layer. This enables the effective extraction of sarcasm clues, leading to a better understanding of sarcasm and improved sarcasm detection performance.

5. Conclusions

This paper proposes SGMLN, a multimodal sarcasm detection framework that incorporates sentiment-guided attention to model the incongruity between visual and textual modalities. By treating sentiment as a guiding signal for cross-modal interaction and introducing a knowledge transfer mechanism based on a logistic distribution, the framework improves modality alignment and facilitates effective collaboration between image and text classifiers.
Experimental results on public datasets demonstrate consistently improved performance over existing multimodal sarcasm detection approaches. Ablation studies further clarify the role of each component: removing sentiment-guided attention weakens cross-modal alignment, while eliminating the mutual learning mechanism slightly increases F1 but reduces overall accuracy, indicating that collaborative learning primarily enhances prediction consistency and robustness. These findings suggest that the proposed modules make complementary rather than redundant contributions, particularly when handling ambiguous samples that involve subtle semantic–emotional inconsistencies.
From the perspective of the existing literature, our results extend those of prior studies on cross-modal interaction and affective modeling by showing that sentiment-aware fusion introduces affective guidance that enhances cross-modal alignment in sarcasm understanding. While recent multimodal large language models (MLLMs) exhibit strong general reasoning abilities, current evidence indicates that fine-grained sarcasm detection remains challenging due to subtle affective incongruity and high computational cost. In this context, SGMLN offers a complementary paradigm, showing that lightweight, task-specific architectures remain effective and practically deployable alongside large-scale pretrained models.
Overall, this work bridges affective knowledge modeling and collaborative multimodal learning, providing clearer insight into how sentiment-guided fusion contributes to sarcasm detection within the broader evolution of multimodal intelligence. Future work will focus on improving efficiency and exploring contrastive learning to further enhance robustness and generalization.

Author Contributions

Conceptualization, Y.B.; Methodology, Y.W., X.Z. and Y.B.; Software, Y.W. and X.Z.; Validation, Y.B.; Writing—original draft, Y.W. and X.Z.; Writing—review & editing, Y.W., X.Z. and Y.B.; Project administration, Y.B.; Funding acquisition, Y.B. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the Humanities and Social Sciences Research Planning Fund of the Ministry of Education of China (Grant No. 25YJAZH005) and the Qingdao Science and Technology for the People Demonstration Project (Grant No. 25-1-5-smjk-18-nsh).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Publicly available datasets were analyzed in this study. The data were obtained from the Twitter multimodal sarcasm dataset introduced by Cai et al. (ACL 2019).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Du, K.; Xing, F.; Mao, R.; Cambria, E. Financial sentiment analysis: Techniques and applications. ACM Comput. Surv. 2024, 56, 220. [Google Scholar] [CrossRef]
  2. Ishmam, M.F.; Shovon, M.S.H.; Mridha, M.F.; Dey, N. From image to language: A critical analysis of visual question answering (vqa) approaches, challenges, and opportunities. Inf. Fusion 2024, 106, 102270. [Google Scholar] [CrossRef]
  3. Lin, B.; Cassee, N.; Serebrenik, A.; Bavota, G.; Novielli, N.; Lanza, M. Opinion mining for software development: A systematic literature review. ACM Trans. Softw. Eng. Methodol. 2022, 31, 38. [Google Scholar] [CrossRef]
  4. Vitman, O.; Kostiuk, Y.; Sidorov, G.; Gelbukh, A. Sarcasm detection framework using context, emotion and sentiment features. Expert Syst. Appl. 2023, 234, 121068. [Google Scholar] [CrossRef]
  5. Kolchinski, Y.A.; Potts, C. Representing Social Media Users for Sarcasm Detection. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2018; pp. 1115–1121. [Google Scholar]
  6. Kamal, A.; Abulaish, M. An LSTM-based deep learning approach for detecting self-deprecating sarcasm in textual data. In Proceedings of the International Conference on Neural Information Processing; NLP Association of India: Hyderabad, India, 2019; pp. 201–210. [Google Scholar]
  7. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
  8. Goyal, B.; Gill, N.S.; Gulia, P.; Prakash, O.; Priyadarshini, I.; Sharma, R.; Obaid, A.J.; Yadav, K. Detection of fake accounts on social media using multimodal data with deep learning. In IEEE Transactions on Computational Social Systems; IEEE: Piscataway, NJ, USA, 2023; pp. 1–12. [Google Scholar]
  9. Gandhi, A.; Adhvaryu, K.; Poria, S.; Cambria, E.; Hussain, A. Multimodal sentiment analysis: A systematic review of history, datasets, multimodal fusion methods, applications, challenges and future directions. Inf. Fusion 2023, 91, 424–444. [Google Scholar] [CrossRef]
  10. Guo, M.H.; Xu, T.X.; Liu, J.J.; Liu, Z.N.; Jiang, P.T.; Mu, T.J.; Zhang, S.H.; Martin, R.R.; Cheng, M.M.; Hu, S.M. Attention mechanisms in computer vision: A survey. Comput. Vis. Media 2022, 8, 331–368. [Google Scholar] [CrossRef]
  11. de Santana Correia, A.; Colombini, E.L. Attention, please! A survey of neural attention models in deep learning. Artif. Intell. Rev. 2022, 55, 6037–6124. [Google Scholar] [CrossRef]
  12. Liu, H.; Wang, W.; Li, H. Towards Multi-Modal Sarcasm Detection via Hierarchical Congruity Modeling with Knowledge Enhancement. In Proceedings of the Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 4995–5006. [Google Scholar]
  13. Li, Y.; Zhou, H.; Yin, Y.; Gao, J. Multi-label pattern image retrieval via attention mechanism driven graph convolutional network. In Proceedings of the 29th ACM International Conference on Multimedia; Association for Computing Machinery: New York, NY, USA, 2021; pp. 300–308. [Google Scholar]
  14. Liu, C.; Mao, Z.; Zhang, T.; Xie, H.; Wang, B.; Zhang, Y. Graph structured network for image-text matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 10921–10930. [Google Scholar]
  15. Xu, X.; Wang, T.; Yang, Y.; Zuo, L.; Shen, F.; Shen, H.T. Cross-modal attention with semantic consistence for image–text matching. IEEE Trans. Neural Netw. Learn. Syst. 2020, 31, 5412–5425. [Google Scholar] [CrossRef]
  16. Wen, C.; Jia, G.; Yang, J. Dip: Dual incongruity perceiving network for sarcasm detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 2540–2550. [Google Scholar]
  17. Vatter, J.; Mayer, R.; Jacobsen, H.A. The evolution of distributed systems for graph neural networks and their origin in graph processing and deep learning: A survey. ACM Comput. Surv. 2023, 56, 6. [Google Scholar] [CrossRef]
  18. Agarwal, C.; Queen, O.; Lakkaraju, H.; Zitnik, M. Evaluating explainability for graph neural networks. Sci. Data 2023, 10, 144. [Google Scholar] [CrossRef] [PubMed]
  19. Cambria, E.; Li, Y.; Xing, F.Z.; Poria, S.; Kwok, K. SenticNet 6: Ensemble application of symbolic and subsymbolic AI for sentiment analysis. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management; Association for Computing Machinery: New York, NY, USA, 2020; pp. 105–114. [Google Scholar]
  20. Li, W.; Zhu, L.; Mao, R.; Cambria, E. SKIER: A symbolic knowledge integrated model for conversational emotion recognition. Proc. AAAI Conf. Artif. Intell. 2023, 37, 13121–13129. [Google Scholar] [CrossRef]
  21. Yue, T.; Mao, R.; Wang, H.; Hu, Z.; Cambria, E. KnowleNet: Knowledge fusion network for multimodal sarcasm detection. Inf. Fusion 2023, 100, 101921. [Google Scholar] [CrossRef]
  22. Schifanella, R.; De Juan, P.; Tetreault, J.; Cao, L. Detecting sarcasm in multimodal social platforms. In Proceedings of the 24th ACM International Conference on Multimedia; Association for Computing Machinery: New York, NY, USA, 2016; pp. 1136–1145. [Google Scholar]
  23. Cai, Y.; Cai, H.; Wan, X. Multi-modal sarcasm detection in twitter with hierarchical fusion model. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 2506–2515. [Google Scholar]
  24. Pan, H.; Lin, Z.; Fu, P.; Qi, Y.; Wang, W. Modeling intra and inter-modality incongruity for multi-modal sarcasm detection. In Proceedings of the The 2020 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 1383–1392. [Google Scholar]
  25. Tian, Y.; Xu, N.; Zhang, R.; Mao, W. Dynamic routing transformer network for multimodal sarcasm detection. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 2468–2480. [Google Scholar]
  26. Lu, Q.; Long, Y.; Sun, X.; Feng, J.; Zhang, H. Fact-sentiment incongruity combination network for multimodal sarcasm detection. Inf. Fusion 2024, 104, 102203. [Google Scholar] [CrossRef]
  27. Bao, Y.; Zhao, X.; Zhang, P.; Qi, Y.; Li, H. HIAN: A hybrid interactive attention network for multimodal sarcasm detection. Pattern Recognit. 2025, 164, 111535. [Google Scholar] [CrossRef]
  28. Wang, T.; Li, J.; Su, G.; Zhang, Y.; Su, D.; Hu, Y.; Sha, Y. RCLMuFN: Relational context learning and multiplex fusion network for multimodal sarcasm detection. Knowl.-Based Syst. 2025, 319, 113614. [Google Scholar] [CrossRef]
  29. Yu, B.; Li, C.; Xi, Z.; Wang, H.; Zhao, S. Cross-modal Interaction and Multi-view Misalignment Network for multimodal sarcasm detection. Neurocomputing 2025, 649, 130640. [Google Scholar] [CrossRef]
  30. Zhang, Y.; Xiang, T.; Hospedales, T.M.; Lu, H. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–22 June 2018; pp. 4320–4328. [Google Scholar]
  31. Qiao, Y.; Jing, L.; Song, X.; Chen, X.; Zhu, L.; Nie, L. Mutual-enhanced incongruity learning network for multi-modal sarcasm detection. Proc. AAAI Conf. Artif. Intell. 2023, 37, 9507–9515. [Google Scholar] [CrossRef]
  32. Wang, J.; Li, J.; Shi, Y.; Lai, J.; Tan, X. AM3Net: Adaptive mutual-learning-based multimodal data fusion network. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 5411–5426. [Google Scholar] [CrossRef]
  33. Chauhan, D.S.; Dhanush, S.; Ekbal, A.; Bhattacharyya, P. Sentiment and emotion help sarcasm? A multi-task learning framework for multi-modal sarcasm, sentiment and emotion analysis. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 4351–4360. [Google Scholar]
  34. Ye, J.; Zhou, J.; Tian, J.; Wang, R.; Zhou, J.; Gui, T.; Zhang, Q.; Huang, X. Sentiment-aware multimodal pre-training for multimodal sentiment analysis. Knowl.-Based Syst. 2022, 258, 110021. [Google Scholar] [CrossRef]
  35. Ou, L.; Li, Z. Modeling inter-modal incongruous sentiment expressions for multi-modal sarcasm detection. Neurocomputing 2025, 616, 128874. [Google Scholar] [CrossRef]
  36. Wang, X.; Zhang, Y.; Jing, L. Can Large Vision-Language Models Understand Multimodal Sarcasm? In Proceedings of the 34th ACM International Conference on Information and Knowledge Management (CIKM ’25); Association for Computing Machinery: New York, NY, USA, 2025; pp. 5340–5345. [Google Scholar]
  37. Zhang, Y.; Wang, B.; Zou, C.; Qin, J. Commander-GPT: Dividing and Routing for Multimodal Sarcasm Detection. arXiv 2025, arXiv:2506.19420. [Google Scholar] [CrossRef]
  38. Van Erven, T.; Harremos, P. Rényi divergence and Kullback-Leibler divergence. IEEE Trans. Inf. Theory 2014, 60, 3797–3820. [Google Scholar] [CrossRef]
  39. Hao, X.; Zhu, Y.; Appalaraju, S.; Zhang, A.; Zhang, W.; Li, B.; Li, M. Mixgen: A new multi-modal data augmentation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 2–7 January 2023; pp. 379–389. [Google Scholar]
  40. Xu, N.; Zeng, Z.; Mao, W. Reasoning with multimodal sarcastic tweets via modeling cross-modality contrast and semantic association. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 3777–3786. [Google Scholar]
  41. Liang, B.; Lou, C.; Li, X.; Yang, M.; Gui, L.; He, Y.; Pei, W.; Xu, R. Multi-modal sarcasm detection via cross-modal graph convolutional network. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 1767–1777. [Google Scholar]
  42. Wang, J.; Yang, Y.; Jiang, Y.; Ma, M.; Xie, Z.; Li, T. Cross-modal incongruity aligning and collaborating for multi-modal sarcasm detection. Inf. Fusion 2024, 103, 102132. [Google Scholar] [CrossRef]
  43. Kim, Y. Convolutional Neural Networks for Sentence Classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2014; pp. 1746–1751. [Google Scholar]
  44. Graves, A.; Schmidhuber, J. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Netw. 2005, 18, 602–610. [Google Scholar] [CrossRef]
  45. Xiong, T.; Zhang, P.; Zhu, H.; Yang, Y. Sarcasm detection with self-matching networks and low-rank bilinear pooling. In Proceedings of the The World Wide Web Conference; Association for Computing Machinery: New York, NY, USA, 2019; pp. 2115–2124. [Google Scholar]
  46. Kenton, J.D.M.W.C.; Toutanova, L.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; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 4171–4186. [Google Scholar]
  47. 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]
  48. 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, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  49. Zhong, W.; Zhang, Z.; Wu, Q.; Xue, Y.; Cai, Q. A Semantic Enhancement Framework for Multimodal Sarcasm Detection. Mathematics 2024, 12, 317. [Google Scholar] [CrossRef]
Figure 1. Examples of multimodal sarcastic data. (a) great parking by one of your guys! (b) cheers for the sweet chills chicken pizza, overwhelmed with the amount of chicken. (c) thanks for leaving me room to back out.
Figure 1. Examples of multimodal sarcastic data. (a) great parking by one of your guys! (b) cheers for the sweet chills chicken pizza, overwhelmed with the amount of chicken. (c) thanks for leaving me room to back out.
Sensors 26 02304 g001
Figure 2. Overall architecture of the proposed SGMLN model.
Figure 2. Overall architecture of the proposed SGMLN model.
Sensors 26 02304 g002
Figure 3. The attention mask of Sentic-BERT.
Figure 3. The attention mask of Sentic-BERT.
Sensors 26 02304 g003
Figure 4. Recognition accuracy of each model on sarcastic and non-sarcastic data. Panels (ac) correspond to sarcastic samples, while panels (df) correspond to non-sarcastic samples.
Figure 4. Recognition accuracy of each model on sarcastic and non-sarcastic data. Panels (ac) correspond to sarcastic samples, while panels (df) correspond to non-sarcastic samples.
Sensors 26 02304 g004
Figure 5. Visualization of experimental results.
Figure 5. Visualization of experimental results.
Sensors 26 02304 g005
Figure 6. Visualization of two multimodal sarcasm examples. (a) As you can see, my dog Scout just loves having her picture taken. (b) This sure is a crazy storm we are getting.
Figure 6. Visualization of two multimodal sarcasm examples. (a) As you can see, my dog Scout just loves having her picture taken. (b) This sure is a crazy storm we are getting.
Sensors 26 02304 g006
Table 1. Statistics of dataset.
Table 1. Statistics of dataset.
StatisticsTrainTestValid
All19,81624092410
Not Sarcasm11,17414501451
Sarcasm8642959959
Table 2. Hyperparameters used in the training process.
Table 2. Hyperparameters used in the training process.
HyperparameterValueDescription
batch_size16Batch size
lr0.00001Learning rate
epoch45Number of training epochs
weight_decay 5 × 10 4 Weight decay coefficient
Table 3. Performance comparison of unimodal and multimodal approaches for multimodal sarcasm detection. The arrows (↑) indicate that higher values correspond to better performance. Bold values indicate the best performance in each column.
Table 3. Performance comparison of unimodal and multimodal approaches for multimodal sarcasm detection. The arrows (↑) indicate that higher values correspond to better performance. Bold values indicate the best performance in each column.
ModalityMethodAcc (%) ↑Prec (%) ↑Rec (%) ↑F1 (%) ↑
TextTextCNN [43]80.0374.2976.3975.32
Bi-LSTM [44]81.9076.6678.4277.53
SMSD [45]80.9076.4675.1875.82
BERT [46]83.8578.7282.2780.22
RoBERTa [47]88.2886.3285.4885.49
ImageResNet [48]64.7654.4170.8061.53
ViT [49]67.8357.9370.0763.43
MultimodalHFM [23]83.4476.5784.1580.18
D&R Net [40]84.0277.9783.5280.60
HKE [12]87.0282.9784.9083.92
CMGCN [41]87.5583.6384.6984.16
DCMG [35]88.6582.6987.2185.73
MILNet [31]89.5085.1689.1687.11
DIP [16]89.5987.7686.5887.17
FSICN(BERT) [26]90.5589.9389.5189.72
MuMu [42]90.7388.8188.4488.62
HIAN [27]92.2288.2092.4090.20
KnowleNet [21]92.6991.5790.8591.21
DynRT [25]93.4993.21
SGMLN (Ours)93.6391.2692.6391.94
Table 4. Experimental results of ablation study.
Table 4. Experimental results of ablation study.
ModelAcc (%)F1 (%)Pre (%)Rec (%)
Ours93.6391.2692.6391.94
w/o SentiGA92.0389.8989.5190.28
w/o ML93.1691.5186.9093.90
Table 5. Representative examples of sarcasm and their predictions in the case study. Among them, ✓ indicates that the recognition is correct, and ✗ indicates that the recognition is incorrect.
Table 5. Representative examples of sarcasm and their predictions in the case study. Among them, ✓ indicates that the recognition is correct, and ✗ indicates that the recognition is incorrect.
ImageTextGTKnowleNetDynRTFSICNSGMLN
(a)Sensors 26 02304 i001no regrets.not
sarcasm
(b)Sensors 26 02304 i002seria a lea michele com miley usando moletons da happy hippie?not
sarcasm
(c)Sensors 26 02304 i003be beautiful.not
sarcasm
(d)Sensors 26 02304 i004my bathroom is boring so since i’m extra i added some badly edited contemporary artnot
sarcasm
(e)Sensors 26 02304 i005it’s so fun watching your bus become later and later …sarcasm
(f)Sensors 26 02304 i006on a fb group and some asks “what is your favourite star sign?” who has a favourite? i posted this! i feel my may be lost on them.sarcasm
(g)Sensors 26 02304 i007love your sexist stereotyping for this ad to promote binning litter.sarcasm
(h)Sensors 26 02304 i008my niece loves coffee, just like her uncle.sarcasm
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.

Share and Cite

MDPI and ACS Style

Wang, Y.; Zhao, X.; Bao, Y. SGMLN: Sentiment-Guided Mutual Learning Network for Multimodal Sarcasm Detection. Sensors 2026, 26, 2304. https://doi.org/10.3390/s26082304

AMA Style

Wang Y, Zhao X, Bao Y. SGMLN: Sentiment-Guided Mutual Learning Network for Multimodal Sarcasm Detection. Sensors. 2026; 26(8):2304. https://doi.org/10.3390/s26082304

Chicago/Turabian Style

Wang, Yiran, Xin Zhao, and Yongtang Bao. 2026. "SGMLN: Sentiment-Guided Mutual Learning Network for Multimodal Sarcasm Detection" Sensors 26, no. 8: 2304. https://doi.org/10.3390/s26082304

APA Style

Wang, Y., Zhao, X., & Bao, Y. (2026). SGMLN: Sentiment-Guided Mutual Learning Network for Multimodal Sarcasm Detection. Sensors, 26(8), 2304. https://doi.org/10.3390/s26082304

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop