Closest Positive Cluster Loss: Improving the Generalization of Implicit Hate Speech Classifiers Across Social Media Datasets
Flagging hate speech on social media messages has important societal benefits. While large language models have become increasingly able to identify hate speech with high accuracy, they come with a significant computational cost. Thus, there is a need for simpler models that detect hateful or abusive content by classifying an embedding of the text. Such models perform very well for explicitly abusive content, but struggle with the classification of implicit hate. Furthermore, it has been found that the performance decreases significantly in cross-dataset experiments. In this paper, we propose Closest Positive Cluster (CPC) an auxiliary loss that increases the generalizability of embedding-based explicit and implicit hate classifiers in crossdataset scenarios. Through experiments spanning ten different hate speech datasets, we found that the CPC loss increased the model performance by 0.17 - 7.4% when added to the binary crossentropy loss during training. The experiments also investigated whether models trained on specific hate speech datasets generalize better to other datasets.
Authors
- Ladislau Bölöni (ORCID: https://orcid.org/0000-0001-5336-9651)
- Damla Turgut (ORCID: https://orcid.org/0000-0001-8635-7198)
- Saleh Almohaimeed (ORCID: https://orcid.org/0009-0009-0613-1654)
- Saad Almohaimeed (ORCID: https://orcid.org/0009-0006-2791-623X)
Institutions
- University of Central Florida (US)
Publication Details
- Published
- 2025-06-08
- DOI
- https://doi.org/10.1109/icc52391.2025.11161273
- Primary Topic
- Hate Speech and Cyberbullying Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00