Tailoring In-Context Learning Techniques for Definition-Based Hate Speech Detection in Large Language Models

Parham Bateni, Pradeep Murukannaiah, Urja Khurana


Abstract
Hate speech lacks a single agreed definition across legal, social, and benchmark contexts, yet instruction-tuned large language models (LLMs) are increasingly used for hate speech detection. These systems are usually prompted with generic task instructions, so their predictions may reflect built-in moderation priors rather than a different operational definition from a given policy, benchmark, or jurisdiction. We investigate the ability of LLMs to align with specific hate speech definitions through zero-shot and few-shot prompting, by including the hate speech definition in the prompt. We opt for three definitions from different sources: dataset (HateCheck), social media (Reddit), and law (Bulgaria). We use HateCheck, a template-based hate speech diagnostic test set, to verify this alignment by relabeling the same test cases. We compare three LLMs, two definition inclusion conditions, and four prompting strategies. Our findings suggest that regardless of the prompting strategy, LLMs are not reliable in aligning properly with non-HateCheck definitions.
Anthology ID:
2026.woah-1.28
Volume:
Proceedings of the 10th Workshop on Online Abuse and Harms (WOAH)
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Agostina Calabrese, Thomas Davidson, Christine de Kock, Urja Khurana, Marta Marchiori Manerba, Paloma Piot, Zeerak Talat
Venues:
WOAH | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
322–337
Language:
URL:
https://aclanthology.org/2026.woah-1.28/
DOI:
Bibkey:
Cite (ACL):
Parham Bateni, Pradeep Murukannaiah, and Urja Khurana. 2026. Tailoring In-Context Learning Techniques for Definition-Based Hate Speech Detection in Large Language Models. In Proceedings of the 10th Workshop on Online Abuse and Harms (WOAH), pages 322–337, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Tailoring In-Context Learning Techniques for Definition-Based Hate Speech Detection in Large Language Models (Bateni et al., WOAH 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.woah-1.28.pdf
Supplementarymaterial:
 2026.woah-1.28.SupplementaryMaterial.zip