Align before Attend: Aligning Visual and Textual Features for Multimodal Hateful Content Detection

Eftekhar Hossain, Omar Sharif, Mohammed Moshiul Hoque, Sarah M. Preum
2/15/2024
cs.CL

Official code: eftekhar-hossain/Bengali-Hateful-Memes (9 stars, last commit 2024-09-21).

Abstract

Multimodal hateful content detection is a challenging task that requires complex reasoning across visual and textual modalities. Therefore, creating a meaningful multimodal representation that effectively captures the interplay between visual and textual features through intermediate fusion is critical. Conventional fusion techniques are unable to attend to the modality-specific features effectively. Moreover, most studies exclusively concentrated on English and overlooked other low-resource languages. This paper proposes a context-aware attention framework for multimodal hateful content detection and assesses it for both English and non-English languages. The proposed approach incorporates an attention layer to meaningfully align the visual and textual features. This alignment enables selective focus on modality-specific features before fusing them. We evaluate the proposed approach on two benchmark hateful meme datasets, viz. MUTE (Bengali code-mixed) and MultiOFF (English). Evaluation results demonstrate our proposed approach's effectiveness with F1-scores of $69.7$% and $70.3$% for the MUTE and MultiOFF datasets. The scores show approximately $2.5$% and $3.2$% performance improvement over the state-of-the-art systems on these datasets. Our implementation is available at https://github.com/eftekhar-hossain/Bengali-Hateful-Memes.

View on arXivView PDF

Code Implementations(1)

[ACL, EACL'24] Dataset and PyTorch Code for Multimodal Hate Speech Detection in Bengali

92Shell, PythonJan 29, 20242 years ago
bengalideciphering-hatehateful-memesmemesmultimodal-deep-learning

Similar Papers

Cite this paper

@article{hossain2024align,
  title  = {Align before Attend: Aligning Visual and Textual Features for Multimodal Hateful Content Detection},
  author = {Eftekhar Hossain and Omar Sharif and Mohammed Moshiul Hoque and Sarah M. Preum},
  year   = {2024},
  eprint = {2402.09738},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.09738v1}
}

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/2402.09738.svg)](https://codeofpaper.com/paper/2402.09738)

Discussion