Answers are grounded in this paper and cite their sources.
Recent advances in Large Language Models (LLMs) have created new possibilities for automated hate speech detection in online platforms. This manuscript investigates how prompt design choices, e.g., contextualization and domain delimitation, affect LLMs' ability to accurately identify online hateful content. We evaluate a range of prompt formulations, varying the presence of explicit instructions and illustrative examples, to analyze their influence on classification performance across both state-of-the-art commercial models and smaller open-weight alternatives. The results demonstrate that constraining the thematic scope of hate speech through domain delimitation improves detection accuracy by minimizing semantic ambiguity and reducing false positives. More broadly, this manuscript shows that providing explicit domain-specific information in the prompt is a key driver for the ethical, reliable, and responsible deployment of LLM-based systems in efforts to mitigate hate speech in online environments.
No takes yet. Share an insight, caveat, or question.
Amorim et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: