Social media platforms are increasingly becoming battlegrounds for moderation, as bad actors leverage the multi-modal nature of memes to spread hate speech while evading traditional text-based filters. This paper introduces AOMD (Analogy-aware Offensive Meme Detection), a novel deep learning framework specifically designed to identify "offensive analogy memes." These memes rely on implicit, multi-modal analogies where neither the image nor the text is necessarily offensive in isolation, but their combination creates a hateful message.
The Problem: Offensive Analogy Memes
Standard hate speech detection often fails on memes because it treats visual and textual information as separate, global features. In an offensive analogy meme, the harm lies in the relationship between specific visual elements and specific text fragments. For instance, a meme might label a picture of an animal with the name of a demographic group, creating a dehumanizing analogy.
Existing detectors typically extract global image features (e.g., via ResNet) and concatenate them with text features. This approach is insufficient for capturing the fine-grained, spatial, and semantic alignments necessary to "decode" the analogy.
The AOMD Framework
To address these challenges, the AOMD framework moves beyond simple feature concatenation. It explicitly models the relationships between image and text components through three main modules:
1. Multi-modal Representation Learning
- Visual Objects: Instead of a global image vector, AOMD uses Faster R-CNN to extract local visual objects and their corresponding bounding boxes.
- Cluster-based OCR: Standard OCR often scrambles text scattered across a meme. AOMD employs a custom cluster-based approach that groups words based on their physical proximity, preserving the original phrases.
- Contextual Metadata: The model also incorporates post descriptions and user comments, which often provide explicit clues to the meme's underlying (and often offensive) intent.
2. Attentive Multi-modal Analogy Alignment
This core innovation uses a co-attention mechanism to model the pairwise affinity between specific visual objects and text clusters. By leveraging both semantic representations and spatial proximity (bounding box coordinates), the model learns to associate specific text with the objects it describes, mimicking how a human interprets a meme.
3. Supervised Classification
The attended features are combined with global and contextual features and passed through a Multi-Layer Perceptron (MLP) for binary classification (offensive vs. non-offensive).
Evaluation and Results
The authors evaluated AOMD on two newly collected and manually annotated datasets from Gab and Reddit, both of which are known for hosting challenging meme content.
- Gab Dataset: AOMD achieved an F1 score of 0.5568, representing a ~15% improvement over the best baseline (MultiOFF).
- Reddit Dataset: AOMD reached an F1 score of 0.4867, an ~8% improvement over Facebook's HatefulMeme framework.
Ablation studies confirmed that the co-attention mechanism is vital. Removing it caused a significant drop in performance (e.g., F1 falling from 0.5568 to 0.4981 on the Gab dataset), proving that explicit modality alignment is far superior to simple concatenation.
Conclusion
AOMD demonstrates that detecting sophisticated online harassment requires a deep understanding of multi-modal analogies. By focusing on fine-grained object-text alignment and incorporating spatial context, AOMD sets a new benchmark for offensive meme detection. While the system currently relies on the accuracy of upstream OCR and object detection models, it paves the way for more robust, context-aware moderation tools in the fight against digital hate.
Summary updated