How to Describe Images in a More Funny Way? Towards a Modular Approach to Cross-Modal Sarcasm Generation

Jie Ruan, Yue Wu, Xiaojun Wan, Yuesheng ZhuarXiv 2022 · DOI

Abstract

Cross-Modal Sarcasm Generation (CMSG) is a sophisticated task that requires bridging visual perception with linguistic irony. Unlike traditional text-to-text sarcasm, CMSG must maintain relevance to an image while intentionally subverting its literal meaning. We introduce the Extraction-Generation-Ranking Modular (EGRM) framework, an unsupervised pipeline that generates witty, sarcastic descriptions without requiring paired training data. By combining sentiment reversal, commonsense reasoning, and multi-criteria ranking, EGRM significantly outperforms existing end-to-end models in human evaluations of sarcasticness and humor.

Introduction

Sarcasm relies on a "reversal of valence"—expressing a positive sentiment about a negative situation or vice versa. While AI has progressed in sarcasm detection, generating sarcasm from images remains difficult due to three primary hurdles: maintaining cross-modal correlation, the need for imaginative "reading between the lines," and a severe lack of paired image-sarcasm training data.

The EGRM Framework

To address these challenges, we propose EGRM, an unsupervised modular pipeline consisting of three distinct stages:

  1. Image Information Extraction: The system employs YOLOv5 for object detection and SentiCap to generate a literal "sentimental descriptive caption" (e.g., "a bad rainy day").
  2. Sarcastic Text Generation: This core module utilizes a Reverse the Valence (RTV) mechanism to flip the sentiment of the initial caption. It further integrates COMET for commonsense reasoning to infer potential consequences (e.g., a surfer might "crash"). Finally, CBART generates candidate sentences incorporating these elements.
  3. Comprehensive Ranking: A selection module evaluates candidates based on CLIPScore (relevance), a RoBERTa-based Sarcasticness model (irony), and a BERT-based Grammaticality check.
The EGRM framework overview, illustrating the modular pipeline from image extraction to sarcastic text generation and ranking.

Evaluation and Results

The model was tested using a subset of the SentiCap dataset. Since no large-scale sarcastic image-text dataset exists, the authors conducted an extensive human evaluation study involving 1,200 image-text pairs across eight systems to provide a gold-standard comparison.

Human evaluation instructions detailing the five scoring perspectives used to benchmark the CMSG task.

In these evaluations, EGRM achieved a Sarcasticness score of 2.85 and a Humor score of 2.78, significantly outperforming the BLIP baseline (1.31 and 1.91, respectively). While models like BLIP are more literally accurate, they lack the creative inconsistency required for irony. Overall, EGRM led with a quality score of 2.90.

Key Insights and Future Work

Our findings suggest that the "irony hook"—describing an image accurately before systematically inverting the sentiment—is the most effective unsupervised strategy for CMSG. Furthermore, modular approaches currently outperform end-to-end models in this data-poor domain.

Future research will focus on style control to generate different intensities of sarcasm, building larger parallel datasets for supervised fine-tuning, and integrating broader cultural contexts to enhance the relevance of generated humor.

Summary updated

BibTeX
@misc{ruan2022how,
  author = {Jie Ruan and Yue Wu and Xiaojun Wan and Yuesheng Zhu},
  title = {{How to Describe Images in a More Funny Way? Towards a Modular Approach to Cross-Modal Sarcasm Generation}},
  year = {2022},
  eprint = {2211.10992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.10992},
}
Figure