Improving Hateful Meme Detection through Retrieval-Guided Contrastive Learning

Jingbiao Mei, Jinghong Chen, Weizhe Lin, Bill Byrne, Marcus Tomalin
11/14/2023
cs.CLcs.CV

No official code found. Best implementation: JingbiaoMei/RGCL (39 stars, Apache-2.0, PyTorch, last commit 2026-03-01). 1 more below.

Abstract

Hateful memes have emerged as a significant concern on the Internet. Detecting hateful memes requires the system to jointly understand the visual and textual modalities. Our investigation reveals that the embedding space of existing CLIP-based systems lacks sensitivity to subtle differences in memes that are vital for correct hatefulness classification. We propose constructing a hatefulness-aware embedding space through retrieval-guided contrastive training. Our approach achieves state-of-the-art performance on the HatefulMemes dataset with an AUROC of 87.0, outperforming much larger fine-tuned large multimodal models. We demonstrate a retrieval-based hateful memes detection system, which is capable of identifying hatefulness based on data unseen in training. This allows developers to update the hateful memes detection system by simply adding new examples without retraining, a desirable feature for real services in the constantly evolving landscape of hateful memes on the Internet.

View on arXivView PDF

Code Implementations(2)

JingbiaoMei/RGCLCommunity100%
PyTorchApache-2.0

📄 ACL 2024: RGCL, Retrieval-Guided Contrastive Learning for Hateful Meme Detection 📄 EMNLP 2025 (Oral): RA-HMD, Robust Adaptation of Large Multimodal Models for Retrieval-Augmented Hateful Meme Detection Official implementation with pretrained models and reproduction scripts.

395Shell, PythonOct 29, 20247 months agoApache-2.0
acl-2024contrastive-learningemnlp-2025hateful-meme-detectionmultimodal-learning+4 more

本仓库包含了论文《Improving Hateful Meme Detection through Retrieval-Guided Contrastive Learning, ACL 2024.》的代码、数据、测试结果、复现报告。

00Feb 16, 20268 months ago

Similar Papers

Cite this paper

@article{mei2023improving,
  title  = {Improving Hateful Meme Detection through Retrieval-Guided Contrastive Learning},
  author = {Jingbiao Mei and Jinghong Chen and Weizhe Lin and Bill Byrne and Marcus Tomalin},
  year   = {2023},
  eprint = {2311.08110},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08110v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.08110.svg)](https://codeofpaper.com/paper/2311.08110)

Discussion