Retrieval Augmented Enhanced Dual Co-Attention Framework for Target Aware Multimodal Bengali Hateful Meme Detection
Organizations: Department of Computer Science and Engineering, BRAC University, Dhaka 1212, Bangladesh · Department of Computer Science and Engineering, Ahsanullah University of Science and Technology, Dhaka 1208, Bangladesh
Abstract
Hateful content on social media increasingly appears as multimodal memes that combine images and text to convey harmful narratives. In low-resource languages such as Bengali, automated detection remains challenging due to limited annotated data, class imbalance, and pervasive code-mixing. To address these issues, we augment the Bengali Hateful Memes (BHM) dataset with semantically aligned samples from the Multimodal Aggression Dataset in Bengali (MIMOSA), improving both class balance and semantic diversity. We propose the Enhanced Dual Co-attention Framework (xDORA), integrating vision encoders (CLIP, DINOv2) and multilingual text encoders (XGLM, XLM-R) via weighted attention pooling to learn robust cross-modal representations. Building on these embeddings, we develop a FAISS-based k-nearest neighbor classifier for non-parametric inference and introduce RAG-Fused DORA, which incorporates retrieval-driven contextual reasoning. We further evaluate LLaVA under zero-shot, few-shot, and retrieval-augmented prompting settings. Experiments on the extended dataset show that xDORA (CLIP + XLM-R) achieves macro-average F1-scores of 0.78 for hateful meme identification and 0.71 for target entity detection, while RAG-Fused DORA improves performance to 0.79 and 0.74, yielding gains over the DORA baseline. The FAISS-based classifier performs competitively and demonstrates robustness for rare classes through semantic similarity modeling. In contrast, LLaVA exhibits limited effectiveness in few-shot settings, with only modest improvements under retrieval augmentation, highlighting constraints of pretrained vision-language models for code-mixed Bengali content without fine-tuning. These findings demonstrate the effectiveness of supervised, retrieval-augmented, and non-parametric multimodal frameworks for addressing linguistic and cultural complexities in low-resource hate speech detection.
Figures & tables
| Class | Train | Valid | Test | Total | |
| Task 1 | Hate | 2117 | 241 | 266 | 2624 |
| Non-Hate | 3641 | 399 | 445 | 4485 | |
| Task 2 | TI | 1623 | 192 | 193 | 2008 |
| TO | 160 | 17 | 27 | 204 | |
| TC | 249 | 24 | 37 | 310 | |
| TS | 85 | 8 | 9 | 102 |
| Label | -score | Average | |
| Task 1 | Hate | 0.82 | 0.79 |
| Non-Hate | 0.76 | ||
| Task 2 | TI | 0.68 | 0.63 |
| TO | 0.66 | ||
| TC | 0.61 | ||
| TS | 0.57 |
| Class | Train | Valid | Test | Total | |
| Task 1 | Hate | 3885 | 486 | 486 | 4857 |
| Non-Hate | 3588 | 449 | 448 | 4485 | |
| Task 2 | TI | 2026 | 253 | 253 | 2532 |
| TC | 981 | 123 | 122 | 1226 | |
| TO | 786 | 98 | 98 | 982 | |
| TS | 94 | 12 | 11 | 117 |
| Category | Model | Hateful Meme Identification (Task 1) | Target Entity Detection (Task 2) | ||||
| P | R | F1 | P | R | F1 | ||
| Vision Only | CLIP (ViT-B/32) | 0.50 0.018 | 0.50 0.015 | 0.48 0.015 | 0.41 0.015 | 0.44 0.018 | 0.42 0.015 |
| DINOv2-Base | 0.65 0.018 | 0.65 0.015 | 0.65 0.018 | 0.48 0.023 | 0.51 0.038 | 0.48 0.025 | |
| ConvNeXT-Base | 0.63 0.018 | 0.62 0.015 | 0.61 0.015 | 0.44 0.018 | 0.46 0.018 | 0.45 0.015 | |
| Text Only | XGLM-564M | 0.75 0.013 | 0.74 0.015 | 0.74 0.015 | 0.55 0.018 | 0.61 0.038 | 0.56 0.023 |
| XLM-R-L | 0.73 0.013 | 0.73 0.013 | 0.73 0.013 | 0.65 0.023 | 0.77 0.030 | 0.69 0.025 | |
| Model | Class | P | R | F1 | Support |
| CLIP + XLM-R-L | TI | 0.83 | 0.87 | 0.85 | 254 |
| TC | 0.76 | 0.76 | 0.76 | 122 | |
| TO | 0.84 | 0.71 | 0.77 | 99 | |
| TS | 0.38 | 0.55 | 0.44 | 11 | |
| FAISS-Based k-NN | TI | 0.80 | 0.89 | 0.84 | 254 |
| TC | 0.81 | 0.70 | 0.75 | 122 |
| (a) | (b) | (c) | (d) | |
| Meme | ||||
| Caption | Take me to somewhere expensive BRAC UNIVERSITY | \bangla জন্নাতে যখন আপনি ৭২ হুর দেখতে পান… #ধর্ম পচারক হুর হুর দাবাং দাবাং দাবাং… | \bangla মানুষের হো*য় আঙুল দেওয়ার জন্যই আমার জন্ম | \bangla Don’t think yourself dumb bro There are literally people যারা পরিক্ষার হলে রচনা দেখাতে বলে ,, |
| Translated Caption | Take me to somewhere expensive BRAC UNIVERSITY | When you see 72 houris in heaven… #ReligiousPreacher Hoor hoor dabangg dabangg dabangg… | I was born just to poke fingers at people’s a*se. | Don’t think yourself dumb, bro. There are literally people who ask to copy essays during exams… |
| Vision Only | TI | TI | TC | TI |
| Text Only | TS | TC | TC | TI |
| Multimodal | TO | TC | TI | TI |
Hate Speech Detection
Hate Speech Detection identifies hateful or abusive language, its targets and intent, to support safer and more accountable content moderation.
See all 98 papers