Uncertainty Quantification to Improve the Reliability of LLM-Based Hate Speech Detection

Nehir Idil Yuksel, Daryna Dementieva, Alexander Fraser


Abstract
While Large Language Models (LLMs) have been tested for hate speech detection, their reliability in subjective annotation settings remains underexplored. Existing improved prompting approaches for hate speech classification often rely on continuous context retrieval, which can be computationally expensive and unnecessary for confident predictions. To address this, we propose an uncertainty-aware prompting pipeline that integrates Uncertainty Quantification (UQ) into LLM-based hate speech classification. The framework uses uncertainty scores to identify ambiguous and potentially unreliable predictions through threshold-based filtering, enabling selective application of advanced context-enriched prompting only when needed. We evaluate the approach on two benchmark datasets—Measuring Hate Speech (Sachdeva et al., 2022) and CREHate (Lee et al., 2024—across five LLMs using two advanced prompting strategies: Persona-Aware and Annotation-Grounded Few-Shot Prompting. Experimental results show that the proposed pipeline consistently improves classification performance and reduces uncertainty, leading to more reliable model behavior with improved computational efficiency.
Anthology ID:
2026.nlp4pi-1.41
Volume:
Proceedings of the Fifth Workshop on NLP for Positive Impact (NLP4PI)
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Katherine Atwell, Angana Borah, Daryna Dementieva, Elisa Kreiss, Neema Kotonya, Jiarui Liu, Liz Olson, Ruyuan Wan, Jieyu Zhao
Venues:
NLP4PI | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
544–574
Language:
URL:
https://aclanthology.org/2026.nlp4pi-1.41/
DOI:
Bibkey:
Cite (ACL):
Nehir Idil Yuksel, Daryna Dementieva, and Alexander Fraser. 2026. Uncertainty Quantification to Improve the Reliability of LLM-Based Hate Speech Detection. In Proceedings of the Fifth Workshop on NLP for Positive Impact (NLP4PI), pages 544–574, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Uncertainty Quantification to Improve the Reliability of LLM-Based Hate Speech Detection (Yuksel et al., NLP4PI 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.nlp4pi-1.41.pdf