hateful-meme-detection-eval
Robust Adaptation of Large Multimodal Models for Retrieval Augmented Hateful Meme Detection — Mei et al. (2025) (arXiv:2502.13061, 2025)
What this evaluates
Evaluates multimodal models' ability to detect hateful or offensive memes across multiple domains and under low-resource, out-of-distribution conditions. It probes robustness to distribution shifts, adversarial image perturbations, and the effectiveness of retrieval-augmented inference versus standard fine-tuning or in-context learning.
Datasets
- HatefulMemes — total ?; splits: train (-1), test (-1)
- HarMeme — total ?; splits: train (-1), test (-1)
- MAMI — total ?; splits: train (-1), test (-1)
- Harm-P — total ?; splits: train (-1), test (-1)
- MultiOFF — total ?; splits: train (-1), test (-1)
- PrideMM — total ?; splits: train (-1), test (-1)
Metrics
AUC (primary) — range: [0, 1]
- Area under the Receiver Operating Characteristic curve, measuring the model's ability to distinguish between hateful and non-hateful classes across all classification thresholds.
Accuracy — range: [0, 1]
- Ratio of correctly classified instances (both hateful and non-hateful) to the total number of instances.
F1 — range: [0, 1]
- Harmonic mean of precision and recall, calculated as 2 * (precision * recall) / (precision + recall).
Input / output format
Input: Image and associated text/caption for each meme instance.
Output: Binary classification prediction (hateful vs. non-hateful) or class probability scores for AUC computation.
Scoring recipe
import numpy as np
from sklearn.metrics import roc_auc_score, accuracy_score, f1_score
def compute_metrics(y_true, y_pred_proba, threshold=0.5):
y_pred = (y_pred_proba >= threshold).astype(int)
auc = roc_auc_score(y_true, y_pred_proba)
acc = accuracy_score(y_true, y_pred)
f1 = f1_score(y_true, y_pred)
return {'AUC': auc, 'Accuracy': acc, 'F1': f1}
Common pitfalls
- Using test set examples for few-shot or retrieval-based inference instead of the training split, which causes data leakage and inflates performance.
- Assuming few-shot in-context learning improves performance; the paper explicitly notes it is largely ineffective for meme classification and can degrade F1 on some datasets.
- Computing AUC for GPT-4o directly; the paper notes that token likelihoods are not accessible for this model, so AUC is reported as '-'.
Evidence (verbatim from paper)
RA-HMD improves upon RGCL with gains of over 4% in AUC and 3% in accuracy on HatefulMemes.
Citation
@misc{mei2025robust,
title={Robust Adaptation of Large Multimodal Models for Retrieval Augmented Hateful Meme Detection},
author={Mei et al. (2025)},
year={2025},
note={arXiv:2502.13061}
}
1---2name: hateful-meme-detection-eval3description: Evaluates multimodal models' ability to detect hateful or offensive memes across multiple domains and under low-resource, out-of-distribution conditions. It probes robustness to distribution shifts, adversarial image perturbations, and the effectiveness of retrieval-augmented inference versus standard fine-tuning or in-context learning. Use when the user wants to benchmark on HatefulMemes, HarMeme, MAMI, Harm-P, MultiOFF, PrideMM, or asks about evaluating this task. Reports AUC.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/hateful-meme-detection-eval6 skill_kind: dataset_eval7 source_arxiv: 2502.130618 bibtex_key: mei2025robust9 confidence: high10---1112# hateful-meme-detection-eval1314> Robust Adaptation of Large Multimodal Models for Retrieval Augmented Hateful Meme Detection — Mei et al. (2025) (arXiv:2502.13061, 2025)1516## What this evaluates1718Evaluates multimodal models' ability to detect hateful or offensive memes across multiple domains and under low-resource, out-of-distribution conditions. It probes robustness to distribution shifts, adversarial image perturbations, and the effectiveness of retrieval-augmented inference versus standard fine-tuning or in-context learning.1920## Datasets2122- **HatefulMemes** — total ?; splits: train (-1), test (-1)23- **HarMeme** — total ?; splits: train (-1), test (-1)24- **MAMI** — total ?; splits: train (-1), test (-1)25- **Harm-P** — total ?; splits: train (-1), test (-1)26- **MultiOFF** — total ?; splits: train (-1), test (-1)27- **PrideMM** — total ?; splits: train (-1), test (-1)2829## Metrics3031- `AUC` **(primary)** — range: [0, 1]32 - Area under the Receiver Operating Characteristic curve, measuring the model's ability to distinguish between hateful and non-hateful classes across all classification thresholds.33- `Accuracy` — range: [0, 1]34 - Ratio of correctly classified instances (both hateful and non-hateful) to the total number of instances.35- `F1` — range: [0, 1]36 - Harmonic mean of precision and recall, calculated as 2 * (precision * recall) / (precision + recall).3738## Input / output format3940**Input**: Image and associated text/caption for each meme instance.4142**Output**: Binary classification prediction (hateful vs. non-hateful) or class probability scores for AUC computation.4344## Scoring recipe4546```python47import numpy as np48from sklearn.metrics import roc_auc_score, accuracy_score, f1_score4950def compute_metrics(y_true, y_pred_proba, threshold=0.5):51 y_pred = (y_pred_proba >= threshold).astype(int)52 auc = roc_auc_score(y_true, y_pred_proba)53 acc = accuracy_score(y_true, y_pred)54 f1 = f1_score(y_true, y_pred)55 return {'AUC': auc, 'Accuracy': acc, 'F1': f1}56```5758## Common pitfalls5960- Using test set examples for few-shot or retrieval-based inference instead of the training split, which causes data leakage and inflates performance.61- Assuming few-shot in-context learning improves performance; the paper explicitly notes it is largely ineffective for meme classification and can degrade F1 on some datasets.62- Computing AUC for GPT-4o directly; the paper notes that token likelihoods are not accessible for this model, so AUC is reported as '-'.6364## Evidence (verbatim from paper)6566> RA-HMD improves upon RGCL with gains of over 4% in AUC and 3% in accuracy on HatefulMemes.6768## Citation6970```bibtex71@misc{mei2025robust,72 title={Robust Adaptation of Large Multimodal Models for Retrieval Augmented Hateful Meme Detection},73 author={Mei et al. (2025)},74 year={2025},75 note={arXiv:2502.13061}76}77```7879- arXiv: 2502.13061