Just KIDDIN: Knowledge Infusion and Distillation for Detection of INdecent Memes
Rahul Garg, Trilok Padhi, Hemang Jain, Ugur Kursuncu, Ponnurangam Kumaraguru
TL;DR
This work addresses the challenge of detecting toxicity in multimodal memes by unifying external knowledge infusion with knowledge distillation. The KID-VLM framework combines a compact student VL encoder with a frozen LVLM teacher that provides implicit context via captions, and augments representations with ConceptNet-derived subgraphs through graph-based reasoning. A Relational Graph Convolutional Network processes the joint working graph, and a gated fusion mechanism integrates graph-derived signals with distilled multimodal features, optimized by a joint loss L_total = $\lambda_1 L_{\text{BCE}} + \lambda_2 L_{\text{KD}}$. Empirically, KID-VLM outperforms strong baselines on HatefulMemes and HarMeme, achieving higher F1 and AUC, while remaining efficient to train and deploy, thanks to distillation into a ~500M-parameter model and targeted multi-hop KG reasoning. This neurosymbolic approach advances scalable, context-aware toxicity detection for safer online environments.
Abstract
Toxicity identification in online multimodal environments remains a challenging task due to the complexity of contextual connections across modalities (e.g., textual and visual). In this paper, we propose a novel framework that integrates Knowledge Distillation (KD) from Large Visual Language Models (LVLMs) and knowledge infusion to enhance the performance of toxicity detection in hateful memes. Our approach extracts sub-knowledge graphs from ConceptNet, a large-scale commonsense Knowledge Graph (KG) to be infused within a compact VLM framework. The relational context between toxic phrases in captions and memes, as well as visual concepts in memes enhance the model's reasoning capabilities. Experimental results from our study on two hate speech benchmark datasets demonstrate superior performance over the state-of-the-art baselines across AU-ROC, F1, and Recall with improvements of 1.1%, 7%, and 35%, respectively. Given the contextual complexity of the toxicity detection task, our approach showcases the significance of learning from both explicit (i.e. KG) as well as implicit (i.e. LVLMs) contextual cues incorporated through a hybrid neurosymbolic approach. This is crucial for real-world applications where accurate and scalable recognition of toxic content is critical for creating safer online environments.
