From Shallow Humor to Metaphor: Towards Label-Free Harmful Meme Detection via LMM Agent Self-Improvement

Jian Lang, Rongpei Hong, Ting Zhong, Leiting Chen, Qiang Gao, Fan Zhou · DOI

Abstract

Detecting harmful memes is a persistent challenge due to their reliance on cultural context, evolving metaphors, and "dog whistles." Traditional detection methods are bottlenecked by the need for large-scale human-labeled datasets and their inability to adapt to rapidly changing online tropes. We introduce ALARM (lAbeL-free hARmful Meme detection), a novel framework that enables Large Multimodal Models (LMMs) to function as autonomous agents that self-improve their detection capabilities. By distilling high-level detection principles from "explicit" memes and contrasting them with benign examples, ALARM builds a robust "experience" library without requiring any human-annotated labels. Our experiments demonstrate that ALARM consistently outperforms competitive supervised methods on major benchmarks like FHM and MAMI.

Introduction

The detection of harmful memes is often described as a "cat-and-mouse" game. As moderation tools improve, harmful content evolves to become more subtle, utilizing metaphors and news-driven context that static models fail to capture. Current state-of-the-art approaches suffer from two primary limitations: Data Hunger, where labor-intensive labeling is required for every new domain, and Fast Evolution, where models trained on historical data fail to recognize emerging harmful tropes.

While zero-shot LMMs can identify explicit slurs or violence, they struggle with "subtle" memes—those where the harm is implied through the juxtaposition of text and image. ALARM addresses this by treating the LMM as an agent that iteratively refines its own internal logic through a self-improvement loop.

The ALARM Framework

The ALARM methodology is structured into three distinct stages designed to transition the model from recognizing shallow humor to understanding complex metaphors.

The ALARM framework pipeline, illustrating confidence-based identification, pairwise learning, and iterative reference refinement.

1. Confidence-based Explicit Meme Identification

The process begins with a zero-shot pass over unlabeled data. ALARM leverages the LMM's prediction logits as a proxy for confidence. Samples with high prediction probabilities are categorized as "explicit" memes and assigned pseudo-labels. This stage provides the initial "seed" data for the agent's learning process.

2. Pairwise Learning and Experience Gathering

To understand the nuances of harmful content, the agent requires contrast. Using a multimodal retriever (CLIP), ALARM identifies benign memes that are visually or textually similar to the pseudo-labeled harmful ones. The LMM agent then performs Chain-of-Thought (CoT) analysis on these pairs to summarize the specific discrepancies that make one harmful and the other benign.

3. Reference Refinement (Verbal Gradients)

Instead of traditional backpropagation, ALARM utilizes "verbal" optimization. The agent maintains a Reference Set of high-level detection principles. It iteratively updates this set through atomic operations: ADD (incorporating new rules), EDIT (refining existing logic), and DELETE (removing redundant or incorrect rules). This allows the model to build a specialized "cheat sheet" for the specific dataset or cultural context it is analyzing.

Experimental Evaluation

We evaluated ALARM across three diverse benchmarks representing different languages and types of harm:

  • FHM (Facebook Hateful Memes): 10,000 English memes focused on hate speech.
  • MAMI (Multi-modal Misogyny Identification): 11,000 English memes focused on misogyny.
  • ToxiCN: 12,000 Chinese memes, testing cross-lingual and cross-cultural robustness.

Key Results

ALARM achieved significant performance gains over both zero-shot baselines and supervised models. On the FHM dataset, ALARM reached 75.80% accuracy, surpassing supervised methods such as Pro-Cap (74.95%) and PromptHate (72.20%). Furthermore, the framework improved the base performance of models like GPT-4o and Qwen2.5-VL by an average of 6.35%.

Correlation between prediction probability thresholds and accuracy on FHM and MAMI datasets, justifying the use of logits for identifying explicit memes.

The results in Figure 6 validate the core assumption of Stage 1: higher prediction probabilities strongly correlate with higher accuracy, confirming that logits are a reliable metric for identifying explicit memes in an unlabeled stream.

Discussion and Insights

  • The Power of Contrast: The "aha moment" of ALARM is its reliance on contrastive pairs. By comparing a "bomb" caption on a weapon versus a pregnant woman, the model distills the underlying metaphor of harm.
  • Knowledge Distillation: Detection references generated by large-scale models (e.g., Qwen2.5-VL-72B) can be effectively transferred to smaller models (e.g., Phi-4-5.6B), providing a path toward efficient deployment.
  • Generalization: Unlike supervised methods that often overfit to specific training distributions, ALARM's label-free nature allows it to generalize better to unseen memes and emerging trends.

Conclusion

ALARM represents a shift from static, label-dependent detection to dynamic, agentic self-improvement. By leveraging verbal gradients and contrastive learning, it provides a scalable solution for moderating the ever-evolving landscape of internet memes without the bottleneck of human annotation. Future work will focus on reducing inference overhead and expanding the capacity of the reference set through dynamic retrieval-augmented generation.

Summary updated

BibTeX
@inproceedings{lang2026from,
  author = {Jian Lang and Rongpei Hong and Ting Zhong and Leiting Chen and Qiang Gao and Fan Zhou},
  title = {{From Shallow Humor to Metaphor: Towards Label-Free Harmful Meme Detection via LMM Agent Self-Improvement}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2026},
  doi = {10.1145/3770854.3780213},
}
Figure