Caption Enriched Samples for Improving Hateful Memes Detection

Efrat Blaier, Itzik Malkiel, Lior Wolf

Detecting hate speech in memes presents a unique challenge for artificial intelligence. Unlike standard text-based hate speech, a meme's meaning emerges from the complex, often sarcastic intersection of image and text. Researchers from Tel-Aviv University addressed this at EMNLP 2021 by introducing Caption Enriched Samples (CES), a method that provides models with automated textual descriptions of images to bridge the semantic gap.

The Challenge of Multimodal Reasoning

The "Hateful Memes Challenge" highlights a critical failure in modern AI: the inability to perform nuanced multimodal reasoning. A "benign confounder" occurs when a specific image or text is swapped to change a meme's label from "not hateful" to "hateful." For example, certain text might be harmless in a sports context but becomes hate speech when paired with dehumanizing imagery.

A hateful meme example where text and image combine to create a derogatory message.

Current models often fail to capture these contrasts because they treat images as sets of low-level features rather than semantic concepts. Humans, by contrast, translate images into concepts—such as "a group of people" or "a pest"—and compare these concepts directly to the overlay text.

Methodology: Caption Enriched Samples (CES)

The CES approach simplifies the multimodal problem by converting visual information into a textual format that language models can more easily process.

  1. Caption Generation: An off-the-shelf image captioning tool creates a short description for each meme image (e.g., "a person standing in front of a crowd").
  2. Unimodal Integration: For text-only models like BERT or RoBERTa, the researchers employed "continued pre-training." The model learns to associate overlay text with the generated caption before being fine-tuned for classification.
  3. Multimodal Integration: For models like VisualBERT or ViLBERT, the generated caption is added as a third input stream. The model processes a triplet: (Image, Overlay Text, Generated Caption).

Key Results and Insights

The inclusion of captions led to consistent performance improvements across various architectures. The CES method acts as a semantic bridge, allowing models to leverage their pre-existing strengths in text-to-text relationship modeling.

Comparison of standard models vs. CES-enhanced models on specific meme examples, demonstrating how captions help correct classification errors.

Notably, the method proved resilient to captioning errors. Even when a captioning tool misidentified objects, the models often still correctly identified the hateful intent because they had learned the derogatory connotations of the terms within the meme's context.

Performance Gains

  • BERT (Unimodal): AUROC increased from 65.08 to 70.70.
  • ViLBERT (Multimodal): AUROC improved from 70.03 to 72.59.
  • Ensemble SOTA: By ensembling CES-enhanced models with UNITER, the researchers achieved an AUROC of 78.90, significantly closing the gap toward the human baseline of approximately 85.0.

Limitations and Future Work

The primary limitation is the reliance on the quality of the caption generator. While models show some resilience, a fundamentally incorrect caption can mislead the system. Future research may explore domain-specific captioners or the integration of additional enriched data, such as OCR for background text or celebrity identification, to further refine detection capabilities.

Reference: Blaier, E., Malkiel, I., & Wolf, L. (2021). Caption Enriched Samples for Improving Hateful Memes Detection. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP), 9350–9358.

Summary updated

BibTeX
@inproceedings{blaier2021caption,
  author = {Efrat Blaier and Itzik Malkiel and Lior Wolf},
  title = {{Caption Enriched Samples for Improving Hateful Memes Detection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.738},
}
Figure