Domain-aware Self-supervised Pre-training for Label-Efficient Meme Analysis

Shivam Sharma, Mohd Khizir Siddiqui, Md. Shad Akhtar, Tanmoy Chakraborty

TL;DR

This paper introduces two novel self-supervised pre-training frameworks, MM-SimCLR and Ext-PIE-Net, designed specifically for the nuanced world of meme analysis. By leveraging domain-specific, unlabeled hate-speech data, these models learn rich multi-modal representations that significantly outperform generic baselines and achieve state-of-the-art results on meme-related tasks even when labeled training data is extremely scarce.

What Problem Does This Paper Address?

Memes are a unique challenge for AI. Unlike standard image-caption pairs (e.g., "a dog sitting on grass"), memes often rely on a non-obvious, ironic, or metaphorical relationship between text and image. A picture of a skunk paired with the text "Love the way you smell today" requires a sophisticated understanding of sarcasm that generic models like CLIP or ViLBERT—trained on literal descriptions—often lack.

Furthermore, high-quality labeled datasets for tasks like hate speech detection or sentiment analysis in memes are expensive and difficult to curate. The authors address this by exploring domain-aware self-supervised learning (SSL). The goal is to pre-train models on "raw" data from the wild (like hateful tweets) without using their labels, allowing the models to learn the specific "language" of memes before being fine-tuned on specific downstream tasks.

Methods

The authors propose two distinct architectures for multi-modal SSL:

  1. MM-SimCLR (Multi-modal SimCLR): This extends the popular SimCLR framework. It combines a standard contrastive loss for images with a new Multi-modal InfoNCE loss. This loss encourages the model to maximize the agreement between an image and its corresponding text in a shared latent space.
  2. Ext-PIE-Net (Extended PIE-Net): A more complex architecture that uses multi-headed co-attention to fuse image and text features. It optimizes a combination of SimCLR loss and weighted modality-specific hinge losses. This setup is designed to handle the lexical diversity and higher-level abstractions often found in complex memes.
The architectures for MM-SimCLR and Ext-PIE-Net show how image and text modalities are processed and fused through different loss functions.

Both models are pre-trained in a self-supervised fashion, meaning they learn to associate images and text without ever seeing a "hateful" or "not hateful" label during the initial phase.

Datasets

  • Pre-training: The authors used MMHS150K (150,000 multi-modal tweets spanning topics like racism and sexism) and the training split of the Hateful Memes dataset. Crucially, they ignored the existing labels during pre-training to simulate a "data from the wild" scenario.
  • Evaluation:
    • Hateful Memes (Facebook): Binary classification of hate speech.
  • Memotion (SemEval-2020): Three subtasks: Sentiment analysis, Emotion classification, and Emotion quantification.
  • HarMeme: Detecting harmful memes related to COVID-19.

Key Insights and Ideas

  • Domain Awareness is Crucial: Pre-training on data that is "domain-aligned" (i.e., other hateful content) provides a much better inductive bias for meme analysis than pre-training on generic datasets like MS-COCO.
  • Task Complexity vs. Model Capacity: The authors found a correlation between task difficulty and model architecture. The more complex Ext-PIE-Net performed better on abstract tasks like Sentiment and Emotion classification, while the lighter MM-SimCLR was more effective for straightforward classification tasks like HarMeme.
  • Label Efficiency: One of the most striking findings is that these SSL models can reach near-peak performance using only a fraction of the labeled data. For example, Ext-PIE-Net achieved a competitive F1 score on sentiment tasks with just 10% of the labeled training samples.

Key Results

  • Memotion Challenge: The proposed models outperformed the previous best supervised systems across all three tasks, with a massive 23.64% performance gain in the Emotion classification task.
  • Hateful Memes: Ext-PIE-Net achieved an accuracy of 0.60, significantly higher than the SSL baseline (VSE++) at 0.53.
  • Generalizability: MM-SimCLR showed strong transferability, achieving a Macro-F1 of 0.8140 on the HarMeme task, outperforming several fully supervised multi-modal baselines.
Figure 3: Training performance comparison for different label fractions [1 % – 10 % – 20 % – 50 %] for Ext- PIE-Net (top row) and MM-SimCLR (bottom row) on Memotion tasks. Dominant curves are smoothed depiction of the actual curves in the background.

Limitations and Future Work

  • Performance Gap: While the SSL models are highly efficient, they still generally lag behind the very best fully supervised models (like MOMENTA) when 100% of the labels are available.
  • Dataset Bias: The authors acknowledge that the datasets used (like MMHS150K) may contain inherent biases that could be reflected in the learned representations.
  • Future Directions: The authors suggest that further research into even more sophisticated multi-modal fusion strategies and broader analysis of generalizability across different web-based domains is needed.

Not discussed in the paper: The computational cost (in terms of GPU hours) for the pre-training phase compared to standard supervised training.

Summary updated

BibTeX
@inproceedings{sharma2022domain,
  author = {Shivam Sharma and Mohd Khizir Siddiqui and Md. Shad Akhtar and Tanmoy Chakraborty},
  title = {{Domain-aware Self-supervised Pre-training for Label-Efficient Meme Analysis}},
  booktitle = {AACL/IJCNLP},
  year = {2022},
  doi = {10.18653/v1/2022.aacl-main.60},
}
Figure