Hypothesis Engineering for Zero-Shot Hate Speech Detection

Janis Goldzycher, Gerold Schneider


Abstract
Standard approaches to hate speech detection rely on sufficient available hate speech annotations. Extending previous work that repurposes natural language inference (NLI) models for zero-shot text classification, we propose a simple approach that combines multiple hypotheses to improve English NLI-based zero-shot hate speech detection. We first conduct an error analysis for vanilla NLI-based zero-shot hate speech detection and then develop four strategies based on this analysis. The strategies use multiple hypotheses to predict various aspects of an input text and combine these predictions into a final verdict. We find that the zero-shot baseline used for the initial error analysis already outperforms commercial systems and fine-tuned BERT-based hate speech detection models on HateCheck. The combination of the proposed strategies further increases the zero-shot accuracy of 79.4% on HateCheck by 7.9 percentage points (pp), and the accuracy of 69.6% on ETHOS by 10.0pp.
Anthology ID:
2022.trac-1.10
Volume:
Proceedings of the Third Workshop on Threat, Aggression and Cyberbullying (TRAC 2022)
Month:
October
Year:
2022
Address:
Gyeongju, Republic of Korea
Editors:
Ritesh Kumar, Atul Kr. Ojha, Marcos Zampieri, Shervin Malmasi, Daniel Kadar
Venue:
TRAC
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
75–90
Language:
URL:
https://aclanthology.org/2022.trac-1.10
DOI:
Bibkey:
Cite (ACL):
Janis Goldzycher and Gerold Schneider. 2022. Hypothesis Engineering for Zero-Shot Hate Speech Detection. In Proceedings of the Third Workshop on Threat, Aggression and Cyberbullying (TRAC 2022), pages 75–90, Gyeongju, Republic of Korea. Association for Computational Linguistics.
Cite (Informal):
Hypothesis Engineering for Zero-Shot Hate Speech Detection (Goldzycher & Schneider, TRAC 2022)
Copy Citation:
PDF:
https://preview.aclanthology.org/nschneid-patch-4/2022.trac-1.10.pdf
Code
 jagol/nli-for-hate-speech-detection