SAFE-MEME: Structured Reasoning Framework for Robust Hate Speech Detection in Memes

Palash Nandi, Shivam Sharma, Tanmoy ChakrabortyarXiv 2024 · DOI

Abstract

Detecting hate speech in memes is a notoriously "wicked" problem for AI because meaning emerges from the sarcastic interplay between images and captions. We present SAFE-MEME, a novel multimodal framework that employs structured "Chain-of-Thought" reasoning to detect memetic malice. By deconstructing memes into intermediate Q&A steps or hierarchical categories, SAFE-MEME significantly outperforms standard Vision-Language Models (VLMs), especially in "confounding" scenarios where the same image is used for both benign and hateful purposes.

Introduction

Existing Vision-Language Models (VLMs) often fail at meme moderation because they focus on surface-level features and struggle with implicit hate—content relying on cultural context, irony, or metaphor. For example, a benign image paired with a specific caption can become misogynistic or racist. Current models lack the "common sense" to deconstruct these layers. Furthermore, many existing datasets lack the fine-grained labels (explicit vs. implicit) needed to train robust classifiers.

Methods: Structured Reasoning

The researchers from IIT Delhi propose SAFE-MEME (Structured reAsoning FramEwork), which adapts Multimodal Chain-of-Thought (CoT) reasoning through two primary variants:

  1. SAFE-MEME-QA (Q&A-style Reasoning): Instead of direct classification, this model generates intermediate questions and answers (e.g., "Who is the target?", "What kind of hate is present?") to provide context for the final label.
  2. SAFE-MEME-H (Hierarchical Categorization): This variant first generates a detailed visual description, then determines if the content is hateful. If hateful, it further classifies it as explicit or implicit.
The SAFE-MEME framework variants: (a) Q&A-style reasoning and (b) Hierarchical categorization.

Both models utilize a gated fusion mechanism to combine textual features from a T5-base encoder and visual features from a Vision Transformer (ViT).

Datasets

The paper introduces two high-quality benchmarks to address data scarcity:

  • MHS (Multimodal Hate Speech): 3,343 memes with fine-grained labels, visual descriptions, and Q&A pairs.
  • MHS-Con (Confounding): A stress-test dataset of 1,238 instances where the same image is paired with three different text versions (explicit, implicit, benign). This forces models to understand the text-image relationship rather than relying on visual biases.

Results and Discussion

SAFE-MEME demonstrates superior performance across benchmarks. SAFE-MEME-QA achieved a 5% improvement on the MHS dataset, while SAFE-MEME-H showed a 6% average improvement in identifying implicit hate.

The "Confounding" Challenge

A key finding is the "visual bias" in standard models. If a model sees a specific group, it may flag the meme as hateful regardless of the text. MHS-Con proves that most open-source VLMs fail when the same image is used in a benign context.

Comparison of model outputs on the MHS-Con dataset, highlighting how standard VLMs struggle with the distinction between implicit hate and benign content when the visual context remains identical.

As shown in the comparison, while models like miniGPT4 struggle with the nuance of benign vs. implicit hate for the same image, structured reasoning approaches maintain better alignment with gold labels.

Conclusion

SAFE-MEME provides a specialized, reproducible framework that outperforms general-purpose open-source VLMs in nuanced meme moderation. While challenges like hallucinations in low-representation categories remain, the shift toward structured deconstruction marks a significant step forward in AI's ability to understand complex, multimodal human communication. Future work will focus on integrating external knowledge sources to handle evolving internet slang and cultural references.

Summary updated

BibTeX
@misc{nandi2024safe,
  author = {Palash Nandi and Shivam Sharma and Tanmoy Chakraborty},
  title = {{SAFE-MEME: Structured Reasoning Framework for Robust Hate Speech Detection in Memes}},
  year = {2024},
  eprint = {2412.20541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20541},
}
Figure