Studying Socially Unacceptable Discourse Classification (SUD) through different eyes: "Are we on the same page ?"

Bruno Machado Carneiro, Michele Linardi, Julien LonghiarXiv 2023 · DOI

Detecting "Socially Unacceptable Discourse" (SUD) in the wild is a complex challenge for natural language processing. While numerous datasets exist to train AI models, they are often created in isolation, leading to a lack of standardized definitions. This research explores the "generalization gap" that occurs when models trained on specific datasets fail to perform across broader, more heterogeneous contexts. By aggregating 13 different datasets into a massive corpus, the authors demonstrate that more data does not always lead to better performance if the underlying human labels are inconsistent.

The Challenge of Heterogeneity

SUD is an umbrella term covering behaviors ranging from offensive language and "identity hate" to radicalization and toxic comments. However, one dataset might define "hate speech" based on specific keywords, while another focuses on the intent of the speaker or the vulnerability of the target. This lack of standardized annotation guidelines creates a significant hurdle for AI generalization. A model trained to find toxicity on Wikipedia might fail on Twitter or specialized forums like Stormfront. The authors set out to quantify this gap by asking: Can a single "global" model learn the nuances of SUD across all these different contexts?

The $G^{SUD}$ Corpus

To test this, the researchers compiled $G^{SUD}$, a new corpus consisting of 470,768 samples across 12 classes. It draws from 13 well-known sources, including Twitter (Davidson, Founta, Olid, HASOC), Reddit, Gab, Wikipedia talk pages (Jigsaw), and specialized threads like Fox News comments.

Distribution of classes and original corpora within the aggregated $G^{SUD}$ dataset.

As seen in the distribution, the dataset is heavily imbalanced. The "neither" (benign) class accounts for 74.3% of the data. Furthermore, two datasets—Jigsaw and Founta—make up over 60% of the total samples, highlighting the inherent imbalance in available research data.

Methodology

The authors employed a rigorous experimental design using $BERT_{BASE}$ as the backbone, supplemented by a Multi-Layer Perceptron (MLP) head with 12 output neurons. They compared a "Global" model trained on the full $G^{SUD}$ corpus against "Individual" models trained only on single datasets. Training strategies included testing on the full imbalanced set, random oversampling for minority classes, and undersampling the dominant "neither" class.

Key Insights: The Generalization Gap

The study revealed several critical insights into the nature of SUD classification:

  • The "Hate" Paradox: Although "Hate" appears in 10 of the 13 datasets, it has some of the shakiest classification performance. This "intraclass heterogeneity" stems from different annotators relating "hate" to different textual elements.
  • Binary vs. Multiclass Performance: The model is excellent at binary classification (SUD vs. non-SUD), achieving a Macro F1 of ~88.5%. However, when distinguishing between specific types of SUD (multiclass), performance drops significantly to 53.9%.
  • More Data ≠ Better Performance: In 11 out of 13 cases, a model trained only on a specific dataset outperformed the global model. This suggests that conflicting annotation guidelines in the global set act as "noise" rather than helpful signal.

Visualizing the Latent Space

Using t-SNE visualizations, the authors analyzed how the model perceives different classes in a high-dimensional space.

t-SNE visualization of SUD classes, highlighting the overlap between common categories like 'Toxic' and 'Offensive'.

The visualization shows that classes unique to a single dataset (like "Abusive" or "Aggressive") form clear, tight clusters. Conversely, classes that appear across many datasets (like "Toxic" or "Offensive") are sparse and overlapping, making them much harder for the model to pin down accurately.

Conclusion and Future Directions

The primary bottleneck in SUD classification is not AI architecture, but the human element. The lack of formal, cross-domain guidelines leads to local biases that hinder global model performance. Future work should focus on developing formal annotation policies with linguists to reduce these biases and improving the model's ability to distinguish the source and target of discourse—a key feature of many SUD definitions that current models often ignore.

Summary updated

Abstract

We study Socially Unacceptable Discourse (SUD) characterization and detection in online text. We first build and present a novel corpus that contains a large variety of manually annotated texts from different online sources used so far in state-of-the-art Machine learning (ML) SUD detection solutions. This global context allows us to test the generalization ability of SUD classifiers that acquire knowledge around the same SUD categories, but from different contexts. From this perspective, we can analyze how (possibly) different annotation modalities influence SUD learning by discussing open challenges and open research directions. We also provide several data insights which can support domain experts in the annotation task.
BibTeX
@misc{carneiro2023studying,
  author = {Bruno Machado Carneiro and Michele Linardi and Julien Longhi},
  title = {{Studying Socially Unacceptable Discourse Classification (SUD) through different eyes: "Are we on the same page ?"}},
  year = {2023},
  eprint = {2308.04180},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.04180},
}
Figure