LLM-based Semantic Augmentation for Harmful Content Detection
Elyas Meguellati, Assaad Zeghina, Shazia Sadiq, Gianluca Demartini
TL;DR
This work tackles the challenge of detecting harmful content in social media by shifting from data augmentation to semantic augmentation using LLMs. It introduces LLM-based text cleaning to reduce caption noise and LLM-generated explanations or triggers to enrich input representations, evaluated on the SemEval 2024 Persuasive Memes and validated on Google Jigsaw Toxic Comments and Facebook Hateful Memes. The results show that zero-shot LLMs underperform on high-context, multi-label tasks, whereas combining text, machine captions, and explanations (and using triggers in sensitive domains) yields performance approaching or matching human-annotated data at a fraction of the cost. The findings underscore a scalable, cost-efficient pathway for improving social media classification, with clear guidance on when to employ explanations versus triggers and how to balance multimodal and textual cues in practice.
Abstract
Recent advances in large language models (LLMs) have demonstrated strong performance on simple text classification tasks, frequently under zero-shot settings. However, their efficacy declines when tackling complex social media challenges such as propaganda detection, hateful meme classification, and toxicity identification. Much of the existing work has focused on using LLMs to generate synthetic training data, overlooking the potential of LLM-based text preprocessing and semantic augmentation. In this paper, we introduce an approach that prompts LLMs to clean noisy text and provide context-rich explanations, thereby enhancing training sets without substantial increases in data volume. We systematically evaluate on the SemEval 2024 multi-label Persuasive Meme dataset and further validate on the Google Jigsaw toxic comments and Facebook hateful memes datasets to assess generalizability. Our results reveal that zero-shot LLM classification underperforms on these high-context tasks compared to supervised models. In contrast, integrating LLM-based semantic augmentation yields performance on par with approaches that rely on human-annotated data, at a fraction of the cost. These findings underscore the importance of strategically incorporating LLMs into machine learning (ML) pipeline for social media classification tasks, offering broad implications for combating harmful content online.
