TL;DR
While multimodal AI models excel at detecting harmful memes when both text and images are perfectly clear, they degrade sharply in real-world scenarios where text is missing or corrupted by poor OCR. This paper introduces a simple yet highly effective framework that projects text and images independently into a weight-shared latent space. This approach ensures robust harmful meme detection even when textual information is completely unavailable.
What Problem Does This Paper Address?
Internet memes are a dominant form of online communication, but they are frequently weaponized to spread hate speech, misinformation, and harassment. Because memes rely on the interplay between text and imagery, state-of-the-art detection systems are inherently multimodal.
However, existing models suffer from a major flaw: they assume modal completeness. In the real world, text is often missing or corrupted. Optical Character Recognition (OCR) tools frequently fail to extract text from memes due to stylized fonts, low resolutions, or intentional obfuscation by bad actors looking to evade moderation. The authors demonstrate this vulnerability by showing how poorly standard OCR engines perform on meme datasets (see Figure 2). When text is missing, the performance of conventional multimodal models plummets, making them unreliable for actual production environments.
Methods
To counter the missing-modality problem, the authors propose a baseline architecture centered on Shared Representation Learning (Figure 1).
Instead of routing text and images through separate, dedicated network branches before fusing them, their method processes each modality independently through the exact same network parameters:
- Modality Encoding: Features are first extracted using a pre-trained, frozen CLIP model to obtain text ($x_t$) and visual ($x_v$) embeddings.
- Shared Representation Network: A "Modality Switch" feeds the available embeddings into a shared network consisting of two stacked blocks. Each block contains a Fully Connected (FC) layer, Batch Normalization, ReLU activation, and Dropout. Because the parameters are shared, the network is forced to project both visual and textual concepts into a single, modality-invariant semantic space.
- Inference Logic: At test time, if both modalities are present, their respective logits are summed before classification. If text is missing, the model seamlessly bypasses the text encoder and classifies the meme using only the visual logits, requiring no architectural adjustments.
Datasets
The model was evaluated on the HarMeme dataset, which is split into two domain-specific subsets:
- Harm-C: Memes related to COVID-19.
- Harm-P: Memes focused on politics.
Each meme is annotated with one of three labels: very harmful, somewhat harmful, or not harmful. The authors evaluated their approach on both binary classification (harmful vs. not harmful) and multi-class classification. Crucially, this paper is the first to report metrics on a newly corrected version of the Harm-P dataset, which fixes a major data-leakage issue (duplicate samples across train/test splits) present in prior literature.
Key Insights and Ideas
- Weight Sharing Enforces Robustness: Forcing different modalities through identical layers prevents the model from over-relying on textual cues. It trains the network to find common semantic ground between what a meme says and what it shows.
- Graceful Degradation vs. Catastrophic Failure: Traditional early- and late-fusion models (like VisualBERT or MMBT) experience catastrophic performance drops when text availability hits 0%. By contrast, the shared representation approach degrades gracefully, retaining substantial predictive power from the image alone.
- Ablation Confirms the Strategy: The authors compared their Shared Representation (SR) approach against a Fused Representation (FR) variant. While fusion performs slightly better when data is 100% complete, it fails completely when text is removed, validating independent projection as the superior strategy for missing data (see Figure 5).
Key Results
The authors simulated missing text by evaluating the models at varying levels of text availability (from 100% down to 0%).
- Binary Classification (Figure 4): On the Harm-P dataset at 0% text availability, the proposed model achieved an F1-score of 66.3%, drastically outperforming the state-of-the-art MOMENTA model (45.5%) and MMBT (11.8%).
- Multi-class Classification (Figure 3): When text availability dropped to 50% or lower, the proposed model maintained stable F1-scores above 51% on Harm-C, while MOMENTA dropped to 37.6% and lower.
- Noisy Text Resilience (Figure 6): When fed real-world "noisy" text extracted via PaddleOCR, the proposed model retained an F1-score of 50.0%, whereas MOMENTA dropped significantly to 40.8%.
Limitations and Future Work
While this method establishes a highly robust baseline, it relies on frozen CLIP embeddings, meaning the encoders themselves are not optimized for the nuances of internet culture or sarcasm. Additionally, the framework primarily addresses scenarios where text is missing; future work is needed to explore situations where the image modality is corrupted or where complex cross-modal contradictions (where the text and image say opposite things) occur. The authors suggest that integrating large language models (LLMs) or large multimodal models (LMMs) could be a promising next step to capture deeper contextual subtexts.
Summary updated