SyRHM: Symbolic-Language-Enhanced Reasoning with Associative Retrieval for Zero-shot Harmful Meme Detection
Organizations: University of California, San Diego · Xi’an Jiaotong-Liverpool University · University of Washington · The Australian National University ·
Abstract
Detecting harmful memes is critical for maintaining safe online communities. However, harmful intent is often implicit, arising from visual-textual incongruity and cultural stereotypes, which challenges existing multimodal detectors. We propose SyRHM, a framework that decomposes harmful meme detection into meaning-grounded retrieval and symbolic-language-enhanced multi-stage reasoning. SyRHM retrieves semantically related memes by parsing multimodal content into textual elements and descriptions, providing grounded context beyond surface-level similarity. Building on the retrieved context, SyRHM uses a translator stage to convert multimodal inputs into symbolic intermediate representations, and then performs multi-stage reasoning via planner and solver stages, enabling expressive and interpretable analysis of harmful intent. Experiments on FHM, HarM, and MultiOff demonstrate the effectiveness of SyRHM, achieving superior performance on most evaluation settings against multimodal and reasoning-based baselines, while providing reasoning traces for harmful content. The code is available at: https://github.com/Scabbards1500/SyRHM
Figures & tables
| Method | FHM | MultiOff | ||||
|---|---|---|---|---|---|---|
| ACC | BACC | MCC | ACC | BACC | MCC | |
| Open-source LMM (Zero-shot) | ||||||
| LLaVA-1.5-13B | 55.01 | 55.13 | 10.65 | 48.15 | 56.23 | 14.41 |
| Qwen2.5-VL-7B | 63.20 | 63.01 | 26.53 | 64.43 | 59.94 | 21.70 |
| LLaVA-v1.6-Vicuna-13B | 56.90 | 56.66 | 13.72 | 61.07 | 65.94 | 33.46 |
| LLaVA-OneVision-Qwen2-7B | 56.60 | 56.25 | 13.37 | 59.73 | 60.16 | 19.81 |
| Setting ID | ACC | |||
|---|---|---|---|---|
| S1 | 1.0 | 0.0 | 0.0 | 67.80 |
| S2 | 0.0 | 1.0 | 0.0 | 64.97 |
| S3 | 0.0 | 0.0 | 1.0 | 68.08 |
| S4 | 0.5 | 0.5 | 0.0 | 68.93 |
| S5 | 0.5 | 0.0 | 0.5 | 69.77 |
| S6 | 0.0 | 0.5 | 0.5 | 71.75 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Train Samples | Test Samples |
|---|---|---|
| FHM | 8500 | 1000 |
| MultiOff | 445 | 149 |
| HarM-c | 3013 | 354 |
| HarM-p | 2938 | 355 |
| Dataset | Task 1 | Task 2 | Task 3 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 2 | 0 | 1 | 2 | 3 | 4 | |
| FHM | 510 | 490 | – | – | – | – | – | – | – | – |
| MultiOff | 91 | 58 | – | – | – | – | – | – | – | – |
| HarM-c | 230 | 124 | 230 | 21 | 103 | 230 | 119 | 0 | 3 | 2 |
| HarM-p | 184 | 171 | 184 | 159 | 12 | 184 | 81 | 69 | 15 | 6 |
| Dataset | Output Schema | Label Mapping |
|---|---|---|
| FHM | {"is_hateful": <boolean>} | 0 not harmful, 1 harmful |
| MultiOff | {"is_offensive": <boolean>} | 0 not harmful, 1 harmful |
| HarM | {"label": [Harm_Level, Target_Type]} | Harm Level: 0 not harmful, 1 somewhat harmful, 2 very harmful; Target Type: 0 none, 1 individual, 2 organization, 3 community, 4 society. |
| Item | Setting |
|---|---|
| Retrieval setting | Top- ; for image, elements, and descriptions. |
| Decoding setting | Context length 4096, temperature 0.2, top- . |
| Repetition | Three runs with fixed random seeds; mean performance is reported. |
| Main packages | PyTorch, Transformers, scikit-learn |
| Hardware | 2 NVIDIA 4090 GPUs |
| Method | Harmful or Not | Harmfulness Level | Target type | |||
|---|---|---|---|---|---|---|
| VLM | LLM | ACC | BACC | MCC | M-F1 | M-F1 |
| Qwen2.5-VL-7B | – | 67.23 | 53.97 | 18.23 | 35.92 | 3.82 |
| Qwen2.5-VL-7B | Qwen2.5-7B | 67.80 | 67.78 | 34.13 | 47.68 | 11.02 |
| Qwen2.5-VL-7B | Qwen2.5-14B | 70.34 | 71.78 | 41.59 | 51.90 | 15.94 |
| Qwen2.5-VL-7B | Qwen2.5-32B | 68.08 | 70.79 | 39.73 | 46.98 | 16.01 |
| InternVL3.5-8B | – | 64.41 | 69.82 | 38.99 | 42.86 | 12.25 |
| Retrieval Embedding Model | ACC | BACC | MCC |
|---|---|---|---|
| Without Retrieval | 68.93 | 69.21 | 36.83 |
| CLIP-ViT-B/32 | 70.34 | 71.78 | 41.59 |
| CLIP-ViT-L/14 | 69.38 | 71.53 | 42.06 |
| SigLIP-BASE-PATCH16 | 68.80 | 72.99 | 44.86 |
| Dataset | Task1 ACC | Task2 M-F1 | Task3 M-F1 |
|---|---|---|---|
| FHM | 68.93 | 51.57 | 12.98 |
| MultiOff | 75.14 | 50.89 | 14.55 |
| HarM-c | 70.34 | 51.90 | 15.94 |
| HarM-p | 70.34 | 55.22 | 12.64 |
| Stage | Input | Output | Total | Time(s) |
|---|---|---|---|---|
| Parser | 2,138.5 | 246.9 | 2,385.4 | 3.50 |
| Insertion | – | – | – | 0.04 |
| Retrieval | – | – | – | 0.05 |
| Translator | 2,743.1 | 796.0 | 3,539.2 | 34.97 |
| Planner | 1,938.0 | 337.3 | 2,275.3 | 15.30 |
| Solver | 2,673.1 | 308.7 | 2,981.7 | 7.68 |