Towards Safer Social Media Platforms: Scalable and Performant Few-Shot Harmful Content Moderation Using Large Language Models
Akash Bonagiri, Lucen Li, Rajvardhan Oak, Zeerak Babar, Magdalena Wojcieszak, Anshuman Chhabra
TL;DR
The paper tackles scalable harmful-content moderation on social media by leveraging Large Language Models to perform few-shot in-context harm classification, including multimodal inputs from video thumbnails. It demonstrates that zero-shot LLMs can beat proprietary APIs and that few-shot in-context learning with a small exemplar set can approach domain-expert performance, with GPT-4o-Mini achieving near $80$% accuracy in multimodal setups. The study also analyzes the relative merits of caption-generation versus direct image input and conducts cross-dataset evaluations, showing generalization to hate speech and toxicity tasks. Overall, the work offers a practical, scalable path to dynamic moderation while acknowledging computational costs and ethical considerations.
Abstract
The prevalence of harmful content on social media platforms poses significant risks to users and society, necessitating more effective and scalable content moderation strategies. Current approaches rely on human moderators, supervised classifiers, and large volumes of training data, and often struggle with scalability, subjectivity, and the dynamic nature of harmful content (e.g., violent content, dangerous challenge trends, etc.). To bridge these gaps, we utilize Large Language Models (LLMs) to undertake few-shot dynamic content moderation via in-context learning. Through extensive experiments on multiple LLMs, we demonstrate that our few-shot approaches can outperform existing proprietary baselines (Perspective and OpenAI Moderation) as well as prior state-of-the-art few-shot learning methods, in identifying harm. We also incorporate visual information (video thumbnails) and assess if different multimodal techniques improve model performance. Our results underscore the significant benefits of employing LLM based methods for scalable and dynamic harmful content moderation online.
