Introduction
Sarcasm is a sophisticated linguistic phenomenon where the intended meaning is the opposite of the literal expression. In multimodal contexts, such as social media, sarcasm often arises from the incongruity between text and image—for example, a caption exclaiming "What a wonderful job!" paired with an image of a poorly executed task.
Traditional approaches to multimodal sarcasm detection have treated it as a complex feature-fusion classification problem, utilizing Graph Neural Networks (GNNs) or cross-attention mechanisms to merge modalities. However, these models often suffer from overfitting to specific dataset quirks and rely on spurious textual cues rather than genuine irony. This paper proposes a paradigm shift: treating sarcasm detection as a generative reasoning task powered by Multimodal Large Language Models (MLLMs).
Methodology
The proposed framework leverages LLaVA-1.5, a generative MLLM, and introduces three core components to enhance its reasoning capabilities:
- Generative Redefinition: Instead of using a traditional classification head, the model is prompted to generate a discrete label (e.g., "1" for sarcasm, "0" for non-sarcasm).
- Demonstration Retrieval Module: To provide the model with relevant context, the system uses CLIP to retrieve the most similar image-text pair from the training set. This pair serves as a "few-shot" demonstration within the prompt.
- Instruction Template: A structured prompt presents the retrieved demonstration followed by the target sample, guiding the model to select the correct label based on the provided example.
The model is fine-tuned using Low-Rank Adaptation (LoRA), ensuring computational efficiency while maintaining the broad knowledge base of the pre-trained LLM.
Datasets and Evaluation
The authors evaluate their method across three distinct benchmarks:
- MMSD: The standard baseline for multimodal sarcasm.
- MMSD2.0: A refined version of MMSD that eliminates unreasonable samples and reduces reliance on spurious cues.
- RedEval: A new Out-of-Distribution (OOD) test set comprising 1,004 image-text pairs from Reddit, designed to test the model's ability to generalize beyond Twitter-centric training data.
Key Results and Insights
The generative approach achieves state-of-the-art (SOTA) results, reaching 86.43% accuracy on MMSD2.0. Crucially, the model demonstrates superior robustness on the RedEval dataset with 83.47% accuracy, whereas traditional fusion-based models typically experience significant performance degradation when moving to OOD data.
Analysis of the results reveals that:
- Contextual Retrieval is Effective: The inclusion of retrieved demonstrations significantly boosts performance, even for text-only models.
- Scaling Performance: While the MLLM approach requires more data to surpass smaller, specialized models (overtaking them at approximately 40% of the training set), its final performance ceiling is substantially higher.
- Generalization: The pre-trained knowledge inherent in LLMs provides a more stable foundation for irony detection than custom-built fusion layers.
Conclusion and Future Work
By redefining sarcasm detection as a generative task, this research highlights the potential of MLLMs to handle complex, nuanced reasoning. While the approach is computationally more intensive than traditional classifiers and remains dependent on the quality of the underlying vision encoder, it sets a new benchmark for robustness and generalization in the field. Future work will explore improving visual-to-text descriptions to further bridge the gap between modalities.
Summary updated