Compositional Generalisation for Explainable Hate Speech Detection

Agostina Calabrese, Tom Sherborne, Björn Ross, Mirella Lapata
6/4/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Hate speech detection is key to online content moderation, but current models struggle to generalise beyond their training data. This has been linked to dataset biases and the use of sentence-level labels, which fail to teach models the underlying structure of hate speech. In this work, we show that even when models are trained with more fine-grained, span-level annotations (e.g., "artists" is labeled as target and "are parasites" as dehumanising comparison), they struggle to disentangle the meaning of these labels from the surrounding context. As a result, combinations of expressions that deviate from those seen during training remain particularly difficult for models to detect. We investigate whether training on a dataset where expressions occur with equal frequency across all contexts can improve generalisation. To this end, we create U-PLEAD, a dataset of ~364,000 synthetic posts, along with a novel compositional generalisation benchmark of ~8,000 manually validated posts. Training on a combination of U-PLEAD and real data improves compositional generalisation while achieving state-of-the-art performance on the human-sourced PLEAD.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{calabrese2025compositional,
  title  = {Compositional Generalisation for Explainable Hate Speech Detection},
  author = {Agostina Calabrese and Tom Sherborne and Björn Ross and Mirella Lapata},
  year   = {2025},
  eprint = {2506.03916},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.03916v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.03916.svg)](https://codeofpaper.com/paper/2506.03916)

Discussion